Lines Matching full:pcs
11 #include <linux/pcs/pcs-xpcs.h>
17 #include "pcs-xpcs.h"
20 container_of((pl_pcs), struct dw_xpcs, pcs)
137 return &xpcs->pcs; in xpcs_to_phylink_pcs()
545 static int xpcs_validate(struct phylink_pcs *pcs, unsigned long *supported, in xpcs_validate() argument
553 xpcs = phylink_pcs_to_xpcs(pcs); in xpcs_validate()
570 static unsigned int xpcs_inband_caps(struct phylink_pcs *pcs, in xpcs_inband_caps() argument
573 struct dw_xpcs *xpcs = phylink_pcs_to_xpcs(pcs); in xpcs_inband_caps()
635 static void xpcs_pre_config(struct phylink_pcs *pcs, phy_interface_t interface) in xpcs_pre_config() argument
637 struct dw_xpcs *xpcs = phylink_pcs_to_xpcs(pcs); in xpcs_pre_config()
766 if (!xpcs->pcs.poll) { in xpcs_config_aneg_c37_1000basex()
884 static int xpcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in xpcs_config() argument
889 struct dw_xpcs *xpcs = phylink_pcs_to_xpcs(pcs); in xpcs_config()
1054 if (!xpcs->pcs.poll) { in xpcs_get_state_c37_1000basex()
1092 static void xpcs_get_state(struct phylink_pcs *pcs, unsigned int neg_mode, in xpcs_get_state() argument
1095 struct dw_xpcs *xpcs = phylink_pcs_to_xpcs(pcs); in xpcs_get_state()
1167 static void xpcs_link_up(struct phylink_pcs *pcs, unsigned int neg_mode, in xpcs_link_up() argument
1170 struct dw_xpcs *xpcs = phylink_pcs_to_xpcs(pcs); in xpcs_link_up()
1188 static void xpcs_an_restart(struct phylink_pcs *pcs) in xpcs_an_restart() argument
1190 struct dw_xpcs *xpcs = phylink_pcs_to_xpcs(pcs); in xpcs_an_restart()
1201 /* First, search C73 PCS using PCS MMD 3. Return ENODEV if communication in xpcs_read_ids()
1217 * KR/KX4 PCS found. Otherwise fallback to detecting 1000Base-X or C37 in xpcs_read_ids()
1218 * PCS in MII MMD 31. in xpcs_read_ids()
1234 /* Set the PCS ID if it hasn't been pre-initialized */ in xpcs_read_ids()
1235 if (xpcs->info.pcs == DW_XPCS_ID_NATIVE) in xpcs_read_ids()
1236 xpcs->info.pcs = id; in xpcs_read_ids()
1250 * with respect to what is done with the PCS ID... in xpcs_read_ids()
1357 if ((xpcs->info.pcs & entry->mask) == entry->id) { in xpcs_identify()
1376 xpcs->pcs.ops = &xpcs_phylink_ops; in xpcs_create_data()
1377 xpcs->pcs.neg_mode = true; in xpcs_create_data()
1378 xpcs->pcs.poll = true; in xpcs_create_data()
1425 xpcs->info.pcs = DW_XPCS_ID_NATIVE; in xpcs_init_id()
1451 xpcs_get_interfaces(xpcs, xpcs->pcs.supported_interfaces); in xpcs_create()
1454 xpcs->pcs.poll = false; in xpcs_create()
1475 * the PCS device couldn't be found on the bus and other negative errno related
1509 return &xpcs->pcs; in xpcs_create_pcs_mdiodev()
1518 * the fwnode device is unavailable or the PCS device couldn't be found on the
1560 void xpcs_destroy_pcs(struct phylink_pcs *pcs) in xpcs_destroy_pcs() argument
1562 xpcs_destroy(phylink_pcs_to_xpcs(pcs)); in xpcs_destroy_pcs()