Home
last modified time | relevance | path

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

1234

/linux-6.12.1/drivers/net/ethernet/amd/xgbe/
Dxgbe-phy-v2.c405 struct xgbe_phy_data *phy_data = pdata->phy_data; in xgbe_phy_redrv_write() local
430 i2c_op.target = phy_data->redrv_addr; in xgbe_phy_redrv_write()
444 i2c_op.target = phy_data->redrv_addr; in xgbe_phy_redrv_write()
522 struct xgbe_phy_data *phy_data = pdata->phy_data; in xgbe_phy_sfp_put_mux() local
526 if (phy_data->sfp_comm == XGBE_SFP_COMM_DIRECT) in xgbe_phy_sfp_put_mux()
532 i2c_op.target = phy_data->sfp_mux_address; in xgbe_phy_sfp_put_mux()
541 struct xgbe_phy_data *phy_data = pdata->phy_data; in xgbe_phy_sfp_get_mux() local
545 if (phy_data->sfp_comm == XGBE_SFP_COMM_DIRECT) in xgbe_phy_sfp_get_mux()
549 mux_channel = 1 << phy_data->sfp_mux_channel; in xgbe_phy_sfp_get_mux()
551 i2c_op.target = phy_data->sfp_mux_address; in xgbe_phy_sfp_get_mux()
[all …]
Dxgbe-phy-v1.c235 struct xgbe_phy_data *phy_data = pdata->phy_data; in xgbe_phy_an_outcome() local
272 if (phy_data->speed_set == XGBE_SPEEDSET_2500_10000) in xgbe_phy_an_outcome()
282 if (phy_data->speed_set == XGBE_SPEEDSET_2500_10000) in xgbe_phy_an_outcome()
369 struct xgbe_phy_data *phy_data = pdata->phy_data; in xgbe_phy_kr_mode() local
393 phy_data->cdr_rate[XGBE_SPEED_10000]); in xgbe_phy_kr_mode()
395 phy_data->tx_amp[XGBE_SPEED_10000]); in xgbe_phy_kr_mode()
397 phy_data->blwc[XGBE_SPEED_10000]); in xgbe_phy_kr_mode()
399 phy_data->pq_skew[XGBE_SPEED_10000]); in xgbe_phy_kr_mode()
401 phy_data->dfe_tap_cfg[XGBE_SPEED_10000]); in xgbe_phy_kr_mode()
403 phy_data->dfe_tap_ena[XGBE_SPEED_10000]); in xgbe_phy_kr_mode()
[all …]
/linux-6.12.1/drivers/net/ethernet/atheros/atl1c/
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 …]
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()
/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/mvm/
Drxmq.c932 struct iwl_mvm_rx_phy_data *phy_data, in iwl_mvm_decode_he_mu_ext() argument
935 u32 phy_data2 = le32_to_cpu(phy_data->d2); in iwl_mvm_decode_he_mu_ext()
936 u32 phy_data3 = le32_to_cpu(phy_data->d3); in iwl_mvm_decode_he_mu_ext()
937 u16 phy_data4 = le16_to_cpu(phy_data->d4); in iwl_mvm_decode_he_mu_ext()
938 u32 rate_n_flags = phy_data->rate_n_flags; in iwl_mvm_decode_he_mu_ext()
983 iwl_mvm_decode_he_phy_ru_alloc(struct iwl_mvm_rx_phy_data *phy_data, in iwl_mvm_decode_he_phy_ru_alloc() argument
996 u8 ru = le32_get_bits(phy_data->d1, IWL_RX_PHY_DATA1_HE_RU_ALLOC_MASK); in iwl_mvm_decode_he_phy_ru_alloc()
997 u32 rate_n_flags = phy_data->rate_n_flags; in iwl_mvm_decode_he_phy_ru_alloc()
1037 if (phy_data->d1 & cpu_to_le32(IWL_RX_PHY_DATA1_HE_RU_ALLOC_SEC80)) in iwl_mvm_decode_he_phy_ru_alloc()
1065 struct iwl_mvm_rx_phy_data *phy_data, in iwl_mvm_decode_he_phy_data() argument
[all …]
/linux-6.12.1/drivers/net/ethernet/intel/igb/
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-6.12.1/drivers/net/ethernet/sfc/falcon/
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 …]
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 …]
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-6.12.1/drivers/net/ethernet/intel/e1000/
De1000_hw.c54 u16 phy_data);
56 u16 *phy_data);
1006 u16 phy_data; in e1000_copper_link_preconfig() local
1042 e1000_read_phy_reg(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); in e1000_copper_link_preconfig()
1043 phy_data |= 0x00000008; in e1000_copper_link_preconfig()
1045 e1000_write_phy_reg(hw, M88E1000_PHY_SPEC_CTRL, phy_data); in e1000_copper_link_preconfig()
1065 u16 phy_data; in e1000_copper_link_igp_setup() local
1095 ret_val = e1000_read_phy_reg(hw, IGP01E1000_PHY_PORT_CTRL, &phy_data); in e1000_copper_link_igp_setup()
1102 phy_data &= in e1000_copper_link_igp_setup()
1109 phy_data &= ~IGP01E1000_PSCR_AUTO_MDIX; in e1000_copper_link_igp_setup()
[all …]
/linux-6.12.1/drivers/net/ethernet/intel/e1000e/
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 …]
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-6.12.1/drivers/phy/realtek/
Dphy-rtk-usb2.c69 struct phy_data { struct
76 struct phy_data page0[MAX_USB_PHY_PAGE0_DATA_SIZE]; argument
78 struct phy_data page1[MAX_USB_PHY_PAGE1_DATA_SIZE];
80 struct phy_data page2[MAX_USB_PHY_PAGE2_DATA_SIZE];
267 struct phy_data *phy_data_page; in update_dc_disconnect_level_at_page0()
268 struct phy_data *phy_data; in update_dc_disconnect_level_at_page0() local
282 phy_data = phy_data_page + i; in update_dc_disconnect_level_at_page0()
283 if (!phy_data->addr) { in update_dc_disconnect_level_at_page0()
284 phy_data->addr = PAGE0_0XE4; in update_dc_disconnect_level_at_page0()
285 phy_data->data = rtk_phy_read(phy_reg, PAGE0_0XE4); in update_dc_disconnect_level_at_page0()
[all …]
Dphy-rtk-usb3.c58 struct phy_data { struct
65 struct phy_data param[MAX_USB_PHY_DATA_SIZE]; argument
155 struct phy_data *phy_data; in do_rtk_usb3_phy_toggle() local
167 phy_data = phy_cfg->param + i; in do_rtk_usb3_phy_toggle()
168 addr = phy_data->addr; in do_rtk_usb3_phy_toggle()
169 data = phy_data->data; in do_rtk_usb3_phy_toggle()
174 phy_data->addr = addr; in do_rtk_usb3_phy_toggle()
175 phy_data->data = data; in do_rtk_usb3_phy_toggle()
198 struct phy_data *phy_data = phy_cfg->param + i; in do_rtk_phy_init() local
199 u8 addr = phy_data->addr; in do_rtk_phy_init()
[all …]
/linux-6.12.1/drivers/phy/rockchip/
Dphy-rockchip-pcie.c65 const struct rockchip_pcie_data *phy_data; member
102 regmap_write(rk_phy->reg_base, rk_phy->phy_data->pcie_conf, in phy_wr_cfg()
110 regmap_write(rk_phy->reg_base, rk_phy->phy_data->pcie_conf, in phy_wr_cfg()
115 regmap_write(rk_phy->reg_base, rk_phy->phy_data->pcie_conf, in phy_wr_cfg()
130 rk_phy->phy_data->pcie_laneoff, in rockchip_pcie_phy_power_off()
151 rk_phy->phy_data->pcie_laneoff, in rockchip_pcie_phy_power_off()
178 regmap_write(rk_phy->reg_base, rk_phy->phy_data->pcie_conf, in rockchip_pcie_phy_power_on()
184 rk_phy->phy_data->pcie_laneoff, in rockchip_pcie_phy_power_on()
199 rk_phy->phy_data->pcie_status, in rockchip_pcie_phy_power_on()
220 rk_phy->phy_data->pcie_status, in rockchip_pcie_phy_power_on()
[all …]
/linux-6.12.1/drivers/net/ethernet/sfc/
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()
451 efx->mdio_bus = phy_data->channel; in efx_mcdi_phy_probe()
452 efx->mdio.prtad = phy_data->port; in efx_mcdi_phy_probe()
[all …]
Dmcdi_port.c75 struct efx_mcdi_phy_data *phy_data = efx->phy_data; in efx_mcdi_phy_get_caps() local
77 return phy_data->supported_cap; in efx_mcdi_phy_get_caps()
/linux-6.12.1/drivers/net/ethernet/sfc/siena/
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-6.12.1/drivers/net/ethernet/atheros/atlx/
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()
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 …]
/linux-6.12.1/drivers/net/ethernet/atheros/atl1e/
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 …]
/linux-6.12.1/drivers/phy/ti/
Dphy-omap-usb2.c375 const struct usb_phy_data *phy_data; in omap_usb2_probe() local
377 phy_data = device_get_match_data(&pdev->dev); in omap_usb2_probe()
378 if (!phy_data) in omap_usb2_probe()
392 phy->phy.label = phy_data->label; in omap_usb2_probe()
395 phy->mask = phy_data->mask; in omap_usb2_probe()
396 phy->power_on = phy_data->power_on; in omap_usb2_probe()
397 phy->power_off = phy_data->power_off; in omap_usb2_probe()
398 phy->flags = phy_data->flags; in omap_usb2_probe()
474 if (phy_data->flags & OMAP_USB2_HAS_SET_VBUS) in omap_usb2_probe()
476 if (phy_data->flags & OMAP_USB2_HAS_START_SRP) in omap_usb2_probe()
/linux-6.12.1/drivers/net/ethernet/intel/ixgbe/
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);
/linux-6.12.1/drivers/net/ethernet/wangxun/ngbe/
Dngbe_mdio.c35 u16 phy_data; in ngbe_phy_read_reg_c22() local
38 phy_data = ngbe_phy_read_reg_internal(bus, phy_addr, regnum); in ngbe_phy_read_reg_c22()
40 phy_data = wx_phy_read_reg_mdi_c22(bus, phy_addr, regnum); in ngbe_phy_read_reg_c22()
42 return phy_data; in ngbe_phy_read_reg_c22()
/linux-6.12.1/drivers/gpu/drm/rockchip/
Ddw_hdmi-rockchip.c458 .phy_data = &rk3228_chip_data,
476 .phy_data = &rk3288_chip_data,
494 .phy_data = &rk3328_chip_data,
513 .phy_data = &rk3399_chip_data,
527 .phy_data = &rk3568_chip_data,
577 hdmi->chip_data = plat_data->phy_data; in dw_hdmi_rockchip_bind()
578 plat_data->phy_data = hdmi; in dw_hdmi_rockchip_bind()

1234