Home
last modified time | relevance | path

Searched refs:phy_data (Results 1 – 25 of 51) sorted by relevance

123

/linux/drivers/net/ethernet/atheros/atl1c/
H A Datl1c_hw.c75 u16 phy_data; in atl1c_get_permanent_address() local
96 atl1c_read_phy_dbg(hw, MIIDBG_ANACTRL, &phy_data); in atl1c_get_permanent_address()
97 phy_data &= ~ANACTRL_HB_EN; in atl1c_get_permanent_address()
98 atl1c_write_phy_dbg(hw, MIIDBG_ANACTRL, phy_data); in atl1c_get_permanent_address()
99 atl1c_read_phy_dbg(hw, MIIDBG_VOLT_CTRL, &phy_data); in atl1c_get_permanent_address()
100 phy_data |= VOLT_CTRL_SWLOWEST; in atl1c_get_permanent_address()
101 atl1c_write_phy_dbg(hw, MIIDBG_VOLT_CTRL, phy_data); in atl1c_get_permanent_address()
125 atl1c_read_phy_dbg(hw, MIIDBG_ANACTRL, &phy_data); in atl1c_get_permanent_address()
126 phy_data |= ANACTRL_HB_EN; in atl1c_get_permanent_address()
127 atl1c_write_phy_dbg(hw, MIIDBG_ANACTRL, phy_data); in atl1c_get_permanent_address()
[all …]
H A Datl1c_ethtool.c132 u16 phy_data; in atl1c_get_regs() local
160 atl1c_read_phy_reg(hw, MII_BMCR, &phy_data); in atl1c_get_regs()
161 regs_buff[AT_REGS_LEN/sizeof(u32) - 2] = (u32) phy_data; in atl1c_get_regs()
162 atl1c_read_phy_reg(hw, MII_BMSR, &phy_data); in atl1c_get_regs()
163 regs_buff[AT_REGS_LEN/sizeof(u32) - 1] = (u32) phy_data; in atl1c_get_regs()
H A Datl1c_hw.h33 int atl1c_read_phy_reg(struct atl1c_hw *hw, u16 reg_addr, u16 *phy_data);
34 int atl1c_write_phy_reg(struct atl1c_hw *hw, u32 reg_addr, u16 phy_data);
45 u16 reg, u16 *phy_data);
47 u16 reg, u16 phy_data);
49 u16 reg_addr, u16 *phy_data);
51 u16 reg_addr, u16 phy_data);
52 int atl1c_read_phy_dbg(struct atl1c_hw *hw, u16 reg_addr, u16 *phy_data);
53 int atl1c_write_phy_dbg(struct atl1c_hw *hw, u16 reg_addr, u16 phy_data);
/linux/drivers/net/ethernet/intel/igb/
H A De1000_phy.c459 u16 phy_data; in igb_copper_link_setup_82580() local
475 ret_val = phy->ops.read_reg(hw, I82580_CFG_REG, &phy_data); in igb_copper_link_setup_82580()
479 phy_data |= I82580_CFG_ASSERT_CRS_ON_TX; in igb_copper_link_setup_82580()
482 phy_data |= I82580_CFG_ENABLE_DOWNSHIFT; in igb_copper_link_setup_82580()
484 ret_val = phy->ops.write_reg(hw, I82580_CFG_REG, phy_data); in igb_copper_link_setup_82580()
489 ret_val = phy->ops.read_reg(hw, I82580_PHY_CTRL_2, &phy_data); in igb_copper_link_setup_82580()
492 phy_data &= ~I82580_PHY_CTRL2_MDIX_CFG_MASK; in igb_copper_link_setup_82580()
502 phy_data |= I82580_PHY_CTRL2_MANUAL_MDIX; in igb_copper_link_setup_82580()
506 phy_data |= I82580_PHY_CTRL2_AUTO_MDI_MDIX; in igb_copper_link_setup_82580()
509 ret_val = hw->phy.ops.write_reg(hw, I82580_PHY_CTRL_2, phy_data); in igb_copper_link_setup_82580()
[all …]
/linux/drivers/net/ethernet/sfc/falcon/
H A Dqt202x_phy.c162 struct qt202x_phy_data *phy_data = efx->phy_data; in qt2025c_firmware_id() local
175 phy_data->firmware_ver = ((firmware_id[3] & 0xf0) << 20) | in qt2025c_firmware_id()
182 struct qt202x_phy_data *phy_data = efx->phy_data; in qt2025c_bug17190_workaround() local
192 phy_data->bug17190_in_bad_state = false; in qt2025c_bug17190_workaround()
196 if (!phy_data->bug17190_in_bad_state) { in qt2025c_bug17190_workaround()
197 phy_data->bug17190_in_bad_state = true; in qt2025c_bug17190_workaround()
198 phy_data->bug17190_timer = jiffies + BUG17190_INTERVAL; in qt2025c_bug17190_workaround()
202 if (time_after_eq(jiffies, phy_data->bug17190_timer)) { in qt2025c_bug17190_workaround()
209 phy_data->bug17190_timer = jiffies + BUG17190_INTERVAL; in qt2025c_bug17190_workaround()
215 struct qt202x_phy_data *phy_data = efx->phy_data; in qt2025c_select_phy_mode() local
[all …]
H A Dtenxpress.c165 struct tenxpress_phy_data *phy_data; in tenxpress_phy_probe() local
168 phy_data = kzalloc(sizeof(*phy_data), GFP_KERNEL); in tenxpress_phy_probe()
169 if (!phy_data) in tenxpress_phy_probe()
171 efx->phy_data = phy_data; in tenxpress_phy_probe()
172 phy_data->phy_mode = efx->phy_mode; in tenxpress_phy_probe()
255 struct tenxpress_phy_data *pd = efx->phy_data; in sfx7101_check_bad_lp()
321 struct tenxpress_phy_data *phy_data = efx->phy_data; in tenxpress_phy_reconfigure() local
325 phy_data->phy_mode = efx->phy_mode; in tenxpress_phy_reconfigure()
330 phy_data->phy_mode != PHY_MODE_NORMAL); in tenxpress_phy_reconfigure()
331 loop_reset = (LOOPBACK_OUT_OF(phy_data, efx, LOOPBACKS_EXTERNAL(efx)) || in tenxpress_phy_reconfigure()
[all …]
H A Dtxc43128_phy.c323 struct txc43128_data *phy_data; in txc43128_phy_probe() local
326 phy_data = kzalloc(sizeof(*phy_data), GFP_KERNEL); in txc43128_phy_probe()
327 if (!phy_data) in txc43128_phy_probe()
329 efx->phy_data = phy_data; in txc43128_phy_probe()
330 phy_data->phy_mode = efx->phy_mode; in txc43128_phy_probe()
446 struct txc43128_data *phy_data = efx->phy_data; in txc43128_phy_reconfigure() local
447 enum ef4_phy_mode mode_change = efx->phy_mode ^ phy_data->phy_mode; in txc43128_phy_reconfigure()
448 bool loop_change = LOOPBACK_CHANGED(phy_data, efx, TXC_LOOPBACKS); in txc43128_phy_reconfigure()
469 phy_data->phy_mode = efx->phy_mode; in txc43128_phy_reconfigure()
470 phy_data->loopback_mode = efx->loopback_mode; in txc43128_phy_reconfigure()
[all …]
/linux/drivers/net/ethernet/intel/e1000e/
H A Dphy.c629 u16 phy_data; in e1000_set_master_slave_mode() local
632 ret_val = e1e_rphy(hw, MII_CTRL1000, &phy_data); in e1000_set_master_slave_mode()
637 hw->phy.original_ms_type = (phy_data & CTL1000_ENABLE_MASTER) ? in e1000_set_master_slave_mode()
638 ((phy_data & CTL1000_AS_MASTER) ? in e1000_set_master_slave_mode()
643 phy_data |= (CTL1000_ENABLE_MASTER | CTL1000_AS_MASTER); in e1000_set_master_slave_mode()
646 phy_data |= CTL1000_ENABLE_MASTER; in e1000_set_master_slave_mode()
647 phy_data &= ~(CTL1000_AS_MASTER); in e1000_set_master_slave_mode()
650 phy_data &= ~CTL1000_ENABLE_MASTER; in e1000_set_master_slave_mode()
656 return e1e_wphy(hw, MII_CTRL1000, phy_data); in e1000_set_master_slave_mode()
668 u16 phy_data; in e1000_copper_link_setup_82577() local
[all …]
H A D80003es2lan.c523 u16 phy_data; in e1000_phy_force_speed_duplex_80003es2lan() local
529 ret_val = e1e_rphy(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); in e1000_phy_force_speed_duplex_80003es2lan()
533 phy_data &= ~GG82563_PSCR_CROSSOVER_MODE_AUTO; in e1000_phy_force_speed_duplex_80003es2lan()
534 ret_val = e1e_wphy(hw, GG82563_PHY_SPEC_CTRL, phy_data); in e1000_phy_force_speed_duplex_80003es2lan()
538 e_dbg("GG82563 PSCR: %X\n", phy_data); in e1000_phy_force_speed_duplex_80003es2lan()
540 ret_val = e1e_rphy(hw, MII_BMCR, &phy_data); in e1000_phy_force_speed_duplex_80003es2lan()
544 e1000e_phy_force_speed_duplex_setup(hw, &phy_data); in e1000_phy_force_speed_duplex_80003es2lan()
547 phy_data |= BMCR_RESET; in e1000_phy_force_speed_duplex_80003es2lan()
549 ret_val = e1e_wphy(hw, MII_BMCR, phy_data); in e1000_phy_force_speed_duplex_80003es2lan()
579 ret_val = e1e_rphy(hw, GG82563_PHY_MAC_SPEC_CTRL, &phy_data); in e1000_phy_force_speed_duplex_80003es2lan()
[all …]
/linux/drivers/net/ethernet/sfc/siena/
H A Dmcdi_port_common.c235 struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; in efx_get_mcdi_phy_flags()
377 struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; in efx_mcdi_phy_check_fcntl()
427 struct efx_mcdi_phy_data *phy_data; in efx_siena_mcdi_phy_probe() local
433 phy_data = kzalloc(sizeof(*phy_data), GFP_KERNEL); in efx_siena_mcdi_phy_probe()
434 if (phy_data == NULL) in efx_siena_mcdi_phy_probe()
437 rc = efx_mcdi_get_phy_cfg(efx, phy_data); in efx_siena_mcdi_phy_probe()
449 efx->phy_data = phy_data; in efx_siena_mcdi_phy_probe()
450 efx->phy_type = phy_data->type; in efx_siena_mcdi_phy_probe()
452 efx->mdio_bus = phy_data->channel; in efx_siena_mcdi_phy_probe()
453 efx->mdio.prtad = phy_data->port; in efx_siena_mcdi_phy_probe()
[all …]
/linux/drivers/net/ethernet/sfc/
H A Dmcdi_port_common.c234 struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; in efx_get_mcdi_phy_flags()
376 struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; in efx_mcdi_phy_check_fcntl()
426 struct efx_mcdi_phy_data *phy_data; in efx_mcdi_phy_probe() local
432 phy_data = kzalloc(sizeof(*phy_data), GFP_KERNEL); in efx_mcdi_phy_probe()
433 if (phy_data == NULL) in efx_mcdi_phy_probe()
436 rc = efx_mcdi_get_phy_cfg(efx, phy_data); in efx_mcdi_phy_probe()
448 efx->phy_data = phy_data; in efx_mcdi_phy_probe()
449 efx->phy_type = phy_data->type; in efx_mcdi_phy_probe()
453 mcdi_to_ethtool_linkset(phy_data->media, caps, in efx_mcdi_phy_probe()
456 phy_data->forced_cap = caps; in efx_mcdi_phy_probe()
[all …]
H A Dmcdi_port.c23 struct efx_mcdi_phy_data *phy_data = efx->phy_data; in efx_mcdi_phy_get_caps() local
25 return phy_data->supported_cap; in efx_mcdi_phy_get_caps()
/linux/drivers/phy/renesas/
H A Dphy-rcar-gen3-usb2.c133 const struct rcar_gen3_phy_drv_data *phy_data; member
214 if (ch->phy_data->no_adp_ctrl || ch->phy_data->vblvl_ctrl) { in rcar_gen3_enable_vbus_ctrl()
237 val |= ch->phy_data->obint_enable_bits; in rcar_gen3_control_otg_irq()
239 val &= ~ch->phy_data->obint_enable_bits; in rcar_gen3_control_otg_irq()
298 if (ch->phy_data->vblvl_ctrl) { in rcar_gen3_check_id()
311 if (ch->phy_data->no_adp_ctrl) in rcar_gen3_check_id()
442 if (!ch->phy_data->no_adp_ctrl) { in rcar_gen3_init_otg()
443 if (ch->phy_data->vblvl_ctrl) { in rcar_gen3_init_otg()
461 writel(ch->phy_data->obint_enable_bits, usb2_base + USB2_OBINTEN); in rcar_gen3_init_otg()
471 if (!ch->phy_data->vblvl_ctrl) in rcar_gen3_configure_vblvl_ctrl()
[all …]
/linux/drivers/net/ethernet/atheros/atlx/
H A Datlx.c31 static s32 atlx_read_phy_reg(struct atl1_hw *hw, u16 reg_addr, u16 *phy_data);
82 u16 phy_data = 0; in atlx_check_for_link() local
86 atlx_read_phy_reg(&adapter->hw, MII_BMSR, &phy_data); in atlx_check_for_link()
87 atlx_read_phy_reg(&adapter->hw, MII_BMSR, &phy_data); in atlx_check_for_link()
91 if (!(phy_data & BMSR_LSTATUS)) { in atlx_check_for_link()
174 u16 phy_data; in atlx_clear_phy_int() local
178 atlx_read_phy_reg(&adapter->hw, 19, &phy_data); in atlx_clear_phy_int()
H A Datl1.c340 static s32 atl1_read_phy_reg(struct atl1_hw *hw, u16 reg_addr, u16 *phy_data) in atl1_read_phy_reg() argument
358 *phy_data = (u16) val; in atl1_read_phy_reg()
587 static s32 atl1_write_phy_reg(struct atl1_hw *hw, u32 reg_addr, u16 phy_data) in atl1_write_phy_reg() argument
592 val = ((u32) (phy_data & MDIO_DATA_MASK)) << MDIO_DATA_SHIFT | in atl1_write_phy_reg()
638 u16 phy_data; in atl1_phy_reset() local
642 phy_data = MII_CR_RESET | MII_CR_AUTO_NEG_EN; in atl1_phy_reset()
646 phy_data = in atl1_phy_reset()
651 phy_data = MII_CR_SPEED_100 | MII_CR_RESET; in atl1_phy_reset()
654 phy_data = in atl1_phy_reset()
659 phy_data = MII_CR_SPEED_10 | MII_CR_RESET; in atl1_phy_reset()
[all …]
H A Datl2.c550 u16 phy_data = 0; in atl2_check_for_link() local
553 atl2_read_phy_reg(&adapter->hw, MII_BMSR, &phy_data); in atl2_check_for_link()
554 atl2_read_phy_reg(&adapter->hw, MII_BMSR, &phy_data); in atl2_check_for_link()
558 if (!(phy_data & BMSR_LSTATUS)) { /* Link Down */ in atl2_check_for_link()
572 u16 phy_data; in atl2_clear_phy_int() local
574 atl2_read_phy_reg(&adapter->hw, 19, &phy_data); in atl2_clear_phy_int()
1150 u16 speed, duplex, phy_data; in atl2_check_link() local
1154 atl2_read_phy_reg(hw, MII_BMSR, &phy_data); in atl2_check_link()
1155 atl2_read_phy_reg(hw, MII_BMSR, &phy_data); in atl2_check_link()
1156 if (!(phy_data&BMSR_LSTATUS)) { /* link down */ in atl2_check_link()
[all …]
/linux/drivers/net/ethernet/atheros/atl1e/
H A Datl1e_hw.c200 int atl1e_read_phy_reg(struct atl1e_hw *hw, u16 reg_addr, u16 *phy_data) in atl1e_read_phy_reg() argument
221 *phy_data = (u16)val; in atl1e_read_phy_reg()
234 int atl1e_write_phy_reg(struct atl1e_hw *hw, u32 reg_addr, u16 phy_data) in atl1e_write_phy_reg() argument
239 val = ((u32)(phy_data & MDIO_DATA_MASK)) << MDIO_DATA_SHIFT | in atl1e_write_phy_reg()
378 u16 phy_data; in atl1e_phy_commit() local
380 phy_data = BMCR_RESET | BMCR_ANENABLE | BMCR_ANRESTART; in atl1e_phy_commit()
382 ret_val = atl1e_write_phy_reg(hw, MII_BMCR, phy_data); in atl1e_phy_commit()
586 u16 phy_data; in atl1e_get_speed_and_duplex() local
589 err = atl1e_read_phy_reg(hw, MII_AT001_PSSR, &phy_data); in atl1e_get_speed_and_duplex()
593 if (!(phy_data & MII_AT001_PSSR_SPD_DPLX_RESOLVED)) in atl1e_get_speed_and_duplex()
[all …]
H A Datl1e_ethtool.c151 u16 phy_data; in atl1e_get_regs() local
188 atl1e_read_phy_reg(hw, MII_BMCR, &phy_data); in atl1e_get_regs()
189 regs_buff[73] = (u32)phy_data; in atl1e_get_regs()
190 atl1e_read_phy_reg(hw, MII_BMSR, &phy_data); in atl1e_get_regs()
191 regs_buff[74] = (u32)phy_data; in atl1e_get_regs()
/linux/drivers/phy/ti/
H A Dphy-omap-usb2.c382 const struct usb_phy_data *phy_data; in omap_usb2_probe() local
385 phy_data = device_get_match_data(&pdev->dev); in omap_usb2_probe()
386 if (!phy_data) in omap_usb2_probe()
400 phy->phy.label = phy_data->label; in omap_usb2_probe()
403 phy->mask = phy_data->mask; in omap_usb2_probe()
404 phy->power_on = phy_data->power_on; in omap_usb2_probe()
405 phy->power_off = phy_data->power_off; in omap_usb2_probe()
406 phy->flags = phy_data->flags; in omap_usb2_probe()
487 if (phy_data->flags & OMAP_USB2_HAS_SET_VBUS) in omap_usb2_probe()
489 if (phy_data->flags & OMAP_USB2_HAS_START_SRP) in omap_usb2_probe()
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_phy.h131 u32 device_type, u16 *phy_data);
133 u32 device_type, u16 phy_data);
135 u32 device_type, u16 *phy_data);
137 u32 device_type, u16 phy_data);
H A Dixgbe_phy.c474 u16 *phy_data) in ixgbe_read_phy_reg_mdi() argument
536 *phy_data = (u16)(data); in ixgbe_read_phy_reg_mdi()
550 u32 device_type, u16 *phy_data) in ixgbe_read_phy_reg_generic() argument
557 phy_data); in ixgbe_read_phy_reg_generic()
575 u16 phy_data) in ixgbe_write_phy_reg_mdi() argument
580 IXGBE_WRITE_REG(hw, IXGBE_MSRWD, (u32)phy_data); in ixgbe_write_phy_reg_mdi()
648 u32 device_type, u16 phy_data) in ixgbe_write_phy_reg_generic() argument
655 phy_data); in ixgbe_write_phy_reg_generic()
1286 u16 phy_data = 0; in ixgbe_check_phy_link_tnx() local
1304 &phy_data); in ixgbe_check_phy_link_tnx()
[all …]
/linux/drivers/gpu/drm/rockchip/
H A Ddw_hdmi-rockchip.c427 .phy_data = &rk3228_chip_data,
445 .phy_data = &rk3288_chip_data,
463 .phy_data = &rk3328_chip_data,
482 .phy_data = &rk3399_chip_data,
496 .phy_data = &rk3568_chip_data,
546 hdmi->chip_data = plat_data->phy_data; in dw_hdmi_rockchip_bind()
547 plat_data->phy_data = hdmi; in dw_hdmi_rockchip_bind()
/linux/drivers/net/ethernet/atheros/alx/
H A Dhw.c62 u16 reg, u16 *phy_data) in alx_read_phy_core() argument
67 *phy_data = 0; in alx_read_phy_core()
94 *phy_data = ALX_GET_FIELD(val, ALX_MDIO_DATA); in alx_read_phy_core()
99 u16 reg, u16 phy_data) in alx_write_phy_core() argument
115 phy_data << ALX_MDIO_DATA_SHIFT | in alx_write_phy_core()
121 phy_data << ALX_MDIO_DATA_SHIFT | in alx_write_phy_core()
129 static int __alx_read_phy_reg(struct alx_hw *hw, u16 reg, u16 *phy_data) in __alx_read_phy_reg() argument
131 return alx_read_phy_core(hw, false, 0, reg, phy_data); in __alx_read_phy_reg()
134 static int __alx_write_phy_reg(struct alx_hw *hw, u16 reg, u16 phy_data) in __alx_write_phy_reg() argument
136 return alx_write_phy_core(hw, false, 0, reg, phy_data); in __alx_write_phy_reg()
[all …]
/linux/drivers/ata/
H A Dsata_highbank.c338 struct of_phandle_args phy_data; in highbank_initialize_phys() local
341 port, &phy_data)) in highbank_initialize_phys()
344 if (phy_nodes[phy] == phy_data.np) in highbank_initialize_phys()
348 phy_nodes[phy] = phy_data.np; in highbank_initialize_phys()
351 of_node_put(phy_data.np); in highbank_initialize_phys()
356 port_data[port].lane_mapping = phy_data.args[0]; in highbank_initialize_phys()
360 of_node_put(phy_data.np); in highbank_initialize_phys()
/linux/drivers/phy/allwinner/
H A Dphy-sun4i-usb.c182 struct sun4i_usb_phy_data *phy_data = to_sun4i_usb_phy_data(phy); in sun4i_usb_phy_write() local
184 void __iomem *phyctl = phy_data->base + phy_data->cfg->phyctl_offset; in sun4i_usb_phy_write()
188 spin_lock_irqsave(&phy_data->reg_lock, flags); in sun4i_usb_phy_write()
190 if (phy_data->cfg->phyctl_offset == REG_PHYCTL_A33) { in sun4i_usb_phy_write()
226 spin_unlock_irqrestore(&phy_data->reg_lock, flags); in sun4i_usb_phy_write()
231 struct sun4i_usb_phy_data *phy_data = to_sun4i_usb_phy_data(phy); in sun4i_usb_phy_passby() local
241 if (phy_data->cfg->hsic_index && in sun4i_usb_phy_passby()
242 phy->index == phy_data->cfg->hsic_index) in sun4i_usb_phy_passby()

123