Lines Matching refs:phy_device
119 unsigned int phy_supported_speeds(struct phy_device *phy,
275 struct phy_device *mdiobus_scan(struct mii_bus *bus, int addr);
359 struct phy_device { struct
441 void (*phy_link_change)(struct phy_device *, bool up, bool do_carrier); argument
445 struct phy_device, mdio) argument
480 int (*soft_reset)(struct phy_device *phydev);
486 int (*config_init)(struct phy_device *phydev);
492 int (*probe)(struct phy_device *phydev);
498 int (*get_features)(struct phy_device *phydev);
501 int (*suspend)(struct phy_device *phydev);
502 int (*resume)(struct phy_device *phydev);
510 int (*config_aneg)(struct phy_device *phydev);
513 int (*aneg_done)(struct phy_device *phydev);
516 int (*read_status)(struct phy_device *phydev);
519 int (*ack_interrupt)(struct phy_device *phydev);
522 int (*config_intr)(struct phy_device *phydev);
528 int (*did_interrupt)(struct phy_device *phydev);
531 int (*handle_interrupt)(struct phy_device *phydev);
534 void (*remove)(struct phy_device *phydev);
540 int (*match_phy_device)(struct phy_device *phydev);
543 int (*ts_info)(struct phy_device *phydev, struct ethtool_ts_info *ti);
546 int (*hwtstamp)(struct phy_device *phydev, struct ifreq *ifr);
555 bool (*rxtstamp)(struct phy_device *dev, struct sk_buff *skb, int type);
563 void (*txtstamp)(struct phy_device *dev, struct sk_buff *skb, int type);
568 int (*set_wol)(struct phy_device *dev, struct ethtool_wolinfo *wol);
571 void (*get_wol)(struct phy_device *dev, struct ethtool_wolinfo *wol);
580 void (*link_change_notify)(struct phy_device *dev);
591 int (*read_mmd)(struct phy_device *dev, int devnum, u16 regnum);
603 int (*write_mmd)(struct phy_device *dev, int devnum, u16 regnum,
606 int (*read_page)(struct phy_device *dev);
607 int (*write_page)(struct phy_device *dev, int page);
611 int (*module_info)(struct phy_device *dev,
615 int (*module_eeprom)(struct phy_device *dev,
619 int (*get_sset_count)(struct phy_device *dev);
620 void (*get_strings)(struct phy_device *dev, u8 *data);
621 void (*get_stats)(struct phy_device *dev,
625 int (*get_tunable)(struct phy_device *dev,
627 int (*set_tunable)(struct phy_device *dev,
630 int (*set_loopback)(struct phy_device *dev, bool enable);
648 int (*run)(struct phy_device *phydev);
668 void of_set_phy_supported(struct phy_device *phydev);
669 void of_set_phy_eee_broken(struct phy_device *phydev);
670 int phy_speed_down_core(struct phy_device *phydev);
676 static inline bool phy_is_started(struct phy_device *phydev) in phy_is_started()
681 void phy_resolve_aneg_pause(struct phy_device *phydev);
682 void phy_resolve_aneg_linkmode(struct phy_device *phydev);
693 static inline int phy_read(struct phy_device *phydev, u32 regnum) in phy_read()
705 static inline int __phy_read(struct phy_device *phydev, u32 regnum) in __phy_read()
720 static inline int phy_write(struct phy_device *phydev, u32 regnum, u16 val) in phy_write()
733 static inline int __phy_write(struct phy_device *phydev, u32 regnum, u16 val) in __phy_write()
748 int phy_read_mmd(struct phy_device *phydev, int devad, u32 regnum);
759 int __phy_read_mmd(struct phy_device *phydev, int devad, u32 regnum);
771 int phy_write_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val);
783 int __phy_write_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val);
785 int __phy_modify_changed(struct phy_device *phydev, u32 regnum, u16 mask,
787 int phy_modify_changed(struct phy_device *phydev, u32 regnum, u16 mask,
789 int __phy_modify(struct phy_device *phydev, u32 regnum, u16 mask, u16 set);
790 int phy_modify(struct phy_device *phydev, u32 regnum, u16 mask, u16 set);
792 int __phy_modify_mmd_changed(struct phy_device *phydev, int devad, u32 regnum,
794 int phy_modify_mmd_changed(struct phy_device *phydev, int devad, u32 regnum,
796 int __phy_modify_mmd(struct phy_device *phydev, int devad, u32 regnum,
798 int phy_modify_mmd(struct phy_device *phydev, int devad, u32 regnum,
809 static inline int __phy_set_bits(struct phy_device *phydev, u32 regnum, u16 val) in __phy_set_bits()
822 static inline int __phy_clear_bits(struct phy_device *phydev, u32 regnum, in __phy_clear_bits()
834 static inline int phy_set_bits(struct phy_device *phydev, u32 regnum, u16 val) in phy_set_bits()
845 static inline int phy_clear_bits(struct phy_device *phydev, u32 regnum, u16 val) in phy_clear_bits()
860 static inline int __phy_set_bits_mmd(struct phy_device *phydev, int devad, in __phy_set_bits_mmd()
876 static inline int __phy_clear_bits_mmd(struct phy_device *phydev, int devad, in __phy_clear_bits_mmd()
890 static inline int phy_set_bits_mmd(struct phy_device *phydev, int devad, in phy_set_bits_mmd()
904 static inline int phy_clear_bits_mmd(struct phy_device *phydev, int devad, in phy_clear_bits_mmd()
917 static inline bool phy_interrupt_is_valid(struct phy_device *phydev) in phy_interrupt_is_valid()
927 static inline bool phy_polling_mode(struct phy_device *phydev) in phy_polling_mode()
936 static inline bool phy_is_internal(struct phy_device *phydev) in phy_is_internal()
971 static inline bool phy_interface_is_rgmii(struct phy_device *phydev) in phy_interface_is_rgmii()
981 static inline bool phy_is_pseudo_fixed_link(struct phy_device *phydev) in phy_is_pseudo_fixed_link()
986 int phy_save_page(struct phy_device *phydev);
987 int phy_select_page(struct phy_device *phydev, int page);
988 int phy_restore_page(struct phy_device *phydev, int oldpage, int ret);
989 int phy_read_paged(struct phy_device *phydev, int page, u32 regnum);
990 int phy_write_paged(struct phy_device *phydev, int page, u32 regnum, u16 val);
991 int phy_modify_paged_changed(struct phy_device *phydev, int page, u32 regnum,
993 int phy_modify_paged(struct phy_device *phydev, int page, u32 regnum,
996 struct phy_device *phy_device_create(struct mii_bus *bus, int addr, int phy_id,
1000 struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45);
1001 int phy_device_register(struct phy_device *phy);
1002 void phy_device_free(struct phy_device *phydev);
1005 struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45) in get_phy_device()
1010 static inline int phy_device_register(struct phy_device *phy) in phy_device_register()
1015 static inline void phy_device_free(struct phy_device *phydev) { } in phy_device_free()
1017 void phy_device_remove(struct phy_device *phydev);
1018 int phy_init_hw(struct phy_device *phydev);
1019 int phy_suspend(struct phy_device *phydev);
1020 int phy_resume(struct phy_device *phydev);
1021 int __phy_resume(struct phy_device *phydev);
1022 int phy_loopback(struct phy_device *phydev, bool enable);
1023 struct phy_device *phy_attach(struct net_device *dev, const char *bus_id,
1025 struct phy_device *phy_find_first(struct mii_bus *bus);
1026 int phy_attach_direct(struct net_device *dev, struct phy_device *phydev,
1028 int phy_connect_direct(struct net_device *dev, struct phy_device *phydev,
1031 struct phy_device *phy_connect(struct net_device *dev, const char *bus_id,
1034 void phy_disconnect(struct phy_device *phydev);
1035 void phy_detach(struct phy_device *phydev);
1036 void phy_start(struct phy_device *phydev);
1037 void phy_stop(struct phy_device *phydev);
1038 int phy_start_aneg(struct phy_device *phydev);
1039 int phy_aneg_done(struct phy_device *phydev);
1040 int phy_speed_down(struct phy_device *phydev, bool sync);
1041 int phy_speed_up(struct phy_device *phydev);
1043 int phy_restart_aneg(struct phy_device *phydev);
1044 int phy_reset_after_clk_enable(struct phy_device *phydev);
1046 static inline void phy_device_reset(struct phy_device *phydev, int value) in phy_device_reset()
1063 static inline const char *phydev_name(const struct phy_device *phydev) in phydev_name()
1068 void phy_attached_print(struct phy_device *phydev, const char *fmt, ...)
1070 void phy_attached_info(struct phy_device *phydev);
1073 int genphy_read_abilities(struct phy_device *phydev);
1074 int genphy_setup_forced(struct phy_device *phydev);
1075 int genphy_restart_aneg(struct phy_device *phydev);
1076 int genphy_config_eee_advert(struct phy_device *phydev);
1077 int __genphy_config_aneg(struct phy_device *phydev, bool changed);
1078 int genphy_aneg_done(struct phy_device *phydev);
1079 int genphy_update_link(struct phy_device *phydev);
1080 int genphy_read_lpa(struct phy_device *phydev);
1081 int genphy_read_status(struct phy_device *phydev);
1082 int genphy_suspend(struct phy_device *phydev);
1083 int genphy_resume(struct phy_device *phydev);
1084 int genphy_loopback(struct phy_device *phydev, bool enable);
1085 int genphy_soft_reset(struct phy_device *phydev);
1087 static inline int genphy_config_aneg(struct phy_device *phydev) in genphy_config_aneg()
1092 static inline int genphy_no_soft_reset(struct phy_device *phydev) in genphy_no_soft_reset()
1096 static inline int genphy_no_ack_interrupt(struct phy_device *phydev) in genphy_no_ack_interrupt()
1100 static inline int genphy_no_config_intr(struct phy_device *phydev) in genphy_no_config_intr()
1104 int genphy_read_mmd_unsupported(struct phy_device *phdev, int devad,
1106 int genphy_write_mmd_unsupported(struct phy_device *phdev, int devnum,
1110 int genphy_c45_restart_aneg(struct phy_device *phydev);
1111 int genphy_c45_check_and_restart_aneg(struct phy_device *phydev, bool restart);
1112 int genphy_c45_aneg_done(struct phy_device *phydev);
1113 int genphy_c45_read_link(struct phy_device *phydev);
1114 int genphy_c45_read_lpa(struct phy_device *phydev);
1115 int genphy_c45_read_pma(struct phy_device *phydev);
1116 int genphy_c45_pma_setup_forced(struct phy_device *phydev);
1117 int genphy_c45_an_config_aneg(struct phy_device *phydev);
1118 int genphy_c45_an_disable_aneg(struct phy_device *phydev);
1119 int genphy_c45_read_mdix(struct phy_device *phydev);
1120 int genphy_c45_pma_read_abilities(struct phy_device *phydev);
1121 int genphy_c45_read_status(struct phy_device *phydev);
1122 int genphy_c45_config_aneg(struct phy_device *phydev);
1125 int gen10g_config_aneg(struct phy_device *phydev);
1127 static inline int phy_read_status(struct phy_device *phydev) in phy_read_status()
1144 void phy_queue_state_machine(struct phy_device *phydev, unsigned long jiffies);
1145 void phy_mac_interrupt(struct phy_device *phydev);
1146 void phy_start_machine(struct phy_device *phydev);
1147 void phy_stop_machine(struct phy_device *phydev);
1148 int phy_ethtool_sset(struct phy_device *phydev, struct ethtool_cmd *cmd);
1149 void phy_ethtool_ksettings_get(struct phy_device *phydev,
1151 int phy_ethtool_ksettings_set(struct phy_device *phydev,
1153 int phy_mii_ioctl(struct phy_device *phydev, struct ifreq *ifr, int cmd);
1154 void phy_request_interrupt(struct phy_device *phydev);
1155 void phy_free_interrupt(struct phy_device *phydev);
1156 void phy_print_status(struct phy_device *phydev);
1157 int phy_set_max_speed(struct phy_device *phydev, u32 max_speed);
1158 void phy_remove_link_mode(struct phy_device *phydev, u32 link_mode);
1159 void phy_advertise_supported(struct phy_device *phydev);
1160 void phy_support_sym_pause(struct phy_device *phydev);
1161 void phy_support_asym_pause(struct phy_device *phydev);
1162 void phy_set_sym_pause(struct phy_device *phydev, bool rx, bool tx,
1164 void phy_set_asym_pause(struct phy_device *phydev, bool rx, bool tx);
1165 bool phy_validate_pause(struct phy_device *phydev,
1169 int (*run)(struct phy_device *));
1171 int (*run)(struct phy_device *));
1173 int (*run)(struct phy_device *));
1179 int phy_init_eee(struct phy_device *phydev, bool clk_stop_enable);
1180 int phy_get_eee_err(struct phy_device *phydev);
1181 int phy_ethtool_set_eee(struct phy_device *phydev, struct ethtool_eee *data);
1182 int phy_ethtool_get_eee(struct phy_device *phydev, struct ethtool_eee *data);
1183 int phy_ethtool_set_wol(struct phy_device *phydev, struct ethtool_wolinfo *wol);
1184 void phy_ethtool_get_wol(struct phy_device *phydev,
1198 static inline int phy_ethtool_get_strings(struct phy_device *phydev, u8 *data) in phy_ethtool_get_strings()
1210 static inline int phy_ethtool_get_sset_count(struct phy_device *phydev) in phy_ethtool_get_sset_count()
1230 static inline int phy_ethtool_get_stats(struct phy_device *phydev, in phy_ethtool_get_stats()
1287 bool phy_driver_is_genphy(struct phy_device *phydev);
1288 bool phy_driver_is_genphy_10g(struct phy_device *phydev);