Home
last modified time | relevance | path

Searched refs:bmsr (Results 1 – 25 of 31) sorted by relevance

12

/freebsd-12-stable/sys/dev/mii/
Dgentbi.c127 int bmsr, extsr; in gentbi_probe() local
138 bmsr = MIIBUS_READREG(parent, ma->mii_phyno, MII_BMSR); in gentbi_probe()
139 if ((bmsr & BMSR_EXTSTAT) == 0 || (bmsr & BMSR_MEDIAMASK) != 0) in gentbi_probe()
218 int bmsr, bmcr, anlpar; in gentbi_status() local
223 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in gentbi_status()
225 if (bmsr & BMSR_LINK) in gentbi_status()
243 if ((bmsr & BMSR_ACOMP) == 0) { in gentbi_status()
Dciphy.c234 int bmsr, bmcr; in ciphy_status() local
239 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in ciphy_status()
241 if (bmsr & BMSR_LINK) in ciphy_status()
250 if ((bmsr & CIPHY_BMSR_ACOMP) == 0) { in ciphy_status()
257 bmsr = PHY_READ(sc, CIPHY_MII_AUXCSR); in ciphy_status()
258 switch (bmsr & CIPHY_AUXCSR_SPEED) { in ciphy_status()
270 bmsr & CIPHY_AUXCSR_SPEED); in ciphy_status()
274 if (bmsr & CIPHY_AUXCSR_FDX) in ciphy_status()
Dukphy_subr.c65 int bmsr, bmcr, anlpar, gtcr, gtsr; in ukphy_status() local
70 bmsr = PHY_READ(phy, MII_BMSR) | PHY_READ(phy, MII_BMSR); in ukphy_status()
71 if (bmsr & BMSR_LINK) in ukphy_status()
90 if ((bmsr & BMSR_ACOMP) == 0) { in ukphy_status()
Dxmphy.c217 int bmsr, bmcr, anlpar; in xmphy_status() local
222 bmsr = PHY_READ(sc, XMPHY_MII_BMSR) | in xmphy_status()
224 if (bmsr & XMPHY_BMSR_LINK) in xmphy_status()
236 if ((bmsr & XMPHY_BMSR_ACOMP) == 0) { in xmphy_status()
237 if (bmsr & XMPHY_BMSR_LINK) { in xmphy_status()
Daxphy.c140 int bmsr, bmcr; in axphy_status() local
145 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in axphy_status()
146 if (bmsr & BMSR_LINK) in axphy_status()
160 if ((bmsr & BMSR_ACOMP) == 0) { in axphy_status()
Datphy.c115 uint16_t anar, bmcr, bmsr; in atphy_service() local
186 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in atphy_service()
187 if (bmsr & BMSR_LINK) { in atphy_service()
215 uint32_t bmsr, bmcr, ssr; in atphy_status() local
220 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in atphy_status()
221 if ((bmsr & BMSR_LINK) != 0) in atphy_status()
Drgephy.c315 int bmsr, bmcr; in rgephy_status() local
324 bmsr = PHY_READ(sc, RGEPHY_MII_BMSR); in rgephy_status()
336 if ((bmsr & RGEPHY_BMSR_ACOMP) == 0) { in rgephy_status()
389 bmsr = PHY_READ(sc, URE_GMEDIASTAT); in rgephy_status()
391 bmsr = PHY_READ(sc, RL_GMEDIASTAT); in rgephy_status()
392 if (bmsr & RL_GMEDIASTAT_1000MBPS) in rgephy_status()
394 else if (bmsr & RL_GMEDIASTAT_100MBPS) in rgephy_status()
396 else if (bmsr & RL_GMEDIASTAT_10MBPS) in rgephy_status()
400 if (bmsr & RL_GMEDIASTAT_FDX) in rgephy_status()
Dtdkphy.c153 int bmsr, bmcr, anlpar, diag; in tdkphy_status() local
158 bmsr = PHY_READ(phy, MII_BMSR) | PHY_READ(phy, MII_BMSR); in tdkphy_status()
159 if (bmsr & BMSR_LINK) in tdkphy_status()
178 if ((bmsr & BMSR_ACOMP) == 0) { in tdkphy_status()
Damphy.c146 int bmsr, bmcr, par, anlpar; in amphy_status() local
151 bmsr = PHY_READ(sc, MII_BMSR) | in amphy_status()
153 if (bmsr & BMSR_LINK) in amphy_status()
171 if ((bmsr & BMSR_ACOMP) == 0) { in amphy_status()
Dacphy.c199 int bmsr, bmcr, diag; in acphy_status() local
204 bmsr = PHY_READ(sc, MII_BMSR) | in acphy_status()
206 if (bmsr & BMSR_LINK) in acphy_status()
220 if ((bmsr & BMSR_ACOMP) == 0) { in acphy_status()
Dbmtphy.c186 int bmsr, bmcr, aux_csr; in bmtphy_status() local
194 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in bmtphy_status()
196 if (bmsr & BMSR_LINK) in bmtphy_status()
214 if ((bmsr & BMSR_ACOMP) == 0) { in bmtphy_status()
Drlphy.c169 int bmsr, bmcr, anlpar; in rlphy_status() local
174 bmsr = PHY_READ(phy, MII_BMSR) | PHY_READ(phy, MII_BMSR); in rlphy_status()
175 if (bmsr & BMSR_LINK) in rlphy_status()
194 if ((bmsr & BMSR_ACOMP) == 0) { in rlphy_status()
Dsmscphy.c191 uint32_t bmcr, bmsr, status; in smscphy_status() local
197 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in smscphy_status()
198 if ((bmsr & BMSR_LINK) != 0) in smscphy_status()
212 if ((bmsr & BMSR_ACOMP) == 0) { in smscphy_status()
Dsmcphy.c228 uint32_t bmcr, bmsr, status; in smcphy_status() local
234 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in smcphy_status()
235 if ((bmsr & BMSR_LINK) != 0) in smcphy_status()
249 if ((bmsr & BMSR_ACOMP) == 0) { in smcphy_status()
Dnsphy.c214 int bmsr, bmcr, par, anlpar; in nsphy_status() local
219 bmsr = PHY_READ(sc, MII_BMSR) | in nsphy_status()
221 if (bmsr & BMSR_LINK) in nsphy_status()
239 if ((bmsr & BMSR_ACOMP) == 0) { in nsphy_status()
Dqsphy.c170 int bmsr, bmcr, pctl; in qsphy_status() local
175 bmsr = PHY_READ(sc, MII_BMSR) | in qsphy_status()
177 if (bmsr & BMSR_LINK) in qsphy_status()
Dtruephy.c280 int bmsr, bmcr, sr; in truephy_status() local
288 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in truephy_status()
289 if (bmsr & BMSR_LINK) in truephy_status()
293 if ((bmsr & BMSR_ACOMP) == 0) { in truephy_status()
Drdcphy.c188 int bmsr, bmcr, physts; in rdcphy_status() local
195 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in rdcphy_status()
212 if ((bmsr & BMSR_ACOMP) == 0) { in rdcphy_status()
Dnsphyter.c176 int bmsr, bmcr, physts; in nsphyter_status() local
181 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in nsphyter_status()
202 if ((bmsr & BMSR_ACOMP) == 0) { in nsphyter_status()
Dnsgphy.c186 int bmsr, bmcr, physup, gtsr; in nsgphy_status() local
191 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in nsgphy_status()
213 if ((bmsr & BMSR_ACOMP) == 0) { in nsgphy_status()
Dip1000phy.c223 uint32_t bmsr, bmcr, stat; in ip1000phy_status() local
228 bmsr = PHY_READ(sc, IP1000PHY_MII_BMSR) | in ip1000phy_status()
230 if ((bmsr & IP1000PHY_BMSR_LINK) != 0) in ip1000phy_status()
238 if ((bmsr & IP1000PHY_BMSR_ANEGCOMP) == 0) { in ip1000phy_status()
Dlxtphy.c198 int bmcr, bmsr, csr; in lxtphy_status() local
223 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in lxtphy_status()
224 if ((bmsr & BMSR_ACOMP) == 0) { in lxtphy_status()
Dtlphy.c287 int bmsr, bmcr, tlctrl; in tlphy_status() local
306 bmsr = PHY_READ(&sc->sc_mii, MII_BMSR) | in tlphy_status()
308 if (bmsr & BMSR_LINK) in tlphy_status()
/freebsd-12-stable/sys/dev/fxp/
Dinphy.c152 int bmsr, bmcr, scr; in inphy_status() local
157 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in inphy_status()
158 if (bmsr & BMSR_LINK) in inphy_status()
172 if ((bmsr & BMSR_ACOMP) == 0) { in inphy_status()
/freebsd-12-stable/sys/dev/usb/net/
Druephy.c186 int bmsr, bmcr, msr; in ruephy_status() local
202 bmsr = PHY_READ(phy, MII_BMSR) | PHY_READ(phy, MII_BMSR); in ruephy_status()
204 if ((bmsr & BMSR_ACOMP) == 0) { in ruephy_status()

12