/openbmc/linux/drivers/net/ethernet/amd/xgbe/ |
H A D | xgbe-phy-v2.c | 405 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 …]
|
H A D | xgbe-phy-v1.c | 235 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 …]
|
/openbmc/linux/drivers/net/ethernet/atheros/atl1c/ |
H A D | atl1c_hw.c | 75 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 D | atl1c_ethtool.c | 132 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()
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | rxmq.c | 1212 struct iwl_mvm_rx_phy_data *phy_data, in iwl_mvm_decode_he_mu_ext() argument 1215 u32 phy_data2 = le32_to_cpu(phy_data->d2); in iwl_mvm_decode_he_mu_ext() 1216 u32 phy_data3 = le32_to_cpu(phy_data->d3); in iwl_mvm_decode_he_mu_ext() 1217 u16 phy_data4 = le16_to_cpu(phy_data->d4); in iwl_mvm_decode_he_mu_ext() 1218 u32 rate_n_flags = phy_data->rate_n_flags; in iwl_mvm_decode_he_mu_ext() 1263 iwl_mvm_decode_he_phy_ru_alloc(struct iwl_mvm_rx_phy_data *phy_data, in iwl_mvm_decode_he_phy_ru_alloc() argument 1276 u8 ru = le32_get_bits(phy_data->d1, IWL_RX_PHY_DATA1_HE_RU_ALLOC_MASK); in iwl_mvm_decode_he_phy_ru_alloc() 1277 u32 rate_n_flags = phy_data->rate_n_flags; in iwl_mvm_decode_he_phy_ru_alloc() 1317 if (phy_data->d1 & cpu_to_le32(IWL_RX_PHY_DATA1_HE_RU_ALLOC_SEC80)) in iwl_mvm_decode_he_phy_ru_alloc() 1345 struct iwl_mvm_rx_phy_data *phy_data, in iwl_mvm_decode_he_phy_data() argument [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/igb/ |
H A D | e1000_phy.c | 459 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 …]
|
/openbmc/linux/drivers/net/ethernet/sfc/falcon/ |
H A D | qt202x_phy.c | 162 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 D | tenxpress.c | 165 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 D | txc43128_phy.c | 323 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 …]
|
/openbmc/linux/drivers/net/ethernet/intel/e1000/ |
H A D | e1000_hw.c | 54 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 …]
|
/openbmc/linux/drivers/net/ethernet/intel/e1000e/ |
H A D | phy.c | 630 u16 phy_data; in e1000_set_master_slave_mode() local 633 ret_val = e1e_rphy(hw, MII_CTRL1000, &phy_data); in e1000_set_master_slave_mode() 638 hw->phy.original_ms_type = (phy_data & CTL1000_ENABLE_MASTER) ? in e1000_set_master_slave_mode() 639 ((phy_data & CTL1000_AS_MASTER) ? in e1000_set_master_slave_mode() 644 phy_data |= (CTL1000_ENABLE_MASTER | CTL1000_AS_MASTER); in e1000_set_master_slave_mode() 647 phy_data |= CTL1000_ENABLE_MASTER; in e1000_set_master_slave_mode() 648 phy_data &= ~(CTL1000_AS_MASTER); in e1000_set_master_slave_mode() 651 phy_data &= ~CTL1000_ENABLE_MASTER; in e1000_set_master_slave_mode() 657 return e1e_wphy(hw, MII_CTRL1000, phy_data); in e1000_set_master_slave_mode() 669 u16 phy_data; in e1000_copper_link_setup_82577() local [all …]
|
H A D | 80003es2lan.c | 523 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 D | netdev.c | 3075 u16 phy_data; in e1000_setup_rctl() local 3077 e1e_rphy(hw, PHY_REG(770, 26), &phy_data); in e1000_setup_rctl() 3078 phy_data &= 0xfff8; in e1000_setup_rctl() 3079 phy_data |= BIT(2); in e1000_setup_rctl() 3080 e1e_wphy(hw, PHY_REG(770, 26), phy_data); in e1000_setup_rctl() 3082 e1e_rphy(hw, 22, &phy_data); in e1000_setup_rctl() 3083 phy_data &= 0x0fff; in e1000_setup_rctl() 3084 phy_data |= BIT(14); in e1000_setup_rctl() 3087 e1e_wphy(hw, 22, phy_data); in e1000_setup_rctl() 4174 u16 phy_data = 0; in e1000e_reset() local [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | e1000.c | 139 uint16_t * phy_data); 141 uint16_t phy_data); 2344 uint16_t phy_data; in e1000_copper_link_preconfig() local 2381 &phy_data); in e1000_copper_link_preconfig() 2382 phy_data |= 0x00000008; in e1000_copper_link_preconfig() 2384 phy_data); in e1000_copper_link_preconfig() 2415 uint16_t phy_data; in e1000_set_d3_lplu_state() local 2428 &phy_data); in e1000_set_d3_lplu_state() 2438 &phy_data); in e1000_set_d3_lplu_state() 2446 phy_data &= ~IGP01E1000_GMII_FLEX_SPD; in e1000_set_d3_lplu_state() [all …]
|
H A D | uli526x.c | 812 u16 phy_data, u32 chip_id) in uli_phy_write() argument 818 phy_writeby_cr10(iobase, phy_addr, offset, phy_data); in uli_phy_write() 852 phy_write_1bit(ioaddr, phy_data & i ? in uli_phy_write() 864 u16 phy_data; in uli_phy_read() local 898 for (phy_data = 0, i = 0; i < 16; i++) { in uli_phy_read() 899 phy_data <<= 1; in uli_phy_read() 900 phy_data |= phy_read_1bit(ioaddr, chip_id); in uli_phy_read() 903 return phy_data; in uli_phy_read() 925 u8 offset, u16 phy_data) in phy_writeby_cr10() argument 932 cr10_value = (cr10_value<<16) + 0x04000000 + phy_data; in phy_writeby_cr10() [all …]
|
/openbmc/linux/drivers/phy/rockchip/ |
H A D | phy-rockchip-pcie.c | 66 struct rockchip_pcie_data *phy_data; member 103 regmap_write(rk_phy->reg_base, rk_phy->phy_data->pcie_conf, in phy_wr_cfg() 111 regmap_write(rk_phy->reg_base, rk_phy->phy_data->pcie_conf, in phy_wr_cfg() 116 regmap_write(rk_phy->reg_base, rk_phy->phy_data->pcie_conf, in phy_wr_cfg() 131 rk_phy->phy_data->pcie_laneoff, in rockchip_pcie_phy_power_off() 152 rk_phy->phy_data->pcie_laneoff, in rockchip_pcie_phy_power_off() 179 regmap_write(rk_phy->reg_base, rk_phy->phy_data->pcie_conf, in rockchip_pcie_phy_power_on() 185 rk_phy->phy_data->pcie_laneoff, in rockchip_pcie_phy_power_on() 200 rk_phy->phy_data->pcie_status, in rockchip_pcie_phy_power_on() 221 rk_phy->phy_data->pcie_status, in rockchip_pcie_phy_power_on() [all …]
|
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | mcdi_port_common.c | 234 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 …]
|
H A D | mcdi_port.c | 75 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()
|
/openbmc/linux/drivers/net/ethernet/sfc/siena/ |
H A D | mcdi_port_common.c | 235 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 …]
|
/openbmc/linux/drivers/net/ethernet/atheros/atlx/ |
H A D | atlx.c | 31 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 D | atl1.c | 340 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 …]
|
/openbmc/linux/drivers/net/ethernet/atheros/atl1e/ |
H A D | atl1e_hw.c | 200 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 …]
|
/openbmc/linux/drivers/phy/ti/ |
H A D | phy-omap-usb2.c | 375 struct usb_phy_data *phy_data; in omap_usb2_probe() local 382 phy_data = (struct usb_phy_data *)of_id->data; in omap_usb2_probe() 395 phy->phy.label = phy_data->label; in omap_usb2_probe() 398 phy->mask = phy_data->mask; in omap_usb2_probe() 399 phy->power_on = phy_data->power_on; in omap_usb2_probe() 400 phy->power_off = phy_data->power_off; in omap_usb2_probe() 401 phy->flags = phy_data->flags; in omap_usb2_probe() 477 if (phy_data->flags & OMAP_USB2_HAS_SET_VBUS) in omap_usb2_probe() 479 if (phy_data->flags & OMAP_USB2_HAS_START_SRP) in omap_usb2_probe()
|
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_phy.h | 129 u32 device_type, u16 *phy_data); 131 u32 device_type, u16 phy_data); 133 u32 device_type, u16 *phy_data); 135 u32 device_type, u16 phy_data);
|
/openbmc/linux/drivers/gpu/drm/rockchip/ |
H A D | dw_hdmi-rockchip.c | 458 .phy_data = &rk3228_chip_data, 475 .phy_data = &rk3288_chip_data, 495 .phy_data = &rk3328_chip_data, 513 .phy_data = &rk3399_chip_data, 526 .phy_data = &rk3568_chip_data, 576 hdmi->chip_data = plat_data->phy_data; in dw_hdmi_rockchip_bind() 577 plat_data->phy_data = hdmi; in dw_hdmi_rockchip_bind()
|