Lines Matching refs:phy_device

45 void phy_device_free(struct phy_device *phydev)  in phy_device_free()
53 struct phy_device *phydev; in phy_mdio_device_free()
55 phydev = container_of(mdiodev, struct phy_device, mdio); in phy_mdio_device_free()
66 struct phy_device *phydev; in phy_mdio_device_remove()
68 phydev = container_of(mdiodev, struct phy_device, mdio); in phy_mdio_device_remove()
79 static bool mdio_bus_phy_may_suspend(struct phy_device *phydev) in mdio_bus_phy_may_suspend()
119 struct phy_device *phydev = to_phy_device(dev); in mdio_bus_phy_suspend()
137 struct phy_device *phydev = to_phy_device(dev); in mdio_bus_phy_resume()
156 struct phy_device *phydev = to_phy_device(dev); in mdio_bus_phy_restore()
202 int (*run)(struct phy_device *)) in phy_register_fixup() argument
224 int (*run)(struct phy_device *)) in phy_register_fixup_for_uid() argument
232 int (*run)(struct phy_device *)) in phy_register_fixup_for_id() argument
288 static int phy_needs_fixup(struct phy_device *phydev, struct phy_fixup *fixup) in phy_needs_fixup()
303 static int phy_scan_fixups(struct phy_device *phydev) in phy_scan_fixups()
326 struct phy_device *phydev = to_phy_device(dev); in phy_bus_match()
357 struct phy_device *phydev = to_phy_device(dev); in phy_id_show()
366 struct phy_device *phydev = to_phy_device(dev); in phy_interface_show()
382 struct phy_device *phydev = to_phy_device(dev); in phy_has_fixups_show()
403 struct phy_device *phy_device_create(struct mii_bus *bus, int addr, int phy_id, in phy_device_create()
407 struct phy_device *dev; in phy_device_create()
625 struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45) in get_phy_device()
647 int phy_device_register(struct phy_device *phydev) in phy_device_register()
690 void phy_device_remove(struct phy_device *phydev) in phy_device_remove()
705 struct phy_device *phy_find_first(struct mii_bus *bus) in phy_find_first()
707 struct phy_device *phydev; in phy_find_first()
719 static void phy_link_change(struct phy_device *phydev, bool up, bool do_carrier) in phy_link_change()
744 static void phy_prepare_link(struct phy_device *phydev, in phy_prepare_link()
757 int phy_connect_direct(struct net_device *dev, struct phy_device *phydev, in phy_connect_direct()
791 struct phy_device *phy_connect(struct net_device *dev, const char *bus_id, in phy_connect()
795 struct phy_device *phydev; in phy_connect()
823 void phy_disconnect(struct phy_device *phydev) in phy_disconnect()
854 static int phy_poll_reset(struct phy_device *phydev) in phy_poll_reset()
876 int phy_init_hw(struct phy_device *phydev) in phy_init_hw()
902 void phy_attached_info(struct phy_device *phydev) in phy_attached_info()
909 void phy_attached_print(struct phy_device *phydev, const char *fmt, ...) in phy_attached_print()
962 int phy_attach_direct(struct net_device *dev, struct phy_device *phydev, in phy_attach_direct()
1096 struct phy_device *phy_attach(struct net_device *dev, const char *bus_id, in phy_attach()
1100 struct phy_device *phydev; in phy_attach()
1130 void phy_detach(struct phy_device *phydev) in phy_detach()
1173 int phy_suspend(struct phy_device *phydev) in phy_suspend()
1197 int __phy_resume(struct phy_device *phydev) in __phy_resume()
1216 int phy_resume(struct phy_device *phydev) in phy_resume()
1228 int phy_loopback(struct phy_device *phydev, bool enable) in phy_loopback()
1270 int phy_reset_after_clk_enable(struct phy_device *phydev) in phy_reset_after_clk_enable()
1296 static int genphy_config_advert(struct phy_device *phydev) in genphy_config_advert()
1366 static int genphy_config_eee_advert(struct phy_device *phydev) in genphy_config_eee_advert()
1403 int genphy_setup_forced(struct phy_device *phydev) in genphy_setup_forced()
1427 int genphy_restart_aneg(struct phy_device *phydev) in genphy_restart_aneg()
1443 int genphy_config_aneg(struct phy_device *phydev) in genphy_config_aneg()
1489 int genphy_aneg_done(struct phy_device *phydev) in genphy_aneg_done()
1505 int genphy_update_link(struct phy_device *phydev) in genphy_update_link()
1537 int genphy_read_status(struct phy_device *phydev) in genphy_read_status()
1647 int genphy_soft_reset(struct phy_device *phydev) in genphy_soft_reset()
1659 int genphy_config_init(struct phy_device *phydev) in genphy_config_init()
1707 int genphy_read_mmd_unsupported(struct phy_device *phdev, int devad, u16 regnum) in genphy_read_mmd_unsupported()
1713 int genphy_write_mmd_unsupported(struct phy_device *phdev, int devnum, in genphy_write_mmd_unsupported()
1720 int genphy_suspend(struct phy_device *phydev) in genphy_suspend()
1726 int genphy_resume(struct phy_device *phydev) in genphy_resume()
1732 int genphy_loopback(struct phy_device *phydev, bool enable) in genphy_loopback()
1739 static int __set_phy_supported(struct phy_device *phydev, u32 max_speed) in __set_phy_supported()
1760 int phy_set_max_speed(struct phy_device *phydev, u32 max_speed) in phy_set_max_speed()
1774 static void of_set_phy_supported(struct phy_device *phydev) in of_set_phy_supported()
1789 static void of_set_phy_eee_broken(struct phy_device *phydev) in of_set_phy_eee_broken()
1826 struct phy_device *phydev = to_phy_device(dev); in phy_probe()
1898 struct phy_device *phydev = to_phy_device(dev); in phy_remove()