Lines Matching refs:pcs
20 static inline struct b53_pcs *pcs_to_b53_pcs(struct phylink_pcs *pcs) in pcs_to_b53_pcs() argument
22 return container_of(pcs, struct b53_pcs, pcs); in pcs_to_b53_pcs()
68 static int b53_serdes_config(struct phylink_pcs *pcs, unsigned int neg_mode, in b53_serdes_config() argument
73 struct b53_device *dev = pcs_to_b53_pcs(pcs)->dev; in b53_serdes_config()
74 u8 lane = pcs_to_b53_pcs(pcs)->lane; in b53_serdes_config()
89 static void b53_serdes_an_restart(struct phylink_pcs *pcs) in b53_serdes_an_restart() argument
91 struct b53_device *dev = pcs_to_b53_pcs(pcs)->dev; in b53_serdes_an_restart()
92 u8 lane = pcs_to_b53_pcs(pcs)->lane; in b53_serdes_an_restart()
102 static void b53_serdes_get_state(struct phylink_pcs *pcs, in b53_serdes_get_state() argument
105 struct b53_device *dev = pcs_to_b53_pcs(pcs)->dev; in b53_serdes_get_state()
106 u8 lane = pcs_to_b53_pcs(pcs)->lane; in b53_serdes_get_state()
201 !dev->pcs[lane].dev) in b53_serdes_phylink_mac_select_pcs()
208 return &dev->pcs[lane].pcs; in b53_serdes_phylink_mac_select_pcs()
215 struct b53_pcs *pcs; in b53_serdes_init() local
238 pcs = &dev->pcs[lane]; in b53_serdes_init()
239 pcs->dev = dev; in b53_serdes_init()
240 pcs->lane = lane; in b53_serdes_init()
241 pcs->pcs.ops = &b53_pcs_ops; in b53_serdes_init()
242 pcs->pcs.neg_mode = true; in b53_serdes_init()