/freebsd/sys/dev/mii/ |
H A D | gentbi.c | 123 int bmsr, extsr; in gentbi_probe() local 134 bmsr = MIIBUS_READREG(parent, ma->mii_phyno, MII_BMSR); in gentbi_probe() 135 if ((bmsr & BMSR_EXTSTAT) == 0 || (bmsr & BMSR_MEDIAMASK) != 0) in gentbi_probe() 214 int bmsr, bmcr, anlpar; in gentbi_status() local 219 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in gentbi_status() 221 if (bmsr & BMSR_LINK) in gentbi_status() 239 if ((bmsr & BMSR_ACOMP) == 0) { in gentbi_status()
|
H A D | ciphy.c | 230 int bmsr, bmcr; in ciphy_status() local 235 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in ciphy_status() 237 if (bmsr & BMSR_LINK) in ciphy_status() 246 if ((bmsr & CIPHY_BMSR_ACOMP) == 0) { in ciphy_status() 253 bmsr = PHY_READ(sc, CIPHY_MII_AUXCSR); in ciphy_status() 254 switch (bmsr & CIPHY_AUXCSR_SPEED) { in ciphy_status() 266 bmsr & CIPHY_AUXCSR_SPEED); in ciphy_status() 270 if (bmsr & CIPHY_AUXCSR_FDX) in ciphy_status()
|
H A D | ukphy_subr.c | 63 int bmsr, bmcr, anlpar, gtcr, gtsr; in ukphy_status() local 68 bmsr = PHY_READ(phy, MII_BMSR) | PHY_READ(phy, MII_BMSR); in ukphy_status() 69 if (bmsr & BMSR_LINK) in ukphy_status() 88 if ((bmsr & BMSR_ACOMP) == 0) { in ukphy_status()
|
H A D | axphy.c | 135 int bmsr, bmcr; in axphy_status() local 140 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in axphy_status() 141 if (bmsr & BMSR_LINK) in axphy_status() 155 if ((bmsr & BMSR_ACOMP) == 0) { in axphy_status()
|
H A D | xmphy.c | 213 int bmsr, bmcr, anlpar; in xmphy_status() local 218 bmsr = PHY_READ(sc, XMPHY_MII_BMSR) | in xmphy_status() 220 if (bmsr & XMPHY_BMSR_LINK) in xmphy_status() 232 if ((bmsr & XMPHY_BMSR_ACOMP) == 0) { in xmphy_status() 233 if (bmsr & XMPHY_BMSR_LINK) { in xmphy_status()
|
H A D | atphy.c | 112 uint16_t anar, bmcr, bmsr; in atphy_service() local 183 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in atphy_service() 184 if (bmsr & BMSR_LINK) { in atphy_service() 212 uint32_t bmsr, bmcr, ssr; in atphy_status() local 217 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in atphy_status() 218 if ((bmsr & BMSR_LINK) != 0) in atphy_status()
|
H A D | rgephy.c | 312 int bmsr, bmcr; in rgephy_status() local 321 bmsr = PHY_READ(sc, RGEPHY_MII_BMSR); in rgephy_status() 333 if ((bmsr & RGEPHY_BMSR_ACOMP) == 0) { in rgephy_status() 386 bmsr = PHY_READ(sc, URE_GMEDIASTAT); in rgephy_status() 388 bmsr = PHY_READ(sc, RL_GMEDIASTAT); in rgephy_status() 389 if (bmsr & RL_GMEDIASTAT_1000MBPS) in rgephy_status() 391 else if (bmsr & RL_GMEDIASTAT_100MBPS) in rgephy_status() 393 else if (bmsr & RL_GMEDIASTAT_10MBPS) in rgephy_status() 397 if (bmsr & RL_GMEDIASTAT_FDX) in rgephy_status()
|
H A D | amphy.c | 142 int bmsr, bmcr, par, anlpar; in amphy_status() local 147 bmsr = PHY_READ(sc, MII_BMSR) | in amphy_status() 149 if (bmsr & BMSR_LINK) in amphy_status() 167 if ((bmsr & BMSR_ACOMP) == 0) { in amphy_status()
|
H A D | bmtphy.c | 182 int bmsr, bmcr, aux_csr; in bmtphy_status() local 190 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in bmtphy_status() 192 if (bmsr & BMSR_LINK) in bmtphy_status() 210 if ((bmsr & BMSR_ACOMP) == 0) { in bmtphy_status()
|
H A D | rlphy.c | 165 int bmsr, bmcr, anlpar; in rlphy_status() local 170 bmsr = PHY_READ(phy, MII_BMSR) | PHY_READ(phy, MII_BMSR); in rlphy_status() 171 if (bmsr & BMSR_LINK) in rlphy_status() 190 if ((bmsr & BMSR_ACOMP) == 0) { in rlphy_status()
|
H A D | tdkphy.c | 149 int bmsr, bmcr, anlpar, diag; in tdkphy_status() local 154 bmsr = PHY_READ(phy, MII_BMSR) | PHY_READ(phy, MII_BMSR); in tdkphy_status() 155 if (bmsr & BMSR_LINK) in tdkphy_status() 174 if ((bmsr & BMSR_ACOMP) == 0) { in tdkphy_status()
|
H A D | acphy.c | 195 int bmsr, bmcr, diag; in acphy_status() local 200 bmsr = PHY_READ(sc, MII_BMSR) | in acphy_status() 202 if (bmsr & BMSR_LINK) in acphy_status() 216 if ((bmsr & BMSR_ACOMP) == 0) { in acphy_status()
|
H A D | smscphy.c | 187 uint32_t bmcr, bmsr, status; in smscphy_status() local 193 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in smscphy_status() 194 if ((bmsr & BMSR_LINK) != 0) in smscphy_status() 208 if ((bmsr & BMSR_ACOMP) == 0) { in smscphy_status()
|
H A D | nsphy.c | 203 int bmsr, bmcr, par, anlpar; in nsphy_status() local 208 bmsr = PHY_READ(sc, MII_BMSR) | in nsphy_status() 210 if (bmsr & BMSR_LINK) in nsphy_status() 228 if ((bmsr & BMSR_ACOMP) == 0) { in nsphy_status()
|
H A D | smcphy.c | 224 uint32_t bmcr, bmsr, status; in smcphy_status() local 230 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in smcphy_status() 231 if ((bmsr & BMSR_LINK) != 0) in smcphy_status() 245 if ((bmsr & BMSR_ACOMP) == 0) { in smcphy_status()
|
H A D | qsphy.c | 166 int bmsr, bmcr, pctl; in qsphy_status() local 171 bmsr = PHY_READ(sc, MII_BMSR) | in qsphy_status() 173 if (bmsr & BMSR_LINK) in qsphy_status()
|
H A D | truephy.c | 277 int bmsr, bmcr, sr; in truephy_status() local 285 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in truephy_status() 286 if (bmsr & BMSR_LINK) in truephy_status() 290 if ((bmsr & BMSR_ACOMP) == 0) { in truephy_status()
|
H A D | rdcphy.c | 185 int bmsr, bmcr, physts; in rdcphy_status() local 192 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in rdcphy_status() 209 if ((bmsr & BMSR_ACOMP) == 0) { in rdcphy_status()
|
H A D | nsgphy.c | 182 int bmsr, bmcr, physup, gtsr; in nsgphy_status() local 187 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in nsgphy_status() 209 if ((bmsr & BMSR_ACOMP) == 0) { in nsgphy_status()
|
H A D | nsphyter.c | 172 int bmsr, bmcr, physts; in nsphyter_status() local 177 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in nsphyter_status() 198 if ((bmsr & BMSR_ACOMP) == 0) { in nsphyter_status()
|
H A D | ip1000phy.c | 220 uint32_t bmsr, bmcr, stat; in ip1000phy_status() local 225 bmsr = PHY_READ(sc, IP1000PHY_MII_BMSR) | in ip1000phy_status() 227 if ((bmsr & IP1000PHY_BMSR_LINK) != 0) in ip1000phy_status() 235 if ((bmsr & IP1000PHY_BMSR_ANEGCOMP) == 0) { in ip1000phy_status()
|
H A D | lxtphy.c | 194 int bmcr, bmsr, csr; in lxtphy_status() local 219 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in lxtphy_status() 220 if ((bmsr & BMSR_ACOMP) == 0) { in lxtphy_status()
|
H A D | dp83867phy.c | 229 int bmsr, bmcr, physts; in dp_status() local 235 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in dp_status() 238 if ((bmsr & BMSR_LINK) && (physts & DP83867_PHYSTS_LINK_UP)) in dp_status()
|
/freebsd/sys/dev/fxp/ |
H A D | inphy.c | 148 int bmsr, bmcr, scr; in inphy_status() local 153 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in inphy_status() 154 if (bmsr & BMSR_LINK) in inphy_status() 168 if ((bmsr & BMSR_ACOMP) == 0) { in inphy_status()
|
/freebsd/sys/dev/usb/net/ |
H A D | ruephy.c | 181 int bmsr, bmcr, msr; in ruephy_status() local 197 bmsr = PHY_READ(phy, MII_BMSR) | PHY_READ(phy, MII_BMSR); in ruephy_status() 199 if ((bmsr & BMSR_ACOMP) == 0) { in ruephy_status()
|