/linux-4.4.14/drivers/net/ethernet/atheros/atl1c/ |
D | atl1c_hw.c | 88 u16 phy_data; in atl1c_get_permanent_address() local 109 atl1c_read_phy_dbg(hw, MIIDBG_ANACTRL, &phy_data); in atl1c_get_permanent_address() 110 phy_data &= ~ANACTRL_HB_EN; in atl1c_get_permanent_address() 111 atl1c_write_phy_dbg(hw, MIIDBG_ANACTRL, phy_data); in atl1c_get_permanent_address() 112 atl1c_read_phy_dbg(hw, MIIDBG_VOLT_CTRL, &phy_data); in atl1c_get_permanent_address() 113 phy_data |= VOLT_CTRL_SWLOWEST; in atl1c_get_permanent_address() 114 atl1c_write_phy_dbg(hw, MIIDBG_VOLT_CTRL, phy_data); in atl1c_get_permanent_address() 138 atl1c_read_phy_dbg(hw, MIIDBG_ANACTRL, &phy_data); in atl1c_get_permanent_address() 139 phy_data |= ANACTRL_HB_EN; in atl1c_get_permanent_address() 140 atl1c_write_phy_dbg(hw, MIIDBG_ANACTRL, phy_data); in atl1c_get_permanent_address() [all …]
|
D | atl1c_ethtool.c | 140 u16 phy_data; in atl1c_get_regs() local 168 atl1c_read_phy_reg(hw, MII_BMCR, &phy_data); in atl1c_get_regs() 169 regs_buff[AT_REGS_LEN/sizeof(u32) - 2] = (u32) phy_data; in atl1c_get_regs() 170 atl1c_read_phy_reg(hw, MII_BMSR, &phy_data); in atl1c_get_regs() 171 regs_buff[AT_REGS_LEN/sizeof(u32) - 1] = (u32) phy_data; in atl1c_get_regs()
|
D | atl1c_hw.h | 45 int atl1c_read_phy_reg(struct atl1c_hw *hw, u16 reg_addr, u16 *phy_data); 46 int atl1c_write_phy_reg(struct atl1c_hw *hw, u32 reg_addr, u16 phy_data); 57 u16 reg, u16 *phy_data); 59 u16 reg, u16 phy_data); 61 u16 reg_addr, u16 *phy_data); 63 u16 reg_addr, u16 phy_data); 64 int atl1c_read_phy_dbg(struct atl1c_hw *hw, u16 reg_addr, u16 *phy_data); 65 int atl1c_write_phy_dbg(struct atl1c_hw *hw, u16 reg_addr, u16 phy_data);
|
D | atl1c_main.c | 255 u16 speed, duplex, phy_data; in atl1c_check_link_status() local 259 atl1c_read_phy_reg(hw, MII_BMSR, &phy_data); in atl1c_check_link_status() 260 atl1c_read_phy_reg(hw, MII_BMSR, &phy_data); in atl1c_check_link_status() 263 if ((phy_data & BMSR_LSTATUS) == 0) { in atl1c_check_link_status() 307 u16 phy_data; in atl1c_link_chg_event() local 311 atl1c_read_phy_reg(&adapter->hw, MII_BMSR, &phy_data); in atl1c_link_chg_event() 312 atl1c_read_phy_reg(&adapter->hw, MII_BMSR, &phy_data); in atl1c_link_chg_event() 314 link_up = phy_data & BMSR_LSTATUS; in atl1c_link_chg_event() 1539 u16 phy_data; in atl1c_clear_phy_int() local 1542 atl1c_read_phy_reg(&adapter->hw, MII_ISR, &phy_data); in atl1c_clear_phy_int()
|
/linux-4.4.14/drivers/net/ethernet/sfc/ |
D | qt202x_phy.c | 165 struct qt202x_phy_data *phy_data = efx->phy_data; in qt2025c_firmware_id() local 178 phy_data->firmware_ver = ((firmware_id[3] & 0xf0) << 20) | in qt2025c_firmware_id() 185 struct qt202x_phy_data *phy_data = efx->phy_data; in qt2025c_bug17190_workaround() local 195 phy_data->bug17190_in_bad_state = false; in qt2025c_bug17190_workaround() 199 if (!phy_data->bug17190_in_bad_state) { in qt2025c_bug17190_workaround() 200 phy_data->bug17190_in_bad_state = true; in qt2025c_bug17190_workaround() 201 phy_data->bug17190_timer = jiffies + BUG17190_INTERVAL; in qt2025c_bug17190_workaround() 205 if (time_after_eq(jiffies, phy_data->bug17190_timer)) { in qt2025c_bug17190_workaround() 212 phy_data->bug17190_timer = jiffies + BUG17190_INTERVAL; in qt2025c_bug17190_workaround() 218 struct qt202x_phy_data *phy_data = efx->phy_data; in qt2025c_select_phy_mode() local [all …]
|
D | tenxpress.c | 168 struct tenxpress_phy_data *phy_data; in tenxpress_phy_probe() local 171 phy_data = kzalloc(sizeof(*phy_data), GFP_KERNEL); in tenxpress_phy_probe() 172 if (!phy_data) in tenxpress_phy_probe() 174 efx->phy_data = phy_data; in tenxpress_phy_probe() 175 phy_data->phy_mode = efx->phy_mode; in tenxpress_phy_probe() 258 struct tenxpress_phy_data *pd = efx->phy_data; in sfx7101_check_bad_lp() 324 struct tenxpress_phy_data *phy_data = efx->phy_data; in tenxpress_phy_reconfigure() local 328 phy_data->phy_mode = efx->phy_mode; in tenxpress_phy_reconfigure() 333 phy_data->phy_mode != PHY_MODE_NORMAL); in tenxpress_phy_reconfigure() 334 loop_reset = (LOOPBACK_OUT_OF(phy_data, efx, LOOPBACKS_EXTERNAL(efx)) || in tenxpress_phy_reconfigure() [all …]
|
D | txc43128_phy.c | 326 struct txc43128_data *phy_data; in txc43128_phy_probe() local 329 phy_data = kzalloc(sizeof(*phy_data), GFP_KERNEL); in txc43128_phy_probe() 330 if (!phy_data) in txc43128_phy_probe() 332 efx->phy_data = phy_data; in txc43128_phy_probe() 333 phy_data->phy_mode = efx->phy_mode; in txc43128_phy_probe() 449 struct txc43128_data *phy_data = efx->phy_data; in txc43128_phy_reconfigure() local 450 enum efx_phy_mode mode_change = efx->phy_mode ^ phy_data->phy_mode; in txc43128_phy_reconfigure() 451 bool loop_change = LOOPBACK_CHANGED(phy_data, efx, TXC_LOOPBACKS); in txc43128_phy_reconfigure() 472 phy_data->phy_mode = efx->phy_mode; in txc43128_phy_reconfigure() 473 phy_data->loopback_mode = efx->loopback_mode; in txc43128_phy_reconfigure() [all …]
|
D | mcdi_port.c | 262 struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; in efx_get_mcdi_phy_flags() 338 struct efx_mcdi_phy_data *phy_data; in efx_mcdi_phy_probe() local 344 phy_data = kzalloc(sizeof(*phy_data), GFP_KERNEL); in efx_mcdi_phy_probe() 345 if (phy_data == NULL) in efx_mcdi_phy_probe() 348 rc = efx_mcdi_get_phy_cfg(efx, phy_data); in efx_mcdi_phy_probe() 360 efx->phy_data = phy_data; in efx_mcdi_phy_probe() 361 efx->phy_type = phy_data->type; in efx_mcdi_phy_probe() 363 efx->mdio_bus = phy_data->channel; in efx_mcdi_phy_probe() 364 efx->mdio.prtad = phy_data->port; in efx_mcdi_phy_probe() 365 efx->mdio.mmds = phy_data->mmd_mask & ~(1 << MC_CMD_MMD_CLAUSE22); in efx_mcdi_phy_probe() [all …]
|
D | net_driver.h | 1012 void *phy_data; member
|
/linux-4.4.14/drivers/net/ethernet/intel/igb/ |
D | e1000_phy.c | 475 u16 phy_data; in igb_copper_link_setup_82580() local 491 ret_val = phy->ops.read_reg(hw, I82580_CFG_REG, &phy_data); in igb_copper_link_setup_82580() 495 phy_data |= I82580_CFG_ASSERT_CRS_ON_TX; in igb_copper_link_setup_82580() 498 phy_data |= I82580_CFG_ENABLE_DOWNSHIFT; in igb_copper_link_setup_82580() 500 ret_val = phy->ops.write_reg(hw, I82580_CFG_REG, phy_data); in igb_copper_link_setup_82580() 505 ret_val = phy->ops.read_reg(hw, I82580_PHY_CTRL_2, &phy_data); in igb_copper_link_setup_82580() 508 phy_data &= ~I82580_PHY_CTRL2_MDIX_CFG_MASK; in igb_copper_link_setup_82580() 518 phy_data |= I82580_PHY_CTRL2_MANUAL_MDIX; in igb_copper_link_setup_82580() 522 phy_data |= I82580_PHY_CTRL2_AUTO_MDI_MDIX; in igb_copper_link_setup_82580() 525 ret_val = hw->phy.ops.write_reg(hw, I82580_PHY_CTRL_2, phy_data); in igb_copper_link_setup_82580() [all …]
|
D | e1000_82575.c | 2641 u16 phy_data; in igb_set_eee_i354() local 2655 &phy_data); in igb_set_eee_i354() 2659 phy_data |= E1000_M88E1543_EEE_CTRL_1_MS; in igb_set_eee_i354() 2661 phy_data); in igb_set_eee_i354() 2673 &phy_data); in igb_set_eee_i354() 2678 phy_data |= E1000_EEE_ADV_100_SUPPORTED; in igb_set_eee_i354() 2680 phy_data &= ~E1000_EEE_ADV_100_SUPPORTED; in igb_set_eee_i354() 2683 phy_data |= E1000_EEE_ADV_1000_SUPPORTED; in igb_set_eee_i354() 2685 phy_data &= ~E1000_EEE_ADV_1000_SUPPORTED; in igb_set_eee_i354() 2689 phy_data); in igb_set_eee_i354() [all …]
|
D | igb_ethtool.c | 2612 u16 phy_data; in igb_get_eee() local 2644 &phy_data); in igb_get_eee() 2648 edata->lp_advertised = mmd_eee_adv_to_ethtool_adv_t(phy_data); in igb_get_eee() 2655 &phy_data); in igb_get_eee() 2659 edata->lp_advertised = mmd_eee_adv_to_ethtool_adv_t(phy_data); in igb_get_eee()
|
/linux-4.4.14/drivers/net/ethernet/intel/e1000/ |
D | e1000_hw.c | 78 u16 phy_data); 80 u16 *phy_data); 1033 u16 phy_data; in e1000_copper_link_preconfig() local 1069 e1000_read_phy_reg(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); in e1000_copper_link_preconfig() 1070 phy_data |= 0x00000008; in e1000_copper_link_preconfig() 1072 e1000_write_phy_reg(hw, M88E1000_PHY_SPEC_CTRL, phy_data); in e1000_copper_link_preconfig() 1092 u16 phy_data; in e1000_copper_link_igp_setup() local 1122 ret_val = e1000_read_phy_reg(hw, IGP01E1000_PHY_PORT_CTRL, &phy_data); in e1000_copper_link_igp_setup() 1129 phy_data &= in e1000_copper_link_igp_setup() 1136 phy_data &= ~IGP01E1000_PSCR_AUTO_MDIX; in e1000_copper_link_igp_setup() [all …]
|
D | e1000_ethtool.c | 351 u16 phy_data; in e1000_get_regs() local 377 IGP01E1000_PHY_PAGE_SELECT, &phy_data); in e1000_get_regs() 378 regs_buff[13] = (u32)phy_data; /* cable length */ in e1000_get_regs() 382 IGP01E1000_PHY_PAGE_SELECT, &phy_data); in e1000_get_regs() 383 regs_buff[14] = (u32)phy_data; /* cable length */ in e1000_get_regs() 387 IGP01E1000_PHY_PAGE_SELECT, &phy_data); in e1000_get_regs() 388 regs_buff[15] = (u32)phy_data; /* cable length */ in e1000_get_regs() 392 IGP01E1000_PHY_PAGE_SELECT, &phy_data); in e1000_get_regs() 393 regs_buff[16] = (u32)phy_data; /* cable length */ in e1000_get_regs() 397 IGP01E1000_PHY_PAGE_SELECT, &phy_data); in e1000_get_regs() [all …]
|
D | e1000_hw.h | 306 s32 e1000_read_phy_reg(struct e1000_hw *hw, u32 reg_addr, u16 * phy_data);
|
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/ |
D | phy.c | 606 u16 phy_data; in e1000_set_master_slave_mode() local 609 ret_val = e1e_rphy(hw, MII_CTRL1000, &phy_data); in e1000_set_master_slave_mode() 614 hw->phy.original_ms_type = (phy_data & CTL1000_ENABLE_MASTER) ? in e1000_set_master_slave_mode() 615 ((phy_data & CTL1000_AS_MASTER) ? in e1000_set_master_slave_mode() 620 phy_data |= (CTL1000_ENABLE_MASTER | CTL1000_AS_MASTER); in e1000_set_master_slave_mode() 623 phy_data |= CTL1000_ENABLE_MASTER; in e1000_set_master_slave_mode() 624 phy_data &= ~(CTL1000_AS_MASTER); in e1000_set_master_slave_mode() 627 phy_data &= ~CTL1000_ENABLE_MASTER; in e1000_set_master_slave_mode() 633 return e1e_wphy(hw, MII_CTRL1000, phy_data); in e1000_set_master_slave_mode() 645 u16 phy_data; in e1000_copper_link_setup_82577() local [all …]
|
D | 80003es2lan.c | 542 u16 phy_data; in e1000_phy_force_speed_duplex_80003es2lan() local 548 ret_val = e1e_rphy(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); in e1000_phy_force_speed_duplex_80003es2lan() 552 phy_data &= ~GG82563_PSCR_CROSSOVER_MODE_AUTO; in e1000_phy_force_speed_duplex_80003es2lan() 553 ret_val = e1e_wphy(hw, GG82563_PHY_SPEC_CTRL, phy_data); in e1000_phy_force_speed_duplex_80003es2lan() 557 e_dbg("GG82563 PSCR: %X\n", phy_data); in e1000_phy_force_speed_duplex_80003es2lan() 559 ret_val = e1e_rphy(hw, MII_BMCR, &phy_data); in e1000_phy_force_speed_duplex_80003es2lan() 563 e1000e_phy_force_speed_duplex_setup(hw, &phy_data); in e1000_phy_force_speed_duplex_80003es2lan() 566 phy_data |= BMCR_RESET; in e1000_phy_force_speed_duplex_80003es2lan() 568 ret_val = e1e_wphy(hw, MII_BMCR, phy_data); in e1000_phy_force_speed_duplex_80003es2lan() 598 ret_val = e1e_rphy(hw, GG82563_PHY_MAC_SPEC_CTRL, &phy_data); in e1000_phy_force_speed_duplex_80003es2lan() [all …]
|
D | netdev.c | 3083 u16 phy_data; in e1000_setup_rctl() local 3085 e1e_rphy(hw, PHY_REG(770, 26), &phy_data); in e1000_setup_rctl() 3086 phy_data &= 0xfff8; in e1000_setup_rctl() 3087 phy_data |= (1 << 2); in e1000_setup_rctl() 3088 e1e_wphy(hw, PHY_REG(770, 26), phy_data); in e1000_setup_rctl() 3090 e1e_rphy(hw, 22, &phy_data); in e1000_setup_rctl() 3091 phy_data &= 0x0fff; in e1000_setup_rctl() 3092 phy_data |= (1 << 14); in e1000_setup_rctl() 3095 e1e_wphy(hw, 22, phy_data); in e1000_setup_rctl() 4122 u16 phy_data = 0; in e1000e_reset() local [all …]
|
D | ethtool.c | 436 u16 phy_data; in e1000_get_regs() local 466 e1e_rphy(hw, M88E1000_PHY_SPEC_STATUS, &phy_data); in e1000_get_regs() 467 regs_buff[13] = (u32)phy_data; /* cable length */ in e1000_get_regs() 471 e1e_rphy(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); in e1000_get_regs() 472 regs_buff[17] = (u32)phy_data; /* extended 10bt distance */ in e1000_get_regs() 481 e1e_rphy(hw, MII_STAT1000, &phy_data); in e1000_get_regs() 482 regs_buff[24] = (u32)phy_data; /* phy local receiver status */ in e1000_get_regs() 2157 u16 cap_addr, lpa_addr, pcs_stat_addr, phy_data; in e1000e_get_eee() local 2187 ret_val = e1000_read_emi_reg_locked(hw, cap_addr, &phy_data); in e1000e_get_eee() 2190 edata->supported = mmd_eee_cap_to_ethtool_sup_t(phy_data); in e1000e_get_eee() [all …]
|
D | ich8lan.c | 2001 u16 phy_data; in e1000_write_smbus_addr() local 2009 ret_val = e1000_read_phy_reg_hv_locked(hw, HV_SMB_ADDR, &phy_data); in e1000_write_smbus_addr() 2013 phy_data &= ~HV_SMB_ADDR_MASK; in e1000_write_smbus_addr() 2014 phy_data |= (strap >> E1000_STRAP_SMBUS_ADDRESS_SHIFT); in e1000_write_smbus_addr() 2015 phy_data |= HV_SMB_ADDR_PEC_EN | HV_SMB_ADDR_VALID; in e1000_write_smbus_addr() 2020 phy_data &= ~HV_SMB_ADDR_FREQ_MASK; in e1000_write_smbus_addr() 2021 phy_data |= (freq & (1 << 0)) << in e1000_write_smbus_addr() 2023 phy_data |= (freq & (1 << 1)) << in e1000_write_smbus_addr() 2030 return e1000_write_phy_reg_hv_locked(hw, HV_SMB_ADDR, phy_data); in e1000_write_smbus_addr() 2377 u16 phy_data; in e1000_hv_phy_workarounds_ich8lan() local [all …]
|
/linux-4.4.14/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_hw.c | 213 int atl1e_read_phy_reg(struct atl1e_hw *hw, u16 reg_addr, u16 *phy_data) in atl1e_read_phy_reg() argument 234 *phy_data = (u16)val; in atl1e_read_phy_reg() 247 int atl1e_write_phy_reg(struct atl1e_hw *hw, u32 reg_addr, u16 phy_data) in atl1e_write_phy_reg() argument 252 val = ((u32)(phy_data & MDIO_DATA_MASK)) << MDIO_DATA_SHIFT | in atl1e_write_phy_reg() 391 u16 phy_data; in atl1e_phy_commit() local 393 phy_data = BMCR_RESET | BMCR_ANENABLE | BMCR_ANRESTART; in atl1e_phy_commit() 395 ret_val = atl1e_write_phy_reg(hw, MII_BMCR, phy_data); in atl1e_phy_commit() 599 u16 phy_data; in atl1e_get_speed_and_duplex() local 602 err = atl1e_read_phy_reg(hw, MII_AT001_PSSR, &phy_data); in atl1e_get_speed_and_duplex() 606 if (!(phy_data & MII_AT001_PSSR_SPD_DPLX_RESOLVED)) in atl1e_get_speed_and_duplex() [all …]
|
D | atl1e_ethtool.c | 155 u16 phy_data; in atl1e_get_regs() local 192 atl1e_read_phy_reg(hw, MII_BMCR, &phy_data); in atl1e_get_regs() 193 regs_buff[73] = (u32)phy_data; in atl1e_get_regs() 194 atl1e_read_phy_reg(hw, MII_BMSR, &phy_data); in atl1e_get_regs() 195 regs_buff[74] = (u32)phy_data; in atl1e_get_regs()
|
D | atl1e_hw.h | 40 s32 atl1e_read_phy_reg(struct atl1e_hw *hw, u16 reg_addr, u16 *phy_data); 41 s32 atl1e_write_phy_reg(struct atl1e_hw *hw, u32 reg_addr, u16 phy_data);
|
D | atl1e_main.c | 168 u16 speed, duplex, phy_data; in atl1e_check_link() local 171 atl1e_read_phy_reg(hw, MII_BMSR, &phy_data); in atl1e_check_link() 172 atl1e_read_phy_reg(hw, MII_BMSR, &phy_data); in atl1e_check_link() 173 if ((phy_data & BMSR_LSTATUS) == 0) { in atl1e_check_link() 231 u16 phy_data = 0; in atl1e_link_chg_event() local 235 atl1e_read_phy_reg(&adapter->hw, MII_BMSR, &phy_data); in atl1e_link_chg_event() 236 atl1e_read_phy_reg(&adapter->hw, MII_BMSR, &phy_data); in atl1e_link_chg_event() 238 link_up = phy_data & BMSR_LSTATUS; in atl1e_link_chg_event() 1239 u16 phy_data; in atl1e_clear_phy_int() local 1242 atl1e_read_phy_reg(&adapter->hw, MII_INT_STATUS, &phy_data); in atl1e_clear_phy_int()
|
/linux-4.4.14/drivers/net/ethernet/atheros/atlx/ |
D | atlx.c | 44 static s32 atlx_read_phy_reg(struct atl1_hw *hw, u16 reg_addr, u16 *phy_data); 95 u16 phy_data = 0; in atlx_check_for_link() local 99 atlx_read_phy_reg(&adapter->hw, MII_BMSR, &phy_data); in atlx_check_for_link() 100 atlx_read_phy_reg(&adapter->hw, MII_BMSR, &phy_data); in atlx_check_for_link() 104 if (!(phy_data & BMSR_LSTATUS)) { in atlx_check_for_link() 187 u16 phy_data; in atlx_clear_phy_int() local 191 atlx_read_phy_reg(&adapter->hw, 19, &phy_data); in atlx_clear_phy_int()
|
D | atl1.c | 359 static s32 atl1_read_phy_reg(struct atl1_hw *hw, u16 reg_addr, u16 *phy_data) in atl1_read_phy_reg() argument 377 *phy_data = (u16) val; in atl1_read_phy_reg() 606 static s32 atl1_write_phy_reg(struct atl1_hw *hw, u32 reg_addr, u16 phy_data) in atl1_write_phy_reg() argument 611 val = ((u32) (phy_data & MDIO_DATA_MASK)) << MDIO_DATA_SHIFT | in atl1_write_phy_reg() 657 u16 phy_data; in atl1_phy_reset() local 661 phy_data = MII_CR_RESET | MII_CR_AUTO_NEG_EN; in atl1_phy_reset() 665 phy_data = in atl1_phy_reset() 670 phy_data = MII_CR_SPEED_100 | MII_CR_RESET; in atl1_phy_reset() 673 phy_data = in atl1_phy_reset() 678 phy_data = MII_CR_SPEED_10 | MII_CR_RESET; in atl1_phy_reset() [all …]
|
D | atl2.c | 570 u16 phy_data = 0; in atl2_check_for_link() local 573 atl2_read_phy_reg(&adapter->hw, MII_BMSR, &phy_data); in atl2_check_for_link() 574 atl2_read_phy_reg(&adapter->hw, MII_BMSR, &phy_data); in atl2_check_for_link() 578 if (!(phy_data & BMSR_LSTATUS)) { /* Link Down */ in atl2_check_for_link() 592 u16 phy_data; in atl2_clear_phy_int() local 594 atl2_read_phy_reg(&adapter->hw, 19, &phy_data); in atl2_clear_phy_int() 1173 u16 speed, duplex, phy_data; in atl2_check_link() local 1177 atl2_read_phy_reg(hw, MII_BMSR, &phy_data); in atl2_check_link() 1178 atl2_read_phy_reg(hw, MII_BMSR, &phy_data); in atl2_check_link() 1179 if (!(phy_data&BMSR_LSTATUS)) { /* link down */ in atl2_check_link() [all …]
|
D | atl2.h | 87 static s32 atl2_read_phy_reg(struct atl2_hw *hw, u16 reg_addr, u16 *phy_data); 88 static s32 atl2_write_phy_reg(struct atl2_hw *hw, u32 reg_addr, u16 phy_data);
|
/linux-4.4.14/drivers/phy/ |
D | phy-omap-usb2.c | 199 struct usb_phy_data *phy_data; in omap_usb2_probe() local 206 phy_data = (struct usb_phy_data *)of_id->data; in omap_usb2_probe() 219 phy->phy.label = phy_data->label; in omap_usb2_probe() 223 if (phy_data->flags & OMAP_USB2_CALIBRATE_FALSE_DISCONNECT) { in omap_usb2_probe() 248 if (phy_data->flags & OMAP_USB2_HAS_SET_VBUS) in omap_usb2_probe() 250 if (phy_data->flags & OMAP_USB2_HAS_START_SRP) in omap_usb2_probe()
|
D | phy-sun4i-usb.c | 160 struct sun4i_usb_phy_data *phy_data = to_sun4i_usb_phy_data(phy); in sun4i_usb_phy_write() local 165 mutex_lock(&phy_data->mutex); in sun4i_usb_phy_write() 167 if (phy_data->has_a33_phyctl) { in sun4i_usb_phy_write() 168 phyctl = phy_data->base + REG_PHYCTL_A33; in sun4i_usb_phy_write() 172 phyctl = phy_data->base + REG_PHYCTL_A10; in sun4i_usb_phy_write() 205 mutex_unlock(&phy_data->mutex); in sun4i_usb_phy_write()
|
D | phy-dm816x-usb.c | 192 const struct usb_phy_data *phy_data; in dm816x_usb_phy_probe() local 223 phy_data = of_id->data; in dm816x_usb_phy_probe()
|
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_phy.h | 146 u32 device_type, u16 *phy_data); 148 u32 device_type, u16 phy_data); 150 u32 device_type, u16 *phy_data); 152 u32 device_type, u16 phy_data);
|
D | ixgbe_phy.c | 504 u16 *phy_data) in ixgbe_read_phy_reg_mdi() argument 566 *phy_data = (u16)(data); in ixgbe_read_phy_reg_mdi() 579 u32 device_type, u16 *phy_data) in ixgbe_read_phy_reg_generic() argument 586 phy_data); in ixgbe_read_phy_reg_generic() 604 u32 device_type, u16 phy_data) in ixgbe_write_phy_reg_mdi() argument 609 IXGBE_WRITE_REG(hw, IXGBE_MSRWD, (u32)phy_data); in ixgbe_write_phy_reg_mdi() 677 u32 device_type, u16 phy_data) in ixgbe_write_phy_reg_generic() argument 684 phy_data); in ixgbe_write_phy_reg_generic() 877 u16 phy_data = 0; in ixgbe_check_phy_link_tnx() local 893 &phy_data); in ixgbe_check_phy_link_tnx() [all …]
|
D | ixgbe_x550.c | 375 u32 device_type, u16 *phy_data) in ixgbe_read_phy_reg_x550em() argument 381 u32 device_type, u16 phy_data) in ixgbe_write_phy_reg_x550em() argument
|
/linux-4.4.14/drivers/infiniband/hw/nes/ |
D | nes_hw.c | 1310 u16 phy_data; in nes_init_1g_phy() local 1313 nes_read_1G_phy_reg(nesdev, 1, phy_index, &phy_data); in nes_init_1g_phy() 1321 nes_read_1G_phy_reg(nesdev, 0, phy_index, &phy_data); in nes_init_1g_phy() 1326 } while (phy_data & 0x8000); in nes_init_1g_phy() 1329 phy_data &= 0xbfff; in nes_init_1g_phy() 1330 phy_data |= 0x1140; in nes_init_1g_phy() 1331 nes_write_1G_phy_reg(nesdev, 0, phy_index, phy_data); in nes_init_1g_phy() 1332 nes_read_1G_phy_reg(nesdev, 0, phy_index, &phy_data); in nes_init_1g_phy() 1333 nes_read_1G_phy_reg(nesdev, 0x17, phy_index, &phy_data); in nes_init_1g_phy() 1334 nes_read_1G_phy_reg(nesdev, 0x1e, phy_index, &phy_data); in nes_init_1g_phy() [all …]
|
D | nes_nic.c | 1489 u16 phy_data; in nes_netdev_get_settings() local 1511 nes_read_1G_phy_reg(nesdev, 0, phy_index, &phy_data); in nes_netdev_get_settings() 1513 if (phy_data & 0x1000) in nes_netdev_get_settings() 1554 u16 phy_data; in nes_netdev_set_settings() local 1558 nes_read_1G_phy_reg(nesdev, 0, phy_index, &phy_data); in nes_netdev_set_settings() 1561 phy_data |= 0x1300; in nes_netdev_set_settings() 1564 phy_data &= ~0x1000; in nes_netdev_set_settings() 1566 nes_write_1G_phy_reg(nesdev, 0, phy_index, phy_data); in nes_netdev_set_settings() 1774 u16 phy_data = 0; in nes_netdev_init() local 1810 phy_data = (u16)nes_read_indexed(nesdev, NES_IDX_MAC_MDIO_CONTROL); in nes_netdev_init() [all …]
|
/linux-4.4.14/drivers/net/ethernet/atheros/alx/ |
D | hw.c | 62 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 …]
|
D | hw.h | 550 int alx_read_phy_reg(struct alx_hw *hw, u16 reg, u16 *phy_data); 551 int alx_write_phy_reg(struct alx_hw *hw, u16 reg, u16 phy_data);
|
/linux-4.4.14/drivers/net/ethernet/dec/tulip/ |
D | dmfe.c | 1791 u16 phy_data, u32 chip_id) in dmfe_phy_write() argument 1796 dw16(0x80 + offset * 4, phy_data); in dmfe_phy_write() 1829 phy_data & i ? PHY_DATA_1 : PHY_DATA_0); in dmfe_phy_write() 1841 u16 phy_data; in dmfe_phy_read() local 1845 phy_data = dr16(0x80 + offset * 4); in dmfe_phy_read() 1875 for (phy_data = 0, i = 0; i < 16; i++) { in dmfe_phy_read() 1876 phy_data <<= 1; in dmfe_phy_read() 1877 phy_data |= dmfe_phy_read_1bit(ioaddr); in dmfe_phy_read() 1881 return phy_data; in dmfe_phy_read() 1889 static void dmfe_phy_write_1bit(void __iomem *ioaddr, u32 phy_data) in dmfe_phy_write_1bit() argument [all …]
|
D | uli526x.c | 1636 u8 offset, u16 phy_data) in phy_writeby_cr9() argument 1666 phy_write_1bit(db, phy_data & i ? PHY_DATA_1 : PHY_DATA_0); in phy_writeby_cr9() 1671 u16 phy_data; in phy_readby_cr9() local 1698 for (phy_data = 0, i = 0; i < 16; i++) { in phy_readby_cr9() 1699 phy_data <<= 1; in phy_readby_cr9() 1700 phy_data |= phy_read_1bit(db); in phy_readby_cr9() 1703 return phy_data; in phy_readby_cr9() 1725 u8 offset, u16 phy_data) in phy_writeby_cr10() argument 1731 cr10_value = (cr10_value << 16) + 0x04000000 + phy_data; in phy_writeby_cr10() 1759 u16 phy_data; in phy_read_1bit() local [all …]
|
/linux-4.4.14/drivers/ata/ |
D | sata_highbank.c | 352 struct of_phandle_args phy_data; in highbank_initialize_phys() local 355 port, &phy_data)) in highbank_initialize_phys() 358 if (phy_nodes[phy] == phy_data.np) in highbank_initialize_phys() 362 phy_nodes[phy] = phy_data.np; in highbank_initialize_phys() 369 port_data[port].lane_mapping = phy_data.args[0]; in highbank_initialize_phys() 373 of_node_put(phy_data.np); in highbank_initialize_phys()
|
/linux-4.4.14/drivers/net/ethernet/ti/ |
D | davinci_mdio.c | 264 int phy_reg, u16 phy_data) in davinci_mdio_write() argument 281 (phy_id << 16) | (phy_data & USERACCESS_DATA)); in davinci_mdio_write()
|
/linux-4.4.14/drivers/atm/ |
D | suni.c | 38 #define PRIV(dev) ((struct suni_priv *) dev->phy_data) 372 if (!(dev->phy_data = kmalloc(sizeof(struct suni_priv),GFP_KERNEL))) in suni_init()
|
D | uPD98402.c | 34 #define PRIV(dev) ((struct uPD98402_priv *) dev->phy_data)
|
D | idt77105.c | 43 #define PRIV(dev) ((struct idt77105_priv *) dev->phy_data)
|
D | solos-pci.c | 149 #define SOLOS_CHAN(atmdev) ((int)(unsigned long)(atmdev)->phy_data) 1386 card->atmdev[i]->phy_data = (void *)(unsigned long)i; in atm_init()
|
D | iphase.c | 70 #define PRIV(dev) ((struct suni_priv *) dev->phy_data)
|
/linux-4.4.14/drivers/net/wireless/ath/carl9170/ |
D | phy.c | 1124 u32 phy_data = 0; in carl9170_set_freq_cal_data() local 1200 phy_data |= tmp << ((i & 3) << 3); in carl9170_set_freq_cal_data() 1203 (i & ~3), phy_data); in carl9170_set_freq_cal_data() 1204 phy_data = 0; in carl9170_set_freq_cal_data()
|
/linux-4.4.14/drivers/net/ethernet/ |
D | jme.c | 1763 jme_phy_specreg_write(struct jme_adapter *jme, u32 ext_reg, u32 phy_data) in jme_phy_specreg_write() argument 1769 phy_data); in jme_phy_specreg_write() 1777 u32 ctrl1000, phy_data; in jme_phy_calibration() local 1787 phy_data = jme_phy_specreg_read(jme, JM_PHY_EXT_COMM_2_REG); in jme_phy_calibration() 1788 phy_data &= ~JM_PHY_EXT_COMM_2_CALI_MODE_0; in jme_phy_calibration() 1789 phy_data |= JM_PHY_EXT_COMM_2_CALI_LATCH | in jme_phy_calibration() 1791 jme_phy_specreg_write(jme, JM_PHY_EXT_COMM_2_REG, phy_data); in jme_phy_calibration() 1793 phy_data = jme_phy_specreg_read(jme, JM_PHY_EXT_COMM_2_REG); in jme_phy_calibration() 1794 phy_data &= ~(JM_PHY_EXT_COMM_2_CALI_ENABLE | in jme_phy_calibration() 1797 jme_phy_specreg_write(jme, JM_PHY_EXT_COMM_2_REG, phy_data); in jme_phy_calibration()
|
D | lantiq_etop.c | 339 ltq_etop_mdio_wr(struct mii_bus *bus, int phy_addr, int phy_reg, u16 phy_data) in ltq_etop_mdio_wr() argument 344 phy_data; in ltq_etop_mdio_wr()
|
/linux-4.4.14/arch/mips/include/asm/ip32/ |
D | mace.h | 110 volatile unsigned long phy_data; member
|
/linux-4.4.14/include/linux/ |
D | atmdev.h | 152 void *phy_data; /* private PHY date */ member
|
/linux-4.4.14/drivers/net/wireless/ath/wil6210/ |
D | txrx.c | 290 static char phy_data[128]; in wil_rx_add_radiotap_header() local 303 int len = min_t(int, 8 + sizeof(phy_data), in wil_rx_add_radiotap_header() 312 memcpy(phy_data, pa, phy_length); in wil_rx_add_radiotap_header() 356 memcpy(rtap_vendor->vendor_data + sizeof(*d), phy_data, in wil_rx_add_radiotap_header()
|
/linux-4.4.14/drivers/message/fusion/ |
D | mptsas.c | 138 MPI_SAS_IO_UNIT0_PHY_DATA *phy_data) in mptsas_print_phy_data() argument 143 ioc->name, le16_to_cpu(phy_data->AttachedDeviceHandle))); in mptsas_print_phy_data() 145 ioc->name, le16_to_cpu(phy_data->ControllerDevHandle))); in mptsas_print_phy_data() 147 ioc->name, phy_data->Port)); in mptsas_print_phy_data() 149 ioc->name, phy_data->PortFlags)); in mptsas_print_phy_data() 151 ioc->name, phy_data->PhyFlags)); in mptsas_print_phy_data() 153 ioc->name, phy_data->NegotiatedLinkRate)); in mptsas_print_phy_data() 156 le32_to_cpu(phy_data->ControllerPhyDeviceInfo))); in mptsas_print_phy_data() 158 ioc->name, le32_to_cpu(phy_data->DiscoveryStatus))); in mptsas_print_phy_data()
|
/linux-4.4.14/drivers/net/ethernet/sgi/ |
D | meth.c | 118 while ((___rval = mace->eth.phy_data) & MDIO_BUSY) { \
|