Lines Matching refs:mdio_device
28 struct mdio_device { struct
35 void (*device_free)(struct mdio_device *mdiodev); argument
36 void (*device_remove)(struct mdio_device *mdiodev); argument
47 static inline struct mdio_device *to_mdio_device(const struct device *dev) in to_mdio_device() argument
49 return container_of(dev, struct mdio_device, dev); in to_mdio_device()
73 int (*probe)(struct mdio_device *mdiodev);
76 void (*remove)(struct mdio_device *mdiodev);
79 void (*shutdown)(struct mdio_device *mdiodev);
90 static inline void mdiodev_set_drvdata(struct mdio_device *mdio, void *data) in mdiodev_set_drvdata()
95 static inline void *mdiodev_get_drvdata(struct mdio_device *mdio) in mdiodev_get_drvdata()
100 void mdio_device_free(struct mdio_device *mdiodev);
101 struct mdio_device *mdio_device_create(struct mii_bus *bus, int addr);
102 int mdio_device_register(struct mdio_device *mdiodev);
103 void mdio_device_remove(struct mdio_device *mdiodev);
104 void mdio_device_reset(struct mdio_device *mdiodev, int value);
109 static inline void mdio_device_get(struct mdio_device *mdiodev) in mdio_device_get()
114 static inline void mdio_device_put(struct mdio_device *mdiodev) in mdio_device_put()
569 static inline int __mdiodev_read(struct mdio_device *mdiodev, u32 regnum) in __mdiodev_read()
574 static inline int __mdiodev_write(struct mdio_device *mdiodev, u32 regnum, in __mdiodev_write()
580 static inline int __mdiodev_modify(struct mdio_device *mdiodev, u32 regnum, in __mdiodev_modify()
586 static inline int __mdiodev_modify_changed(struct mdio_device *mdiodev, in __mdiodev_modify_changed()
593 static inline int mdiodev_read(struct mdio_device *mdiodev, u32 regnum) in mdiodev_read()
598 static inline int mdiodev_write(struct mdio_device *mdiodev, u32 regnum, in mdiodev_write()
604 static inline int mdiodev_modify(struct mdio_device *mdiodev, u32 regnum, in mdiodev_modify()
610 static inline int mdiodev_modify_changed(struct mdio_device *mdiodev, in mdiodev_modify_changed()
617 static inline int mdiodev_c45_modify(struct mdio_device *mdiodev, int devad, in mdiodev_c45_modify()
624 static inline int mdiodev_c45_modify_changed(struct mdio_device *mdiodev, in mdiodev_c45_modify_changed()
632 static inline int mdiodev_c45_read(struct mdio_device *mdiodev, int devad, in mdiodev_c45_read()
638 static inline int mdiodev_c45_write(struct mdio_device *mdiodev, u32 devad, in mdiodev_c45_write()
645 int mdiobus_register_device(struct mdio_device *mdiodev);
646 int mdiobus_unregister_device(struct mdio_device *mdiodev);