Searched refs:phydev (Results 1 - 25 of 260) sorted by relevance

1234567891011

/linux-master/drivers/net/phy/
H A Dbcm84881.c23 static int bcm84881_wait_init(struct phy_device *phydev) argument
27 return phy_read_mmd_poll_timeout(phydev, MDIO_MMD_PMAPMD, MDIO_CTRL1,
32 static void bcm84881_fill_possible_interfaces(struct phy_device *phydev) argument
34 unsigned long *possible = phydev->possible_interfaces;
41 static int bcm84881_config_init(struct phy_device *phydev) argument
43 bcm84881_fill_possible_interfaces(phydev);
45 switch (phydev->interface) {
57 static int bcm84881_probe(struct phy_device *phydev) argument
62 if (!phydev->is_c45 ||
63 (phydev
69 bcm84881_get_features(struct phy_device *phydev) argument
86 bcm84881_config_aneg(struct phy_device *phydev) argument
125 bcm84881_aneg_done(struct phy_device *phydev) argument
141 bcm84881_read_status(struct phy_device *phydev) argument
[all...]
H A Dphy.c61 static void phy_process_state_change(struct phy_device *phydev, argument
64 if (old_state != phydev->state) {
65 phydev_dbg(phydev, "PHY state change %s -> %s\n",
67 phy_state_to_str(phydev->state));
68 if (phydev->drv && phydev->drv->link_change_notify)
69 phydev->drv->link_change_notify(phydev);
73 static void phy_link_up(struct phy_device *phydev) argument
75 phydev
79 phy_link_down(struct phy_device *phydev) argument
86 phy_pause_str(struct phy_device *phydev) argument
116 phy_print_status(struct phy_device *phydev) argument
143 phy_get_rate_matching(struct phy_device *phydev, phy_interface_t iface) argument
165 phy_config_interrupt(struct phy_device *phydev, bool interrupts) argument
181 phy_restart_aneg(struct phy_device *phydev) argument
202 phy_aneg_done(struct phy_device *phydev) argument
272 phy_sanitize_settings(struct phy_device *phydev) argument
288 phy_ethtool_ksettings_get(struct phy_device *phydev, struct ethtool_link_ksettings *cmd) argument
325 phy_mii_ioctl(struct phy_device *phydev, struct ifreq *ifr, int cmd) argument
483 __phy_hwtstamp_get(struct phy_device *phydev, struct kernel_hwtstamp_config *config) argument
499 __phy_hwtstamp_set(struct phy_device *phydev, struct kernel_hwtstamp_config *config, struct netlink_ext_ack *extack) argument
518 phy_queue_state_machine(struct phy_device *phydev, unsigned long jiffies) argument
530 phy_trigger_machine(struct phy_device *phydev) argument
536 phy_abort_cable_test(struct phy_device *phydev) argument
553 phy_ethtool_get_strings(struct phy_device *phydev, u8 *data) argument
571 phy_ethtool_get_sset_count(struct phy_device *phydev) argument
599 phy_ethtool_get_stats(struct phy_device *phydev, struct ethtool_stats *stats, u64 *data) argument
621 phy_ethtool_get_plca_cfg(struct phy_device *phydev, struct phy_plca_cfg *plca_cfg) argument
654 plca_check_valid(struct phy_device *phydev, const struct phy_plca_cfg *plca_cfg, struct netlink_ext_ack *extack) argument
682 phy_ethtool_set_plca_cfg(struct phy_device *phydev, const struct phy_plca_cfg *plca_cfg, struct netlink_ext_ack *extack) argument
782 phy_ethtool_get_plca_status(struct phy_device *phydev, struct phy_plca_status *plca_st) argument
811 phy_start_cable_test(struct phy_device *phydev, struct netlink_ext_ack *extack) argument
881 phy_start_cable_test_tdr(struct phy_device *phydev, struct netlink_ext_ack *extack, const struct phy_tdr_config *config) argument
945 phy_config_aneg(struct phy_device *phydev) argument
967 phy_check_link_status(struct phy_device *phydev) argument
1012 _phy_start_aneg(struct phy_device *phydev) argument
1044 phy_start_aneg(struct phy_device *phydev) argument
1056 phy_poll_aneg_done(struct phy_device *phydev) argument
1072 phy_ethtool_ksettings_set(struct phy_device *phydev, const struct ethtool_link_ksettings *cmd) argument
1145 phy_speed_down(struct phy_device *phydev, bool sync) argument
1186 phy_speed_up(struct phy_device *phydev) argument
1224 phy_start_machine(struct phy_device *phydev) argument
1238 phy_stop_machine(struct phy_device *phydev) argument
1248 phy_process_error(struct phy_device *phydev) argument
1259 phy_error_precise(struct phy_device *phydev, const void *func, int err) argument
1274 phy_error(struct phy_device *phydev) argument
1285 phy_disable_interrupts(struct phy_device *phydev) argument
1300 struct phy_device *phydev = phy_dat; local
1336 phy_enable_interrupts(struct phy_device *phydev) argument
1349 phy_request_interrupt(struct phy_device *phydev) argument
1377 phy_free_interrupt(struct phy_device *phydev) argument
1390 _phy_state_machine(struct phy_device *phydev) argument
1466 _phy_state_machine_post_work(struct phy_device *phydev, enum phy_state_work state_work) argument
1480 struct phy_device *phydev = local
1495 phy_stop(struct phy_device *phydev) argument
1545 phy_start(struct phy_device *phydev) argument
1576 phy_mac_interrupt(struct phy_device *phydev) argument
1593 phy_init_eee(struct phy_device *phydev, bool clk_stop_enable) argument
1624 phy_get_eee_err(struct phy_device *phydev) argument
1647 phy_ethtool_get_eee(struct phy_device *phydev, struct ethtool_keee *data) argument
1677 phy_ethtool_set_eee_noneg(struct phy_device *phydev, struct ethtool_keee *data) argument
1700 phy_ethtool_set_eee(struct phy_device *phydev, struct ethtool_keee *data) argument
1726 phy_ethtool_set_wol(struct phy_device *phydev, struct ethtool_wolinfo *wol) argument
1748 phy_ethtool_get_wol(struct phy_device *phydev, struct ethtool_wolinfo *wol) argument
1761 struct phy_device *phydev = ndev->phydev; local
1775 struct phy_device *phydev = ndev->phydev; local
1790 struct phy_device *phydev = ndev->phydev; local
[all...]
H A DuPD60620.c26 static int upd60620_config_init(struct phy_device *phydev) argument
30 return phy_write(phydev, PHY_SPM, 0x0180 | phydev->mdio.addr);
35 static int upd60620_read_status(struct phy_device *phydev) argument
40 phy_state = phy_read(phydev, MII_BMSR);
44 phydev->link = 0;
45 linkmode_zero(phydev->lp_advertising);
46 phydev->pause = 0;
47 phydev->asym_pause = 0;
50 phy_state = phy_read(phydev, PHY_PHYSC
[all...]
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, argument
43 return bcm_phy_write_exp(phydev, reg | MII_BCM54XX_EXP_SEL_ER, val);
46 static inline int bcm_phy_read_exp_sel(struct phy_device *phydev, u16 reg) argument
48 return bcm_phy_read_exp(phydev, re
103 bcm_ptp_probe(struct phy_device *phydev) argument
108 bcm_ptp_config_init(struct phy_device *phydev) argument
[all...]
H A Dmediatek-ge.c14 static int mtk_gephy_read_page(struct phy_device *phydev) argument
16 return __phy_read(phydev, MTK_EXT_PAGE_ACCESS);
19 static int mtk_gephy_write_page(struct phy_device *phydev, int page) argument
21 return __phy_write(phydev, MTK_EXT_PAGE_ACCESS, page);
24 static void mtk_gephy_config_init(struct phy_device *phydev) argument
27 phy_write_mmd(phydev, MDIO_MMD_AN, MDIO_AN_EEE_ADV, 0);
30 phy_modify_paged(phydev, MTK_PHY_PAGE_EXTENDED, 0x14, 0, BIT(4));
33 phy_select_page(phydev, MTK_PHY_PAGE_EXTENDED_52B5);
34 __phy_write(phydev, 0x10, 0xafae);
35 __phy_write(phydev,
46 mt7530_phy_config_init(struct phy_device *phydev) argument
56 mt7531_phy_config_init(struct phy_device *phydev) argument
[all...]
H A Ddp83td510.c56 static int dp83td510_config_intr(struct phy_device *phydev) argument
60 if (phydev->interrupts == PHY_INTERRUPT_ENABLED) {
61 ret = phy_write_mmd(phydev, MDIO_MMD_VEND2,
67 ret = phy_set_bits_mmd(phydev, MDIO_MMD_VEND2,
73 ret = phy_write_mmd(phydev, MDIO_MMD_VEND2,
78 ret = phy_clear_bits_mmd(phydev, MDIO_MMD_VEND2,
88 static irqreturn_t dp83td510_handle_interrupt(struct phy_device *phydev) argument
93 ret = phy_read_mmd(phydev, MDIO_MMD_VEND2, DP83TD510E_INTERRUPT_REG_1);
95 phy_error(phydev);
102 phy_trigger_machine(phydev);
107 dp83td510_read_status(struct phy_device *phydev) argument
154 dp83td510_config_aneg(struct phy_device *phydev) argument
175 dp83td510_get_sqi(struct phy_device *phydev) argument
196 dp83td510_get_sqi_max(struct phy_device *phydev) argument
201 dp83td510_get_features(struct phy_device *phydev) argument
[all...]
H A Dmicrochip.c24 static int lan88xx_read_page(struct phy_device *phydev) argument
26 return __phy_read(phydev, LAN88XX_EXT_PAGE_ACCESS);
29 static int lan88xx_write_page(struct phy_device *phydev, int page) argument
31 return __phy_write(phydev, LAN88XX_EXT_PAGE_ACCESS, page);
34 static int lan88xx_phy_config_intr(struct phy_device *phydev) argument
38 if (phydev->interrupts == PHY_INTERRUPT_ENABLED) {
40 rc = phy_write(phydev, LAN88XX_INT_MASK, 0x7FFF);
41 rc = phy_read(phydev, LAN88XX_INT_STS);
42 rc = phy_write(phydev, LAN88XX_INT_MASK,
46 rc = phy_write(phydev, LAN88XX_INT_MAS
57 lan88xx_handle_interrupt(struct phy_device *phydev) argument
75 lan88xx_suspend(struct phy_device *phydev) argument
86 lan88xx_TR_reg_set(struct phy_device *phydev, u16 regaddr, u32 data) argument
135 lan88xx_config_TR_regs(struct phy_device *phydev) argument
231 lan88xx_probe(struct phy_device *phydev) argument
274 lan88xx_remove(struct phy_device *phydev) argument
283 lan88xx_set_wol(struct phy_device *phydev, struct ethtool_wolinfo *wol) argument
293 lan88xx_set_mdix(struct phy_device *phydev) argument
320 lan88xx_config_init(struct phy_device *phydev) argument
338 lan88xx_config_aneg(struct phy_device *phydev) argument
345 lan88xx_link_change_notify(struct phy_device *phydev) argument
[all...]
H A Dphy-c45.c15 * @phydev: target phy_device struct
17 static bool genphy_c45_baset1_able(struct phy_device *phydev) argument
21 if (phydev->pma_extable == -ENODATA) {
22 val = phy_read_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_PMA_EXTABLE);
26 phydev->pma_extable = val;
29 return !!(phydev->pma_extable & MDIO_PMA_EXTABLE_BT1);
34 * @phydev: target phy_device struct
36 static bool genphy_c45_pma_can_sleep(struct phy_device *phydev) argument
40 stat1 = phy_read_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_STAT1);
49 * @phydev
51 genphy_c45_pma_resume(struct phy_device *phydev) argument
65 genphy_c45_pma_suspend(struct phy_device *phydev) argument
80 genphy_c45_pma_baset1_setup_master_slave(struct phy_device *phydev) argument
109 genphy_c45_pma_setup_forced(struct phy_device *phydev) argument
202 genphy_c45_baset1_an_config_aneg(struct phy_device *phydev) argument
267 genphy_c45_an_config_aneg(struct phy_device *phydev) argument
319 genphy_c45_an_disable_aneg(struct phy_device *phydev) argument
339 genphy_c45_restart_aneg(struct phy_device *phydev) argument
360 genphy_c45_check_and_restart_aneg(struct phy_device *phydev, bool restart) argument
396 genphy_c45_aneg_done(struct phy_device *phydev) argument
418 genphy_c45_read_link(struct phy_device *phydev) argument
474 genphy_c45_baset1_read_lpa(struct phy_device *phydev) argument
522 genphy_c45_read_lpa(struct phy_device *phydev) argument
572 genphy_c45_pma_baset1_read_master_slave(struct phy_device *phydev) argument
599 genphy_c45_read_pma(struct phy_device *phydev) argument
649 genphy_c45_read_mdix(struct phy_device *phydev) argument
683 genphy_c45_write_eee_adv(struct phy_device *phydev, unsigned long *adv) argument
750 genphy_c45_read_eee_adv(struct phy_device *phydev, unsigned long *adv) argument
796 genphy_c45_read_eee_lpa(struct phy_device *phydev, unsigned long *lpa) argument
842 genphy_c45_read_eee_cap1(struct phy_device *phydev) argument
876 genphy_c45_read_eee_cap2(struct phy_device *phydev) argument
900 genphy_c45_read_eee_abilities(struct phy_device *phydev) argument
943 genphy_c45_an_config_eee_aneg(struct phy_device *phydev) argument
960 genphy_c45_pma_baset1_read_abilities(struct phy_device *phydev) argument
999 genphy_c45_pma_read_ext_abilities(struct phy_device *phydev) argument
1076 genphy_c45_pma_read_abilities(struct phy_device *phydev) argument
1128 genphy_c45_baset1_read_status(struct phy_device *phydev) argument
1166 genphy_c45_read_status(struct phy_device *phydev) argument
1207 genphy_c45_config_aneg(struct phy_device *phydev) argument
1227 gen10g_config_aneg(struct phy_device *phydev) argument
1233 genphy_c45_loopback(struct phy_device *phydev, bool enable) argument
1251 genphy_c45_fast_retrain(struct phy_device *phydev, bool enable) argument
1285 genphy_c45_plca_get_cfg(struct phy_device *phydev, struct phy_plca_cfg *plca_cfg) argument
1339 genphy_c45_plca_set_cfg(struct phy_device *phydev, const struct phy_plca_cfg *plca_cfg) argument
1453 genphy_c45_plca_get_status(struct phy_device *phydev, struct phy_plca_status *plca_st) argument
1477 genphy_c45_eee_is_active(struct phy_device *phydev, unsigned long *adv, unsigned long *lp, bool *is_enabled) argument
1521 genphy_c45_ethtool_get_eee(struct phy_device *phydev, struct ethtool_keee *data) argument
1556 genphy_c45_ethtool_set_eee(struct phy_device *phydev, struct ethtool_keee *data) argument
[all...]
H A Drockchip.c42 static int rockchip_init_tstmode(struct phy_device *phydev) argument
47 ret = phy_write(phydev, SMI_ADDR_TSTCNTL, TSTMODE_ENABLE);
51 ret = phy_write(phydev, SMI_ADDR_TSTCNTL, TSTMODE_DISABLE);
55 return phy_write(phydev, SMI_ADDR_TSTCNTL, TSTMODE_ENABLE);
58 static int rockchip_close_tstmode(struct phy_device *phydev) argument
61 return phy_write(phydev, SMI_ADDR_TSTCNTL, TSTMODE_DISABLE);
64 static int rockchip_integrated_phy_analog_init(struct phy_device *phydev) argument
68 ret = rockchip_init_tstmode(phydev);
76 ret = phy_write(phydev, SMI_ADDR_TSTWRITE, 0xB);
79 ret = phy_write(phydev, SMI_ADDR_TSTCNT
86 rockchip_integrated_phy_config_init(struct phy_device *phydev) argument
105 rockchip_link_change_notify(struct phy_device *phydev) argument
121 rockchip_set_polarity(struct phy_device *phydev, int polarity) argument
155 rockchip_config_aneg(struct phy_device *phydev) argument
166 rockchip_phy_resume(struct phy_device *phydev) argument
[all...]
H A Dmarvell-88x2222.c61 static int mv2222_tx_enable(struct phy_device *phydev) argument
63 return phy_clear_bits_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_PMA_TXDIS,
68 static int mv2222_tx_disable(struct phy_device *phydev) argument
70 return phy_set_bits_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_PMA_TXDIS,
74 static int mv2222_soft_reset(struct phy_device *phydev) argument
78 ret = phy_write_mmd(phydev, MDIO_MMD_VEND2, MV_PORT_RST,
83 return phy_read_mmd_poll_timeout(phydev, MDIO_MMD_VEND2, MV_PORT_RST,
88 static int mv2222_disable_aneg(struct phy_device *phydev) argument
90 int ret = phy_clear_bits_mmd(phydev, MDIO_MMD_PCS, MV_1GBX_CTRL,
95 return mv2222_soft_reset(phydev);
98 mv2222_enable_aneg(struct phy_device *phydev) argument
108 mv2222_set_sgmii_speed(struct phy_device *phydev) argument
149 mv2222_is_10g_capable(struct phy_device *phydev) argument
167 mv2222_is_1gbx_capable(struct phy_device *phydev) argument
175 mv2222_is_sgmii_capable(struct phy_device *phydev) argument
193 mv2222_config_line(struct phy_device *phydev) argument
213 mv2222_swap_line_type(struct phy_device *phydev) argument
253 mv2222_setup_forced(struct phy_device *phydev) argument
276 mv2222_config_aneg(struct phy_device *phydev) argument
302 mv2222_aneg_done(struct phy_device *phydev) argument
323 mv2222_read_status_10g(struct phy_device *phydev) argument
359 mv2222_read_status_1g(struct phy_device *phydev) argument
411 mv2222_link_is_operational(struct phy_device *phydev) argument
426 mv2222_read_status(struct phy_device *phydev) argument
451 mv2222_resume(struct phy_device *phydev) argument
456 mv2222_suspend(struct phy_device *phydev) argument
461 mv2222_get_features(struct phy_device *phydev) argument
468 mv2222_config_init(struct phy_device *phydev) argument
479 struct phy_device *phydev = upstream; local
521 struct phy_device *phydev = upstream; local
533 struct phy_device *phydev = upstream; local
542 struct phy_device *phydev = upstream; local
558 mv2222_probe(struct phy_device *phydev) argument
[all...]
H A Dvitesse.c83 static int vsc824x_add_skew(struct phy_device *phydev) argument
88 extcon = phy_read(phydev, MII_VSC8244_EXT_CON1);
99 err = phy_write(phydev, MII_VSC8244_EXT_CON1, extcon);
104 static int vsc824x_config_init(struct phy_device *phydev) argument
108 err = phy_write(phydev, MII_VSC8244_AUX_CONSTAT,
113 if (phydev->interface == PHY_INTERFACE_MODE_RGMII_ID)
114 err = vsc824x_add_skew(phydev);
121 static int vsc73xx_read_page(struct phy_device *phydev) argument
123 return __phy_read(phydev, VSC73XX_EXT_PAGE_ACCESS);
126 static int vsc73xx_write_page(struct phy_device *phydev, in argument
131 vsc73xx_config_init(struct phy_device *phydev) argument
142 vsc738x_config_init(struct phy_device *phydev) argument
208 vsc739x_config_init(struct phy_device *phydev) argument
240 vsc73xx_config_aneg(struct phy_device *phydev) argument
254 vsc8601_add_skew(struct phy_device *phydev) argument
266 vsc8601_config_init(struct phy_device *phydev) argument
279 vsc82xx_config_intr(struct phy_device *phydev) argument
309 vsc82xx_handle_interrupt(struct phy_device *phydev) argument
334 vsc8221_config_init(struct phy_device *phydev) argument
353 vsc82x4_config_autocross_enable(struct phy_device *phydev) argument
385 vsc82x4_config_aneg(struct phy_device *phydev) argument
[all...]
H A Dlxt.c62 static int lxt970_ack_interrupt(struct phy_device *phydev) argument
66 err = phy_read(phydev, MII_BMSR);
71 err = phy_read(phydev, MII_LXT970_ISR);
79 static int lxt970_config_intr(struct phy_device *phydev) argument
83 if (phydev->interrupts == PHY_INTERRUPT_ENABLED) {
84 err = lxt970_ack_interrupt(phydev);
88 err = phy_write(phydev, MII_LXT970_IER, MII_LXT970_IER_IEN);
90 err = phy_write(phydev, MII_LXT970_IER, 0);
94 err = lxt970_ack_interrupt(phydev);
100 static irqreturn_t lxt970_handle_interrupt(struct phy_device *phydev) argument
127 lxt970_config_init(struct phy_device *phydev) argument
133 lxt971_ack_interrupt(struct phy_device *phydev) argument
143 lxt971_config_intr(struct phy_device *phydev) argument
164 lxt971_handle_interrupt(struct phy_device *phydev) argument
187 lxt973a2_update_link(struct phy_device *phydev) argument
219 lxt973a2_read_status(struct phy_device *phydev) argument
280 lxt973_probe(struct phy_device *phydev) argument
302 lxt973_config_aneg(struct phy_device *phydev) argument
[all...]
H A Dnxp-cbtx.c35 static int cbtx_soft_reset(struct phy_device *phydev) argument
40 ret = phy_clear_bits(phydev, CBTX_PDOWN_CTRL,
45 return genphy_soft_reset(phydev);
48 static int cbtx_config_init(struct phy_device *phydev) argument
51 phydev->mdix_ctrl = ETH_TP_MDI_AUTO;
56 static int cbtx_mdix_status(struct phy_device *phydev) argument
60 ret = phy_read(phydev, CBTX_MODE_CTRL_STAT);
65 phydev->mdix = ETH_TP_MDI_X;
67 phydev->mdix = ETH_TP_MDI;
72 static int cbtx_read_status(struct phy_device *phydev) argument
83 cbtx_mdix_config(struct phy_device *phydev) argument
112 cbtx_config_aneg(struct phy_device *phydev) argument
123 cbtx_ack_interrupts(struct phy_device *phydev) argument
128 cbtx_config_intr(struct phy_device *phydev) argument
154 cbtx_handle_interrupt(struct phy_device *phydev) argument
178 cbtx_get_sset_count(struct phy_device *phydev) argument
183 cbtx_get_strings(struct phy_device *phydev, u8 *data) argument
188 cbtx_get_stats(struct phy_device *phydev, struct ethtool_stats *stats, u64 *data) argument
[all...]
H A Dbroadcom.c24 #define BRCM_PHY_MODEL(phydev) \
25 ((phydev)->drv->phy_id & (phydev)->drv->phy_id_mask)
27 #define BRCM_PHY_REV(phydev) \
28 ((phydev)->drv->phy_id & ~((phydev)->drv->phy_id_mask))
41 static bool bcm54xx_phy_can_wakeup(struct phy_device *phydev) argument
43 struct bcm54xx_phy_priv *priv = phydev->priv;
45 return phy_interrupt_is_valid(phydev) || priv->wake_irq >= 0;
48 static int bcm54xx_config_clock_delay(struct phy_device *phydev) argument
89 bcm54210e_config_init(struct phy_device *phydev) argument
104 bcm54612e_config_init(struct phy_device *phydev) argument
125 bcm54616s_config_init(struct phy_device *phydev) argument
184 bcm50610_a0_workaround(struct phy_device *phydev) argument
215 bcm54xx_phydsp_config(struct phy_device *phydev) argument
263 bcm54xx_adjust_rxrefclk(struct phy_device *phydev) argument
334 bcm54xx_ptp_stop(struct phy_device *phydev) argument
342 bcm54xx_ptp_config_init(struct phy_device *phydev) argument
350 bcm54xx_config_init(struct phy_device *phydev) argument
442 bcm54xx_iddq_set(struct phy_device *phydev, bool enable) argument
463 bcm54xx_set_wakeup_irq(struct phy_device *phydev, bool state) argument
482 bcm54xx_suspend(struct phy_device *phydev) argument
507 bcm54xx_resume(struct phy_device *phydev) argument
545 bcm54810_read_mmd(struct phy_device *phydev, int devnum, u16 regnum) argument
550 bcm54810_write_mmd(struct phy_device *phydev, int devnum, u16 regnum, u16 val) argument
556 bcm54811_config_init(struct phy_device *phydev) argument
582 bcm5481_config_aneg(struct phy_device *phydev) argument
608 bcm54616s_probe(struct phy_device *phydev) argument
648 bcm54616s_config_aneg(struct phy_device *phydev) argument
665 bcm54616s_read_status(struct phy_device *phydev) argument
679 brcm_fet_config_init(struct phy_device *phydev) argument
781 brcm_fet_ack_interrupt(struct phy_device *phydev) argument
793 brcm_fet_config_intr(struct phy_device *phydev) argument
820 brcm_fet_handle_interrupt(struct phy_device *phydev) argument
838 brcm_fet_suspend(struct phy_device *phydev) argument
883 bcm5221_config_aneg(struct phy_device *phydev) argument
910 bcm5221_read_status(struct phy_device *phydev) argument
936 bcm54xx_phy_get_wol(struct phy_device *phydev, struct ethtool_wolinfo *wol) argument
952 bcm54xx_phy_set_wol(struct phy_device *phydev, struct ethtool_wolinfo *wol) argument
972 bcm54xx_phy_probe(struct phy_device *phydev) argument
1027 bcm54xx_get_stats(struct phy_device *phydev, struct ethtool_stats *stats, u64 *data) argument
1035 bcm54xx_link_change_notify(struct phy_device *phydev) argument
[all...]
H A Dcortina.c18 static int cortina_read_reg(struct phy_device *phydev, u16 regnum) argument
20 return mdiobus_c45_read(phydev->mdio.bus, phydev->mdio.addr, 0, regnum);
23 static int cortina_read_status(struct phy_device *phydev) argument
27 gpio_int_status = cortina_read_reg(phydev, VILLA_GLOBAL_GPIO_1_INTS);
35 phydev->speed = SPEED_10000;
36 phydev->duplex = DUPLEX_FULL;
37 phydev->link = 1;
39 phydev->link = 0;
46 static int cortina_probe(struct phy_device *phydev) argument
[all...]
H A Dphy_device.c249 void phy_device_free(struct phy_device *phydev) argument
251 put_device(&phydev->mdio.dev);
257 struct phy_device *phydev; local
259 phydev = container_of(mdiodev, struct phy_device, mdio);
260 phy_device_free(phydev);
271 struct phy_device *phydev; local
273 phydev = container_of(mdiodev, struct phy_device, mdio);
274 phy_device_remove(phydev);
282 static bool mdio_bus_phy_may_suspend(struct phy_device *phydev) argument
284 struct device_driver *drv = phydev
323 struct phy_device *phydev = to_phy_device(dev); local
355 struct phy_device *phydev = to_phy_device(dev); local
500 phy_needs_fixup(struct phy_device *phydev, struct phy_fixup *fixup) argument
515 phy_scan_fixups(struct phy_device *phydev) argument
538 struct phy_device *phydev = to_phy_device(dev); local
568 struct phy_device *phydev = to_phy_device(dev); local
577 struct phy_device *phydev = to_phy_device(dev); local
593 struct phy_device *phydev = to_phy_device(dev); local
603 struct phy_device *phydev = to_phy_device(dev); local
999 phy_device_register(struct phy_device *phydev) argument
1042 phy_device_remove(struct phy_device *phydev) argument
1063 phy_get_c45_ids(struct phy_device *phydev) argument
1076 struct phy_device *phydev; local
1088 phy_link_change(struct phy_device *phydev, bool up) argument
1113 phy_prepare_link(struct phy_device *phydev, void (*handler)(struct net_device *)) argument
1126 phy_connect_direct(struct net_device *dev, struct phy_device *phydev, void (*handler)(struct net_device *), phy_interface_t interface) argument
1166 struct phy_device *phydev; local
1194 phy_disconnect(struct phy_device *phydev) argument
1226 phy_poll_reset(struct phy_device *phydev) argument
1242 phy_init_hw(struct phy_device *phydev) argument
1283 phy_attached_info(struct phy_device *phydev) argument
1290 phy_attached_info_irq(struct phy_device *phydev) argument
1312 phy_attached_print(struct phy_device *phydev, const char *fmt, ...) argument
1334 phy_sysfs_create_links(struct phy_device *phydev) argument
1366 struct phy_device *phydev = to_phy_device(dev); local
1381 struct phy_device *phydev = upstream; local
1398 struct phy_device *phydev = upstream; local
1411 phy_sfp_probe(struct phy_device *phydev, const struct sfp_upstream_ops *ops) argument
1451 phy_attach_direct(struct net_device *dev, struct phy_device *phydev, u32 flags, phy_interface_t interface) argument
1618 struct phy_device *phydev; local
1644 phy_driver_is_genphy_kind(struct phy_device *phydev, struct device_driver *driver) argument
1660 phy_driver_is_genphy(struct phy_device *phydev) argument
1667 phy_driver_is_genphy_10g(struct phy_device *phydev) argument
1702 phy_package_join(struct phy_device *phydev, int base_addr, size_t priv_size) argument
1768 of_phy_package_join(struct phy_device *phydev, size_t priv_size) argument
1813 phy_package_leave(struct phy_device *phydev) argument
1853 devm_phy_package_join(struct device *dev, struct phy_device *phydev, int base_addr, size_t priv_size) argument
1887 devm_of_phy_package_join(struct device *dev, struct phy_device *phydev, size_t priv_size) argument
1918 phy_detach(struct phy_device *phydev) argument
1976 phy_suspend(struct phy_device *phydev) argument
2003 __phy_resume(struct phy_device *phydev) argument
2021 phy_resume(struct phy_device *phydev) argument
2033 phy_loopback(struct phy_device *phydev, bool enable) argument
2077 phy_reset_after_clk_enable(struct phy_device *phydev) argument
2103 genphy_config_advert(struct phy_device *phydev) argument
2158 genphy_c37_config_advert(struct phy_device *phydev) argument
2190 genphy_config_eee_advert(struct phy_device *phydev) argument
2213 genphy_setup_forced(struct phy_device *phydev) argument
2227 genphy_setup_master_slave(struct phy_device *phydev) argument
2259 genphy_read_master_slave(struct phy_device *phydev) argument
2310 genphy_restart_aneg(struct phy_device *phydev) argument
2325 genphy_check_and_restart_aneg(struct phy_device *phydev, bool restart) argument
2357 __genphy_config_aneg(struct phy_device *phydev, bool changed) argument
2395 genphy_c37_config_aneg(struct phy_device *phydev) argument
2442 genphy_aneg_done(struct phy_device *phydev) argument
2458 genphy_update_link(struct phy_device *phydev) argument
2503 genphy_read_lpa(struct phy_device *phydev) argument
2557 genphy_read_status_fixed(struct phy_device *phydev) argument
2589 genphy_read_status(struct phy_device *phydev) argument
2642 genphy_c37_read_status(struct phy_device *phydev, bool *changed) argument
2704 genphy_soft_reset(struct phy_device *phydev) argument
2734 genphy_handle_interrupt_no_ack(struct phy_device *phydev) argument
2756 genphy_read_abilities(struct phy_device *phydev) argument
2819 genphy_suspend(struct phy_device *phydev) argument
2825 genphy_resume(struct phy_device *phydev) argument
2831 genphy_loopback(struct phy_device *phydev, bool enable) argument
2865 phy_remove_link_mode(struct phy_device *phydev, u32 link_mode) argument
2887 phy_advertise_supported(struct phy_device *phydev) argument
2907 phy_advertise_eee_all(struct phy_device *phydev) argument
2933 phy_support_eee(struct phy_device *phydev) argument
2948 phy_support_sym_pause(struct phy_device *phydev) argument
2961 phy_support_asym_pause(struct phy_device *phydev) argument
2978 phy_set_sym_pause(struct phy_device *phydev, bool rx, bool tx, bool autoneg) argument
3002 phy_set_asym_pause(struct phy_device *phydev, bool rx, bool tx) argument
3024 phy_validate_pause(struct phy_device *phydev, struct ethtool_pauseparam *pp) argument
3052 phy_get_pause(struct phy_device *phydev, bool *tx_pause, bool *rx_pause) argument
3101 phy_get_internal_delay(struct phy_device *phydev, struct device *dev, const int *delay_values, int size, bool is_rx) argument
3168 struct phy_device *phydev = phyled->phydev; local
3183 struct phy_device *phydev = phyled->phydev; local
3198 struct phy_device *phydev = phyled->phydev; local
3210 struct phy_device *phydev = phyled->phydev; local
3225 struct phy_device *phydev = phyled->phydev; local
3239 struct phy_device *phydev = phyled->phydev; local
3249 phy_leds_unregister(struct phy_device *phydev) argument
3258 of_phy_led(struct phy_device *phydev, struct device_node *led) argument
3329 of_phy_leds(struct phy_device *phydev) argument
3449 struct phy_device *phydev = to_phy_device(dev); local
3570 struct phy_device *phydev = to_phy_device(dev); local
[all...]
H A Dnational.c52 static u8 ns_exp_read(struct phy_device *phydev, u16 reg) argument
54 phy_write(phydev, NS_EXP_MEM_ADD, reg);
55 return phy_read(phydev, NS_EXP_MEM_DATA);
58 static void ns_exp_write(struct phy_device *phydev, u16 reg, u8 data) argument
60 phy_write(phydev, NS_EXP_MEM_ADD, reg);
61 phy_write(phydev, NS_EXP_MEM_DATA, data);
64 static int ns_ack_interrupt(struct phy_device *phydev) argument
66 int ret = phy_read(phydev, DP83865_INT_STATUS);
73 ret = phy_write(phydev, DP83865_INT_CLEAR, ret & ~0x7);
78 static irqreturn_t ns_handle_interrupt(struct phy_device *phydev) argument
99 ns_config_intr(struct phy_device *phydev) argument
121 ns_giga_speed_fallback(struct phy_device *phydev, int mode) argument
135 ns_10_base_t_hdx_loopack(struct phy_device *phydev, int disable) argument
150 ns_config_init(struct phy_device *phydev) argument
[all...]
H A Ddp83tg720.c32 static int dp83tg720_config_aneg(struct phy_device *phydev) argument
38 return genphy_c45_pma_baset1_setup_master_slave(phydev);
41 static int dp83tg720_read_status(struct phy_device *phydev) argument
46 phydev->pause = 0;
47 phydev->asym_pause = 0;
52 phy_sts = phy_read(phydev, DP83TG720S_MII_REG_10);
53 phydev->link = !!(phy_sts & DP83TG720S_LINK_STATUS);
54 if (!phydev->link) {
62 ret = phy_init_hw(phydev);
68 ret = dp83tg720_config_aneg(phydev);
90 dp83tg720_get_sqi(struct phy_device *phydev) argument
104 dp83tg720_get_sqi_max(struct phy_device *phydev) argument
109 dp83tg720_config_rgmii_delay(struct phy_device *phydev) argument
140 dp83tg720_config_init(struct phy_device *phydev) argument
[all...]
H A Dax88796b.c23 * @phydev: target phy_device struct
32 static int asix_soft_reset(struct phy_device *phydev) argument
37 ret = phy_write(phydev, MII_BMCR, 0);
41 return genphy_soft_reset(phydev);
48 static int asix_ax88772a_read_status(struct phy_device *phydev) argument
52 ret = genphy_update_link(phydev);
56 if (!phydev->link)
62 val = phy_read(phydev, MII_BMCR);
67 phydev->speed = SPEED_100;
69 phydev
86 asix_ax88772a_link_change_notify(struct phy_device *phydev) argument
[all...]
H A Dicplus.c94 static int ip175c_config_init(struct phy_device *phydev) argument
102 err = mdiobus_write(phydev->mdio.bus, 30, 0, 0x175c);
107 err = mdiobus_read(phydev->mdio.bus, 30, 0);
113 err = mdiobus_write(phydev->mdio.bus, 29, 31, 0x175c);
118 err = mdiobus_write(phydev->mdio.bus, 29, 22, 0x420);
124 err = mdiobus_write(phydev->mdio.bus, i,
131 err = mdiobus_read(phydev->mdio.bus, i, MII_BMCR);
138 if (phydev->mdio.addr != 4) {
139 phydev->state = PHY_RUNNING;
140 phydev
149 ip1001_config_init(struct phy_device *phydev) argument
185 ip175c_read_status(struct phy_device *phydev) argument
196 ip175c_config_aneg(struct phy_device *phydev) argument
204 ip101a_g_probe(struct phy_device *phydev) argument
235 ip101a_g_config_intr_pin(struct phy_device *phydev) argument
276 ip101a_config_init(struct phy_device *phydev) argument
288 ip101g_config_init(struct phy_device *phydev) argument
307 ip101a_g_read_status(struct phy_device *phydev) argument
349 ip101a_g_config_mdix(struct phy_device *phydev) argument
385 ip101a_g_config_aneg(struct phy_device *phydev) argument
396 ip101a_g_ack_interrupt(struct phy_device *phydev) argument
408 ip101a_g_config_intr(struct phy_device *phydev) argument
435 ip101a_g_handle_interrupt(struct phy_device *phydev) argument
459 ip101a_read_page(struct phy_device *phydev) argument
464 ip101a_write_page(struct phy_device *phydev, int page) argument
471 ip101g_read_page(struct phy_device *phydev) argument
476 ip101g_write_page(struct phy_device *phydev, int page) argument
481 ip101a_g_has_page_register(struct phy_device *phydev) argument
504 ip101a_g_match_phy_device(struct phy_device *phydev, bool ip101a) argument
523 ip101a_match_phy_device(struct phy_device *phydev) argument
528 ip101g_match_phy_device(struct phy_device *phydev) argument
533 ip101g_get_sset_count(struct phy_device *phydev) argument
538 ip101g_get_strings(struct phy_device *phydev, u8 *data) argument
547 ip101g_get_stat(struct phy_device *phydev, int i) argument
565 ip101g_get_stats(struct phy_device *phydev, struct ethtool_stats *stats, u64 *data) argument
[all...]
H A Dmotorcomm.c299 * @phydev: a pointer to a &struct phy_device
306 static int ytphy_read_ext(struct phy_device *phydev, u16 regnum) argument
310 ret = __phy_write(phydev, YTPHY_PAGE_SELECT, regnum);
314 return __phy_read(phydev, YTPHY_PAGE_DATA);
319 * @phydev: a pointer to a &struct phy_device
324 static int ytphy_read_ext_with_lock(struct phy_device *phydev, u16 regnum) argument
328 phy_lock_mdio_bus(phydev);
329 ret = ytphy_read_ext(phydev, regnum);
330 phy_unlock_mdio_bus(phydev);
337 * @phydev
345 ytphy_write_ext(struct phy_device *phydev, u16 regnum, u16 val) argument
364 ytphy_write_ext_with_lock(struct phy_device *phydev, u16 regnum, u16 val) argument
389 ytphy_modify_ext(struct phy_device *phydev, u16 regnum, u16 mask, u16 set) argument
413 ytphy_modify_ext_with_lock(struct phy_device *phydev, u16 regnum, u16 mask, u16 set) argument
432 ytphy_get_wol(struct phy_device *phydev, struct ethtool_wolinfo *wol) argument
459 ytphy_set_wol(struct phy_device *phydev, struct ethtool_wolinfo *wol) argument
531 yt8531_set_wol(struct phy_device *phydev, struct ethtool_wolinfo *wol) argument
586 yt8511_read_page(struct phy_device *phydev) argument
591 yt8511_write_page(struct phy_device *phydev, int page) argument
596 yt8511_config_init(struct phy_device *phydev) argument
666 yt8521_read_page(struct phy_device *phydev) argument
687 yt8521_write_page(struct phy_device *phydev, int page) argument
748 ytphy_get_delay_reg_value(struct phy_device *phydev, const char *prop_name, const struct ytphy_cfg_reg_map *tbl, int tb_size, u16 *rxc_dly_en, u32 dflt) argument
791 ytphy_rgmii_clk_delay_config(struct phy_device *phydev) argument
836 ytphy_rgmii_clk_delay_config_with_lock(struct phy_device *phydev) argument
878 yt8531_get_ldo_vol(struct phy_device *phydev) argument
888 yt8531_get_ds_map(struct phy_device *phydev, u32 cur) argument
902 yt8531_set_ds(struct phy_device *phydev) argument
957 yt8521_probe(struct phy_device *phydev) argument
1075 yt8531_probe(struct phy_device *phydev) argument
1120 ytphy_utp_read_lpa(struct phy_device *phydev) argument
1177 yt8521_adjust_status(struct phy_device *phydev, int status, bool is_utp) argument
1255 yt8521_read_status_paged(struct phy_device *phydev, int page) argument
1340 yt8521_read_status(struct phy_device *phydev) argument
1434 yt8521_modify_bmcr_paged(struct phy_device *phydev, int page, u16 mask, u16 set) argument
1479 yt8521_modify_utp_fiber_bmcr(struct phy_device *phydev, u16 mask, u16 set) argument
1510 yt8521_soft_reset(struct phy_device *phydev) argument
1521 yt8521_suspend(struct phy_device *phydev) argument
1543 yt8521_resume(struct phy_device *phydev) argument
1572 yt8521_config_init(struct phy_device *phydev) argument
1608 yt8531_config_init(struct phy_device *phydev) argument
1651 yt8531_link_change_notify(struct phy_device *phydev) argument
1706 yt8521_prepare_fiber_features(struct phy_device *phydev, unsigned long *dst) argument
1723 yt8521_fiber_setup_forced(struct phy_device *phydev) argument
1763 ytphy_check_and_restart_aneg(struct phy_device *phydev, bool restart) argument
1797 yt8521_fiber_config_aneg(struct phy_device *phydev) argument
1856 ytphy_setup_master_slave(struct phy_device *phydev) argument
1900 ytphy_utp_config_advert(struct phy_device *phydev) argument
1957 ytphy_utp_config_aneg(struct phy_device *phydev, bool changed) argument
1995 yt8521_config_aneg_paged(struct phy_device *phydev, int page) argument
2048 yt8521_config_aneg(struct phy_device *phydev) argument
2093 yt8521_aneg_done_paged(struct phy_device *phydev, int page) argument
2120 yt8521_aneg_done(struct phy_device *phydev) argument
2159 ytphy_utp_read_abilities(struct phy_device *phydev) argument
2207 yt8521_get_features_paged(struct phy_device *phydev, int page) argument
2236 yt8521_get_features(struct phy_device *phydev) argument
[all...]
/linux-master/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, argument
23 int oldpage = phy_select_page(phydev, 0x0007);
25 __phy_write(phydev, 0x1e, extpage);
26 __phy_modify(phydev, reg, mask, val);
28 phy_restore_page(phydev, oldpage, 0);
31 static void r8168d_phy_param(struct phy_device *phydev, u16 parm, argument
34 int oldpage = phy_select_page(phydev, 0x0005);
36 __phy_write(phydev, 0x05, parm);
37 __phy_modify(phydev,
42 r8168g_phy_param(struct phy_device *phydev, u16 parm, u16 mask, u16 val) argument
58 __rtl_writephy_batch(struct phy_device *phydev, const struct phy_reg *regs, int len) argument
73 rtl8168f_config_eee_phy(struct phy_device *phydev) argument
79 rtl8168g_config_eee_phy(struct phy_device *phydev) argument
84 rtl8168h_config_eee_phy(struct phy_device *phydev) argument
92 rtl8125a_config_eee_phy(struct phy_device *phydev) argument
100 rtl8125b_config_eee_phy(struct phy_device *phydev) argument
108 rtl8169s_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
176 rtl8169sb_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
182 rtl8169scd_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
228 rtl8169sce_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
282 rtl8168bb_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
291 rtl8168bef_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
297 rtl8168cp_1_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
304 rtl8168cp_2_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
312 rtl8168c_1_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
341 rtl8168c_2_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
369 rtl8168c_3_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
432 rtl8168d_apply_firmware_cond(struct rtl8169_private *tp, struct phy_device *phydev, u16 val) argument
449 rtl8168d_1_common(struct phy_device *phydev) argument
472 rtl8168d_1_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
506 rtl8168d_2_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
530 rtl8168d_4_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
538 rtl8168e_1_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
583 rtl8168e_2_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
625 rtl8168f_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
641 rtl8168f_1_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
669 rtl8168f_2_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
677 rtl8411_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
723 rtl8168g_disable_aldps(struct phy_device *phydev) argument
728 rtl8168g_enable_gphy_10m(struct phy_device *phydev) argument
733 rtl8168g_phy_adjust_10m_aldps(struct phy_device *phydev) argument
741 rtl8168g_1_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
789 rtl8168g_2_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
796 rtl8168h_2_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
836 rtl8168ep_2_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
886 rtl8117_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
923 rtl8102e_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
940 rtl8401_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
947 rtl8105e_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
961 rtl8402_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
977 rtl8106e_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
996 rtl8125_legacy_force_mode(struct phy_device *phydev) argument
1001 rtl8125a_2_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
1066 rtl8125b_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
1105 rtl8126a_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev) argument
1111 r8169_hw_phy_config(struct rtl8169_private *tp, struct phy_device *phydev, enum mac_version ver) argument
[all...]
/linux-master/drivers/net/phy/qcom/
H A Dqca808x.c98 static int qca808x_phy_fast_retrain_config(struct phy_device *phydev) argument
103 ret = genphy_c45_fast_retrain(phydev, true);
107 phy_write_mmd(phydev, MDIO_MMD_AN, QCA808X_PHY_MMD7_TOP_OPTION1,
109 phy_write_mmd(phydev, MDIO_MMD_PMAPMD, QCA808X_PHY_MMD1_MSE_THRESHOLD_20DB,
111 phy_write_mmd(phydev, MDIO_MMD_PMAPMD, QCA808X_PHY_MMD1_MSE_THRESHOLD_17DB,
113 phy_write_mmd(phydev, MDIO_MMD_PMAPMD, QCA808X_PHY_MMD1_MSE_THRESHOLD_27DB,
115 phy_write_mmd(phydev, MDIO_MMD_PMAPMD, QCA808X_PHY_MMD1_MSE_THRESHOLD_28DB,
117 phy_write_mmd(phydev, MDIO_MMD_PCS, QCA808X_PHY_MMD3_DEBUG_1,
119 phy_write_mmd(phydev, MDIO_MMD_PCS, QCA808X_PHY_MMD3_DEBUG_4,
121 phy_write_mmd(phydev, MDIO_MMD_PC
133 qca808x_phy_ms_seed_enable(struct phy_device *phydev, bool enable) argument
148 qca808x_is_prefer_master(struct phy_device *phydev) argument
154 qca808x_has_fast_retrain_or_slave_seed(struct phy_device *phydev) argument
159 qca808x_is_1g_only(struct phy_device *phydev) argument
170 qca808x_fill_possible_interfaces(struct phy_device *phydev) argument
180 qca808x_probe(struct phy_device *phydev) argument
197 qca808x_config_init(struct phy_device *phydev) argument
252 qca808x_read_status(struct phy_device *phydev) argument
303 qca808x_soft_reset(struct phy_device *phydev) argument
317 qca808x_cable_test_start(struct phy_device *phydev) argument
358 qca808x_get_features(struct phy_device *phydev) argument
382 qca808x_config_aneg(struct phy_device *phydev) argument
408 qca808x_link_change_notify(struct phy_device *phydev) argument
419 qca808x_led_parse_netdev(struct phy_device *phydev, unsigned long rules, u16 *offload_trigger) argument
451 qca808x_led_hw_control_enable(struct phy_device *phydev, u8 index) argument
462 qca808x_led_hw_is_supported(struct phy_device *phydev, u8 index, unsigned long rules) argument
473 qca808x_led_hw_control_set(struct phy_device *phydev, u8 index, unsigned long rules) argument
497 qca808x_led_hw_control_status(struct phy_device *phydev, u8 index) argument
508 qca808x_led_hw_control_get(struct phy_device *phydev, u8 index, unsigned long *rules) argument
544 qca808x_led_hw_control_reset(struct phy_device *phydev, u8 index) argument
557 qca808x_led_brightness_set(struct phy_device *phydev, u8 index, enum led_brightness value) argument
576 qca808x_led_blink_set(struct phy_device *phydev, u8 index, unsigned long *delay_on, unsigned long *delay_off) argument
589 qca808x_led_polarity_set(struct phy_device *phydev, int index, unsigned long modes) argument
[all...]
H A Dqcom-phy-lib.c17 int at803x_debug_reg_read(struct phy_device *phydev, u16 reg) argument
21 ret = phy_write(phydev, AT803X_DEBUG_ADDR, reg);
25 return phy_read(phydev, AT803X_DEBUG_DATA);
29 int at803x_debug_reg_mask(struct phy_device *phydev, u16 reg, argument
35 ret = at803x_debug_reg_read(phydev, reg);
43 return phy_write(phydev, AT803X_DEBUG_DATA, val);
47 int at803x_debug_reg_write(struct phy_device *phydev, u16 reg, u16 data) argument
51 ret = phy_write(phydev, AT803X_DEBUG_ADDR, reg);
55 return phy_write(phydev, AT803X_DEBUG_DATA, data);
59 int at803x_set_wol(struct phy_device *phydev, argument
118 at803x_get_wol(struct phy_device *phydev, struct ethtool_wolinfo *wol) argument
135 at803x_ack_interrupt(struct phy_device *phydev) argument
145 at803x_config_intr(struct phy_device *phydev) argument
178 at803x_handle_interrupt(struct phy_device *phydev) argument
205 at803x_read_specific_status(struct phy_device *phydev, struct at803x_ss_mask ss_mask) argument
269 at803x_config_mdix(struct phy_device *phydev, u8 ctrl) argument
293 at803x_prepare_config_aneg(struct phy_device *phydev) argument
315 at803x_read_status(struct phy_device *phydev) argument
351 at803x_get_downshift(struct phy_device *phydev, u8 *d) argument
367 at803x_set_downshift(struct phy_device *phydev, u8 cnt) argument
403 at803x_get_tunable(struct phy_device *phydev, struct ethtool_tunable *tuna, void *data) argument
415 at803x_set_tunable(struct phy_device *phydev, struct ethtool_tunable *tuna, const void *data) argument
448 at803x_cdt_start(struct phy_device *phydev, u32 cdt_start) argument
454 at803x_cdt_wait_for_completion(struct phy_device *phydev, u32 cdt_en) argument
513 qca808x_cdt_fault_length(struct phy_device *phydev, int pair, int result) argument
548 qca808x_cable_test_get_pair_status(struct phy_device *phydev, u8 pair, u16 status) argument
582 qca808x_cable_test_get_status(struct phy_device *phydev, bool *finished) argument
624 qca808x_led_reg_hw_control_enable(struct phy_device *phydev, u16 reg) argument
631 qca808x_led_reg_hw_control_status(struct phy_device *phydev, u16 reg) argument
640 qca808x_led_reg_brightness_set(struct phy_device *phydev, u16 reg, enum led_brightness value) argument
650 qca808x_led_reg_blink_set(struct phy_device *phydev, u16 reg, unsigned long *delay_on, unsigned long *delay_off) argument
[all...]
/linux-master/include/linux/
H A Dphy.h82 * Set phydev->irq to PHY_POLL if interrupts are not supported,
341 * Represents a shared structure between different phydev's in the same
770 void (*phy_link_change)(struct phy_device *phydev, bool up);
878 * @phydev: PHY this LED is attached to
884 struct phy_device *phydev; member in struct:phy_led
926 int (*soft_reset)(struct phy_device *phydev);
932 int (*config_init)(struct phy_device *phydev);
938 int (*probe)(struct phy_device *phydev);
942 * abilities it has. Should only set phydev->supported.
944 int (*get_features)(struct phy_device *phydev);
1214 phydev_id_compare(struct phy_device *phydev, u32 id) argument
1256 phy_is_started(struct phy_device *phydev) argument
1274 phy_read(struct phy_device *phydev, u32 regnum) argument
1300 __phy_read(struct phy_device *phydev, u32 regnum) argument
1315 phy_write(struct phy_device *phydev, u32 regnum, u16 val) argument
1328 __phy_write(struct phy_device *phydev, u32 regnum, u16 val) argument
1346 __phy_modify_changed(struct phy_device *phydev, u32 regnum, u16 mask, u16 set) argument
1434 __phy_set_bits(struct phy_device *phydev, u32 regnum, u16 val) argument
1447 __phy_clear_bits(struct phy_device *phydev, u32 regnum, u16 val) argument
1459 phy_set_bits(struct phy_device *phydev, u32 regnum, u16 val) argument
1470 phy_clear_bits(struct phy_device *phydev, u32 regnum, u16 val) argument
1485 __phy_set_bits_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val) argument
1501 __phy_clear_bits_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val) argument
1515 phy_set_bits_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val) argument
1529 phy_clear_bits_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val) argument
1542 phy_interrupt_is_valid(struct phy_device *phydev) argument
1552 phy_polling_mode(struct phy_device *phydev) argument
1565 phy_has_hwtstamp(struct phy_device *phydev) argument
1574 phy_has_rxtstamp(struct phy_device *phydev) argument
1584 phy_has_tsinfo(struct phy_device *phydev) argument
1593 phy_has_txtstamp(struct phy_device *phydev) argument
1598 phy_hwtstamp(struct phy_device *phydev, struct kernel_hwtstamp_config *cfg, struct netlink_ext_ack *extack) argument
1605 phy_rxtstamp(struct phy_device *phydev, struct sk_buff *skb, int type) argument
1611 phy_ts_info(struct phy_device *phydev, struct ethtool_ts_info *tsinfo) argument
1617 phy_txtstamp(struct phy_device *phydev, struct sk_buff *skb, int type) argument
1627 phy_is_internal(struct phy_device *phydev) argument
1636 phy_on_sfp(struct phy_device *phydev) argument
1671 phy_interface_is_rgmii(struct phy_device *phydev) argument
1681 phy_is_pseudo_fixed_link(struct phy_device *phydev) argument
1747 phy_device_free(struct phy_device *phydev) argument
1794 phy_start_cable_test(struct phy_device *phydev, struct netlink_ext_ack *extack) argument
1801 phy_start_cable_test_tdr(struct phy_device *phydev, struct netlink_ext_ack *extack, const struct phy_tdr_config *config) argument
1810 phy_device_reset(struct phy_device *phydev, int value) argument
1830 phydev_name(const struct phy_device *phydev) argument
1835 phy_lock_mdio_bus(struct phy_device *phydev) argument
1840 phy_unlock_mdio_bus(struct phy_device *phydev) argument
1870 genphy_config_aneg(struct phy_device *phydev) argument
1875 genphy_no_config_intr(struct phy_device *phydev) argument
1934 phy_read_status(struct phy_device *phydev) argument
2042 phy_package_address(struct phy_device *phydev, unsigned int addr_offset) argument
2057 phy_package_read(struct phy_device *phydev, unsigned int addr_offset, u32 regnum) argument
2068 __phy_package_read(struct phy_device *phydev, unsigned int addr_offset, u32 regnum) argument
2079 phy_package_write(struct phy_device *phydev, unsigned int addr_offset, u32 regnum, u16 val) argument
2091 __phy_package_write(struct phy_device *phydev, unsigned int addr_offset, u32 regnum, u16 val) argument
2119 __phy_package_set_once(struct phy_device *phydev, unsigned int b) argument
2130 phy_package_init_once(struct phy_device *phydev) argument
2135 phy_package_probe_once(struct phy_device *phydev) argument
[all...]

Completed in 270 milliseconds

1234567891011