/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe_phy.c | 203 u16 mii_reg; in pch_gbe_phy_power_up() local 205 mii_reg = 0; in pch_gbe_phy_power_up() 209 pch_gbe_phy_read_reg_miic(hw, PHY_CONTROL, &mii_reg); in pch_gbe_phy_power_up() 210 mii_reg &= ~MII_CR_POWER_DOWN; in pch_gbe_phy_power_up() 211 pch_gbe_phy_write_reg_miic(hw, PHY_CONTROL, mii_reg); in pch_gbe_phy_power_up() 220 u16 mii_reg; in pch_gbe_phy_power_down() local 222 mii_reg = 0; in pch_gbe_phy_power_down() 228 pch_gbe_phy_read_reg_miic(hw, PHY_CONTROL, &mii_reg); in pch_gbe_phy_power_down() 229 mii_reg |= MII_CR_POWER_DOWN; in pch_gbe_phy_power_down() 230 pch_gbe_phy_write_reg_miic(hw, PHY_CONTROL, mii_reg); in pch_gbe_phy_power_down() [all …]
|
/drivers/net/ethernet/smsc/ |
D | smc91x.c | 772 unsigned int mii_reg, mask; in smc_mii_out() local 774 mii_reg = SMC_GET_MII(lp) & ~(MII_MCLK | MII_MDOE | MII_MDO); in smc_mii_out() 775 mii_reg |= MII_MDOE; in smc_mii_out() 779 mii_reg |= MII_MDO; in smc_mii_out() 781 mii_reg &= ~MII_MDO; in smc_mii_out() 783 SMC_SET_MII(lp, mii_reg); in smc_mii_out() 785 SMC_SET_MII(lp, mii_reg | MII_MCLK); in smc_mii_out() 794 unsigned int mii_reg, mask, val; in smc_mii_in() local 796 mii_reg = SMC_GET_MII(lp) & ~(MII_MCLK | MII_MDOE | MII_MDO); in smc_mii_in() 797 SMC_SET_MII(lp, mii_reg); in smc_mii_in() [all …]
|
/drivers/net/ethernet/dec/tulip/ |
D | winbond-840.c | 679 int duplex, fasteth, result, mii_reg; in update_link() local 682 mii_reg = mdio_read(dev, np->phys[0], MII_BMSR); in update_link() 684 if (mii_reg == 0xffff) in update_link() 687 mii_reg = mdio_read(dev, np->phys[0], MII_BMSR); in update_link() 688 if (!(mii_reg & 0x4)) { in update_link() 715 mii_reg = mdio_read(dev, np->phys[0], MII_BMCR); in update_link() 716 duplex = mii_reg & BMCR_FULLDPLX; in update_link() 717 fasteth = mii_reg & BMCR_SPEED100; in update_link() 720 mii_reg = mdio_read(dev, np->phys[0], MII_LPA); in update_link() 721 negotiated = mii_reg & np->mii_if.advertising; in update_link()
|
/drivers/net/ethernet/intel/igb/ |
D | e1000_phy.c | 2131 u16 mii_reg = 0; in igb_power_up_phy_copper() local 2134 hw->phy.ops.read_reg(hw, PHY_CONTROL, &mii_reg); in igb_power_up_phy_copper() 2135 mii_reg &= ~MII_CR_POWER_DOWN; in igb_power_up_phy_copper() 2136 hw->phy.ops.write_reg(hw, PHY_CONTROL, mii_reg); in igb_power_up_phy_copper() 2148 u16 mii_reg = 0; in igb_power_down_phy_copper() local 2151 hw->phy.ops.read_reg(hw, PHY_CONTROL, &mii_reg); in igb_power_down_phy_copper() 2152 mii_reg |= MII_CR_POWER_DOWN; in igb_power_down_phy_copper() 2153 hw->phy.ops.write_reg(hw, PHY_CONTROL, mii_reg); in igb_power_down_phy_copper()
|
/drivers/net/ethernet/intel/e1000e/ |
D | phy.c | 2763 u16 mii_reg = 0; in e1000_power_up_phy_copper() local 2766 e1e_rphy(hw, PHY_CONTROL, &mii_reg); in e1000_power_up_phy_copper() 2767 mii_reg &= ~MII_CR_POWER_DOWN; in e1000_power_up_phy_copper() 2768 e1e_wphy(hw, PHY_CONTROL, mii_reg); in e1000_power_up_phy_copper() 2781 u16 mii_reg = 0; in e1000_power_down_phy_copper() local 2784 e1e_rphy(hw, PHY_CONTROL, &mii_reg); in e1000_power_down_phy_copper() 2785 mii_reg |= MII_CR_POWER_DOWN; in e1000_power_down_phy_copper() 2786 e1e_wphy(hw, PHY_CONTROL, mii_reg); in e1000_power_down_phy_copper()
|
/drivers/net/ethernet/intel/e1000/ |
D | e1000_main.c | 442 u16 mii_reg = 0; in e1000_power_up_phy() local 448 e1000_read_phy_reg(hw, PHY_CTRL, &mii_reg); in e1000_power_up_phy() 449 mii_reg &= ~MII_CR_POWER_DOWN; in e1000_power_up_phy() 450 e1000_write_phy_reg(hw, PHY_CTRL, mii_reg); in e1000_power_up_phy() 465 u16 mii_reg = 0; in e1000_power_down_phy() local 484 e1000_read_phy_reg(hw, PHY_CTRL, &mii_reg); in e1000_power_down_phy() 485 mii_reg |= MII_CR_POWER_DOWN; in e1000_power_down_phy() 486 e1000_write_phy_reg(hw, PHY_CTRL, mii_reg); in e1000_power_down_phy() 4654 u16 mii_reg; in e1000_mii_ioctl() local 4676 mii_reg = data->val_in; in e1000_mii_ioctl() [all …]
|