Lines Matching refs:phy_device
105 unsigned int phy_supported_speeds(struct phy_device *phy,
256 struct phy_device *mdiobus_scan(struct mii_bus *bus, int addr);
399 struct phy_device { struct
480 void (*phy_link_change)(struct phy_device *, bool up, bool do_carrier); argument
484 struct phy_device, mdio) argument
519 int (*soft_reset)(struct phy_device *phydev);
525 int (*config_init)(struct phy_device *phydev);
531 int (*probe)(struct phy_device *phydev);
534 int (*suspend)(struct phy_device *phydev);
535 int (*resume)(struct phy_device *phydev);
543 int (*config_aneg)(struct phy_device *phydev);
546 int (*aneg_done)(struct phy_device *phydev);
549 int (*read_status)(struct phy_device *phydev);
552 int (*ack_interrupt)(struct phy_device *phydev);
555 int (*config_intr)(struct phy_device *phydev);
561 int (*did_interrupt)(struct phy_device *phydev);
564 void (*remove)(struct phy_device *phydev);
570 int (*match_phy_device)(struct phy_device *phydev);
573 int (*ts_info)(struct phy_device *phydev, struct ethtool_ts_info *ti);
576 int (*hwtstamp)(struct phy_device *phydev, struct ifreq *ifr);
585 bool (*rxtstamp)(struct phy_device *dev, struct sk_buff *skb, int type);
593 void (*txtstamp)(struct phy_device *dev, struct sk_buff *skb, int type);
598 int (*set_wol)(struct phy_device *dev, struct ethtool_wolinfo *wol);
601 void (*get_wol)(struct phy_device *dev, struct ethtool_wolinfo *wol);
610 void (*link_change_notify)(struct phy_device *dev);
621 int (*read_mmd)(struct phy_device *dev, int devnum, u16 regnum);
633 int (*write_mmd)(struct phy_device *dev, int devnum, u16 regnum,
636 int (*read_page)(struct phy_device *dev);
637 int (*write_page)(struct phy_device *dev, int page);
641 int (*module_info)(struct phy_device *dev,
645 int (*module_eeprom)(struct phy_device *dev,
649 int (*get_sset_count)(struct phy_device *dev);
650 void (*get_strings)(struct phy_device *dev, u8 *data);
651 void (*get_stats)(struct phy_device *dev,
655 int (*get_tunable)(struct phy_device *dev,
657 int (*set_tunable)(struct phy_device *dev,
660 int (*set_loopback)(struct phy_device *dev, bool enable);
674 int (*run)(struct phy_device *phydev);
695 void phy_resolve_aneg_linkmode(struct phy_device *phydev);
706 int phy_read_mmd(struct phy_device *phydev, int devad, u32 regnum);
717 static inline int phy_read(struct phy_device *phydev, u32 regnum) in phy_read()
729 static inline int __phy_read(struct phy_device *phydev, u32 regnum) in __phy_read()
744 static inline int phy_write(struct phy_device *phydev, u32 regnum, u16 val) in phy_write()
757 static inline int __phy_write(struct phy_device *phydev, u32 regnum, u16 val) in __phy_write()
763 int __phy_modify(struct phy_device *phydev, u32 regnum, u16 mask, u16 set);
764 int phy_modify(struct phy_device *phydev, u32 regnum, u16 mask, u16 set);
774 static inline int __phy_set_bits(struct phy_device *phydev, u32 regnum, u16 val) in __phy_set_bits()
787 static inline int __phy_clear_bits(struct phy_device *phydev, u32 regnum, in __phy_clear_bits()
799 static inline int phy_set_bits(struct phy_device *phydev, u32 regnum, u16 val) in phy_set_bits()
810 static inline int phy_clear_bits(struct phy_device *phydev, u32 regnum, u16 val) in phy_clear_bits()
822 static inline bool phy_interrupt_is_valid(struct phy_device *phydev) in phy_interrupt_is_valid()
832 static inline bool phy_polling_mode(struct phy_device *phydev) in phy_polling_mode()
841 static inline bool phy_is_internal(struct phy_device *phydev) in phy_is_internal()
876 static inline bool phy_interface_is_rgmii(struct phy_device *phydev) in phy_interface_is_rgmii()
886 static inline bool phy_is_pseudo_fixed_link(struct phy_device *phydev) in phy_is_pseudo_fixed_link()
901 int phy_write_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val);
903 int phy_save_page(struct phy_device *phydev);
904 int phy_select_page(struct phy_device *phydev, int page);
905 int phy_restore_page(struct phy_device *phydev, int oldpage, int ret);
906 int phy_read_paged(struct phy_device *phydev, int page, u32 regnum);
907 int phy_write_paged(struct phy_device *phydev, int page, u32 regnum, u16 val);
908 int phy_modify_paged(struct phy_device *phydev, int page, u32 regnum,
911 struct phy_device *phy_device_create(struct mii_bus *bus, int addr, int phy_id,
915 struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45);
916 int phy_device_register(struct phy_device *phy);
917 void phy_device_free(struct phy_device *phydev);
920 struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45) in get_phy_device()
925 static inline int phy_device_register(struct phy_device *phy) in phy_device_register()
930 static inline void phy_device_free(struct phy_device *phydev) { } in phy_device_free()
932 void phy_device_remove(struct phy_device *phydev);
933 int phy_init_hw(struct phy_device *phydev);
934 int phy_suspend(struct phy_device *phydev);
935 int phy_resume(struct phy_device *phydev);
936 int __phy_resume(struct phy_device *phydev);
937 int phy_loopback(struct phy_device *phydev, bool enable);
938 struct phy_device *phy_attach(struct net_device *dev, const char *bus_id,
940 struct phy_device *phy_find_first(struct mii_bus *bus);
941 int phy_attach_direct(struct net_device *dev, struct phy_device *phydev,
943 int phy_connect_direct(struct net_device *dev, struct phy_device *phydev,
946 struct phy_device *phy_connect(struct net_device *dev, const char *bus_id,
949 void phy_disconnect(struct phy_device *phydev);
950 void phy_detach(struct phy_device *phydev);
951 void phy_start(struct phy_device *phydev);
952 void phy_stop(struct phy_device *phydev);
953 int phy_start_aneg(struct phy_device *phydev);
954 int phy_aneg_done(struct phy_device *phydev);
955 int phy_speed_down(struct phy_device *phydev, bool sync);
956 int phy_speed_up(struct phy_device *phydev);
958 int phy_stop_interrupts(struct phy_device *phydev);
959 int phy_restart_aneg(struct phy_device *phydev);
960 int phy_reset_after_clk_enable(struct phy_device *phydev);
962 static inline void phy_device_reset(struct phy_device *phydev, int value) in phy_device_reset()
973 static inline const char *phydev_name(const struct phy_device *phydev) in phydev_name()
978 void phy_attached_print(struct phy_device *phydev, const char *fmt, ...)
980 void phy_attached_info(struct phy_device *phydev);
983 int genphy_config_init(struct phy_device *phydev);
984 int genphy_setup_forced(struct phy_device *phydev);
985 int genphy_restart_aneg(struct phy_device *phydev);
986 int genphy_config_aneg(struct phy_device *phydev);
987 int genphy_aneg_done(struct phy_device *phydev);
988 int genphy_update_link(struct phy_device *phydev);
989 int genphy_read_status(struct phy_device *phydev);
990 int genphy_suspend(struct phy_device *phydev);
991 int genphy_resume(struct phy_device *phydev);
992 int genphy_loopback(struct phy_device *phydev, bool enable);
993 int genphy_soft_reset(struct phy_device *phydev);
994 static inline int genphy_no_soft_reset(struct phy_device *phydev) in genphy_no_soft_reset()
998 int genphy_read_mmd_unsupported(struct phy_device *phdev, int devad,
1000 int genphy_write_mmd_unsupported(struct phy_device *phdev, int devnum,
1004 int genphy_c45_restart_aneg(struct phy_device *phydev);
1005 int genphy_c45_aneg_done(struct phy_device *phydev);
1006 int genphy_c45_read_link(struct phy_device *phydev, u32 mmd_mask);
1007 int genphy_c45_read_lpa(struct phy_device *phydev);
1008 int genphy_c45_read_pma(struct phy_device *phydev);
1009 int genphy_c45_pma_setup_forced(struct phy_device *phydev);
1010 int genphy_c45_an_disable_aneg(struct phy_device *phydev);
1011 int genphy_c45_read_mdix(struct phy_device *phydev);
1014 int gen10g_config_aneg(struct phy_device *phydev);
1015 int gen10g_read_status(struct phy_device *phydev);
1016 int gen10g_no_soft_reset(struct phy_device *phydev);
1017 int gen10g_config_init(struct phy_device *phydev);
1018 int gen10g_suspend(struct phy_device *phydev);
1019 int gen10g_resume(struct phy_device *phydev);
1021 static inline int phy_read_status(struct phy_device *phydev) in phy_read_status()
1039 void phy_mac_interrupt(struct phy_device *phydev);
1040 void phy_start_machine(struct phy_device *phydev);
1041 void phy_stop_machine(struct phy_device *phydev);
1042 void phy_trigger_machine(struct phy_device *phydev, bool sync);
1043 int phy_ethtool_sset(struct phy_device *phydev, struct ethtool_cmd *cmd);
1044 void phy_ethtool_ksettings_get(struct phy_device *phydev,
1046 int phy_ethtool_ksettings_set(struct phy_device *phydev,
1048 int phy_mii_ioctl(struct phy_device *phydev, struct ifreq *ifr, int cmd);
1049 int phy_start_interrupts(struct phy_device *phydev);
1050 void phy_print_status(struct phy_device *phydev);
1051 int phy_set_max_speed(struct phy_device *phydev, u32 max_speed);
1054 int (*run)(struct phy_device *));
1056 int (*run)(struct phy_device *));
1058 int (*run)(struct phy_device *));
1064 int phy_init_eee(struct phy_device *phydev, bool clk_stop_enable);
1065 int phy_get_eee_err(struct phy_device *phydev);
1066 int phy_ethtool_set_eee(struct phy_device *phydev, struct ethtool_eee *data);
1067 int phy_ethtool_get_eee(struct phy_device *phydev, struct ethtool_eee *data);
1068 int phy_ethtool_set_wol(struct phy_device *phydev, struct ethtool_wolinfo *wol);
1069 void phy_ethtool_get_wol(struct phy_device *phydev,
1083 static inline int phy_ethtool_get_strings(struct phy_device *phydev, u8 *data) in phy_ethtool_get_strings()
1095 static inline int phy_ethtool_get_sset_count(struct phy_device *phydev) in phy_ethtool_get_sset_count()
1115 static inline int phy_ethtool_get_stats(struct phy_device *phydev, in phy_ethtool_get_stats()