/linux/drivers/net/ethernet/oki-semi/pch_gbe/ |
A D | pch_gbe_phy.c | 208 u16 mii_reg; in pch_gbe_phy_power_up() local 210 mii_reg = 0; in pch_gbe_phy_power_up() 215 mii_reg &= ~MII_CR_POWER_DOWN; 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() 234 mii_reg |= MII_CR_POWER_DOWN; in pch_gbe_phy_power_down() 262 u16 mii_reg; in pch_gbe_phy_tx_clk_delay() local 278 mii_reg); in pch_gbe_phy_tx_clk_delay() 302 u16 mii_reg; in pch_gbe_phy_init_setting() local 336 u16 mii_reg; in pch_gbe_phy_disable_hibernate() local [all …]
|
/linux/drivers/net/ethernet/intel/igc/ |
A D | igc_phy.c | 110 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()
|
/linux/drivers/net/ethernet/smsc/ |
A D | smc91x.c | 765 unsigned int mii_reg, mask; in smc_mii_out() local 767 mii_reg = SMC_GET_MII(lp) & ~(MII_MCLK | MII_MDOE | MII_MDO); in smc_mii_out() 768 mii_reg |= MII_MDOE; in smc_mii_out() 772 mii_reg |= MII_MDO; in smc_mii_out() 774 mii_reg &= ~MII_MDO; in smc_mii_out() 776 SMC_SET_MII(lp, mii_reg); in smc_mii_out() 778 SMC_SET_MII(lp, mii_reg | MII_MCLK); in smc_mii_out() 787 unsigned int mii_reg, mask, val; in smc_mii_in() local 790 SMC_SET_MII(lp, mii_reg); in smc_mii_in() 796 SMC_SET_MII(lp, mii_reg); in smc_mii_in() [all …]
|
/linux/drivers/net/ethernet/dec/tulip/ |
A D | winbond-840.c | 663 int duplex, fasteth, result, mii_reg; in update_link() local 666 mii_reg = mdio_read(dev, np->phys[0], MII_BMSR); in update_link() 668 if (mii_reg == 0xffff) in update_link() 671 mii_reg = mdio_read(dev, np->phys[0], MII_BMSR); in update_link() 672 if (!(mii_reg & 0x4)) { in update_link() 699 mii_reg = mdio_read(dev, np->phys[0], MII_BMCR); in update_link() 700 duplex = mii_reg & BMCR_FULLDPLX; in update_link() 701 fasteth = mii_reg & BMCR_SPEED100; in update_link() 704 mii_reg = mdio_read(dev, np->phys[0], MII_LPA); in update_link() 705 negotiated = mii_reg & np->mii_if.advertising; in update_link()
|
/linux/drivers/net/ethernet/intel/igb/ |
A D | e1000_phy.c | 2386 u16 mii_reg = 0; in igb_power_up_phy_copper() local 2389 hw->phy.ops.read_reg(hw, PHY_CONTROL, &mii_reg); in igb_power_up_phy_copper() 2390 mii_reg &= ~MII_CR_POWER_DOWN; in igb_power_up_phy_copper() 2391 hw->phy.ops.write_reg(hw, PHY_CONTROL, mii_reg); in igb_power_up_phy_copper() 2403 u16 mii_reg = 0; in igb_power_down_phy_copper() local 2406 hw->phy.ops.read_reg(hw, PHY_CONTROL, &mii_reg); in igb_power_down_phy_copper() 2407 mii_reg |= MII_CR_POWER_DOWN; in igb_power_down_phy_copper() 2408 hw->phy.ops.write_reg(hw, PHY_CONTROL, mii_reg); in igb_power_down_phy_copper()
|
/linux/drivers/net/ethernet/intel/e1000e/ |
A D | phy.c | 2699 u16 mii_reg = 0; in e1000_power_up_phy_copper() local 2702 e1e_rphy(hw, MII_BMCR, &mii_reg); in e1000_power_up_phy_copper() 2703 mii_reg &= ~BMCR_PDOWN; in e1000_power_up_phy_copper() 2704 e1e_wphy(hw, MII_BMCR, mii_reg); in e1000_power_up_phy_copper() 2717 u16 mii_reg = 0; in e1000_power_down_phy_copper() local 2720 e1e_rphy(hw, MII_BMCR, &mii_reg); in e1000_power_down_phy_copper() 2721 mii_reg |= BMCR_PDOWN; in e1000_power_down_phy_copper() 2722 e1e_wphy(hw, MII_BMCR, mii_reg); in e1000_power_down_phy_copper()
|
/linux/drivers/net/ethernet/intel/e1000/ |
A D | e1000_main.c | 416 u16 mii_reg = 0; in e1000_power_up_phy() local 424 mii_reg &= ~MII_CR_POWER_DOWN; in e1000_power_up_phy() 441 u16 mii_reg = 0; in e1000_power_down_phy() local 461 mii_reg |= MII_CR_POWER_DOWN; in e1000_power_down_phy() 4760 u16 mii_reg; in e1000_mii_ioctl() local 4782 mii_reg = data->val_in; in e1000_mii_ioctl() 4785 mii_reg)) { in e1000_mii_ioctl() 4793 if (mii_reg & MII_CR_POWER_DOWN) in e1000_mii_ioctl() 4800 if (mii_reg & 0x40) in e1000_mii_ioctl() 4802 else if (mii_reg & 0x2000) in e1000_mii_ioctl() [all …]
|
/linux/drivers/net/ethernet/atheros/ |
A D | ag71xx.c | 966 u32 mii_reg; in ag71xx_fast_reset() local 970 mii_reg = ag71xx_rr(ag, AG71XX_REG_MII_CFG); in ag71xx_fast_reset() 992 ag71xx_wr(ag, AG71XX_REG_MII_CFG, mii_reg); in ag71xx_fast_reset()
|
/linux/drivers/net/ethernet/amd/xgbe/ |
A D | xgbe-phy-v2.c | 680 u8 mii_reg; in xgbe_phy_i2c_mii_read() local 687 mii_reg = reg; in xgbe_phy_i2c_mii_read() 689 &mii_reg, sizeof(mii_reg), in xgbe_phy_i2c_mii_read()
|