Home
last modified time | relevance | path

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

12345678910>>...18

/openbmc/linux/include/linux/
H A Dphy.h208 unsigned int phy_supported_speeds(struct phy_device *phy,
468 struct phy_device *mdiobus_scan_c22(struct mii_bus *bus, int addr);
634 struct phy_device { struct
757 void (*phy_link_change)(struct phy_device *phydev, bool up); argument
769 static inline struct phy_device *to_phy_device(const struct device *dev) in to_phy_device()
771 return container_of(to_mdio_device(dev), struct phy_device, mdio); in to_phy_device()
862 struct phy_device *phydev;
904 int (*soft_reset)(struct phy_device *phydev);
910 int (*config_init)(struct phy_device *phydev);
916 int (*probe)(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(struct phy_device *phydev, u8 pair, u8 result);
27 int ethnl_cable_test_fault_length(struct phy_device *phydev, u8 pair, u32 cm);
28 int ethnl_cable_test_amplitude(struct phy_device *phydev, u8 pair, s16 mV);
29 int ethnl_cable_test_pulse(struct phy_device *phydev, u16 mV);
30 int ethnl_cable_test_step(struct phy_device *phydev, u32 first, u32 last,
45 static inline int ethnl_cable_test_alloc(struct phy_device *phydev, u8 cmd) in ethnl_cable_test_alloc()
[all …]
H A Dphy_led_triggers.h7 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 Dphy_fixed.h23 extern struct phy_device *fixed_phy_register(unsigned int irq,
27 extern struct phy_device *
32 extern void fixed_phy_unregister(struct phy_device *phydev);
33 extern int fixed_phy_set_link_update(struct phy_device *phydev,
42 static inline struct phy_device *fixed_phy_register(unsigned int irq, in fixed_phy_register()
49 static inline struct phy_device *
57 static inline void fixed_phy_unregister(struct phy_device *phydev) in fixed_phy_unregister()
60 static inline int fixed_phy_set_link_update(struct phy_device *phydev, in fixed_phy_set_link_update()
H A Dphylib_stubs.h10 struct phy_device;
17 int (*hwtstamp_get)(struct phy_device *phydev,
19 int (*hwtstamp_set)(struct phy_device *phydev,
24 static inline int phy_hwtstamp_get(struct phy_device *phydev, in phy_hwtstamp_get()
38 static inline int phy_hwtstamp_set(struct phy_device *phydev, in phy_hwtstamp_set()
55 static inline int phy_hwtstamp_get(struct phy_device *phydev, in phy_hwtstamp_get()
61 static inline int phy_hwtstamp_set(struct phy_device *phydev, in phy_hwtstamp_set()
H A Dsmscphy.h31 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);
/openbmc/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 Dphy.c61 static void phy_process_state_change(struct phy_device *phydev, in phy_process_state_change()
73 static void phy_link_up(struct phy_device *phydev) in phy_link_up()
79 static void phy_link_down(struct phy_device *phydev) in phy_link_down()
86 static const char *phy_pause_str(struct phy_device *phydev) in phy_pause_str()
116 void phy_print_status(struct phy_device *phydev) in phy_print_status()
143 int phy_get_rate_matching(struct phy_device *phydev, in phy_get_rate_matching()
165 static int phy_config_interrupt(struct phy_device *phydev, bool interrupts) in phy_config_interrupt()
181 int phy_restart_aneg(struct phy_device *phydev) in phy_restart_aneg()
202 int phy_aneg_done(struct phy_device *phydev) in phy_aneg_done()
242 unsigned int phy_supported_speeds(struct phy_device *phy, in phy_supported_speeds()
[all …]
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 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 Dmarvell-88x2222.c63 static int mv2222_tx_enable(struct phy_device *phydev) in mv2222_tx_enable()
70 static int mv2222_tx_disable(struct phy_device *phydev) in mv2222_tx_disable()
76 static int mv2222_soft_reset(struct phy_device *phydev) in mv2222_soft_reset()
90 static int mv2222_disable_aneg(struct phy_device *phydev) in mv2222_disable_aneg()
100 static int mv2222_enable_aneg(struct phy_device *phydev) in mv2222_enable_aneg()
110 static int mv2222_set_sgmii_speed(struct phy_device *phydev) in mv2222_set_sgmii_speed()
151 static bool mv2222_is_10g_capable(struct phy_device *phydev) in mv2222_is_10g_capable()
169 static bool mv2222_is_1gbx_capable(struct phy_device *phydev) in mv2222_is_1gbx_capable()
177 static bool mv2222_is_sgmii_capable(struct phy_device *phydev) in mv2222_is_sgmii_capable()
195 static int mv2222_config_line(struct phy_device *phydev) in mv2222_config_line()
[all …]
H A Dmarvell10g.c145 bool (*has_downshift)(struct phy_device *phydev);
147 int (*get_mactype)(struct phy_device *phydev);
148 int (*set_mactype)(struct phy_device *phydev, int mactype);
150 int (*init_interface)(struct phy_device *phydev, int mactype);
153 int (*hwmon_read_temp_reg)(struct phy_device *phydev);
169 static const struct mv3310_chip *to_mv3310_chip(struct phy_device *phydev) in to_mv3310_chip()
186 static int mv3310_hwmon_read_temp_reg(struct phy_device *phydev) in mv3310_hwmon_read_temp_reg()
191 static int mv2110_hwmon_read_temp_reg(struct phy_device *phydev) in mv2110_hwmon_read_temp_reg()
199 struct phy_device *phydev = dev_get_drvdata(dev); in mv3310_hwmon_read()
257 static int mv3310_hwmon_config(struct phy_device *phydev, bool enable) in mv3310_hwmon_config()
[all …]
H A Dnxp-cbtx.c35 static int cbtx_soft_reset(struct phy_device *phydev) in cbtx_soft_reset()
48 static int cbtx_config_init(struct phy_device *phydev) in cbtx_config_init()
56 static int cbtx_mdix_status(struct phy_device *phydev) in cbtx_mdix_status()
72 static int cbtx_read_status(struct phy_device *phydev) in cbtx_read_status()
83 static int cbtx_mdix_config(struct phy_device *phydev) in cbtx_mdix_config()
112 static int cbtx_config_aneg(struct phy_device *phydev) in cbtx_config_aneg()
123 static int cbtx_ack_interrupts(struct phy_device *phydev) in cbtx_ack_interrupts()
128 static int cbtx_config_intr(struct phy_device *phydev) in cbtx_config_intr()
154 static irqreturn_t cbtx_handle_interrupt(struct phy_device *phydev) in cbtx_handle_interrupt()
178 static int cbtx_get_sset_count(struct phy_device *phydev) in cbtx_get_sset_count()
[all …]
H A Drealtek.c87 static int rtl821x_read_page(struct phy_device *phydev) in rtl821x_read_page()
92 static int rtl821x_write_page(struct phy_device *phydev, int page) in rtl821x_write_page()
97 static int rtl821x_probe(struct phy_device *phydev) in rtl821x_probe()
137 static int rtl8201_ack_interrupt(struct phy_device *phydev) in rtl8201_ack_interrupt()
146 static int rtl821x_ack_interrupt(struct phy_device *phydev) in rtl821x_ack_interrupt()
155 static int rtl8211f_ack_interrupt(struct phy_device *phydev) in rtl8211f_ack_interrupt()
164 static int rtl8201_config_intr(struct phy_device *phydev) in rtl8201_config_intr()
188 static int rtl8211b_config_intr(struct phy_device *phydev) in rtl8211b_config_intr()
210 static int rtl8211e_config_intr(struct phy_device *phydev) in rtl8211e_config_intr()
232 static int rtl8211f_config_intr(struct phy_device *phydev) in rtl8211f_config_intr()
[all …]
H A Dphy_device.c238 void phy_device_free(struct phy_device *phydev) in phy_device_free()
246 struct phy_device *phydev; in phy_mdio_device_free()
248 phydev = container_of(mdiodev, struct phy_device, mdio); in phy_mdio_device_free()
260 struct phy_device *phydev; in phy_mdio_device_remove()
262 phydev = container_of(mdiodev, struct phy_device, mdio); in phy_mdio_device_remove()
271 static bool mdio_bus_phy_may_suspend(struct phy_device *phydev) in mdio_bus_phy_may_suspend()
312 struct phy_device *phydev = to_phy_device(dev); in mdio_bus_phy_suspend()
344 struct phy_device *phydev = to_phy_device(dev); in mdio_bus_phy_resume()
404 int (*run)(struct phy_device *)) in phy_register_fixup() argument
426 int (*run)(struct phy_device *)) in phy_register_fixup_for_uid() argument
[all …]
H A Dnxp-tja11xx.c87 struct phy_device *phydev;
108 static int tja11xx_check(struct phy_device *phydev, u8 reg, u16 mask, u16 set) in tja11xx_check()
116 static int phy_modify_check(struct phy_device *phydev, u8 reg, in phy_modify_check()
128 static int tja11xx_enable_reg_write(struct phy_device *phydev) in tja11xx_enable_reg_write()
133 static int tja11xx_enable_link_control(struct phy_device *phydev) in tja11xx_enable_link_control()
138 static int tja11xx_disable_link_control(struct phy_device *phydev) in tja11xx_disable_link_control()
143 static int tja11xx_wakeup(struct phy_device *phydev) in tja11xx_wakeup()
189 static int tja11xx_soft_reset(struct phy_device *phydev) in tja11xx_soft_reset()
200 static int tja11xx_config_aneg_cable_test(struct phy_device *phydev) in tja11xx_config_aneg_cable_test()
233 static int tja11xx_config_aneg(struct phy_device *phydev) in tja11xx_config_aneg()
[all …]
H A Dat803x.c326 static int at803x_debug_reg_write(struct phy_device *phydev, u16 reg, u16 data) in at803x_debug_reg_write()
337 static int at803x_debug_reg_read(struct phy_device *phydev, u16 reg) in at803x_debug_reg_read()
348 static int at803x_debug_reg_mask(struct phy_device *phydev, u16 reg, in at803x_debug_reg_mask()
365 static int at803x_write_page(struct phy_device *phydev, int page) in at803x_write_page()
381 static int at803x_read_page(struct phy_device *phydev) in at803x_read_page()
394 static int at803x_enable_rx_delay(struct phy_device *phydev) in at803x_enable_rx_delay()
400 static int at803x_enable_tx_delay(struct phy_device *phydev) in at803x_enable_tx_delay()
406 static int at803x_disable_rx_delay(struct phy_device *phydev) in at803x_disable_rx_delay()
412 static int at803x_disable_tx_delay(struct phy_device *phydev) in at803x_disable_tx_delay()
419 static void at803x_context_save(struct phy_device *phydev, in at803x_context_save()
[all …]
H A Dadin.c231 static u32 adin_get_reg_value(struct phy_device *phydev, in adin_get_reg_value()
254 static int adin_config_rgmii_mode(struct phy_device *phydev) in adin_config_rgmii_mode()
300 static int adin_config_rmii_mode(struct phy_device *phydev) in adin_config_rmii_mode()
327 static int adin_get_downshift(struct phy_device *phydev, u8 *data) in adin_get_downshift()
347 static int adin_set_downshift(struct phy_device *phydev, u8 cnt) in adin_set_downshift()
371 static int adin_get_edpd(struct phy_device *phydev, u16 *tx_interval) in adin_get_edpd()
392 static int adin_set_edpd(struct phy_device *phydev, u16 tx_interval) in adin_set_edpd()
419 static int adin_get_tunable(struct phy_device *phydev, in adin_get_tunable()
432 static int adin_set_tunable(struct phy_device *phydev, in adin_set_tunable()
445 static int adin_config_clk_out(struct phy_device *phydev) in adin_config_clk_out()
[all …]
H A Dmarvell.c315 static int marvell_read_page(struct phy_device *phydev) in marvell_read_page()
320 static int marvell_write_page(struct phy_device *phydev, int page) in marvell_write_page()
325 static int marvell_set_page(struct phy_device *phydev, int page) in marvell_set_page()
330 static int marvell_ack_interrupt(struct phy_device *phydev) in marvell_ack_interrupt()
343 static int marvell_config_intr(struct phy_device *phydev) in marvell_config_intr()
366 static irqreturn_t marvell_handle_interrupt(struct phy_device *phydev) in marvell_handle_interrupt()
384 static int marvell_set_polarity(struct phy_device *phydev, int polarity) in marvell_set_polarity()
406 static int marvell_config_aneg(struct phy_device *phydev) in marvell_config_aneg()
439 static int m88e1101_config_aneg(struct phy_device *phydev) in m88e1101_config_aneg()
488 static int marvell_of_reg_init(struct phy_device *phydev) in marvell_of_reg_init()
[all …]
/openbmc/u-boot/include/
H A Dphy.h54 struct phy_device;
66 struct phy_device *phymap[PHY_MAX_ADDR];
90 int (*probe)(struct phy_device *phydev);
94 int (*config)(struct phy_device *phydev);
97 int (*startup)(struct phy_device *phydev);
100 int (*shutdown)(struct phy_device *phydev);
102 int (*readext)(struct phy_device *phydev, int addr, int devad, int reg);
103 int (*writeext)(struct phy_device *phydev, int addr, int devad, int reg,
108 struct phy_device { struct
154 static inline int phy_read(struct phy_device *phydev, int devad, int regnum) in phy_read() argument
[all …]
/openbmc/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()
58 static void __rtl_writephy_batch(struct phy_device *phydev, in __rtl_writephy_batch()
73 static void rtl8168f_config_eee_phy(struct phy_device *phydev) in rtl8168f_config_eee_phy()
79 static void rtl8168g_config_eee_phy(struct phy_device *phydev) in rtl8168g_config_eee_phy()
84 static void rtl8168h_config_eee_phy(struct phy_device *phydev) in rtl8168h_config_eee_phy()
92 static void rtl8125a_config_eee_phy(struct phy_device *phydev) in rtl8125a_config_eee_phy()
100 static void rtl8125b_config_eee_phy(struct phy_device *phydev) in rtl8125b_config_eee_phy()
[all …]
/openbmc/linux/drivers/net/phy/mscc/
H A Dmscc.h434 u32 vsc85xx_csr_read(struct phy_device *phydev,
437 int vsc85xx_csr_write(struct phy_device *phydev,
440 int phy_base_write(struct phy_device *phydev, u32 regnum, u16 val);
441 int phy_base_read(struct phy_device *phydev, u32 regnum);
442 int phy_update_mcb_s6g(struct phy_device *phydev, u32 reg, u8 mcb);
443 int phy_commit_mcb_s6g(struct phy_device *phydev, u32 reg, u8 mcb);
444 int vsc8584_cmd(struct phy_device *phydev, u16 val);
447 int vsc8584_macsec_init(struct phy_device *phydev);
448 void vsc8584_handle_macsec_interrupt(struct phy_device *phydev);
449 void vsc8584_config_macsec_intr(struct phy_device *phydev);
[all …]
/openbmc/u-boot/drivers/net/phy/
H A Dmicrel_ksz90x1.c40 static int ksz90xx_startup(struct phy_device *phydev) in ksz90xx_startup()
104 static int ksz90x1_of_config_group(struct phy_device *phydev, in ksz90x1_of_config_group()
141 static int ksz9021_of_config(struct phy_device *phydev) in ksz9021_of_config()
159 static int ksz9031_of_config(struct phy_device *phydev) in ksz9031_of_config()
178 static int ksz9031_center_flp_timing(struct phy_device *phydev) in ksz9031_center_flp_timing()
195 static int ksz9021_of_config(struct phy_device *phydev) in ksz9021_of_config()
200 static int ksz9031_of_config(struct phy_device *phydev) in ksz9031_of_config()
205 static int ksz9031_center_flp_timing(struct phy_device *phydev) in ksz9031_center_flp_timing()
214 int ksz9021_phy_extended_write(struct phy_device *phydev, int regnum, u16 val) in ksz9021_phy_extended_write()
223 int ksz9021_phy_extended_read(struct phy_device *phydev, int regnum) in ksz9021_phy_extended_read()
[all …]
H A Dphy.c35 static int genphy_config_advert(struct phy_device *phydev) in genphy_config_advert()
124 static int genphy_setup_forced(struct phy_device *phydev) in genphy_setup_forced()
149 int genphy_restart_aneg(struct phy_device *phydev) in genphy_restart_aneg()
176 int genphy_config_aneg(struct phy_device *phydev) in genphy_config_aneg()
220 int genphy_update_link(struct phy_device *phydev) in genphy_update_link()
289 int genphy_parse_link(struct phy_device *phydev) in genphy_parse_link()
382 int genphy_config(struct phy_device *phydev) in genphy_config()
433 int genphy_startup(struct phy_device *phydev) in genphy_startup()
444 int genphy_shutdown(struct phy_device *phydev) in genphy_shutdown()
559 int phy_set_supported(struct phy_device *phydev, u32 max_speed) in phy_set_supported()
[all …]
H A Dmv88e61xx.c216 __weak int mv88e61xx_hw_reset(struct phy_device *phydev) in mv88e61xx_hw_reset()
255 static int mv88e61xx_reg_read(struct phy_device *phydev, int dev, int reg) in mv88e61xx_reg_read()
291 static int mv88e61xx_reg_write(struct phy_device *phydev, int dev, int reg, in mv88e61xx_reg_write()
330 static int mv88e61xx_phy_wait(struct phy_device *phydev) in mv88e61xx_phy_wait()
350 struct phy_device *phydev; in mv88e61xx_phy_read_indirect()
353 phydev = (struct phy_device *)smi_wrapper->priv; in mv88e61xx_phy_read_indirect()
373 struct phy_device *phydev; in mv88e61xx_phy_write_indirect()
376 phydev = (struct phy_device *)smi_wrapper->priv; in mv88e61xx_phy_write_indirect()
395 static int mv88e61xx_phy_read(struct phy_device *phydev, int phy, int reg) in mv88e61xx_phy_read()
402 static int mv88e61xx_phy_write(struct phy_device *phydev, int phy, in mv88e61xx_phy_write()
[all …]

12345678910>>...18