| /mirbsd/src/sys/dev/mii/ |
| D | rgephy.c | 303 int bmsr, bmcr; in rgephy_status() local 308 bmsr = PHY_READ(sc, RL_GMEDIASTAT); in rgephy_status() 310 if (bmsr & RL_GMEDIASTAT_LINK) in rgephy_status() 312 bmsr = PHY_READ(sc, RGEPHY_MII_BMSR); in rgephy_status() 320 if ((bmsr & RGEPHY_BMSR_ACOMP) == 0) { in rgephy_status() 327 bmsr = PHY_READ(sc, RL_GMEDIASTAT); in rgephy_status() 328 if (bmsr & RL_GMEDIASTAT_10MBPS) in rgephy_status() 330 if (bmsr & RL_GMEDIASTAT_100MBPS) in rgephy_status() 332 if (bmsr & RL_GMEDIASTAT_1000MBPS) in rgephy_status() 334 if (bmsr & RL_GMEDIASTAT_FDX) in rgephy_status() [all …]
|
| D | gentbi.c | 120 int bmsr, extsr; in gentbimatch() local 128 bmsr = (*mii->mii_readreg)(parent, ma->mii_phyno, MII_BMSR); in gentbimatch() 129 if ((bmsr & BMSR_EXTSTAT) == 0 || (bmsr & BMSR_MEDIAMASK) != 0) in gentbimatch() 245 int bmsr, bmcr, anlpar; in gentbi_status() local 250 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in gentbi_status() 252 if (bmsr & BMSR_LINK) in gentbi_status() 270 if ((bmsr & BMSR_ACOMP) == 0) { in gentbi_status()
|
| D | xmphy.c | 255 int bmsr, bmcr, anlpar; in xmphy_status() local 260 bmsr = PHY_READ(sc, XMPHY_MII_BMSR) | in xmphy_status() 262 if (bmsr & XMPHY_BMSR_LINK) in xmphy_status() 275 if ((bmsr & XMPHY_BMSR_ACOMP) == 0) { in xmphy_status() 276 if (bmsr & XMPHY_BMSR_LINK) { in xmphy_status() 308 int bmsr, anar = 0, i; in xmphy_mii_phy_auto() local 322 if ((bmsr = PHY_READ(sc, XMPHY_MII_BMSR)) & in xmphy_mii_phy_auto() 327 if ((bmsr & BMSR_ACOMP) == 0) in xmphy_mii_phy_auto()
|
| D | ciphy.c | 272 int bmsr, bmcr; in ciphy_status() local 277 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in ciphy_status() 279 if (bmsr & BMSR_LINK) in ciphy_status() 288 if ((bmsr & CIPHY_BMSR_ACOMP) == 0) { in ciphy_status() 295 bmsr = PHY_READ(sc, CIPHY_MII_AUXCSR); in ciphy_status() 296 switch (bmsr & CIPHY_AUXCSR_SPEED) { in ciphy_status() 308 sc->mii_dev.dv_xname, bmsr & CIPHY_AUXCSR_SPEED); in ciphy_status() 312 if (bmsr & CIPHY_AUXCSR_FDX) in ciphy_status()
|
| D | ukphy_subr.c | 66 int bmsr, bmcr, anlpar, gtcr, gtsr; in ukphy_status() local 71 bmsr = PHY_READ(phy, MII_BMSR) | PHY_READ(phy, MII_BMSR); in ukphy_status() 72 if (bmsr & BMSR_LINK) in ukphy_status() 91 if ((bmsr & BMSR_ACOMP) == 0) { in ukphy_status()
|
| D | iophy.c | 231 int bmsr, bmcr, ext0; local 236 bmsr = PHY_READ(sc, MII_BMSR) | 238 if (bmsr & BMSR_LINK) 252 if ((bmsr & BMSR_ACOMP) == 0) { 260 if (bmsr & BMSR_100T4) {
|
| D | inphy.c | 234 int bmsr, bmcr, scr; local 239 bmsr = PHY_READ(sc, MII_BMSR) | 241 if (bmsr & BMSR_LINK) 255 if ((bmsr & BMSR_ACOMP) == 0) { 261 if ((bmsr & BMSR_100T4) && (scr & SCR_T4))
|
| D | mii.c | 74 int bmsr, offset = 0; in mii_attach() local 114 bmsr = (*mii->mii_readreg)(parent, ma.mii_phyno, MII_BMSR); in mii_attach() 115 if (bmsr == 0 || bmsr == 0xffff || in mii_attach() 116 (bmsr & (BMSR_MEDIAMASK|BMSR_EXTSTAT)) == 0) { in mii_attach()
|
| D | eephy.c | 362 int bmsr, bmcr, esr, ssr, isr, ar, lpar; in eephy_status() local 367 bmsr = PHY_READ(sc, E1000_SR) | PHY_READ(sc, E1000_SR); in eephy_status() 375 if (bmsr & E1000_SR_LINK_STATUS) in eephy_status() 382 (!(bmsr & E1000_SR_AUTO_NEG_COMPLETE) || !(ssr & E1000_SSR_LINK) || in eephy_status() 425 int bmsr, i; in eephy_mii_phy_auto() local 445 bmsr = PHY_READ(sc, E1000_SR) | PHY_READ(sc, E1000_SR); in eephy_mii_phy_auto() 447 if (bmsr & E1000_SR_AUTO_NEG_COMPLETE) { in eephy_mii_phy_auto()
|
| D | tqphy.c | 227 int bmsr, bmcr, diag; in tqphy_status() local 232 bmsr = PHY_READ(sc, MII_BMSR) | in tqphy_status() 234 if (bmsr & BMSR_LINK) in tqphy_status() 248 if ((bmsr & BMSR_ACOMP) == 0) { in tqphy_status()
|
| D | sqphy.c | 225 int bmsr, bmcr, status; in sqphy_status() local 230 bmsr = PHY_READ(sc, MII_BMSR) | in sqphy_status() 232 if (bmsr & BMSR_LINK) in sqphy_status() 246 if ((bmsr & BMSR_ACOMP) == 0) { in sqphy_status()
|
| D | qsphy.c | 221 int bmsr, bmcr, pctl; in qsphy_status() local 226 bmsr = PHY_READ(sc, MII_BMSR) | in qsphy_status() 228 if (bmsr & BMSR_LINK) in qsphy_status() 242 if ((bmsr & BMSR_ACOMP) == 0) { in qsphy_status()
|
| D | acphy.c | 205 int bmsr, bmcr, dr; in acphy_status() local 210 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in acphy_status() 213 if (bmsr & BMSR_LINK) in acphy_status() 231 if ((bmsr & BMSR_ACOMP) == 0) { in acphy_status()
|
| D | bmtphy.c | 200 int bmsr, bmcr, aux_csr; in bmtphy_status() local 205 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in bmtphy_status() 206 if (bmsr & BMSR_LINK) in bmtphy_status() 224 if ((bmsr & BMSR_ACOMP) == 0) { in bmtphy_status()
|
| D | amphy.c | 194 int bmsr, bmcr, par, anlpar; in amphy_status() local 199 bmsr = PHY_READ(sc, MII_BMSR) | in amphy_status() 201 if (bmsr & BMSR_LINK) in amphy_status() 219 if ((bmsr & BMSR_ACOMP) == 0) { in amphy_status()
|
| D | rlphy.c | 212 int bmsr, bmcr, anlpar; in rlphy_status() local 217 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in rlphy_status() 218 if (bmsr & BMSR_LINK) in rlphy_status() 237 if ((bmsr & BMSR_ACOMP) == 0) { in rlphy_status()
|
| D | brgphy.c | 314 int bmsr, bmcr; in brgphy_status() local 319 bmsr = PHY_READ(sc, BRGPHY_MII_BMSR); in brgphy_status() 329 if ((bmsr & BRGPHY_BMSR_ACOMP) == 0) { in brgphy_status() 395 u_int32_t bmsr; in brgphy_loop() local 400 bmsr = PHY_READ(sc, BRGPHY_MII_BMSR); in brgphy_loop() 401 if (!(bmsr & BRGPHY_BMSR_LINK)) { in brgphy_loop()
|
| D | nsphy.c | 253 int bmsr, bmcr, par, anlpar; in nsphy_status() local 258 bmsr = PHY_READ(sc, MII_BMSR) | in nsphy_status() 260 if (bmsr & BMSR_LINK) in nsphy_status() 278 if ((bmsr & BMSR_ACOMP) == 0) { in nsphy_status()
|
| D | nsphyter.c | 223 int bmsr, bmcr, physts; in nsphyter_status() local 228 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in nsphyter_status() 249 if ((bmsr & BMSR_ACOMP) == 0) { in nsphyter_status()
|
| D | lxtphy.c | 245 int bmcr, bmsr, csr; local 270 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); 271 if ((bmsr & BMSR_ACOMP) == 0) {
|
| D | nsgphy.c | 198 int bmsr, bmcr, physup, gtsr; in nsgphy_status() local 203 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in nsgphy_status() 221 if ((bmsr & BMSR_ACOMP) == 0) { in nsgphy_status()
|
| D | urlphy.c | 228 int msr, bmsr, bmcr; in urlphy_status() local 248 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in urlphy_status() 249 if ((bmsr & BMSR_ACOMP) == 0) { in urlphy_status()
|
| D | tlphy.c | 286 int bmsr, bmcr, tlctrl; in tlphy_status() local 305 bmsr = PHY_READ(&sc->sc_mii, MII_BMSR) | in tlphy_status() 307 if (bmsr & BMSR_LINK) in tlphy_status()
|
| D | mii_physubr.c | 128 int bmsr, i; in mii_phy_auto() local 182 if ((bmsr = PHY_READ(sc, MII_BMSR)) & BMSR_ACOMP) in mii_phy_auto() 216 int s, bmsr; in mii_phy_auto_timeout() local 223 bmsr = PHY_READ(sc, MII_BMSR); in mii_phy_auto_timeout()
|
| /mirbsd/src/sys/arch/sparc/dev/ |
| D | be.c | 135 int pri, bmsr; local 173 bmsr = be_tcvr_read(sc, PHY_BMSR); 174 if (bmsr == BE_TCVR_READ_INVALID) 177 if (bmsr & PHY_BMSR_10BASET_HALF) { 184 if (bmsr & PHY_BMSR_10BASET_FULL) { 190 if (bmsr & PHY_BMSR_100BASETX_HALF) { 197 if (bmsr & PHY_BMSR_100BASETX_FULL) { 203 if (bmsr & PHY_BMSR_100BASET4) { 209 if (bmsr & PHY_BMSR_ANC) { 1074 int bmcr, bmsr; local [all …]
|