Home
last modified time | relevance | path

Searched refs:mii_reg (Results 1 – 9 of 9) sorted by relevance

/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_phy.c208 u16 mii_reg; in pch_gbe_phy_power_up() local
210 mii_reg = 0; in pch_gbe_phy_power_up()
214 pch_gbe_phy_read_reg_miic(hw, PHY_CONTROL, &mii_reg); in pch_gbe_phy_power_up()
215 mii_reg &= ~MII_CR_POWER_DOWN; in pch_gbe_phy_power_up()
216 pch_gbe_phy_write_reg_miic(hw, PHY_CONTROL, mii_reg); in pch_gbe_phy_power_up()
225 u16 mii_reg; in pch_gbe_phy_power_down() local
227 mii_reg = 0; in pch_gbe_phy_power_down()
233 pch_gbe_phy_read_reg_miic(hw, PHY_CONTROL, &mii_reg); in pch_gbe_phy_power_down()
234 mii_reg |= MII_CR_POWER_DOWN; in pch_gbe_phy_power_down()
235 pch_gbe_phy_write_reg_miic(hw, PHY_CONTROL, mii_reg); in pch_gbe_phy_power_down()
[all …]
/drivers/net/ethernet/intel/igc/
Digc_phy.c110 u16 mii_reg = 0; in igc_power_up_phy_copper() local
113 hw->phy.ops.read_reg(hw, PHY_CONTROL, &mii_reg); in igc_power_up_phy_copper()
114 mii_reg &= ~MII_CR_POWER_DOWN; in igc_power_up_phy_copper()
115 hw->phy.ops.write_reg(hw, PHY_CONTROL, mii_reg); in igc_power_up_phy_copper()
127 u16 mii_reg = 0; in igc_power_down_phy_copper() local
130 hw->phy.ops.read_reg(hw, PHY_CONTROL, &mii_reg); in igc_power_down_phy_copper()
131 mii_reg |= MII_CR_POWER_DOWN; in igc_power_down_phy_copper()
/drivers/net/ethernet/smsc/
Dsmc91x.c764 unsigned int mii_reg, mask; in smc_mii_out() local
766 mii_reg = SMC_GET_MII(lp) & ~(MII_MCLK | MII_MDOE | MII_MDO); in smc_mii_out()
767 mii_reg |= MII_MDOE; in smc_mii_out()
771 mii_reg |= MII_MDO; in smc_mii_out()
773 mii_reg &= ~MII_MDO; in smc_mii_out()
775 SMC_SET_MII(lp, mii_reg); in smc_mii_out()
777 SMC_SET_MII(lp, mii_reg | MII_MCLK); in smc_mii_out()
786 unsigned int mii_reg, mask, val; in smc_mii_in() local
788 mii_reg = SMC_GET_MII(lp) & ~(MII_MCLK | MII_MDOE | MII_MDO); in smc_mii_in()
789 SMC_SET_MII(lp, mii_reg); in smc_mii_in()
[all …]
/drivers/net/ethernet/dec/tulip/
Dwinbond-840.c672 int duplex, fasteth, result, mii_reg; in update_link() local
675 mii_reg = mdio_read(dev, np->phys[0], MII_BMSR); in update_link()
677 if (mii_reg == 0xffff) in update_link()
680 mii_reg = mdio_read(dev, np->phys[0], MII_BMSR); in update_link()
681 if (!(mii_reg & 0x4)) { in update_link()
708 mii_reg = mdio_read(dev, np->phys[0], MII_BMCR); in update_link()
709 duplex = mii_reg & BMCR_FULLDPLX; in update_link()
710 fasteth = mii_reg & BMCR_SPEED100; in update_link()
713 mii_reg = mdio_read(dev, np->phys[0], MII_LPA); in update_link()
714 negotiated = mii_reg & np->mii_if.advertising; in update_link()
/drivers/net/ethernet/intel/igb/
De1000_phy.c2385 u16 mii_reg = 0; in igb_power_up_phy_copper() local
2388 hw->phy.ops.read_reg(hw, PHY_CONTROL, &mii_reg); in igb_power_up_phy_copper()
2389 mii_reg &= ~MII_CR_POWER_DOWN; in igb_power_up_phy_copper()
2390 hw->phy.ops.write_reg(hw, PHY_CONTROL, mii_reg); in igb_power_up_phy_copper()
2402 u16 mii_reg = 0; in igb_power_down_phy_copper() local
2405 hw->phy.ops.read_reg(hw, PHY_CONTROL, &mii_reg); in igb_power_down_phy_copper()
2406 mii_reg |= MII_CR_POWER_DOWN; in igb_power_down_phy_copper()
2407 hw->phy.ops.write_reg(hw, PHY_CONTROL, mii_reg); in igb_power_down_phy_copper()
/drivers/net/ethernet/intel/e1000e/
Dphy.c2698 u16 mii_reg = 0; in e1000_power_up_phy_copper() local
2701 e1e_rphy(hw, MII_BMCR, &mii_reg); in e1000_power_up_phy_copper()
2702 mii_reg &= ~BMCR_PDOWN; in e1000_power_up_phy_copper()
2703 e1e_wphy(hw, MII_BMCR, mii_reg); in e1000_power_up_phy_copper()
2716 u16 mii_reg = 0; in e1000_power_down_phy_copper() local
2719 e1e_rphy(hw, MII_BMCR, &mii_reg); in e1000_power_down_phy_copper()
2720 mii_reg |= BMCR_PDOWN; in e1000_power_down_phy_copper()
2721 e1e_wphy(hw, MII_BMCR, mii_reg); in e1000_power_down_phy_copper()
/drivers/net/ethernet/intel/e1000/
De1000_main.c419 u16 mii_reg = 0; in e1000_power_up_phy() local
426 e1000_read_phy_reg(hw, PHY_CTRL, &mii_reg); in e1000_power_up_phy()
427 mii_reg &= ~MII_CR_POWER_DOWN; in e1000_power_up_phy()
428 e1000_write_phy_reg(hw, PHY_CTRL, mii_reg); in e1000_power_up_phy()
444 u16 mii_reg = 0; in e1000_power_down_phy() local
463 e1000_read_phy_reg(hw, PHY_CTRL, &mii_reg); in e1000_power_down_phy()
464 mii_reg |= MII_CR_POWER_DOWN; in e1000_power_down_phy()
465 e1000_write_phy_reg(hw, PHY_CTRL, mii_reg); in e1000_power_down_phy()
4749 u16 mii_reg; in e1000_mii_ioctl() local
4771 mii_reg = data->val_in; in e1000_mii_ioctl()
[all …]
/drivers/net/ethernet/atheros/
Dag71xx.c806 u32 mii_reg; in ag71xx_fast_reset() local
810 mii_reg = ag71xx_rr(ag, AG71XX_REG_MII_CFG); in ag71xx_fast_reset()
832 ag71xx_wr(ag, AG71XX_REG_MII_CFG, mii_reg); in ag71xx_fast_reset()
/drivers/net/ethernet/amd/xgbe/
Dxgbe-phy-v2.c679 u8 mii_reg; in xgbe_phy_i2c_mii_read() local
686 mii_reg = reg; in xgbe_phy_i2c_mii_read()
688 &mii_reg, sizeof(mii_reg), in xgbe_phy_i2c_mii_read()