• Home
  • Raw
  • Download

Lines Matching refs:bmcr

142 	u16 adv, bmcr, val;  in mv88e6352_serdes_pcs_config()  local
176 bmcr = val | BMCR_ANENABLE; in mv88e6352_serdes_pcs_config()
178 bmcr = val & ~BMCR_ANENABLE; in mv88e6352_serdes_pcs_config()
180 if (bmcr == val) in mv88e6352_serdes_pcs_config()
183 return mv88e6352_serdes_write(chip, MII_BMCR, bmcr); in mv88e6352_serdes_pcs_config()
216 u16 bmcr; in mv88e6352_serdes_pcs_an_restart() local
219 err = mv88e6352_serdes_read(chip, MII_BMCR, &bmcr); in mv88e6352_serdes_pcs_an_restart()
223 return mv88e6352_serdes_write(chip, MII_BMCR, bmcr | BMCR_ANRESTART); in mv88e6352_serdes_pcs_an_restart()
229 u16 val, bmcr; in mv88e6352_serdes_pcs_link_up() local
236 bmcr = val & ~(BMCR_SPEED100 | BMCR_FULLDPLX | BMCR_SPEED1000); in mv88e6352_serdes_pcs_link_up()
239 bmcr |= BMCR_SPEED1000; in mv88e6352_serdes_pcs_link_up()
242 bmcr |= BMCR_SPEED100; in mv88e6352_serdes_pcs_link_up()
249 bmcr |= BMCR_FULLDPLX; in mv88e6352_serdes_pcs_link_up()
251 if (bmcr == val) in mv88e6352_serdes_pcs_link_up()
254 return mv88e6352_serdes_write(chip, MII_BMCR, bmcr); in mv88e6352_serdes_pcs_link_up()
856 u16 val, bmcr, adv; in mv88e6390_serdes_pcs_config() local
898 bmcr = val | BMCR_ANENABLE; in mv88e6390_serdes_pcs_config()
900 bmcr = val & ~BMCR_ANENABLE; in mv88e6390_serdes_pcs_config()
903 if (bmcr == val) in mv88e6390_serdes_pcs_config()
907 MV88E6390_SGMII_BMCR, bmcr); in mv88e6390_serdes_pcs_config()
1025 u16 bmcr; in mv88e6390_serdes_pcs_an_restart() local
1029 MV88E6390_SGMII_BMCR, &bmcr); in mv88e6390_serdes_pcs_an_restart()
1035 bmcr | BMCR_ANRESTART); in mv88e6390_serdes_pcs_an_restart()
1041 u16 val, bmcr; in mv88e6390_serdes_pcs_link_up() local
1049 bmcr = val & ~(BMCR_SPEED100 | BMCR_FULLDPLX | BMCR_SPEED1000); in mv88e6390_serdes_pcs_link_up()
1053 bmcr |= BMCR_SPEED1000; in mv88e6390_serdes_pcs_link_up()
1056 bmcr |= BMCR_SPEED100; in mv88e6390_serdes_pcs_link_up()
1063 bmcr |= BMCR_FULLDPLX; in mv88e6390_serdes_pcs_link_up()
1065 if (bmcr == val) in mv88e6390_serdes_pcs_link_up()
1069 MV88E6390_SGMII_BMCR, bmcr); in mv88e6390_serdes_pcs_link_up()