/Linux-v4.19/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe_phy.c | 219 u16 mii_reg; in pch_gbe_phy_power_up() local 221 mii_reg = 0; in pch_gbe_phy_power_up() 225 pch_gbe_phy_read_reg_miic(hw, PHY_CONTROL, &mii_reg); in pch_gbe_phy_power_up() 226 mii_reg &= ~MII_CR_POWER_DOWN; in pch_gbe_phy_power_up() 227 pch_gbe_phy_write_reg_miic(hw, PHY_CONTROL, mii_reg); in pch_gbe_phy_power_up() 236 u16 mii_reg; in pch_gbe_phy_power_down() local 238 mii_reg = 0; in pch_gbe_phy_power_down() 244 pch_gbe_phy_read_reg_miic(hw, PHY_CONTROL, &mii_reg); in pch_gbe_phy_power_down() 245 mii_reg |= MII_CR_POWER_DOWN; in pch_gbe_phy_power_down() 246 pch_gbe_phy_write_reg_miic(hw, PHY_CONTROL, mii_reg); in pch_gbe_phy_power_down() [all …]
|
/Linux-v4.19/drivers/net/ethernet/smsc/ |
D | smc91x.c | 776 unsigned int mii_reg, mask; in smc_mii_out() local 778 mii_reg = SMC_GET_MII(lp) & ~(MII_MCLK | MII_MDOE | MII_MDO); in smc_mii_out() 779 mii_reg |= MII_MDOE; in smc_mii_out() 783 mii_reg |= MII_MDO; in smc_mii_out() 785 mii_reg &= ~MII_MDO; in smc_mii_out() 787 SMC_SET_MII(lp, mii_reg); in smc_mii_out() 789 SMC_SET_MII(lp, mii_reg | MII_MCLK); in smc_mii_out() 798 unsigned int mii_reg, mask, val; in smc_mii_in() local 800 mii_reg = SMC_GET_MII(lp) & ~(MII_MCLK | MII_MDOE | MII_MDO); in smc_mii_in() 801 SMC_SET_MII(lp, mii_reg); in smc_mii_in() [all …]
|
/Linux-v4.19/drivers/net/ethernet/dec/tulip/ |
D | winbond-840.c | 672 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()
|
/Linux-v4.19/drivers/net/ethernet/intel/igb/ |
D | e1000_phy.c | 2385 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()
|
/Linux-v4.19/drivers/net/ethernet/intel/e1000e/ |
D | phy.c | 2698 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()
|
/Linux-v4.19/drivers/net/ethernet/intel/e1000/ |
D | e1000_main.c | 419 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() 4758 u16 mii_reg; in e1000_mii_ioctl() local 4780 mii_reg = data->val_in; in e1000_mii_ioctl() [all …]
|
/Linux-v4.19/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-phy-v2.c | 679 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()
|