Home
last modified time | relevance | path

Searched refs:phy_device (Results 1 – 25 of 321) sorted by relevance

12345678910>>...13

/linux/include/linux/
H A Dphy.h463 struct phy_device *mdiobus_scan_c22(struct mii_bus *bus, int addr);
666 struct phy_device { struct
801 void (*phy_link_change)(struct phy_device *phydev, bool up); argument
817 #define to_phy_device(__dev) container_of_const(to_mdio_device(__dev), struct phy_device, mdio)
938 struct phy_device *phydev;
1139 int (*soft_reset)(struct phy_device *phydev);
1145 int (*config_init)(struct phy_device *phydev);
1151 int (*probe)(struct phy_device *phydev);
1157 int (*get_features)(struct phy_device *phydev);
1164 unsigned int (*inband_caps)(struct phy_device *phydev,
[all …]
H A Dethtool_netlink.h20 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 Dphylib_stubs.h13 struct phy_device;
20 int (*hwtstamp_get)(struct phy_device *phydev,
22 int (*hwtstamp_set)(struct phy_device *phydev,
25 void (*get_phy_stats)(struct phy_device *phydev,
28 void (*get_link_ext_stats)(struct phy_device *phydev,
32 static inline int phy_hwtstamp_get(struct phy_device *phydev, in phy_hwtstamp_get()
46 static inline int phy_hwtstamp_set(struct phy_device *phydev, in phy_hwtstamp_set()
61 static inline void phy_ethtool_get_phy_stats(struct phy_device *phydev, in phy_ethtool_get_phy_stats()
73 static inline void phy_ethtool_get_link_ext_stats(struct phy_device *phydev, in phy_ethtool_get_link_ext_stats()
86 static inline int phy_hwtstamp_get(struct phy_device *phydev, in phy_hwtstamp_get()
[all …]
H A Dphy_link_topology.h18 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 *
/linux/drivers/net/phy/
H A Dbcm-phy-lib.h33 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 Dphylib.h10 struct phy_device;
13 struct device_node *phy_package_get_node(struct phy_device *phydev);
14 void *phy_package_get_priv(struct phy_device *phydev);
15 int __phy_package_read(struct phy_device *phydev, unsigned int addr_offset,
17 int __phy_package_write(struct phy_device *phydev, unsigned int addr_offset,
19 int __phy_package_read_mmd(struct phy_device *phydev,
22 int __phy_package_write_mmd(struct phy_device *phydev,
25 bool phy_package_init_once(struct phy_device *phydev);
26 bool phy_package_probe_once(struct phy_device *phydev);
27 int phy_package_join(struct phy_device *phydev, int base_addr, size_t priv_size);
[all …]
H A Dphy.c64 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 Dbcm-phy-lib.c21 int __bcm_phy_write_exp(struct phy_device *phydev, u16 reg, u16 val) in __bcm_phy_write_exp()
33 int bcm_phy_write_exp(struct phy_device *phydev, u16 reg, u16 val) in bcm_phy_write_exp()
45 int __bcm_phy_read_exp(struct phy_device *phydev, u16 reg) in __bcm_phy_read_exp()
62 int bcm_phy_read_exp(struct phy_device *phydev, u16 reg) in bcm_phy_read_exp()
74 int __bcm_phy_modify_exp(struct phy_device *phydev, u16 reg, u16 mask, u16 set) in __bcm_phy_modify_exp()
94 int bcm_phy_modify_exp(struct phy_device *phydev, u16 reg, u16 mask, u16 set) in bcm_phy_modify_exp()
106 int bcm54xx_auxctl_read(struct phy_device *phydev, u16 regnum) in bcm54xx_auxctl_read()
117 int bcm54xx_auxctl_write(struct phy_device *phydev, u16 regnum, u16 val) in bcm54xx_auxctl_write()
123 int bcm_phy_write_misc(struct phy_device *phydev, in bcm_phy_write_misc()
147 int bcm_phy_read_misc(struct phy_device *phydev, in bcm_phy_read_misc()
[all …]
H A Dphy_package.c43 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 Dnxp-c45-tja11xx.h15 struct phy_device *phydev;
35 int nxp_c45_macsec_config_init(struct phy_device *phydev);
36 int nxp_c45_macsec_probe(struct phy_device *phydev);
37 void nxp_c45_macsec_remove(struct phy_device *phydev);
38 void nxp_c45_handle_macsec_interrupt(struct phy_device *phydev,
42 int nxp_c45_macsec_config_init(struct phy_device *phydev) in nxp_c45_macsec_config_init()
48 int nxp_c45_macsec_probe(struct phy_device *phydev) in nxp_c45_macsec_probe()
54 void nxp_c45_macsec_remove(struct phy_device *phydev) in nxp_c45_macsec_remove()
59 void nxp_c45_handle_macsec_interrupt(struct phy_device *phydev, in nxp_c45_handle_macsec_interrupt()
H A Dicplus.c94 static int ip175c_config_init(struct phy_device *phydev) in ip175c_config_init()
149 static int ip1001_config_init(struct phy_device *phydev) in ip1001_config_init()
185 static int ip175c_read_status(struct phy_device *phydev) in ip175c_read_status()
196 static int ip175c_config_aneg(struct phy_device *phydev) in ip175c_config_aneg()
204 static int ip101a_g_probe(struct phy_device *phydev) in ip101a_g_probe()
235 static int ip101a_g_config_intr_pin(struct phy_device *phydev) in ip101a_g_config_intr_pin()
276 static int ip101a_config_init(struct phy_device *phydev) in ip101a_config_init()
288 static int ip101g_config_init(struct phy_device *phydev) in ip101g_config_init()
307 static int ip101a_g_read_status(struct phy_device *phydev) in ip101a_g_read_status()
349 static int ip101a_g_config_mdix(struct phy_device *phydev) in ip101a_g_config_mdix()
[all …]
H A Dphylib-internal.h9 struct phy_device;
14 unsigned int phy_supported_speeds(struct phy_device *phy,
17 void of_set_phy_supported(struct phy_device *phydev);
18 void of_set_phy_eee_broken(struct phy_device *phydev);
19 void of_set_phy_timing_role(struct phy_device *phydev);
20 int phy_speed_down_core(struct phy_device *phydev);
21 void phy_check_downshift(struct phy_device *phydev);
23 int genphy_c45_read_eee_adv(struct phy_device *phydev, unsigned long *adv);
H A Dphy_device.c57 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 Dmarvell-88x2222.c61 static int mv2222_tx_enable(struct phy_device *phydev) in mv2222_tx_enable()
68 static int mv2222_tx_disable(struct phy_device *phydev) in mv2222_tx_disable()
74 static int mv2222_soft_reset(struct phy_device *phydev) in mv2222_soft_reset()
88 static int mv2222_disable_aneg(struct phy_device *phydev) in mv2222_disable_aneg()
98 static int mv2222_enable_aneg(struct phy_device *phydev) in mv2222_enable_aneg()
108 static int mv2222_set_sgmii_speed(struct phy_device *phydev) in mv2222_set_sgmii_speed()
149 static bool mv2222_is_10g_capable(struct phy_device *phydev) in mv2222_is_10g_capable()
167 static bool mv2222_is_1gbx_capable(struct phy_device *phydev) in mv2222_is_1gbx_capable()
175 static bool mv2222_is_sgmii_capable(struct phy_device *phydev) in mv2222_is_sgmii_capable()
193 static int mv2222_config_line(struct phy_device *phydev) in mv2222_config_line()
[all …]
H A Dphy-core.c212 static void __set_phy_supported(struct phy_device *phydev, u32 max_speed) in __set_phy_supported()
232 void phy_set_max_speed(struct phy_device *phydev, u32 max_speed) in phy_set_max_speed()
240 void of_set_phy_supported(struct phy_device *phydev) in of_set_phy_supported()
255 void of_set_phy_eee_broken(struct phy_device *phydev) in of_set_phy_eee_broken()
286 void of_set_phy_timing_role(struct phy_device *phydev) in of_set_phy_timing_role()
322 void phy_resolve_aneg_pause(struct phy_device *phydev) in phy_resolve_aneg_pause()
342 void phy_resolve_aneg_linkmode(struct phy_device *phydev) in phy_resolve_aneg_linkmode()
368 void phy_check_downshift(struct phy_device *phydev) in phy_check_downshift()
395 static int phy_resolve_min_speed(struct phy_device *phydev, bool fdx_only) in phy_resolve_min_speed()
409 int phy_speed_down_core(struct phy_device *phydev) in phy_speed_down_core()
[all …]
H A Dmarvell-88q2xxx.c220 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 Dnxp-tja11xx.c90 struct phy_device *phydev;
111 static int tja11xx_check(struct phy_device *phydev, u8 reg, u16 mask, u16 set) in tja11xx_check()
119 static int phy_modify_check(struct phy_device *phydev, u8 reg, in phy_modify_check()
131 static int tja11xx_enable_reg_write(struct phy_device *phydev) in tja11xx_enable_reg_write()
136 static int tja11xx_enable_link_control(struct phy_device *phydev) in tja11xx_enable_link_control()
141 static int tja11xx_disable_link_control(struct phy_device *phydev) in tja11xx_disable_link_control()
146 static int tja11xx_wakeup(struct phy_device *phydev) in tja11xx_wakeup()
200 static int tja11xx_soft_reset(struct phy_device *phydev) in tja11xx_soft_reset()
211 static int tja11xx_config_aneg_cable_test(struct phy_device *phydev) in tja11xx_config_aneg_cable_test()
244 static int tja11xx_config_aneg(struct phy_device *phydev) in tja11xx_config_aneg()
[all …]
H A Dmarvell10g.c151 bool (*has_downshift)(struct phy_device *phydev);
153 int (*get_mactype)(struct phy_device *phydev);
154 int (*set_mactype)(struct phy_device *phydev, int mactype);
161 int (*hwmon_read_temp_reg)(struct phy_device *phydev);
176 static const struct mv3310_chip *to_mv3310_chip(struct phy_device *phydev) in to_mv3310_chip()
193 static int mv3310_hwmon_read_temp_reg(struct phy_device *phydev) in mv3310_hwmon_read_temp_reg()
198 static int mv2110_hwmon_read_temp_reg(struct phy_device *phydev) in mv2110_hwmon_read_temp_reg()
206 struct phy_device *phydev = dev_get_drvdata(dev); in mv3310_hwmon_read()
244 static int mv3310_hwmon_config(struct phy_device *phydev, bool enable) in mv3310_hwmon_config()
263 static int mv3310_hwmon_probe(struct phy_device *phydev) in mv3310_hwmon_probe()
[all …]
/linux/drivers/net/phy/qcom/
H A Dqcom.h233 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 Dat803x.c183 static int at803x_write_page(struct phy_device *phydev, int page) in at803x_write_page()
199 static int at803x_read_page(struct phy_device *phydev) in at803x_read_page()
212 static int at803x_enable_rx_delay(struct phy_device *phydev) in at803x_enable_rx_delay()
218 static int at803x_enable_tx_delay(struct phy_device *phydev) in at803x_enable_tx_delay()
224 static int at803x_disable_rx_delay(struct phy_device *phydev) in at803x_disable_rx_delay()
230 static int at803x_disable_tx_delay(struct phy_device *phydev) in at803x_disable_tx_delay()
237 static void at803x_context_save(struct phy_device *phydev, in at803x_context_save()
249 static void at803x_context_restore(struct phy_device *phydev, in at803x_context_restore()
260 static int at803x_suspend(struct phy_device *phydev) in at803x_suspend()
278 static int at803x_resume(struct phy_device *phydev) in at803x_resume()
[all …]
H A Dqcom-phy-lib.c17 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 …]
/linux/drivers/net/phy/mscc/
H A Dmscc.h458 u32 vsc85xx_csr_read(struct phy_device *phydev,
461 int vsc85xx_csr_write(struct phy_device *phydev,
464 int phy_base_write(struct phy_device *phydev, u32 regnum, u16 val);
465 int phy_base_read(struct phy_device *phydev, u32 regnum);
466 int phy_update_mcb_s6g(struct phy_device *phydev, u32 reg, u8 mcb);
467 int phy_commit_mcb_s6g(struct phy_device *phydev, u32 reg, u8 mcb);
468 int vsc8584_cmd(struct phy_device *phydev, u16 val);
471 int vsc8584_macsec_init(struct phy_device *phydev);
472 void vsc8584_handle_macsec_interrupt(struct phy_device *phydev);
473 void vsc8584_config_macsec_intr(struct phy_device *phydev);
[all …]
/linux/drivers/net/ethernet/realtek/
H A Dr8169_phy_config.c18 struct phy_device *phydev);
20 static void r8168d_modify_extpage(struct phy_device *phydev, int extpage, in r8168d_modify_extpage()
31 static void r8168d_phy_param(struct phy_device *phydev, u16 parm, in r8168d_phy_param()
42 static void r8168g_phy_param(struct phy_device *phydev, u16 parm, in r8168g_phy_param()
53 static void rtl8125_phy_param(struct phy_device *phydev, u16 parm, in rtl8125_phy_param()
67 static void __rtl_writephy_batch(struct phy_device *phydev, in __rtl_writephy_batch()
82 static void rtl8168f_config_eee_phy(struct phy_device *phydev) in rtl8168f_config_eee_phy()
88 static void rtl8168g_config_eee_phy(struct phy_device *phydev) in rtl8168g_config_eee_phy()
93 static void rtl8168h_config_eee_phy(struct phy_device *phydev) in rtl8168h_config_eee_phy()
101 static void rtl8125_common_config_eee_phy(struct phy_device *phydev) in rtl8125_common_config_eee_phy()
[all …]
/linux/drivers/net/phy/realtek/
H A Drealtek_main.c220 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 Dmtk.h75 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 …]

12345678910>>...13