Home
last modified time | relevance | path

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

/linux-6.1.9/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 …]
/linux-6.1.9/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()
/linux-6.1.9/drivers/net/ethernet/smsc/
Dsmc91x.c765 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
789 mii_reg = SMC_GET_MII(lp) & ~(MII_MCLK | MII_MDOE | MII_MDO); in smc_mii_in()
790 SMC_SET_MII(lp, mii_reg); in smc_mii_in()
[all …]
/linux-6.1.9/drivers/net/ethernet/dec/tulip/
Dwinbond-840.c661 int duplex, fasteth, result, mii_reg; in update_link() local
664 mii_reg = mdio_read(dev, np->phys[0], MII_BMSR); in update_link()
666 if (mii_reg == 0xffff) in update_link()
669 mii_reg = mdio_read(dev, np->phys[0], MII_BMSR); in update_link()
670 if (!(mii_reg & 0x4)) { in update_link()
697 mii_reg = mdio_read(dev, np->phys[0], MII_BMCR); in update_link()
698 duplex = mii_reg & BMCR_FULLDPLX; in update_link()
699 fasteth = mii_reg & BMCR_SPEED100; in update_link()
702 mii_reg = mdio_read(dev, np->phys[0], MII_LPA); in update_link()
703 negotiated = mii_reg & np->mii_if.advertising; in update_link()
/linux-6.1.9/drivers/net/ethernet/intel/igb/
De1000_phy.c2386 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-6.1.9/drivers/net/ethernet/intel/e1000e/
Dphy.c2699 u16 mii_reg = 0; in e1000_power_up_phy_copper() local
2703 ret = e1e_rphy(hw, MII_BMCR, &mii_reg); in e1000_power_up_phy_copper()
2708 mii_reg &= ~BMCR_PDOWN; in e1000_power_up_phy_copper()
2709 e1e_wphy(hw, MII_BMCR, mii_reg); in e1000_power_up_phy_copper()
2722 u16 mii_reg = 0; in e1000_power_down_phy_copper() local
2726 ret = e1e_rphy(hw, MII_BMCR, &mii_reg); in e1000_power_down_phy_copper()
2731 mii_reg |= BMCR_PDOWN; in e1000_power_down_phy_copper()
2732 e1e_wphy(hw, MII_BMCR, mii_reg); in e1000_power_down_phy_copper()
/linux-6.1.9/drivers/net/ethernet/intel/e1000/
De1000_main.c416 u16 mii_reg = 0; in e1000_power_up_phy() local
423 e1000_read_phy_reg(hw, PHY_CTRL, &mii_reg); in e1000_power_up_phy()
424 mii_reg &= ~MII_CR_POWER_DOWN; in e1000_power_up_phy()
425 e1000_write_phy_reg(hw, PHY_CTRL, mii_reg); in e1000_power_up_phy()
441 u16 mii_reg = 0; in e1000_power_down_phy() local
460 e1000_read_phy_reg(hw, PHY_CTRL, &mii_reg); in e1000_power_down_phy()
461 mii_reg |= MII_CR_POWER_DOWN; in e1000_power_down_phy()
462 e1000_write_phy_reg(hw, PHY_CTRL, mii_reg); in e1000_power_down_phy()
4762 u16 mii_reg; in e1000_mii_ioctl() local
4784 mii_reg = data->val_in; in e1000_mii_ioctl()
[all …]
/linux-6.1.9/drivers/net/ethernet/atheros/
Dag71xx.c966 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-6.1.9/drivers/net/ethernet/amd/xgbe/
Dxgbe-phy-v2.c681 u8 mii_reg; in xgbe_phy_i2c_mii_read() local
688 mii_reg = reg; in xgbe_phy_i2c_mii_read()
690 &mii_reg, sizeof(mii_reg), in xgbe_phy_i2c_mii_read()