Home
last modified time | relevance | path

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

12

/openbsd/src/sys/dev/mii/
Drgephy.c315 int bmsr, bmcr, gtsr; in rgephy_status() local
324 bmsr = PHY_READ(sc, RL_GMEDIASTAT); in rgephy_status()
325 if (bmsr & RL_GMEDIASTAT_LINK) in rgephy_status()
330 bmsr = PHY_READ(sc, RGEPHY_F_SR); in rgephy_status()
331 if (bmsr & RGEPHY_F_SR_LINK) in rgephy_status()
334 bmsr = PHY_READ(sc, RGEPHY_SR); in rgephy_status()
335 if (bmsr & RGEPHY_SR_LINK) in rgephy_status()
339 bmsr = PHY_READ(sc, MII_BMSR); in rgephy_status()
347 if ((bmsr & BMSR_ACOMP) == 0) { in rgephy_status()
355 bmsr = PHY_READ(sc, RL_GMEDIASTAT); in rgephy_status()
[all …]
Dgentbi.c103 int bmsr, extsr; in gentbimatch() local
111 bmsr = (*mii->mii_readreg)(parent, ma->mii_phyno, MII_BMSR); in gentbimatch()
112 if ((bmsr & BMSR_EXTSTAT) == 0 || (bmsr & BMSR_MEDIAMASK) != 0) in gentbimatch()
228 int bmsr, bmcr, anlpar; in gentbi_status() local
233 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in gentbi_status()
235 if (bmsr & BMSR_LINK) in gentbi_status()
253 if ((bmsr & BMSR_ACOMP) == 0) { in gentbi_status()
Diophy.c209 int bmsr, bmcr, ext0; in iophy_status() local
214 bmsr = PHY_READ(sc, MII_BMSR) | in iophy_status()
216 if (bmsr & BMSR_LINK) in iophy_status()
230 if ((bmsr & BMSR_ACOMP) == 0) { in iophy_status()
238 if (bmsr & BMSR_100TXFDX || in iophy_status()
239 bmsr & BMSR_100TXHDX) in iophy_status()
Dciphy.c250 int bmsr, bmcr, gsr; in ciphy_status() local
255 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in ciphy_status()
257 if (bmsr & BMSR_LINK) in ciphy_status()
266 if ((bmsr & BMSR_ACOMP) == 0) { in ciphy_status()
273 bmsr = PHY_READ(sc, CIPHY_MII_AUXCSR); in ciphy_status()
274 switch (bmsr & CIPHY_AUXCSR_SPEED) { in ciphy_status()
286 sc->mii_dev.dv_xname, bmsr & CIPHY_AUXCSR_SPEED); in ciphy_status()
290 if (bmsr & CIPHY_AUXCSR_FDX) in ciphy_status()
Dukphy_subr.c59 int bmsr, bmcr, anlpar, gtcr, gtsr; in ukphy_status() local
64 bmsr = PHY_READ(phy, MII_BMSR) | PHY_READ(phy, MII_BMSR); in ukphy_status()
65 if (bmsr & BMSR_LINK) in ukphy_status()
84 if ((bmsr & BMSR_ACOMP) == 0) { in ukphy_status()
Dinphy.c214 int bmsr, bmcr, scr; in inphy_status() local
219 bmsr = PHY_READ(sc, MII_BMSR) | in inphy_status()
221 if (bmsr & BMSR_LINK) in inphy_status()
235 if ((bmsr & BMSR_ACOMP) == 0) { in inphy_status()
244 else if ((bmsr & BMSR_100T4) && (scr & SCR_T4)) in inphy_status()
Dbrgphy.c478 int bmcr, bmsr; in brgphy_copper_status() local
483 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in brgphy_copper_status()
484 if (bmsr & BMSR_LINK) in brgphy_copper_status()
494 if ((bmsr & BMSR_ACOMP) == 0) { in brgphy_copper_status()
553 int bmcr, bmsr; in brgphy_fiber_status() local
558 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in brgphy_fiber_status()
559 if (bmsr & BMSR_LINK) in brgphy_fiber_status()
569 if ((bmsr & BMSR_ACOMP) == 0) { in brgphy_fiber_status()
595 int bmcr, bmsr; in brgphy_5708s_status() local
600 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in brgphy_5708s_status()
[all …]
Dmii.c67 int bmsr, offset = 0; in mii_attach() local
107 bmsr = (*mii->mii_readreg)(parent, ma.mii_phyno, MII_BMSR); in mii_attach()
108 if (bmsr == 0 || bmsr == 0xffff || in mii_attach()
109 (bmsr & (BMSR_MEDIAMASK|BMSR_EXTSTAT)) == 0) { in mii_attach()
Dxmphy.c243 int bmsr, bmcr, anlpar; in xmphy_status() local
248 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in xmphy_status()
249 if (bmsr & BMSR_LINK) in xmphy_status()
262 if ((bmsr & BMSR_ACOMP) == 0) { in xmphy_status()
263 if (bmsr & BMSR_LINK) { in xmphy_status()
Datphy.c150 uint16_t anar, bmcr, bmsr; in atphy_service() local
252 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in atphy_service()
253 if (bmsr & BMSR_LINK) { in atphy_service()
285 uint32_t bmsr, bmcr, gsr, ssr; in atphy_status() local
290 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in atphy_status()
291 if (bmsr & BMSR_LINK) in atphy_status()
Dsqphy.c211 int bmsr, bmcr, status; in sqphy_status() local
216 bmsr = PHY_READ(sc, MII_BMSR) | in sqphy_status()
218 if (bmsr & BMSR_LINK) in sqphy_status()
232 if ((bmsr & BMSR_ACOMP) == 0) { in sqphy_status()
Dtqphy.c210 int bmsr, bmcr, diag; in tqphy_status() local
215 bmsr = PHY_READ(sc, MII_BMSR) | in tqphy_status()
217 if (bmsr & BMSR_LINK) in tqphy_status()
231 if ((bmsr & BMSR_ACOMP) == 0) { in tqphy_status()
Dacphy.c204 int bmsr, bmcr, dr; in acphy_status() local
209 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in acphy_status()
212 if (bmsr & BMSR_LINK) in acphy_status()
230 if ((bmsr & BMSR_ACOMP) == 0) { in acphy_status()
Dqsphy.c208 int bmsr, bmcr, pctl; in qsphy_status() local
213 bmsr = PHY_READ(sc, MII_BMSR) | in qsphy_status()
215 if (bmsr & BMSR_LINK) in qsphy_status()
229 if ((bmsr & BMSR_ACOMP) == 0) { in qsphy_status()
Damphy.c193 int bmsr, bmcr, par, anlpar; in amphy_status() local
198 bmsr = PHY_READ(sc, MII_BMSR) | in amphy_status()
200 if (bmsr & BMSR_LINK) in amphy_status()
218 if ((bmsr & BMSR_ACOMP) == 0) { in amphy_status()
Dbmtphy.c191 int bmsr, bmcr, aux_csr; in bmtphy_status() local
196 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in bmtphy_status()
197 if (bmsr & BMSR_LINK) in bmtphy_status()
215 if ((bmsr & BMSR_ACOMP) == 0) { in bmtphy_status()
Dnsphy.c240 int bmsr, bmcr, par, anlpar; in nsphy_status() local
245 bmsr = PHY_READ(sc, MII_BMSR) | in nsphy_status()
247 if (bmsr & BMSR_LINK) in nsphy_status()
265 if ((bmsr & BMSR_ACOMP) == 0) { in nsphy_status()
Drlphy.c222 int bmsr, bmcr, anlpar; in rlphy_status() local
230 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in rlphy_status()
231 if (bmsr & BMSR_LINK) in rlphy_status()
250 if ((bmsr & BMSR_ACOMP) == 0) { in rlphy_status()
Detphy.c305 int bmsr, bmcr, sr; in etphy_status() local
313 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in etphy_status()
314 if (bmsr & BMSR_LINK) in etphy_status()
318 if ((bmsr & BMSR_ACOMP) == 0) { in etphy_status()
Dnsphyter.c213 int bmsr, bmcr, physts; in nsphyter_status() local
218 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in nsphyter_status()
239 if ((bmsr & BMSR_ACOMP) == 0) { in nsphyter_status()
Dnsgphy.c219 int bmsr, bmcr, physup, gtsr; in nsgphy_status() local
224 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in nsgphy_status()
242 if ((bmsr & BMSR_ACOMP) == 0) { in nsgphy_status()
Dlxtphy.c223 int bmcr, bmsr, csr; in lxtphy_status() local
248 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in lxtphy_status()
249 if ((bmsr & BMSR_ACOMP) == 0) { in lxtphy_status()
Durlphy.c226 int msr, bmsr, bmcr; in urlphy_status() local
246 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in urlphy_status()
247 if ((bmsr & BMSR_ACOMP) == 0) { in urlphy_status()
Dipgphy.c271 uint32_t bmsr, bmcr, stat; in ipgphy_status() local
276 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in ipgphy_status()
277 if (bmsr & BMSR_LINK) in ipgphy_status()
285 if ((bmsr & BMSR_ACOMP) == 0) { in ipgphy_status()
Drdcphy.c266 int bmsr, bmcr, physts; in rdcphy_status() local
273 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in rdcphy_status()
290 if (!(bmsr & BMSR_ACOMP)) { in rdcphy_status()

12