Lines Matching full:mdio

3  * Lynx PCS MDIO helpers
6 #include <linux/mdio.h>
25 struct mdio_device *mdio; member
92 phylink_mii_c22_pcs_get_state(lynx->mdio, state); in lynx_pcs_get_state()
95 lynx_pcs_get_state_2500basex(lynx->mdio, state); in lynx_pcs_get_state()
98 lynx_pcs_get_state_usxgmii(lynx->mdio, state); in lynx_pcs_get_state()
101 phylink_mii_c45_pcs_get_state(lynx->mdio, state); in lynx_pcs_get_state()
107 dev_dbg(&lynx->mdio->dev, in lynx_pcs_get_state()
181 return lynx_pcs_config_giga(lynx->mdio, ifmode, advertising, in lynx_pcs_config()
185 dev_err(&lynx->mdio->dev, in lynx_pcs_config()
191 return lynx_pcs_config_usxgmii(lynx->mdio, advertising, in lynx_pcs_config()
207 phylink_mii_c22_pcs_an_restart(lynx->mdio); in lynx_pcs_an_restart()
294 lynx_pcs_link_up_sgmii(lynx->mdio, neg_mode, speed, duplex); in lynx_pcs_link_up()
297 lynx_pcs_link_up_2500basex(lynx->mdio, neg_mode, speed, duplex); in lynx_pcs_link_up()
316 static struct phylink_pcs *lynx_pcs_create(struct mdio_device *mdio) in lynx_pcs_create() argument
324 mdio_device_get(mdio); in lynx_pcs_create()
325 lynx->mdio = mdio; in lynx_pcs_create()
335 struct mdio_device *mdio; in lynx_pcs_create_mdiodev() local
338 mdio = mdio_device_create(bus, addr); in lynx_pcs_create_mdiodev()
339 if (IS_ERR(mdio)) in lynx_pcs_create_mdiodev()
340 return ERR_CAST(mdio); in lynx_pcs_create_mdiodev()
342 pcs = lynx_pcs_create(mdio); in lynx_pcs_create_mdiodev()
345 * successful. If lynx_create() fails, this will free the mdio in lynx_pcs_create_mdiodev()
348 * lynx_destroy() to automatically free the mdio device. in lynx_pcs_create_mdiodev()
350 mdio_device_put(mdio); in lynx_pcs_create_mdiodev()
368 struct mdio_device *mdio; in lynx_pcs_create_fwnode() local
374 mdio = fwnode_mdio_find_device(node); in lynx_pcs_create_fwnode()
375 if (!mdio) in lynx_pcs_create_fwnode()
378 pcs = lynx_pcs_create(mdio); in lynx_pcs_create_fwnode()
381 * successful. If lynx_create() fails, this will free the mdio in lynx_pcs_create_fwnode()
384 * lynx_destroy() to automatically free the mdio device. in lynx_pcs_create_fwnode()
386 mdio_device_put(mdio); in lynx_pcs_create_fwnode()
396 mdio_device_put(lynx->mdio); in lynx_pcs_destroy()