• Home
  • Raw
  • Download

Lines Matching refs:ctl

50 	u32 ctl;  in mv88e1xxx_reset()  local
56 (void) simple_mdio_read(cphy, MII_BMCR, &ctl); in mv88e1xxx_reset()
57 ctl &= BMCR_RESET; in mv88e1xxx_reset()
58 if (ctl) in mv88e1xxx_reset()
60 } while (ctl && --time_out); in mv88e1xxx_reset()
62 return ctl ? -1 : 0; in mv88e1xxx_reset()
127 u32 ctl; in mv88e1xxx_set_speed_duplex() local
129 (void) simple_mdio_read(phy, MII_BMCR, &ctl); in mv88e1xxx_set_speed_duplex()
131 ctl &= ~(BMCR_SPEED100 | BMCR_SPEED1000 | BMCR_ANENABLE); in mv88e1xxx_set_speed_duplex()
133 ctl |= BMCR_SPEED100; in mv88e1xxx_set_speed_duplex()
135 ctl |= BMCR_SPEED1000; in mv88e1xxx_set_speed_duplex()
138 ctl &= ~(BMCR_FULLDPLX | BMCR_ANENABLE); in mv88e1xxx_set_speed_duplex()
140 ctl |= BMCR_FULLDPLX; in mv88e1xxx_set_speed_duplex()
142 if (ctl & BMCR_SPEED1000) /* auto-negotiation required for 1Gb/s */ in mv88e1xxx_set_speed_duplex()
143 ctl |= BMCR_ANENABLE; in mv88e1xxx_set_speed_duplex()
144 (void) simple_mdio_write(phy, MII_BMCR, ctl); in mv88e1xxx_set_speed_duplex()
163 u32 ctl; in mv88e1xxx_autoneg_enable() local
167 (void) simple_mdio_read(cphy, MII_BMCR, &ctl); in mv88e1xxx_autoneg_enable()
169 ctl |= BMCR_ANENABLE | BMCR_ANRESTART; in mv88e1xxx_autoneg_enable()
170 (void) simple_mdio_write(cphy, MII_BMCR, ctl); in mv88e1xxx_autoneg_enable()
176 u32 ctl; in mv88e1xxx_autoneg_disable() local
188 (void) simple_mdio_read(cphy, MII_BMCR, &ctl); in mv88e1xxx_autoneg_disable()
189 ctl &= ~BMCR_ANENABLE; in mv88e1xxx_autoneg_disable()
190 (void) simple_mdio_write(cphy, MII_BMCR, ctl | BMCR_ANRESTART); in mv88e1xxx_autoneg_disable()