Home
last modified time | relevance | path

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

12

/mirbsd/src/sys/dev/mii/
Drgephy.c303 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 …]
Dgentbi.c120 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()
Dxmphy.c255 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()
Dciphy.c272 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()
Dukphy_subr.c66 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()
Diophy.c231 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) {
Dinphy.c234 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))
Dmii.c74 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()
Deephy.c362 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()
Dtqphy.c227 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()
Dsqphy.c225 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()
Dqsphy.c221 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()
Dacphy.c205 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()
Dbmtphy.c200 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()
Damphy.c194 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()
Drlphy.c212 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()
Dbrgphy.c314 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()
Dnsphy.c253 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()
Dnsphyter.c223 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()
Dlxtphy.c245 int bmcr, bmsr, csr; local
270 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR);
271 if ((bmsr & BMSR_ACOMP) == 0) {
Dnsgphy.c198 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()
Durlphy.c228 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()
Dtlphy.c286 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()
Dmii_physubr.c128 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/
Dbe.c135 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 …]

12