Home
last modified time | relevance | path

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

123

/linux/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-phy-v2.c296 struct xgbe_phy_data *phy_data = pdata->phy_data; in xgbe_phy_redrv_write() local
321 i2c_op.target = phy_data->redrv_addr; in xgbe_phy_redrv_write()
335 i2c_op.target = phy_data->redrv_addr; in xgbe_phy_redrv_write()
413 struct xgbe_phy_data *phy_data = pdata->phy_data; in xgbe_phy_sfp_put_mux() local
417 if (phy_data->sfp_comm == XGBE_SFP_COMM_DIRECT) in xgbe_phy_sfp_put_mux()
423 i2c_op.target = phy_data->sfp_mux_address; in xgbe_phy_sfp_put_mux()
432 struct xgbe_phy_data *phy_data = pdata->phy_data; in xgbe_phy_sfp_get_mux() local
436 if (phy_data->sfp_comm == XGBE_SFP_COMM_DIRECT) in xgbe_phy_sfp_get_mux()
440 mux_channel = 1 << phy_data->sfp_mux_channel; in xgbe_phy_sfp_get_mux()
442 i2c_op.target = phy_data->sfp_mux_address; in xgbe_phy_sfp_get_mux()
[all …]
/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_obj(*phy_data); 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_obj(*phy_data); 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 …]
H A Dnetdev.c3070 u16 phy_data; in e1000_setup_rctl() local
3072 e1e_rphy(hw, PHY_REG(770, 26), &phy_data); in e1000_setup_rctl()
3073 phy_data &= 0xfff8; in e1000_setup_rctl()
3074 phy_data |= BIT(2); in e1000_setup_rctl()
3075 e1e_wphy(hw, PHY_REG(770, 26), phy_data); in e1000_setup_rctl()
3077 e1e_rphy(hw, 22, &phy_data); in e1000_setup_rctl()
3078 phy_data &= 0x0fff; in e1000_setup_rctl()
3079 phy_data |= BIT(14); in e1000_setup_rctl()
3082 e1e_wphy(hw, 22, phy_data); in e1000_setup_rctl()
4188 u16 phy_data = 0; in e1000e_reset() local
[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_obj(*phy_data); 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_obj(*phy_data); 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/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/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/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/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/net/ethernet/intel/e1000/
H A De1000_ethtool.c330 u16 phy_data; in e1000_get_regs() local
356 IGP01E1000_PHY_PAGE_SELECT, &phy_data); in e1000_get_regs()
357 regs_buff[13] = (u32)phy_data; /* cable length */ in e1000_get_regs()
361 IGP01E1000_PHY_PAGE_SELECT, &phy_data); in e1000_get_regs()
362 regs_buff[14] = (u32)phy_data; /* cable length */ in e1000_get_regs()
366 IGP01E1000_PHY_PAGE_SELECT, &phy_data); in e1000_get_regs()
367 regs_buff[15] = (u32)phy_data; /* cable length */ in e1000_get_regs()
371 IGP01E1000_PHY_PAGE_SELECT, &phy_data); in e1000_get_regs()
372 regs_buff[16] = (u32)phy_data; /* cable length */ in e1000_get_regs()
376 IGP01E1000_PHY_PAGE_SELECT, &phy_data); in e1000_get_regs()
[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/net/ethernet/dec/tulip/
H A Ddmfe.c1770 u16 phy_data, u32 chip_id) in dmfe_phy_write() argument
1775 dw16(0x80 + offset * 4, phy_data); in dmfe_phy_write()
1808 phy_data & i ? PHY_DATA_1 : PHY_DATA_0); in dmfe_phy_write()
1820 u16 phy_data; in dmfe_phy_read() local
1824 phy_data = dr16(0x80 + offset * 4); in dmfe_phy_read()
1854 for (phy_data = 0, i = 0; i < 16; i++) { in dmfe_phy_read()
1855 phy_data <<= 1; in dmfe_phy_read()
1856 phy_data |= dmfe_phy_read_1bit(ioaddr); in dmfe_phy_read()
1860 return phy_data; in dmfe_phy_read()
1868 static void dmfe_phy_write_1bit(void __iomem *ioaddr, u32 phy_data) in dmfe_phy_write_1bit() argument
[all …]
/linux/drivers/scsi/mpi3mr/
H A Dmpi3mr_transport.c1142 sz = offsetof(struct mpi3_sas_io_unit_page0, phy_data) + in mpi3mr_sas_host_refresh()
1156 if (sas_io_unit_pg0->phy_data[i].phy_flags & in mpi3mr_sas_host_refresh()
1161 sas_io_unit_pg0->phy_data[i].negotiated_link_rate >> 4; in mpi3mr_sas_host_refresh()
1164 sas_io_unit_pg0->phy_data[i].controller_dev_handle); in mpi3mr_sas_host_refresh()
1165 port_id = sas_io_unit_pg0->phy_data[i].io_unit_port; in mpi3mr_sas_host_refresh()
1172 sas_io_unit_pg0->phy_data[i].attached_dev_handle); in mpi3mr_sas_host_refresh()
1206 sz = offsetof(struct mpi3_sas_io_unit_page0, phy_data) + in mpi3mr_sas_host_add()
1229 sz = offsetof(struct mpi3_sas_io_unit_page0, phy_data) + in mpi3mr_sas_host_add()
1243 if (sas_io_unit_pg0->phy_data[i].phy_flags & in mpi3mr_sas_host_add()
1262 sas_io_unit_pg0->phy_data[i].controller_dev_handle); in mpi3mr_sas_host_add()
[all …]

123