| /linux/drivers/net/phy/ |
| H A D | bcm-phy-lib.h | 33 int __bcm_phy_write_exp(struct phy_device *phydev, u16 reg, u16 val); 34 int __bcm_phy_read_exp(struct phy_device *phydev, u16 reg); 35 int __bcm_phy_modify_exp(struct phy_device *phydev, u16 reg, u16 mask, u16 set); 36 int bcm_phy_write_exp(struct phy_device *phydev, u16 reg, u16 val); 37 int bcm_phy_read_exp(struct phy_device *phydev, u16 reg); 38 int bcm_phy_modify_exp(struct phy_device *phydev, u16 reg, u16 mask, u16 set); 40 static inline int bcm_phy_write_exp_sel(struct phy_device *phydev, in bcm_phy_write_exp_sel() 46 static inline int bcm_phy_read_exp_sel(struct phy_device *phydev, u16 reg) in bcm_phy_read_exp_sel() 51 int bcm54xx_auxctl_write(struct phy_device *phydev, u16 regnum, u16 val); 52 int bcm54xx_auxctl_read(struct phy_device *phydev, u16 regnum); [all …]
|
| H A D | phy.c | 64 static void phy_process_state_change(struct phy_device *phydev, in phy_process_state_change() 76 static void phy_link_up(struct phy_device *phydev) in phy_link_up() 82 static void phy_link_down(struct phy_device *phydev) in phy_link_down() 89 static const char *phy_pause_str(struct phy_device *phydev) in phy_pause_str() 119 void phy_print_status(struct phy_device *phydev) in phy_print_status() 146 int phy_get_rate_matching(struct phy_device *phydev, in phy_get_rate_matching() 168 static int phy_config_interrupt(struct phy_device *phydev, bool interrupts) in phy_config_interrupt() 184 int phy_restart_aneg(struct phy_device *phydev) in phy_restart_aneg() 205 int phy_aneg_done(struct phy_device *phydev) in phy_aneg_done() 226 unsigned int phy_supported_speeds(struct phy_device *phy, in phy_supported_speeds() [all …]
|
| H A D | phy_package.c | 43 struct device_node *phy_package_get_node(struct phy_device *phydev) in phy_package_get_node() 49 void *phy_package_get_priv(struct phy_device *phydev) in phy_package_get_priv() 55 static int phy_package_address(struct phy_device *phydev, in phy_package_address() 70 int __phy_package_read(struct phy_device *phydev, unsigned int addr_offset, in __phy_package_read() 82 int __phy_package_write(struct phy_device *phydev, unsigned int addr_offset, in __phy_package_write() 109 int __phy_package_read_mmd(struct phy_device *phydev, in __phy_package_read_mmd() 142 int __phy_package_write_mmd(struct phy_device *phydev, in __phy_package_write_mmd() 159 static bool __phy_package_set_once(struct phy_device *phydev, unsigned int b) in __phy_package_set_once() 169 bool phy_package_init_once(struct phy_device *phydev) in phy_package_init_once() 175 bool phy_package_probe_once(struct phy_device *phydev) in phy_package_probe_once() [all …]
|
| H A D | phy_device.c | 57 int (*run)(struct phy_device *phydev); 210 void phy_device_free(struct phy_device *phydev) in phy_device_free() 218 struct phy_device *phydev; in phy_mdio_device_free() 220 phydev = container_of(mdiodev, struct phy_device, mdio); in phy_mdio_device_free() 232 struct phy_device *phydev; in phy_mdio_device_remove() 234 phydev = container_of(mdiodev, struct phy_device, mdio); in phy_mdio_device_remove() 243 static bool phy_drv_wol_enabled(struct phy_device *phydev) in phy_drv_wol_enabled() 252 bool phy_may_wakeup(struct phy_device *phydev) in phy_may_wakeup() 262 static void phy_link_change(struct phy_device *phydev, bool up) in phy_link_change() 293 static bool phy_uses_state_machine(struct phy_device *phydev) in phy_uses_state_machine() [all …]
|
| H A D | marvell-88q2xxx.c | 220 static int mv88q2xxx_write_mmd_vals(struct phy_device *phydev, in mv88q2xxx_write_mmd_vals() 235 static int mv88q2xxx_soft_reset(struct phy_device *phydev) in mv88q2xxx_soft_reset() 270 static int mv88q2xxx_read_link_gbit(struct phy_device *phydev) in mv88q2xxx_read_link_gbit() 315 static int mv88q2xxx_read_link_100m(struct phy_device *phydev) in mv88q2xxx_read_link_100m() 361 static int mv88q2xxx_read_link(struct phy_device *phydev) in mv88q2xxx_read_link() 377 static int mv88q2xxx_read_master_slave_state(struct phy_device *phydev) in mv88q2xxx_read_master_slave_state() 394 static int mv88q2xxx_read_aneg_speed(struct phy_device *phydev) in mv88q2xxx_read_aneg_speed() 414 static int mv88q2xxx_read_status(struct phy_device *phydev) in mv88q2xxx_read_status() 454 static int mv88q2xxx_get_features(struct phy_device *phydev) in mv88q2xxx_get_features() 473 static int mv88q2xxx_config_aneg(struct phy_device *phydev) in mv88q2xxx_config_aneg() [all …]
|
| H A D | micrel.c | 409 struct phy_device *phydev; 427 struct phy_device *phydev; 548 static int kszphy_extended_write(struct phy_device *phydev, in kszphy_extended_write() 555 static int kszphy_extended_read(struct phy_device *phydev, in kszphy_extended_read() 562 static int kszphy_ack_interrupt(struct phy_device *phydev) in kszphy_ack_interrupt() 572 static int kszphy_config_intr(struct phy_device *phydev) in kszphy_config_intr() 608 static irqreturn_t kszphy_handle_interrupt(struct phy_device *phydev) in kszphy_handle_interrupt() 626 static int kszphy_rmii_clk_sel(struct phy_device *phydev, bool val) in kszphy_rmii_clk_sel() 642 static int kszphy_setup_led(struct phy_device *phydev, u32 reg, int val) in kszphy_setup_led() 676 static int kszphy_broadcast_disable(struct phy_device *phydev) in kszphy_broadcast_disable() [all …]
|
| H A D | microchip.c | 30 static int lan88xx_read_page(struct phy_device *phydev) in lan88xx_read_page() 35 static int lan88xx_write_page(struct phy_device *phydev, int page) in lan88xx_write_page() 40 static int lan88xx_suspend(struct phy_device *phydev) in lan88xx_suspend() 51 static int lan88xx_TR_reg_set(struct phy_device *phydev, u16 regaddr, in lan88xx_TR_reg_set() 100 static void lan88xx_config_TR_regs(struct phy_device *phydev) in lan88xx_config_TR_regs() 196 static int lan88xx_probe(struct phy_device *phydev) in lan88xx_probe() 239 static void lan88xx_remove(struct phy_device *phydev) in lan88xx_remove() 248 static int lan88xx_set_wol(struct phy_device *phydev, in lan88xx_set_wol() 258 static void lan88xx_set_mdix(struct phy_device *phydev) in lan88xx_set_mdix() 285 static int lan88xx_config_init(struct phy_device *phydev) in lan88xx_config_init() [all …]
|
| H A D | mxl-86110.c | 201 static int __mxl86110_write_extended_reg(struct phy_device *phydev, in __mxl86110_write_extended_reg() 229 static int __mxl86110_read_extended_reg(struct phy_device *phydev, u16 regnum) in __mxl86110_read_extended_reg() 252 static int __mxl86110_modify_extended_reg(struct phy_device *phydev, in __mxl86110_modify_extended_reg() 276 static int mxl86110_write_extended_reg(struct phy_device *phydev, in mxl86110_write_extended_reg() 299 static int mxl86110_read_extended_reg(struct phy_device *phydev, u16 regnum) in mxl86110_read_extended_reg() 321 static int mxl86110_modify_extended_reg(struct phy_device *phydev, in mxl86110_modify_extended_reg() 338 static void mxl86110_get_wol(struct phy_device *phydev, in mxl86110_get_wol() 359 static int mxl86110_set_wol(struct phy_device *phydev, in mxl86110_set_wol() 438 static int mxl86110_led_hw_is_supported(struct phy_device *phydev, u8 index, in mxl86110_led_hw_is_supported() 451 static int mxl86110_led_hw_control_get(struct phy_device *phydev, u8 index, in mxl86110_led_hw_control_get() [all …]
|
| H A D | broadcom.c | 63 static bool bcm54xx_phy_can_wakeup(struct phy_device *phydev) in bcm54xx_phy_can_wakeup() 70 static int bcm54xx_config_clock_delay(struct phy_device *phydev) in bcm54xx_config_clock_delay() 111 static int bcm54210e_config_init(struct phy_device *phydev) in bcm54210e_config_init() 126 static int bcm54612e_config_init(struct phy_device *phydev) in bcm54612e_config_init() 147 static int bcm54616s_config_init(struct phy_device *phydev) in bcm54616s_config_init() 206 static int bcm50610_a0_workaround(struct phy_device *phydev) in bcm50610_a0_workaround() 237 static int bcm54xx_phydsp_config(struct phy_device *phydev) in bcm54xx_phydsp_config() 285 static void bcm54xx_adjust_rxrefclk(struct phy_device *phydev) in bcm54xx_adjust_rxrefclk() 357 static void bcm54xx_ptp_stop(struct phy_device *phydev) in bcm54xx_ptp_stop() 365 static void bcm54xx_ptp_config_init(struct phy_device *phydev) in bcm54xx_ptp_config_init() [all …]
|
| H A D | smsc.c | 59 static int smsc_phy_ack_interrupt(struct phy_device *phydev) in smsc_phy_ack_interrupt() 66 int smsc_phy_config_intr(struct phy_device *phydev) in smsc_phy_config_intr() 89 static int smsc_phy_config_edpd(struct phy_device *phydev) in smsc_phy_config_edpd() 101 irqreturn_t smsc_phy_handle_interrupt(struct phy_device *phydev) in smsc_phy_handle_interrupt() 122 int smsc_phy_config_init(struct phy_device *phydev) in smsc_phy_config_init() 137 static int smsc_phy_reset(struct phy_device *phydev) in smsc_phy_reset() 156 static int lan87xx_config_aneg(struct phy_device *phydev) in lan87xx_config_aneg() 210 static int lan95xx_config_aneg_ext(struct phy_device *phydev) in lan95xx_config_aneg_ext() 235 int lan87xx_read_status(struct phy_device *phydev) in lan87xx_read_status() 284 static int lan87xx_phy_config_init(struct phy_device *phydev) in lan87xx_phy_config_init() [all …]
|
| H A D | motorcomm.c | 397 static int ytphy_read_ext(struct phy_device *phydev, u16 regnum) in ytphy_read_ext() 415 static int ytphy_read_ext_with_lock(struct phy_device *phydev, u16 regnum) in ytphy_read_ext_with_lock() 436 static int ytphy_write_ext(struct phy_device *phydev, u16 regnum, u16 val) in ytphy_write_ext() 455 static int ytphy_write_ext_with_lock(struct phy_device *phydev, u16 regnum, in ytphy_write_ext_with_lock() 480 static int ytphy_modify_ext(struct phy_device *phydev, u16 regnum, u16 mask, in ytphy_modify_ext() 504 static int ytphy_modify_ext_with_lock(struct phy_device *phydev, u16 regnum, in ytphy_modify_ext_with_lock() 523 static void ytphy_get_wol(struct phy_device *phydev, in ytphy_get_wol() 550 static int ytphy_set_wol(struct phy_device *phydev, struct ethtool_wolinfo *wol) in ytphy_set_wol() 622 static int yt8531_set_wol(struct phy_device *phydev, in yt8531_set_wol() 677 static int yt8511_read_page(struct phy_device *phydev) in yt8511_read_page() [all …]
|
| H A D | dp83tg720.c | 210 static int dp83tg720_update_stats(struct phy_device *phydev) in dp83tg720_update_stats() 276 static int dp83tg720_soft_reset(struct phy_device *phydev) in dp83tg720_soft_reset() 296 static void dp83tg720_get_link_stats(struct phy_device *phydev, in dp83tg720_get_link_stats() 304 static void dp83tg720_get_phy_stats(struct phy_device *phydev, in dp83tg720_get_phy_stats() 324 static int dp83tg720_cable_test_start(struct phy_device *phydev) in dp83tg720_cable_test_start() 385 static int dp83tg720_cable_test_get_status(struct phy_device *phydev, in dp83tg720_cable_test_get_status() 437 static int dp83tg720_config_aneg(struct phy_device *phydev) in dp83tg720_config_aneg() 455 static int dp83tg720_read_status(struct phy_device *phydev) in dp83tg720_read_status() 508 static int dp83tg720_get_sqi(struct phy_device *phydev) in dp83tg720_get_sqi() 522 static int dp83tg720_get_sqi_max(struct phy_device *phydev) in dp83tg720_get_sqi_max() [all …]
|
| H A D | bcm54140.c | 183 struct phy_device *phydev = dev_get_drvdata(dev); in bcm54140_hwmon_read_alarm() 207 struct phy_device *phydev = dev_get_drvdata(dev); in bcm54140_hwmon_read_temp() 241 struct phy_device *phydev = dev_get_drvdata(dev); in bcm54140_hwmon_read_in() 312 struct phy_device *phydev = dev_get_drvdata(dev); in bcm54140_hwmon_write_temp() 337 struct phy_device *phydev = dev_get_drvdata(dev); in bcm54140_hwmon_write_in() 396 static int bcm54140_enable_monitoring(struct phy_device *phydev) in bcm54140_enable_monitoring() 414 static int bcm54140_probe_once(struct phy_device *phydev) in bcm54140_probe_once() 432 static int bcm54140_base_read_rdb(struct phy_device *phydev, u16 rdb) in bcm54140_base_read_rdb() 450 static int bcm54140_base_write_rdb(struct phy_device *phydev, in bcm54140_base_write_rdb() 473 static int bcm54140_b0_workaround(struct phy_device *phydev) in bcm54140_b0_workaround() [all …]
|
| /linux/include/linux/ |
| H A D | ethtool_netlink.h | 20 struct phy_device; 23 int ethnl_cable_test_alloc(struct phy_device *phydev, u8 cmd); 24 void ethnl_cable_test_free(struct phy_device *phydev); 25 void ethnl_cable_test_finished(struct phy_device *phydev); 26 int ethnl_cable_test_result_with_src(struct phy_device *phydev, u8 pair, 28 int ethnl_cable_test_fault_length_with_src(struct phy_device *phydev, u8 pair, 30 int ethnl_cable_test_amplitude(struct phy_device *phydev, u8 pair, s16 mV); 31 int ethnl_cable_test_pulse(struct phy_device *phydev, u16 mV); 32 int ethnl_cable_test_step(struct phy_device *phydev, u32 first, u32 last, 49 static inline int ethnl_cable_test_alloc(struct phy_device *phydev, u8 cmd) in ethnl_cable_test_alloc() [all …]
|
| H A D | phy_link_topology.h | 18 struct phy_device; 31 struct phy_device *phydev; 36 struct phy_device *phy; 41 struct phy_device *phy, 44 void phy_link_topo_del_phy(struct net_device *dev, struct phy_device *phy); 46 static inline struct phy_device * 64 struct phy_device *phy, in phy_link_topo_add_phy() 71 struct phy_device *phy) in phy_link_topo_del_phy() 75 static inline struct phy_device *
|
| H A 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()
|
| H A D | smscphy.h | 31 int smsc_phy_config_intr(struct phy_device *phydev); 32 irqreturn_t smsc_phy_handle_interrupt(struct phy_device *phydev); 33 int smsc_phy_config_init(struct phy_device *phydev); 34 int lan87xx_read_status(struct phy_device *phydev); 35 int smsc_phy_get_tunable(struct phy_device *phydev, 37 int smsc_phy_set_tunable(struct phy_device *phydev, 39 int smsc_phy_probe(struct phy_device *phydev);
|
| H A D | of_mdio.h | 37 struct phy_device *of_phy_find_device(struct device_node *phy_np); 38 struct phy_device * 42 struct phy_device * 50 int of_mdiobus_phy_device_register(struct mii_bus *mdio, struct phy_device *phy, 103 static inline struct phy_device *of_phy_find_device(struct device_node *phy_np) in of_phy_find_device() 108 static inline struct phy_device *of_phy_connect(struct net_device *dev, in of_phy_connect() 116 static inline struct phy_device * 146 struct phy_device *phy, in of_mdiobus_phy_device_register()
|
| /linux/drivers/net/phy/qcom/ |
| H A D | qcom.h | 233 int at803x_debug_reg_read(struct phy_device *phydev, u16 reg); 234 int at803x_debug_reg_mask(struct phy_device *phydev, u16 reg, 236 int at803x_debug_reg_write(struct phy_device *phydev, u16 reg, u16 data); 237 int at803x_set_wol(struct phy_device *phydev, 239 int at8031_set_wol(struct phy_device *phydev, 241 void at803x_get_wol(struct phy_device *phydev, 243 int at803x_ack_interrupt(struct phy_device *phydev); 244 int at803x_config_intr(struct phy_device *phydev); 245 irqreturn_t at803x_handle_interrupt(struct phy_device *phydev); 246 int at803x_read_specific_status(struct phy_device *phydev, [all …]
|
| H A D | qcom-phy-lib.c | 17 int at803x_debug_reg_read(struct phy_device *phydev, u16 reg) in at803x_debug_reg_read() 29 int at803x_debug_reg_mask(struct phy_device *phydev, u16 reg, in at803x_debug_reg_mask() 47 int at803x_debug_reg_write(struct phy_device *phydev, u16 reg, u16 data) in at803x_debug_reg_write() 59 int at803x_set_wol(struct phy_device *phydev, in at803x_set_wol() 118 int at8031_set_wol(struct phy_device *phydev, in at8031_set_wol() 143 void at803x_get_wol(struct phy_device *phydev, in at803x_get_wol() 160 int at803x_ack_interrupt(struct phy_device *phydev) in at803x_ack_interrupt() 170 int at803x_config_intr(struct phy_device *phydev) in at803x_config_intr() 203 irqreturn_t at803x_handle_interrupt(struct phy_device *phydev) in at803x_handle_interrupt() 230 int at803x_read_specific_status(struct phy_device *phydev, in at803x_read_specific_status() [all …]
|
| H A D | qca808x.c | 99 static int qca808x_phy_fast_retrain_config(struct phy_device *phydev) in qca808x_phy_fast_retrain_config() 134 static int qca808x_phy_ms_seed_enable(struct phy_device *phydev, bool enable) in qca808x_phy_ms_seed_enable() 149 static bool qca808x_is_prefer_master(struct phy_device *phydev) in qca808x_is_prefer_master() 155 static bool qca808x_has_fast_retrain_or_slave_seed(struct phy_device *phydev) in qca808x_has_fast_retrain_or_slave_seed() 160 static bool qca808x_is_1g_only(struct phy_device *phydev) in qca808x_is_1g_only() 171 static void qca808x_fill_possible_interfaces(struct phy_device *phydev) in qca808x_fill_possible_interfaces() 181 static int qca808x_probe(struct phy_device *phydev) in qca808x_probe() 198 static int qca808x_config_init(struct phy_device *phydev) in qca808x_config_init() 257 static int qca808x_read_status(struct phy_device *phydev) in qca808x_read_status() 308 static int qca808x_soft_reset(struct phy_device *phydev) in qca808x_soft_reset() [all …]
|
| H A D | qca807x.c | 120 struct phy_device *phy; 130 static int qca807x_cable_test_start(struct phy_device *phydev) in qca807x_cable_test_start() 136 static int qca807x_led_parse_netdev(struct phy_device *phydev, unsigned long rules, in qca807x_led_parse_netdev() 181 static int qca807x_led_hw_control_enable(struct phy_device *phydev, u8 index) in qca807x_led_hw_control_enable() 192 static int qca807x_led_hw_is_supported(struct phy_device *phydev, u8 index, in qca807x_led_hw_is_supported() 203 static int qca807x_led_hw_control_set(struct phy_device *phydev, u8 index, in qca807x_led_hw_control_set() 238 static bool qca807x_led_hw_control_status(struct phy_device *phydev, u8 index) in qca807x_led_hw_control_status() 249 static int qca807x_led_hw_control_get(struct phy_device *phydev, u8 index, in qca807x_led_hw_control_get() 306 static int qca807x_led_hw_control_reset(struct phy_device *phydev, u8 index) in qca807x_led_hw_control_reset() 330 static int qca807x_led_brightness_set(struct phy_device *phydev, in qca807x_led_brightness_set() [all …]
|
| /linux/drivers/net/phy/realtek/ |
| H A D | realtek_main.c | 220 static int rtl821x_read_page(struct phy_device *phydev) in rtl821x_read_page() 225 static int rtl821x_write_page(struct phy_device *phydev, int page) in rtl821x_write_page() 230 static int rtl821x_read_ext_page(struct phy_device *phydev, u16 ext_page, in rtl821x_read_ext_page() 245 static int rtl821x_modify_ext_page(struct phy_device *phydev, u16 ext_page, in rtl821x_modify_ext_page() 260 static int rtl821x_probe(struct phy_device *phydev) in rtl821x_probe() 284 static int rtl8211f_probe(struct phy_device *phydev) in rtl8211f_probe() 312 static int rtl8201_ack_interrupt(struct phy_device *phydev) in rtl8201_ack_interrupt() 321 static int rtl821x_ack_interrupt(struct phy_device *phydev) in rtl821x_ack_interrupt() 330 static int rtl8211f_ack_interrupt(struct phy_device *phydev) in rtl8211f_ack_interrupt() 339 static int rtl8201_config_intr(struct phy_device *phydev) in rtl8201_config_intr() [all …]
|
| /linux/drivers/net/phy/mediatek/ |
| H A D | mtk.h | 75 void __mtk_tr_modify(struct phy_device *phydev, u8 ch_addr, u8 node_addr, 77 void mtk_tr_modify(struct phy_device *phydev, u8 ch_addr, u8 node_addr, 79 void __mtk_tr_set_bits(struct phy_device *phydev, u8 ch_addr, u8 node_addr, 81 void __mtk_tr_clr_bits(struct phy_device *phydev, u8 ch_addr, u8 node_addr, 84 int mtk_phy_read_page(struct phy_device *phydev); 85 int mtk_phy_write_page(struct phy_device *phydev, int page); 87 int mtk_phy_led_hw_is_supported(struct phy_device *phydev, u8 index, 90 int mtk_phy_led_hw_ctrl_set(struct phy_device *phydev, u8 index, 93 int mtk_phy_led_hw_ctrl_get(struct phy_device *phydev, u8 index, 98 int mtk_phy_hw_led_on_set(struct phy_device *phydev, u8 index, [all …]
|
| H A D | mtk-phy-lib.c | 14 static void __mtk_tr_access(struct phy_device *phydev, bool read, u8 ch_addr, in __mtk_tr_access() 29 static void __mtk_tr_read(struct phy_device *phydev, u8 ch_addr, u8 node_addr, in __mtk_tr_read() 39 static void __mtk_tr_write(struct phy_device *phydev, u8 ch_addr, u8 node_addr, in __mtk_tr_write() 49 void __mtk_tr_modify(struct phy_device *phydev, u8 ch_addr, u8 node_addr, in __mtk_tr_modify() 63 void mtk_tr_modify(struct phy_device *phydev, u8 ch_addr, u8 node_addr, in mtk_tr_modify() 72 void __mtk_tr_set_bits(struct phy_device *phydev, u8 ch_addr, u8 node_addr, in __mtk_tr_set_bits() 79 void __mtk_tr_clr_bits(struct phy_device *phydev, u8 ch_addr, u8 node_addr, in __mtk_tr_clr_bits() 86 int mtk_phy_read_page(struct phy_device *phydev) in mtk_phy_read_page() 92 int mtk_phy_write_page(struct phy_device *phydev, int page) in mtk_phy_write_page() 98 int mtk_phy_led_hw_is_supported(struct phy_device *phydev, u8 index, in mtk_phy_led_hw_is_supported() [all …]
|