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()
621 static void xpcs_pre_config(struct phylink_pcs *pcs, phy_interface_t interface) in xpcs_pre_config() argument
623 struct dw_xpcs *xpcs = phylink_pcs_to_xpcs(pcs); in xpcs_pre_config()
757 if (!xpcs->pcs.poll) { in xpcs_config_aneg_c37_1000basex()
871 static int xpcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in xpcs_config() argument
876 struct dw_xpcs *xpcs = phylink_pcs_to_xpcs(pcs); in xpcs_config()
1041 if (!xpcs->pcs.poll) { in xpcs_get_state_c37_1000basex()
1079 static void xpcs_get_state(struct phylink_pcs *pcs, unsigned int neg_mode, in xpcs_get_state() argument
1082 struct dw_xpcs *xpcs = phylink_pcs_to_xpcs(pcs); in xpcs_get_state()
1154 static void xpcs_link_up(struct phylink_pcs *pcs, unsigned int neg_mode, in xpcs_link_up() argument
1157 struct dw_xpcs *xpcs = phylink_pcs_to_xpcs(pcs); in xpcs_link_up()
1175 static void xpcs_an_restart(struct phylink_pcs *pcs) in xpcs_an_restart() argument
1177 struct dw_xpcs *xpcs = phylink_pcs_to_xpcs(pcs); in xpcs_an_restart()
1212 static void xpcs_disable_eee(struct phylink_pcs *pcs) in xpcs_disable_eee() argument
1214 struct dw_xpcs *xpcs = phylink_pcs_to_xpcs(pcs); in xpcs_disable_eee()
1219 static void xpcs_enable_eee(struct phylink_pcs *pcs) in xpcs_enable_eee() argument
1221 struct dw_xpcs *xpcs = phylink_pcs_to_xpcs(pcs); in xpcs_enable_eee()
1245 /* First, search C73 PCS using PCS MMD 3. Return ENODEV if communication in xpcs_read_ids()
1261 * KR/KX4 PCS found. Otherwise fallback to detecting 1000Base-X or C37 in xpcs_read_ids()
1262 * PCS in MII MMD 31. in xpcs_read_ids()
1278 /* Set the PCS ID if it hasn't been pre-initialized */ in xpcs_read_ids()
1279 if (xpcs->info.pcs == DW_XPCS_ID_NATIVE) in xpcs_read_ids()
1280 xpcs->info.pcs = id; in xpcs_read_ids()
1294 * with respect to what is done with the PCS ID... in xpcs_read_ids()
1403 if ((xpcs->info.pcs & entry->mask) == entry->id) { in xpcs_identify()
1422 xpcs->pcs.ops = &xpcs_phylink_ops; in xpcs_create_data()
1423 xpcs->pcs.poll = true; in xpcs_create_data()
1470 xpcs->info.pcs = DW_XPCS_ID_NATIVE; in xpcs_init_id()
1496 xpcs_get_interfaces(xpcs, xpcs->pcs.supported_interfaces); in xpcs_create()
1499 xpcs->pcs.poll = false; in xpcs_create()
1520 * the PCS device couldn't be found on the bus and other negative errno related
1554 return &xpcs->pcs; in xpcs_create_pcs_mdiodev()
1563 * the fwnode device is unavailable or the PCS device couldn't be found on the
1605 void xpcs_destroy_pcs(struct phylink_pcs *pcs) in xpcs_destroy_pcs() argument
1607 xpcs_destroy(phylink_pcs_to_xpcs(pcs)); in xpcs_destroy_pcs()