Home
last modified time | relevance | path

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

12

/freebsd/sys/dev/mii/
H A Dgentbi.c123 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 Dciphy.c230 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 Dukphy_subr.c63 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 Daxphy.c135 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 Dxmphy.c213 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 Datphy.c112 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 Dbmtphy.c182 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 Drlphy.c165 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 Damphy.c142 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 Dtdkphy.c149 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 Drgephy.c312 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 Dacphy.c195 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 Dsmscphy.c187 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 Dnsphy.c203 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 Dsmcphy.c224 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 Dqsphy.c166 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 Dtruephy.c277 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 Drdcphy.c185 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 Dnsgphy.c182 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 Dnsphyter.c172 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 Dip1000phy.c220 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 Dlxtphy.c194 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 Dmv88e151x.c182 int bmsr, bmcr, anlpar; //, gtcr, gtsr; in mv88e151x_fiber_status() local
192 bmsr = PHY_READ(phy, MII_BMSR) | PHY_READ(phy, MII_BMSR); in mv88e151x_fiber_status()
212 if ((bmsr & BMSR_ACOMP) == 0) { in mv88e151x_fiber_status()
/freebsd/sys/dev/fxp/
H A Dinphy.c148 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 Druephy.c182 int bmsr, bmcr, msr; in ruephy_status() local
198 bmsr = PHY_READ(phy, MII_BMSR) | PHY_READ(phy, MII_BMSR); in ruephy_status()
200 if ((bmsr & BMSR_ACOMP) == 0) { in ruephy_status()

12