Lines Matching full:mdio
3 * linux/mdio.h: definitions for MDIO (clause 45) transceivers
9 #include <uapi/linux/mdio.h>
44 /* Bus address of the MDIO device (0-31) */
54 /* struct mdio_driver_common: Common to all MDIO drivers */
63 /* struct mdio_driver: Generic MDIO driver */
80 static inline void mdiodev_set_drvdata(struct mdio_device *mdio, void *data) in mdiodev_set_drvdata() argument
82 dev_set_drvdata(&mdio->dev, data); in mdiodev_set_drvdata()
85 static inline void *mdiodev_get_drvdata(struct mdio_device *mdio) in mdiodev_get_drvdata() argument
87 return dev_get_drvdata(&mdio->dev); in mdiodev_get_drvdata()
115 * struct mdio_if_info - Ethernet controller MDIO interface
119 * @mode_support: MDIO modes supported. If %MDIO_SUPPORTS_C22 is set then
148 extern int mdio45_probe(struct mdio_if_info *mdio, int prtad);
149 extern int mdio_set_flag(const struct mdio_if_info *mdio,
152 extern int mdio45_links_ok(const struct mdio_if_info *mdio, u32 mmds);
153 extern int mdio45_nway_restart(const struct mdio_if_info *mdio);
154 extern void mdio45_ethtool_gset_npage(const struct mdio_if_info *mdio,
158 mdio45_ethtool_ksettings_get_npage(const struct mdio_if_info *mdio,
164 * @mdio: MDIO interface
172 static inline void mdio45_ethtool_gset(const struct mdio_if_info *mdio, in mdio45_ethtool_gset() argument
175 mdio45_ethtool_gset_npage(mdio, ecmd, 0, 0); in mdio45_ethtool_gset()
180 * @mdio: MDIO interface
189 mdio45_ethtool_ksettings_get(const struct mdio_if_info *mdio, in mdio45_ethtool_ksettings_get() argument
192 mdio45_ethtool_ksettings_get_npage(mdio, cmd, 0, 0); in mdio45_ethtool_ksettings_get()
195 extern int mdio_mii_ioctl(const struct mdio_if_info *mdio,
373 * mdio_module_driver() - Helper macro for registering mdio drivers
376 * Helper macro for MDIO drivers which do not do anything special in module