Lines Matching refs:lynx
8 #include <linux/pcs-lynx.h>
36 #define lynx_to_phylink_pcs(lynx) (&(lynx)->pcs)
106 struct lynx_pcs *lynx = phylink_pcs_to_lynx(pcs);
112 phylink_mii_c22_pcs_get_state(lynx->mdio, neg_mode, state);
115 lynx_pcs_get_state_2500basex(lynx->mdio, state);
118 lynx_pcs_get_state_usxgmii(lynx->mdio, state);
121 phylink_mii_c45_pcs_get_state(lynx->mdio, state);
127 dev_dbg(&lynx->mdio->dev,
195 struct lynx_pcs *lynx = phylink_pcs_to_lynx(pcs);
201 return lynx_pcs_config_giga(lynx->mdio, ifmode, advertising,
205 dev_err(&lynx->mdio->dev,
211 return lynx_pcs_config_usxgmii(lynx->mdio, advertising,
225 struct lynx_pcs *lynx = phylink_pcs_to_lynx(pcs);
227 phylink_mii_c22_pcs_an_restart(lynx->mdio);
309 struct lynx_pcs *lynx = phylink_pcs_to_lynx(pcs);
314 lynx_pcs_link_up_sgmii(lynx->mdio, neg_mode, speed, duplex);
317 lynx_pcs_link_up_2500basex(lynx->mdio, neg_mode, speed, duplex);
348 struct lynx_pcs *lynx;
351 lynx = kzalloc(sizeof(*lynx), GFP_KERNEL);
352 if (!lynx)
356 lynx->mdio = mdio;
357 lynx->pcs.ops = &lynx_pcs_phylink_ops;
358 lynx->pcs.poll = true;
361 __set_bit(lynx_interfaces[i], lynx->pcs.supported_interfaces);
363 return lynx_to_phylink_pcs(lynx);
390 * lynx_pcs_create_fwnode() creates a lynx PCS instance from the fwnode
427 struct lynx_pcs *lynx = phylink_pcs_to_lynx(pcs);
429 mdio_device_put(lynx->mdio);
430 kfree(lynx);