| /Linux-v5.4/include/linux/ |
| D | phy.h | 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); [all …]
|
| D | phy_led_triggers.h | 7 struct phy_device; 27 extern int phy_led_triggers_register(struct phy_device *phy); 28 extern void phy_led_triggers_unregister(struct phy_device *phy); 29 extern void phy_led_trigger_change_speed(struct phy_device *phy); 33 static inline int phy_led_triggers_register(struct phy_device *phy) in phy_led_triggers_register() 37 static inline void phy_led_triggers_unregister(struct phy_device *phy) { } in phy_led_triggers_unregister() 38 static inline void phy_led_trigger_change_speed(struct phy_device *phy) { } in phy_led_trigger_change_speed()
|
| D | phy_fixed.h | 20 extern struct phy_device *fixed_phy_register(unsigned int irq, 24 extern struct phy_device * 29 extern void fixed_phy_unregister(struct phy_device *phydev); 30 extern int fixed_phy_set_link_update(struct phy_device *phydev, 39 static inline struct phy_device *fixed_phy_register(unsigned int irq, in fixed_phy_register() 46 static inline struct phy_device * 54 static inline void fixed_phy_unregister(struct phy_device *phydev) in fixed_phy_unregister() 57 static inline int fixed_phy_set_link_update(struct phy_device *phydev, in fixed_phy_set_link_update()
|
| D | of_mdio.h | 16 extern struct phy_device *of_phy_find_device(struct device_node *phy_np); 17 extern struct phy_device *of_phy_connect(struct net_device *dev, 21 extern struct phy_device * 24 struct phy_device *of_phy_attach(struct net_device *dev, 67 static inline struct phy_device *of_phy_find_device(struct device_node *phy_np) in of_phy_find_device() 72 static inline struct phy_device *of_phy_connect(struct net_device *dev, in of_phy_connect() 80 static inline struct phy_device * 87 static inline struct phy_device *of_phy_attach(struct net_device *dev, in of_phy_attach()
|
| /Linux-v5.4/drivers/net/phy/ |
| D | bcm-phy-lib.h | 30 int bcm_phy_write_exp(struct phy_device *phydev, u16 reg, u16 val); 31 int bcm_phy_read_exp(struct phy_device *phydev, u16 reg); 33 static inline int bcm_phy_write_exp_sel(struct phy_device *phydev, in bcm_phy_write_exp_sel() 39 int bcm54xx_auxctl_write(struct phy_device *phydev, u16 regnum, u16 val); 40 int bcm54xx_auxctl_read(struct phy_device *phydev, u16 regnum); 42 int bcm_phy_write_misc(struct phy_device *phydev, 44 int bcm_phy_read_misc(struct phy_device *phydev, 47 int bcm_phy_write_shadow(struct phy_device *phydev, u16 shadow, 49 int bcm_phy_read_shadow(struct phy_device *phydev, u16 shadow); 51 int bcm_phy_ack_intr(struct phy_device *phydev); [all …]
|
| D | realtek.c | 56 static int rtl821x_read_page(struct phy_device *phydev) in rtl821x_read_page() 61 static int rtl821x_write_page(struct phy_device *phydev, int page) in rtl821x_write_page() 66 static int rtl8201_ack_interrupt(struct phy_device *phydev) in rtl8201_ack_interrupt() 75 static int rtl821x_ack_interrupt(struct phy_device *phydev) in rtl821x_ack_interrupt() 84 static int rtl8211f_ack_interrupt(struct phy_device *phydev) in rtl8211f_ack_interrupt() 93 static int rtl8201_config_intr(struct phy_device *phydev) in rtl8201_config_intr() 105 static int rtl8211b_config_intr(struct phy_device *phydev) in rtl8211b_config_intr() 118 static int rtl8211e_config_intr(struct phy_device *phydev) in rtl8211e_config_intr() 131 static int rtl8211f_config_intr(struct phy_device *phydev) in rtl8211f_config_intr() 143 static int rtl8211_config_aneg(struct phy_device *phydev) in rtl8211_config_aneg() [all …]
|
| D | phy.c | 52 static void phy_link_up(struct phy_device *phydev) in phy_link_up() 58 static void phy_link_down(struct phy_device *phydev, bool do_carrier) in phy_link_down() 64 static const char *phy_pause_str(struct phy_device *phydev) in phy_pause_str() 94 void phy_print_status(struct phy_device *phydev) in phy_print_status() 117 static int phy_clear_interrupt(struct phy_device *phydev) in phy_clear_interrupt() 132 static int phy_config_interrupt(struct phy_device *phydev, bool interrupts) in phy_config_interrupt() 148 int phy_restart_aneg(struct phy_device *phydev) in phy_restart_aneg() 169 int phy_aneg_done(struct phy_device *phydev) in phy_aneg_done() 209 unsigned int phy_supported_speeds(struct phy_device *phy, in phy_supported_speeds() 239 static void phy_sanitize_settings(struct phy_device *phydev) in phy_sanitize_settings() [all …]
|
| D | bcm-phy-lib.c | 17 int bcm_phy_write_exp(struct phy_device *phydev, u16 reg, u16 val) in bcm_phy_write_exp() 29 int bcm_phy_read_exp(struct phy_device *phydev, u16 reg) in bcm_phy_read_exp() 46 int bcm54xx_auxctl_read(struct phy_device *phydev, u16 regnum) in bcm54xx_auxctl_read() 57 int bcm54xx_auxctl_write(struct phy_device *phydev, u16 regnum, u16 val) in bcm54xx_auxctl_write() 63 int bcm_phy_write_misc(struct phy_device *phydev, in bcm_phy_write_misc() 87 int bcm_phy_read_misc(struct phy_device *phydev, in bcm_phy_read_misc() 111 int bcm_phy_ack_intr(struct phy_device *phydev) in bcm_phy_ack_intr() 124 int bcm_phy_config_intr(struct phy_device *phydev) in bcm_phy_config_intr() 141 int bcm_phy_read_shadow(struct phy_device *phydev, u16 shadow) in bcm_phy_read_shadow() 148 int bcm_phy_write_shadow(struct phy_device *phydev, u16 shadow, in bcm_phy_write_shadow() [all …]
|
| D | marvell.c | 197 static int marvell_read_page(struct phy_device *phydev) in marvell_read_page() 202 static int marvell_write_page(struct phy_device *phydev, int page) in marvell_write_page() 207 static int marvell_set_page(struct phy_device *phydev, int page) in marvell_set_page() 212 static int marvell_ack_interrupt(struct phy_device *phydev) in marvell_ack_interrupt() 225 static int marvell_config_intr(struct phy_device *phydev) in marvell_config_intr() 239 static int marvell_set_polarity(struct phy_device *phydev, int polarity) in marvell_set_polarity() 276 static int marvell_set_downshift(struct phy_device *phydev, bool enable, in marvell_set_downshift() 293 static int marvell_config_aneg(struct phy_device *phydev) in marvell_config_aneg() 326 static int m88e1101_config_aneg(struct phy_device *phydev) in m88e1101_config_aneg() 375 static int marvell_of_reg_init(struct phy_device *phydev) in marvell_of_reg_init() [all …]
|
| D | bcm87xx.c | 34 static int bcm87xx_of_reg_init(struct phy_device *phydev) in bcm87xx_of_reg_init() 78 static int bcm87xx_of_reg_init(struct phy_device *phydev) in bcm87xx_of_reg_init() 84 static int bcm87xx_get_features(struct phy_device *phydev) in bcm87xx_get_features() 91 static int bcm87xx_config_init(struct phy_device *phydev) in bcm87xx_config_init() 96 static int bcm87xx_config_aneg(struct phy_device *phydev) in bcm87xx_config_aneg() 101 static int bcm87xx_read_status(struct phy_device *phydev) in bcm87xx_read_status() 138 static int bcm87xx_config_intr(struct phy_device *phydev) in bcm87xx_config_intr() 156 static int bcm87xx_did_interrupt(struct phy_device *phydev) in bcm87xx_did_interrupt() 171 static int bcm87xx_ack_interrupt(struct phy_device *phydev) in bcm87xx_ack_interrupt() 178 static int bcm8706_match_phy_device(struct phy_device *phydev) in bcm8706_match_phy_device() [all …]
|
| D | phy_device.c | 200 void phy_device_free(struct phy_device *phydev) in phy_device_free() 208 struct phy_device *phydev; in phy_mdio_device_free() 210 phydev = container_of(mdiodev, struct phy_device, mdio); in phy_mdio_device_free() 221 struct phy_device *phydev; in phy_mdio_device_remove() 223 phydev = container_of(mdiodev, struct phy_device, mdio); in phy_mdio_device_remove() 234 static bool mdio_bus_phy_may_suspend(struct phy_device *phydev) in mdio_bus_phy_may_suspend() 274 struct phy_device *phydev = to_phy_device(dev); in mdio_bus_phy_suspend() 292 struct phy_device *phydev = to_phy_device(dev); in mdio_bus_phy_resume() 311 struct phy_device *phydev = to_phy_device(dev); in mdio_bus_phy_restore() 354 int (*run)(struct phy_device *)) in phy_register_fixup() argument [all …]
|
| D | phy-core.c | 225 static int __set_phy_supported(struct phy_device *phydev, u32 max_speed) in __set_phy_supported() 230 int phy_set_max_speed(struct phy_device *phydev, u32 max_speed) in phy_set_max_speed() 244 void of_set_phy_supported(struct phy_device *phydev) in of_set_phy_supported() 259 void of_set_phy_eee_broken(struct phy_device *phydev) in of_set_phy_eee_broken() 286 void phy_resolve_aneg_pause(struct phy_device *phydev) in phy_resolve_aneg_pause() 306 void phy_resolve_aneg_linkmode(struct phy_device *phydev) in phy_resolve_aneg_linkmode() 324 static int phy_resolve_min_speed(struct phy_device *phydev, bool fdx_only) in phy_resolve_min_speed() 342 int phy_speed_down_core(struct phy_device *phydev) in phy_speed_down_core() 375 int __phy_read_mmd(struct phy_device *phydev, int devad, u32 regnum) in __phy_read_mmd() 410 int phy_read_mmd(struct phy_device *phydev, int devad, u32 regnum) in phy_read_mmd() [all …]
|
| D | microchip.c | 24 static int lan88xx_read_page(struct phy_device *phydev) in lan88xx_read_page() 29 static int lan88xx_write_page(struct phy_device *phydev, int page) in lan88xx_write_page() 34 static int lan88xx_phy_config_intr(struct phy_device *phydev) in lan88xx_phy_config_intr() 52 static int lan88xx_phy_ack_interrupt(struct phy_device *phydev) in lan88xx_phy_ack_interrupt() 59 static int lan88xx_suspend(struct phy_device *phydev) in lan88xx_suspend() 70 static int lan88xx_TR_reg_set(struct phy_device *phydev, u16 regaddr, in lan88xx_TR_reg_set() 119 static void lan88xx_config_TR_regs(struct phy_device *phydev) in lan88xx_config_TR_regs() 215 static int lan88xx_probe(struct phy_device *phydev) in lan88xx_probe() 258 static void lan88xx_remove(struct phy_device *phydev) in lan88xx_remove() 267 static int lan88xx_set_wol(struct phy_device *phydev, in lan88xx_set_wol() [all …]
|
| D | adin.c | 195 static u32 adin_get_reg_value(struct phy_device *phydev, in adin_get_reg_value() 218 static int adin_config_rgmii_mode(struct phy_device *phydev) in adin_config_rgmii_mode() 264 static int adin_config_rmii_mode(struct phy_device *phydev) in adin_config_rmii_mode() 291 static int adin_get_downshift(struct phy_device *phydev, u8 *data) in adin_get_downshift() 311 static int adin_set_downshift(struct phy_device *phydev, u8 cnt) in adin_set_downshift() 336 static int adin_get_edpd(struct phy_device *phydev, u16 *tx_interval) in adin_get_edpd() 357 static int adin_set_edpd(struct phy_device *phydev, u16 tx_interval) in adin_set_edpd() 384 static int adin_get_tunable(struct phy_device *phydev, in adin_get_tunable() 397 static int adin_set_tunable(struct phy_device *phydev, in adin_set_tunable() 410 static int adin_config_init(struct phy_device *phydev) in adin_config_init() [all …]
|
| D | at803x.c | 87 static int at803x_debug_reg_read(struct phy_device *phydev, u16 reg) in at803x_debug_reg_read() 98 static int at803x_debug_reg_mask(struct phy_device *phydev, u16 reg, in at803x_debug_reg_mask() 115 static int at803x_enable_rx_delay(struct phy_device *phydev) in at803x_enable_rx_delay() 121 static int at803x_enable_tx_delay(struct phy_device *phydev) in at803x_enable_tx_delay() 127 static int at803x_disable_rx_delay(struct phy_device *phydev) in at803x_disable_rx_delay() 133 static int at803x_disable_tx_delay(struct phy_device *phydev) in at803x_disable_tx_delay() 140 static void at803x_context_save(struct phy_device *phydev, in at803x_context_save() 152 static void at803x_context_restore(struct phy_device *phydev, in at803x_context_restore() 163 static int at803x_set_wol(struct phy_device *phydev, in at803x_set_wol() 207 static void at803x_get_wol(struct phy_device *phydev, in at803x_get_wol() [all …]
|
| D | marvell10g.c | 84 struct phy_device *phydev = dev_get_drvdata(dev); in mv3310_hwmon_read() 141 static int mv3310_hwmon_config(struct phy_device *phydev, bool enable) in mv3310_hwmon_config() 159 struct phy_device *phydev = data; in mv3310_hwmon_disable() 164 static int mv3310_hwmon_probe(struct phy_device *phydev) in mv3310_hwmon_probe() 198 static inline int mv3310_hwmon_config(struct phy_device *phydev, bool enable) in mv3310_hwmon_config() 203 static int mv3310_hwmon_probe(struct phy_device *phydev) in mv3310_hwmon_probe() 209 static int mv3310_probe(struct phy_device *phydev) in mv3310_probe() 242 static int mv3310_suspend(struct phy_device *phydev) in mv3310_suspend() 248 static int mv3310_resume(struct phy_device *phydev) in mv3310_resume() 267 static bool mv3310_has_pma_ngbaset_quirk(struct phy_device *phydev) in mv3310_has_pma_ngbaset_quirk() [all …]
|
| D | micrel.c | 132 static int kszphy_extended_write(struct phy_device *phydev, in kszphy_extended_write() 139 static int kszphy_extended_read(struct phy_device *phydev, in kszphy_extended_read() 146 static int kszphy_ack_interrupt(struct phy_device *phydev) in kszphy_ack_interrupt() 156 static int kszphy_config_intr(struct phy_device *phydev) in kszphy_config_intr() 183 static int kszphy_rmii_clk_sel(struct phy_device *phydev, bool val) in kszphy_rmii_clk_sel() 199 static int kszphy_setup_led(struct phy_device *phydev, u32 reg, int val) in kszphy_setup_led() 233 static int kszphy_broadcast_disable(struct phy_device *phydev) in kszphy_broadcast_disable() 249 static int kszphy_nand_tree_disable(struct phy_device *phydev) in kszphy_nand_tree_disable() 270 static int kszphy_config_reset(struct phy_device *phydev) in kszphy_config_reset() 290 static int kszphy_config_init(struct phy_device *phydev) in kszphy_config_init() [all …]
|
| D | aquantia_main.c | 149 static int aqr107_get_sset_count(struct phy_device *phydev) in aqr107_get_sset_count() 154 static void aqr107_get_strings(struct phy_device *phydev, u8 *data) in aqr107_get_strings() 163 static u64 aqr107_get_stat(struct phy_device *phydev, int index) in aqr107_get_stat() 187 static void aqr107_get_stats(struct phy_device *phydev, in aqr107_get_stats() 206 static int aqr_config_aneg(struct phy_device *phydev) in aqr_config_aneg() 244 static int aqr_config_intr(struct phy_device *phydev) in aqr_config_intr() 264 static int aqr_ack_interrupt(struct phy_device *phydev) in aqr_ack_interrupt() 273 static int aqr_read_status(struct phy_device *phydev) in aqr_read_status() 293 static int aqr107_read_downshift_event(struct phy_device *phydev) in aqr107_read_downshift_event() 304 static int aqr107_read_rate(struct phy_device *phydev) in aqr107_read_rate() [all …]
|
| D | vitesse.c | 78 static int vsc824x_add_skew(struct phy_device *phydev) in vsc824x_add_skew() 99 static int vsc824x_config_init(struct phy_device *phydev) in vsc824x_config_init() 116 static int vsc73xx_read_page(struct phy_device *phydev) in vsc73xx_read_page() 121 static int vsc73xx_write_page(struct phy_device *phydev, int page) in vsc73xx_write_page() 126 static void vsc73xx_config_init(struct phy_device *phydev) in vsc73xx_config_init() 137 static int vsc738x_config_init(struct phy_device *phydev) in vsc738x_config_init() 203 static int vsc739x_config_init(struct phy_device *phydev) in vsc739x_config_init() 235 static int vsc73xx_config_aneg(struct phy_device *phydev) in vsc73xx_config_aneg() 248 static int vsc8601_add_skew(struct phy_device *phydev) in vsc8601_add_skew() 260 static int vsc8601_config_init(struct phy_device *phydev) in vsc8601_config_init() [all …]
|
| D | bcm7xxx.c | 44 static int bcm7xxx_28nm_d0_afe_config_init(struct phy_device *phydev) in bcm7xxx_28nm_d0_afe_config_init() 84 static int bcm7xxx_28nm_e0_plus_afe_config_init(struct phy_device *phydev) in bcm7xxx_28nm_e0_plus_afe_config_init() 112 static int bcm7xxx_28nm_a0_patch_afe_config_init(struct phy_device *phydev) in bcm7xxx_28nm_a0_patch_afe_config_init() 137 static int bcm7xxx_28nm_config_init(struct phy_device *phydev) in bcm7xxx_28nm_config_init() 196 static int bcm7xxx_28nm_resume(struct phy_device *phydev) in bcm7xxx_28nm_resume() 213 static int phy_set_clr_bits(struct phy_device *dev, int location, in phy_set_clr_bits() 232 static int bcm7xxx_28nm_ephy_01_afe_config_init(struct phy_device *phydev) in bcm7xxx_28nm_ephy_01_afe_config_init() 278 static int bcm7xxx_28nm_ephy_apd_enable(struct phy_device *phydev) in bcm7xxx_28nm_ephy_apd_enable() 303 static int bcm7xxx_28nm_ephy_eee_enable(struct phy_device *phydev) in bcm7xxx_28nm_ephy_eee_enable() 366 static int bcm7xxx_28nm_ephy_config_init(struct phy_device *phydev) in bcm7xxx_28nm_ephy_config_init() [all …]
|
| D | rockchip.c | 42 static int rockchip_init_tstmode(struct phy_device *phydev) in rockchip_init_tstmode() 58 static int rockchip_close_tstmode(struct phy_device *phydev) in rockchip_close_tstmode() 64 static int rockchip_integrated_phy_analog_init(struct phy_device *phydev) in rockchip_integrated_phy_analog_init() 86 static int rockchip_integrated_phy_config_init(struct phy_device *phydev) in rockchip_integrated_phy_config_init() 105 static void rockchip_link_change_notify(struct phy_device *phydev) in rockchip_link_change_notify() 121 static int rockchip_set_polarity(struct phy_device *phydev, int polarity) in rockchip_set_polarity() 155 static int rockchip_config_aneg(struct phy_device *phydev) in rockchip_config_aneg() 166 static int rockchip_phy_resume(struct phy_device *phydev) in rockchip_phy_resume()
|
| D | smsc.c | 38 static int smsc_phy_config_intr(struct phy_device *phydev) in smsc_phy_config_intr() 48 static int smsc_phy_ack_interrupt(struct phy_device *phydev) in smsc_phy_ack_interrupt() 55 static int smsc_phy_config_init(struct phy_device *phydev) in smsc_phy_config_init() 75 static int smsc_phy_reset(struct phy_device *phydev) in smsc_phy_reset() 94 static int lan911x_config_init(struct phy_device *phydev) in lan911x_config_init() 108 static int lan87xx_read_status(struct phy_device *phydev) in lan87xx_read_status() 152 static int smsc_get_sset_count(struct phy_device *phydev) in smsc_get_sset_count() 157 static void smsc_get_strings(struct phy_device *phydev, u8 *data) in smsc_get_strings() 167 static u64 smsc_get_stat(struct phy_device *phydev, int i) in smsc_get_stat() 182 static void smsc_get_stats(struct phy_device *phydev, in smsc_get_stats() [all …]
|
| D | national.c | 54 static u8 ns_exp_read(struct phy_device *phydev, u16 reg) in ns_exp_read() 60 static void ns_exp_write(struct phy_device *phydev, u16 reg, u8 data) in ns_exp_write() 66 static int ns_config_intr(struct phy_device *phydev) in ns_config_intr() 79 static int ns_ack_interrupt(struct phy_device *phydev) in ns_ack_interrupt() 92 static void ns_giga_speed_fallback(struct phy_device *phydev, int mode) in ns_giga_speed_fallback() 106 static void ns_10_base_t_hdx_loopack(struct phy_device *phydev, int disable) in ns_10_base_t_hdx_loopack() 121 static int ns_config_init(struct phy_device *phydev) in ns_config_init()
|
| D | lxt.c | 59 static int lxt970_ack_interrupt(struct phy_device *phydev) in lxt970_ack_interrupt() 76 static int lxt970_config_intr(struct phy_device *phydev) in lxt970_config_intr() 84 static int lxt970_config_init(struct phy_device *phydev) in lxt970_config_init() 90 static int lxt971_ack_interrupt(struct phy_device *phydev) in lxt971_ack_interrupt() 100 static int lxt971_config_intr(struct phy_device *phydev) in lxt971_config_intr() 113 static int lxt973a2_update_link(struct phy_device *phydev) in lxt973a2_update_link() 145 static int lxt973a2_read_status(struct phy_device *phydev) in lxt973a2_read_status() 222 static int lxt973_probe(struct phy_device *phydev) in lxt973_probe() 243 static int lxt973_config_aneg(struct phy_device *phydev) in lxt973_config_aneg()
|
| D | nxp-tja11xx.c | 73 static int tja11xx_check(struct phy_device *phydev, u8 reg, u16 mask, u16 set) in tja11xx_check() 91 static int phy_modify_check(struct phy_device *phydev, u8 reg, in phy_modify_check() 103 static int tja11xx_enable_reg_write(struct phy_device *phydev) in tja11xx_enable_reg_write() 108 static int tja11xx_enable_link_control(struct phy_device *phydev) in tja11xx_enable_link_control() 113 static int tja11xx_wakeup(struct phy_device *phydev) in tja11xx_wakeup() 159 static int tja11xx_soft_reset(struct phy_device *phydev) in tja11xx_soft_reset() 170 static int tja11xx_config_init(struct phy_device *phydev) in tja11xx_config_init() 222 static int tja11xx_read_status(struct phy_device *phydev) in tja11xx_read_status() 242 static int tja11xx_get_sset_count(struct phy_device *phydev) in tja11xx_get_sset_count() 247 static void tja11xx_get_strings(struct phy_device *phydev, u8 *data) in tja11xx_get_strings() [all …]
|