Lines Matching full:lynx
3 * Lynx PCS MDIO helpers
8 #include <linux/pcs-lynx.h>
36 #define lynx_to_phylink_pcs(lynx) (&(lynx)->pcs) argument
85 struct lynx_pcs *lynx = phylink_pcs_to_lynx(pcs); in lynx_pcs_get_state() local
91 phylink_mii_c22_pcs_get_state(lynx->mdio, state); in lynx_pcs_get_state()
94 lynx_pcs_get_state_2500basex(lynx->mdio, state); in lynx_pcs_get_state()
97 lynx_pcs_get_state_usxgmii(lynx->mdio, state); in lynx_pcs_get_state()
100 phylink_mii_c45_pcs_get_state(lynx->mdio, state); in lynx_pcs_get_state()
106 dev_dbg(&lynx->mdio->dev, in lynx_pcs_get_state()
174 struct lynx_pcs *lynx = phylink_pcs_to_lynx(pcs); in lynx_pcs_config() local
180 return lynx_pcs_config_giga(lynx->mdio, ifmode, advertising, in lynx_pcs_config()
184 dev_err(&lynx->mdio->dev, in lynx_pcs_config()
190 return lynx_pcs_config_usxgmii(lynx->mdio, advertising, in lynx_pcs_config()
204 struct lynx_pcs *lynx = phylink_pcs_to_lynx(pcs); in lynx_pcs_an_restart() local
206 phylink_mii_c22_pcs_an_restart(lynx->mdio); in lynx_pcs_an_restart()
288 struct lynx_pcs *lynx = phylink_pcs_to_lynx(pcs); in lynx_pcs_link_up() local
293 lynx_pcs_link_up_sgmii(lynx->mdio, neg_mode, speed, duplex); in lynx_pcs_link_up()
296 lynx_pcs_link_up_2500basex(lynx->mdio, neg_mode, speed, duplex); in lynx_pcs_link_up()
317 struct lynx_pcs *lynx; in lynx_pcs_create() local
319 lynx = kzalloc(sizeof(*lynx), GFP_KERNEL); in lynx_pcs_create()
320 if (!lynx) in lynx_pcs_create()
324 lynx->mdio = mdio; in lynx_pcs_create()
325 lynx->pcs.ops = &lynx_pcs_phylink_ops; in lynx_pcs_create()
326 lynx->pcs.neg_mode = true; in lynx_pcs_create()
327 lynx->pcs.poll = true; in lynx_pcs_create()
329 return lynx_to_phylink_pcs(lynx); in lynx_pcs_create()
356 * lynx_pcs_create_fwnode() creates a lynx PCS instance from the fwnode
393 struct lynx_pcs *lynx = phylink_pcs_to_lynx(pcs); in lynx_pcs_destroy() local
395 mdio_device_put(lynx->mdio); in lynx_pcs_destroy()
396 kfree(lynx); in lynx_pcs_destroy()
400 MODULE_DESCRIPTION("NXP Lynx PCS phylink library");