/drivers/net/ethernet/atheros/atl1c/ |
H A D | atl1c_ethtool.c | 140 u16 phy_data; local 168 atl1c_read_phy_reg(hw, MII_BMCR, &phy_data); 169 regs_buff[AT_REGS_LEN/sizeof(u32) - 2] = (u32) phy_data; 170 atl1c_read_phy_reg(hw, MII_BMSR, &phy_data); 171 regs_buff[AT_REGS_LEN/sizeof(u32) - 1] = (u32) phy_data;
|
H A D | atl1c_hw.c | 88 u16 phy_data; local 109 atl1c_read_phy_dbg(hw, MIIDBG_ANACTRL, &phy_data); 110 phy_data &= ~ANACTRL_HB_EN; 111 atl1c_write_phy_dbg(hw, MIIDBG_ANACTRL, phy_data); 112 atl1c_read_phy_dbg(hw, MIIDBG_VOLT_CTRL, &phy_data); 113 phy_data |= VOLT_CTRL_SWLOWEST; 114 atl1c_write_phy_dbg(hw, MIIDBG_VOLT_CTRL, phy_data); 138 atl1c_read_phy_dbg(hw, MIIDBG_ANACTRL, &phy_data); 139 phy_data |= ANACTRL_HB_EN; 140 atl1c_write_phy_dbg(hw, MIIDBG_ANACTRL, phy_data); 315 atl1c_read_phy_core(struct atl1c_hw *hw, bool ext, u8 dev, u16 reg, u16 *phy_data) argument 364 atl1c_write_phy_core(struct atl1c_hw *hw, bool ext, u8 dev, u16 reg, u16 phy_data) argument 408 atl1c_read_phy_reg(struct atl1c_hw *hw, u16 reg_addr, u16 *phy_data) argument 419 atl1c_write_phy_reg(struct atl1c_hw *hw, u32 reg_addr, u16 phy_data) argument 425 atl1c_read_phy_ext(struct atl1c_hw *hw, u8 dev_addr, u16 reg_addr, u16 *phy_data) argument 432 atl1c_write_phy_ext(struct atl1c_hw *hw, u8 dev_addr, u16 reg_addr, u16 phy_data) argument 438 atl1c_read_phy_dbg(struct atl1c_hw *hw, u16 reg_addr, u16 *phy_data) argument 451 atl1c_write_phy_dbg(struct atl1c_hw *hw, u16 reg_addr, u16 phy_data) argument 514 u16 phy_data; local 662 u16 phy_data; local 702 u16 phy_data; local 773 u16 phy_data; local [all...] |
/drivers/net/ethernet/atheros/atl1e/ |
H A D | atl1e_ethtool.c | 155 u16 phy_data; local 192 atl1e_read_phy_reg(hw, MII_BMCR, &phy_data); 193 regs_buff[73] = (u32)phy_data; 194 atl1e_read_phy_reg(hw, MII_BMSR, &phy_data); 195 regs_buff[74] = (u32)phy_data;
|
H A D | atl1e_hw.c | 213 int atl1e_read_phy_reg(struct atl1e_hw *hw, u16 reg_addr, u16 *phy_data) argument 234 *phy_data = (u16)val; 247 int atl1e_write_phy_reg(struct atl1e_hw *hw, u32 reg_addr, u16 phy_data) argument 252 val = ((u32)(phy_data & MDIO_DATA_MASK)) << MDIO_DATA_SHIFT | 391 u16 phy_data; local 393 phy_data = BMCR_RESET | BMCR_ANENABLE | BMCR_ANRESTART; 395 ret_val = atl1e_write_phy_reg(hw, MII_BMCR, phy_data); 599 u16 phy_data; local 602 err = atl1e_read_phy_reg(hw, MII_AT001_PSSR, &phy_data); 606 if (!(phy_data [all...] |
/drivers/net/ethernet/atheros/atlx/ |
H A 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; local 99 atlx_read_phy_reg(&adapter->hw, MII_BMSR, &phy_data); 100 atlx_read_phy_reg(&adapter->hw, MII_BMSR, &phy_data); 104 if (!(phy_data & BMSR_LSTATUS)) { 187 u16 phy_data; local 191 atlx_read_phy_reg(&adapter->hw, 19, &phy_data);
|
/drivers/phy/ |
H A D | phy-omap-usb2.c | 205 struct usb_phy_data *phy_data; local 212 phy_data = (struct usb_phy_data *)of_id->data; 225 phy->phy.label = phy_data->label; 229 if (phy_data->flags & OMAP_USB2_CALIBRATE_FALSE_DISCONNECT) { 254 if (phy_data->flags & OMAP_USB2_HAS_SET_VBUS) 256 if (phy_data->flags & OMAP_USB2_HAS_START_SRP)
|
H A D | phy-sun4i-usb.c | 85 struct sun4i_usb_phy_data *phy_data = to_sun4i_usb_phy_data(phy); local 89 mutex_lock(&phy_data->mutex); 92 temp = readl(phy_data->base + REG_PHYCTL); 99 writel(temp, phy_data->base + REG_PHYCTL); 102 temp = readb(phy_data->base + REG_PHYCTL); 108 writeb(temp, phy_data->base + REG_PHYCTL); 111 temp = readb(phy_data->base + REG_PHYCTL); 113 writeb(temp, phy_data->base + REG_PHYCTL); 115 temp = readb(phy_data->base + REG_PHYCTL); 117 writeb(temp, phy_data [all...] |
/drivers/net/ethernet/intel/e1000e/ |
H A D | 80003es2lan.c | 542 u16 phy_data; local 548 ret_val = e1e_rphy(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); 552 phy_data &= ~GG82563_PSCR_CROSSOVER_MODE_AUTO; 553 ret_val = e1e_wphy(hw, GG82563_PHY_SPEC_CTRL, phy_data); 557 e_dbg("GG82563 PSCR: %X\n", phy_data); 559 ret_val = e1e_rphy(hw, MII_BMCR, &phy_data); 563 e1000e_phy_force_speed_duplex_setup(hw, &phy_data); 566 phy_data |= BMCR_RESET; 568 ret_val = e1e_wphy(hw, MII_BMCR, phy_data); 598 ret_val = e1e_rphy(hw, GG82563_PHY_MAC_SPEC_CTRL, &phy_data); 631 u16 phy_data, index; local [all...] |
H A D | ethtool.c | 436 u16 phy_data; local 466 e1e_rphy(hw, M88E1000_PHY_SPEC_STATUS, &phy_data); 467 regs_buff[13] = (u32)phy_data; /* cable length */ 471 e1e_rphy(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); 472 regs_buff[17] = (u32)phy_data; /* extended 10bt distance */ 481 e1e_rphy(hw, MII_STAT1000, &phy_data); 482 regs_buff[24] = (u32)phy_data; /* phy local receiver status */ 2136 u16 cap_addr, lpa_addr, pcs_stat_addr, phy_data; local 2166 ret_val = e1000_read_emi_reg_locked(hw, cap_addr, &phy_data); 2169 edata->supported = mmd_eee_cap_to_ethtool_sup_t(phy_data); [all...] |
H A D | phy.c | 606 u16 phy_data; local 609 ret_val = e1e_rphy(hw, MII_CTRL1000, &phy_data); 614 hw->phy.original_ms_type = (phy_data & CTL1000_ENABLE_MASTER) ? 615 ((phy_data & CTL1000_AS_MASTER) ? 620 phy_data |= (CTL1000_ENABLE_MASTER | CTL1000_AS_MASTER); 623 phy_data |= CTL1000_ENABLE_MASTER; 624 phy_data &= ~(CTL1000_AS_MASTER); 627 phy_data &= ~CTL1000_ENABLE_MASTER; 633 return e1e_wphy(hw, MII_CTRL1000, phy_data); 645 u16 phy_data; local 700 u16 phy_data; local 1203 u16 phy_data; local 1267 u16 phy_data; local 1572 u16 phy_data, offset, mask; local 1679 u16 phy_data, offset, mask; local 1798 u16 phy_data, index; local 1833 u16 phy_data, i, agc_value = 0; local 1901 u16 phy_data; local 3116 u16 phy_data; local 3222 u16 phy_data, length; local [all...] |
/drivers/net/ethernet/sfc/ |
H A D | qt202x_phy.c | 165 struct qt202x_phy_data *phy_data = efx->phy_data; local 178 phy_data->firmware_ver = ((firmware_id[3] & 0xf0) << 20) | 185 struct qt202x_phy_data *phy_data = efx->phy_data; local 195 phy_data->bug17190_in_bad_state = false; 199 if (!phy_data->bug17190_in_bad_state) { 200 phy_data->bug17190_in_bad_state = true; 201 phy_data->bug17190_timer = jiffies + BUG17190_INTERVAL; 205 if (time_after_eq(jiffies, phy_data 218 struct qt202x_phy_data *phy_data = efx->phy_data; local 344 struct qt202x_phy_data *phy_data; local 405 struct qt202x_phy_data *phy_data = efx->phy_data; local [all...] |
H A D | mcdi_port.c | 262 struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; 338 struct efx_mcdi_phy_data *phy_data; local 343 /* Initialise and populate phy_data */ 344 phy_data = kzalloc(sizeof(*phy_data), GFP_KERNEL); 345 if (phy_data == NULL) 348 rc = efx_mcdi_get_phy_cfg(efx, phy_data); 360 efx->phy_data = phy_data; 361 efx->phy_type = phy_data 500 struct efx_mcdi_phy_data *phy_data = efx->phy_data; local 826 struct efx_mcdi_phy_data *phy_data = efx->phy_data; local [all...] |
H A D | tenxpress.c | 168 struct tenxpress_phy_data *phy_data; local 171 phy_data = kzalloc(sizeof(*phy_data), GFP_KERNEL); 172 if (!phy_data) 174 efx->phy_data = phy_data; 175 phy_data->phy_mode = efx->phy_mode; 258 struct tenxpress_phy_data *pd = efx->phy_data; 324 struct tenxpress_phy_data *phy_data = efx->phy_data; local [all...] |
H A D | txc43128_phy.c | 326 struct txc43128_data *phy_data; local 329 phy_data = kzalloc(sizeof(*phy_data), GFP_KERNEL); 330 if (!phy_data) 332 efx->phy_data = phy_data; 333 phy_data->phy_mode = efx->phy_mode; 449 struct txc43128_data *phy_data = efx->phy_data; local 450 enum efx_phy_mode mode_change = efx->phy_mode ^ phy_data [all...] |
/drivers/net/ethernet/ti/ |
H A D | davinci_mdio.c | 264 int phy_reg, u16 phy_data) 281 (phy_id << 16) | (phy_data & USERACCESS_DATA)); 263 davinci_mdio_write(struct mii_bus *bus, int phy_id, int phy_reg, u16 phy_data) argument
|
/drivers/net/ethernet/atheros/alx/ |
H A D | hw.c | 62 u16 reg, u16 *phy_data) 67 *phy_data = 0; 94 *phy_data = ALX_GET_FIELD(val, ALX_MDIO_DATA); 99 u16 reg, u16 phy_data) 115 phy_data << ALX_MDIO_DATA_SHIFT | 121 phy_data << ALX_MDIO_DATA_SHIFT | 129 static int __alx_read_phy_reg(struct alx_hw *hw, u16 reg, u16 *phy_data) argument 131 return alx_read_phy_core(hw, false, 0, reg, phy_data); 134 static int __alx_write_phy_reg(struct alx_hw *hw, u16 reg, u16 phy_data) argument 136 return alx_write_phy_core(hw, false, 0, reg, phy_data); 61 alx_read_phy_core(struct alx_hw *hw, bool ext, u8 dev, u16 reg, u16 *phy_data) argument 98 alx_write_phy_core(struct alx_hw *hw, bool ext, u8 dev, u16 reg, u16 phy_data) argument 171 alx_read_phy_reg(struct alx_hw *hw, u16 reg, u16 *phy_data) argument 182 alx_write_phy_reg(struct alx_hw *hw, u16 reg, u16 phy_data) argument [all...] |
/drivers/net/ethernet/intel/igb/ |
H A D | e1000_phy.c | 481 u16 phy_data; local 497 ret_val = phy->ops.read_reg(hw, I82580_CFG_REG, &phy_data); 501 phy_data |= I82580_CFG_ASSERT_CRS_ON_TX; 504 phy_data |= I82580_CFG_ENABLE_DOWNSHIFT; 506 ret_val = phy->ops.write_reg(hw, I82580_CFG_REG, phy_data); 511 ret_val = phy->ops.read_reg(hw, I82580_PHY_CTRL_2, &phy_data); 514 phy_data &= ~I82580_PHY_CTRL2_MDIX_CFG_MASK; 524 phy_data |= I82580_PHY_CTRL2_MANUAL_MDIX; 528 phy_data |= I82580_PHY_CTRL2_AUTO_MDI_MDIX; 531 ret_val = hw->phy.ops.write_reg(hw, I82580_PHY_CTRL_2, phy_data); 548 u16 phy_data; local 652 u16 phy_data; local 1156 u16 phy_data; local 1221 u16 phy_data; local 1498 u16 phy_data, offset, mask; local 1695 u16 phy_data, index; local 1721 u16 phy_data, phy_data2, index, default_page, is_cm; local 1841 u16 phy_data, i, agc_value = 0; local 1912 u16 phy_data; local 2269 u16 phy_data; local 2395 u16 phy_data, length; local 2482 u16 phy_data; local [all...] |
H A D | e1000_82575.c | 2617 u16 phy_data; local 2630 &phy_data); 2634 phy_data |= E1000_M88E1543_EEE_CTRL_1_MS; 2636 phy_data); 2648 &phy_data); 2653 phy_data |= E1000_EEE_ADV_100_SUPPORTED; 2655 phy_data &= ~E1000_EEE_ADV_100_SUPPORTED; 2658 phy_data |= E1000_EEE_ADV_1000_SUPPORTED; 2660 phy_data &= ~E1000_EEE_ADV_1000_SUPPORTED; 2664 phy_data); 2696 u16 phy_data; local [all...] |
/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_phy.c | 237 * @phy_data: Pointer to read data from PHY register 240 u16 *phy_data) 302 *phy_data = (u16)(data); 312 * @phy_data: Pointer to read data from PHY register 315 u32 device_type, u16 *phy_data) 327 phy_data); 342 * @phy_data: Data to write to the PHY register 345 u32 device_type, u16 phy_data) 350 IXGBE_WRITE_REG(hw, IXGBE_MSRWD, (u32)phy_data); 415 * @phy_data 239 ixgbe_read_phy_reg_mdi(struct ixgbe_hw *hw, u32 reg_addr, u32 device_type, u16 *phy_data) argument 314 ixgbe_read_phy_reg_generic(struct ixgbe_hw *hw, u32 reg_addr, u32 device_type, u16 *phy_data) argument 344 ixgbe_write_phy_reg_mdi(struct ixgbe_hw *hw, u32 reg_addr, u32 device_type, u16 phy_data) argument 417 ixgbe_write_phy_reg_generic(struct ixgbe_hw *hw, u32 reg_addr, u32 device_type, u16 phy_data) argument 597 u16 phy_data = 0; local 748 u16 phy_data = 0; local 1943 u16 phy_data = 0; local [all...] |
/drivers/net/ethernet/ |
H A D | lantiq_etop.c | 339 ltq_etop_mdio_wr(struct mii_bus *bus, int phy_addr, int phy_reg, u16 phy_data) argument 344 phy_data;
|
/drivers/net/wireless/ath/wil6210/ |
H A D | txrx.c | 280 static char phy_data[128]; local 293 int len = min_t(int, 8 + sizeof(phy_data), 302 memcpy(phy_data, pa, phy_length); 346 memcpy(rtap_vendor->vendor_data + sizeof(*d), phy_data,
|
/drivers/ata/ |
H A D | sata_highbank.c | 352 struct of_phandle_args phy_data; local 355 port, &phy_data)) 358 if (phy_nodes[phy] == phy_data.np) 362 phy_nodes[phy] = phy_data.np; 369 port_data[port].lane_mapping = phy_data.args[0]; 373 of_node_put(phy_data.np);
|
/drivers/infiniband/hw/nes/ |
H A D | nes_nic.c | 1491 u16 phy_data; local 1513 nes_read_1G_phy_reg(nesdev, 0, phy_index, &phy_data); 1515 if (phy_data & 0x1000) 1556 u16 phy_data; local 1560 nes_read_1G_phy_reg(nesdev, 0, phy_index, &phy_data); 1563 phy_data |= 0x1300; 1566 phy_data &= ~0x1000; 1568 nes_write_1G_phy_reg(nesdev, 0, phy_index, phy_data); 1776 u16 phy_data = 0; local 1812 phy_data [all...] |
/drivers/net/ethernet/intel/e1000/ |
H A D | e1000_ethtool.c | 350 u16 phy_data; local 376 IGP01E1000_PHY_PAGE_SELECT, &phy_data); 377 regs_buff[13] = (u32)phy_data; /* cable length */ 381 IGP01E1000_PHY_PAGE_SELECT, &phy_data); 382 regs_buff[14] = (u32)phy_data; /* cable length */ 386 IGP01E1000_PHY_PAGE_SELECT, &phy_data); 387 regs_buff[15] = (u32)phy_data; /* cable length */ 391 IGP01E1000_PHY_PAGE_SELECT, &phy_data); 392 regs_buff[16] = (u32)phy_data; /* cable length */ 396 IGP01E1000_PHY_PAGE_SELECT, &phy_data); [all...] |
/drivers/net/wireless/ath/carl9170/ |
H A D | phy.c | 1124 u32 phy_data = 0; local 1200 phy_data |= tmp << ((i & 3) << 3); 1203 (i & ~3), phy_data); 1204 phy_data = 0;
|