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