Home
last modified time | relevance | path

Searched refs:bmcr (Results 1 – 25 of 26) sorted by relevance

12

/dragonfly/sys/dev/netif/mii_layer/
HDtruephy.c186 int bmcr; in truephy_service() local
203 bmcr = PHY_READ(sc, MII_BMCR); in truephy_service()
204 PHY_WRITE(sc, MII_BMCR, bmcr | BMCR_ISO); in truephy_service()
215 bmcr = PHY_READ(sc, MII_BMCR) & ~BMCR_AUTOEN; in truephy_service()
216 PHY_WRITE(sc, MII_BMCR, bmcr); in truephy_service()
217 PHY_WRITE(sc, MII_BMCR, bmcr | BMCR_PDOWN); in truephy_service()
223 bmcr = PHY_READ(sc, MII_BMCR) & ~BMCR_PDOWN; in truephy_service()
224 PHY_WRITE(sc, MII_BMCR, bmcr); in truephy_service()
228 bmcr | BMCR_AUTOEN | BMCR_STARTNEG); in truephy_service()
314 int bmsr, bmcr, sr; in truephy_status() local
[all …]
HDjmphy.c139 uint16_t bmcr; in jmphy_service() local
156 bmcr = PHY_READ(sc, MII_BMCR); in jmphy_service()
157 PHY_WRITE(sc, MII_BMCR, bmcr | BMCR_ISO); in jmphy_service()
219 int bmcr, ssr; in jmphy_status() local
228 bmcr = PHY_READ(sc, MII_BMCR); in jmphy_status()
229 if ((bmcr & BMCR_ISO) != 0) { in jmphy_status()
235 if ((bmcr & BMCR_LOOP) != 0) in jmphy_status()
325 uint16_t anar, bmcr, gig; in jmphy_auto() local
328 bmcr = PHY_READ(sc, MII_BMCR); in jmphy_auto()
340 PHY_WRITE(sc, MII_BMCR, bmcr | BMCR_ISO | BMCR_PDOWN); in jmphy_auto()
[all …]
HDatphy.c157 uint16_t anar, bmcr, bmsr; in atphy_service() local
170 bmcr = 0; in atphy_service()
173 bmcr = BMCR_S100; in atphy_service()
176 bmcr = BMCR_S10; in atphy_service()
179 bmcr = PHY_READ(sc, MII_BMCR); in atphy_service()
188 PHY_WRITE(sc, MII_BMCR, bmcr | BMCR_ISO); in atphy_service()
196 bmcr |= BMCR_FDX; in atphy_service()
215 PHY_WRITE(sc, MII_BMCR, bmcr | BMCR_RESET | BMCR_AUTOEN | in atphy_service()
262 uint32_t bmsr, bmcr, ssr; in atphy_status() local
271 bmcr = PHY_READ(sc, MII_BMCR); in atphy_status()
[all …]
HDukphy_subr.c69 int bmsr, bmcr, anlpar, gtcr, gtsr; in ukphy_status() local
78 bmcr = PHY_READ(phy, MII_BMCR); in ukphy_status()
79 if (bmcr & BMCR_ISO) { in ukphy_status()
85 if (bmcr & BMCR_LOOP) in ukphy_status()
88 if (bmcr & BMCR_AUTOEN) { in ukphy_status()
HDnsgphy.c230 int bmsr, bmcr, physup, anlpar, gstat; in nsgphy_status() local
240 bmcr = PHY_READ(sc, NSGPHY_MII_BMCR); in nsgphy_status()
242 if (bmcr & NSGPHY_BMCR_LOOP) in nsgphy_status()
245 if (bmcr & NSGPHY_BMCR_AUTOEN) { in nsgphy_status()
272 switch(bmcr & (NSGPHY_BMCR_SPD1|NSGPHY_BMCR_SPD0)) { in nsgphy_status()
286 if (bmcr & NSGPHY_BMCR_FDX) in nsgphy_status()
HDinphy.c192 int bmsr, bmcr, scr; in inphy_status() local
201 bmcr = PHY_READ(sc, MII_BMCR); in inphy_status()
202 if (bmcr & BMCR_ISO) { in inphy_status()
208 if (bmcr & BMCR_LOOP) in inphy_status()
211 if (bmcr & BMCR_AUTOEN) { in inphy_status()
HDacphy.c244 int bmsr, bmcr; in acphy_status() local
254 bmcr = PHY_READ(sc, MII_BMCR); in acphy_status()
255 if (bmcr & BMCR_ISO) { in acphy_status()
261 if (bmcr & BMCR_LOOP) in acphy_status()
264 if (bmcr & BMCR_AUTOEN) { in acphy_status()
HDqsphy.c242 int bmsr, bmcr, pctl; in qsphy_status() local
252 bmcr = PHY_READ(sc, MII_BMCR); in qsphy_status()
253 if (bmcr & BMCR_ISO) { in qsphy_status()
259 if (bmcr & BMCR_LOOP) in qsphy_status()
262 if (bmcr & BMCR_AUTOEN) { in qsphy_status()
HDxmphy.c278 int bmsr, bmcr, anlpar; in xmphy_status() local
289 bmcr = PHY_READ(sc, XMPHY_MII_EXTSTS); in xmphy_status()
291 bmcr = PHY_READ(sc, XMPHY_MII_BMCR); in xmphy_status()
293 if (bmcr & XMPHY_BMCR_LOOP) in xmphy_status()
296 if (bmcr & XMPHY_BMCR_AUTOEN) { in xmphy_status()
318 if (bmcr & XMPHY_BMCR_FDX) in xmphy_status()
HDlxtphy.c255 int bmcr, bmsr, csr; in lxtphy_status() local
269 bmcr = PHY_READ(sc, MII_BMCR); in lxtphy_status()
270 if (bmcr & BMCR_ISO) { in lxtphy_status()
276 if (bmcr & BMCR_LOOP) in lxtphy_status()
279 if (bmcr & BMCR_AUTOEN) { in lxtphy_status()
HDrlphy.c256 int bmsr, bmcr, anlpar; in rlphy_status() local
265 bmcr = PHY_READ(sc, MII_BMCR); in rlphy_status()
266 if (bmcr & BMCR_ISO) { in rlphy_status()
272 if (bmcr & BMCR_LOOP) in rlphy_status()
275 if (bmcr & BMCR_AUTOEN) { in rlphy_status()
HDamphy.c211 int bmsr, bmcr, par, anlpar; in amphy_status() local
221 bmcr = PHY_READ(sc, MII_BMCR); in amphy_status()
222 if (bmcr & BMCR_ISO) { in amphy_status()
228 if (bmcr & BMCR_LOOP) in amphy_status()
231 if (bmcr & BMCR_AUTOEN) { in amphy_status()
HDnsphy.c292 int bmsr, bmcr, par, anlpar; in nsphy_status() local
302 bmcr = PHY_READ(sc, MII_BMCR); in nsphy_status()
303 if (bmcr & BMCR_ISO) { in nsphy_status()
309 if (bmcr & BMCR_LOOP) in nsphy_status()
312 if (bmcr & BMCR_AUTOEN) { in nsphy_status()
HDruephy.c249 int bmsr, bmcr, msr; in ruephy_status() local
258 bmcr = PHY_READ(sc, MII_BMCR); in ruephy_status()
259 if (bmcr & BMCR_ISO) { in ruephy_status()
267 if (bmcr & BMCR_AUTOEN) { in ruephy_status()
HDtlphy.c347 int bmsr, bmcr, tlctrl; in tlphy_status() local
352 bmcr = PHY_READ(&sc->sc_mii, MII_BMCR); in tlphy_status()
353 if (bmcr & BMCR_ISO) { in tlphy_status()
371 if (bmcr & BMCR_LOOP) in tlphy_status()
380 if (bmcr & BMCR_FDX) in tlphy_status()
HDciphy.c282 int bmsr, bmcr; in ciphy_status() local
292 bmcr = PHY_READ(sc, CIPHY_MII_BMCR); in ciphy_status()
294 if (bmcr & CIPHY_BMCR_LOOP) in ciphy_status()
297 if (bmcr & CIPHY_BMCR_AUTOEN) { in ciphy_status()
HDip1000phy.c313 uint32_t bmsr, bmcr, stat; in ip1000phy_status() local
324 bmcr = PHY_READ(sc, IP1000PHY_MII_BMCR); in ip1000phy_status()
325 if ((bmcr & IP1000PHY_BMCR_LOOP) != 0) in ip1000phy_status()
328 if ((bmcr & IP1000PHY_BMCR_AUTOEN) != 0) { in ip1000phy_status()
HDrgephy.c332 int bmsr, bmcr; in rgephy_status() local
352 bmcr = PHY_READ(sc, RGEPHY_MII_BMCR); in rgephy_status()
354 if (bmcr & RGEPHY_BMCR_LOOP) in rgephy_status()
357 if (bmcr & RGEPHY_BMCR_AUTOEN) { in rgephy_status()
HDe1000phy.c463 int bmsr, bmcr, gsr, ssr, ar, lpar; in e1000phy_status() local
469 bmcr = PHY_READ(sc, E1000_CR); in e1000phy_status()
475 if (bmcr & E1000_CR_LOOPBACK) in e1000phy_status()
478 if ((bmcr & E1000_CR_AUTO_NEG_ENABLE) != 0 && in e1000phy_status()
HDmii_physubr.c345 int bmcr, anar, gtcr; in mii_phy_set_media() local
369 bmcr = mii_media_table[ife->ifm_data].mm_bmcr; in mii_phy_set_media()
397 bmcr |= BMCR_LOOP; in mii_phy_set_media()
400 PHY_WRITE(sc, MII_BMCR, bmcr); in mii_phy_set_media()
HDbrgphy.c394 int bmcr, bmsr; in brgphy_status() local
403 bmcr = PHY_READ(sc, BRGPHY_MII_BMCR); in brgphy_status()
404 if (bmcr & BRGPHY_BMCR_LOOP) in brgphy_status()
407 if (bmcr & BRGPHY_BMCR_AUTOEN) { in brgphy_status()
/dragonfly/sys/bus/u4b/net/
HDruephy.c196 int bmsr, bmcr, msr; in ruephy_status() local
205 bmcr = PHY_READ(phy, MII_BMCR); in ruephy_status()
206 if (bmcr & BMCR_ISO) { in ruephy_status()
213 if (bmcr & BMCR_AUTOEN) { in ruephy_status()
/dragonfly/sys/dev/netif/my/
HDif_my.c646 u_int16_t bmcr; in my_setmode_mii() local
654 bmcr = my_phy_readreg(sc, PHY_BMCR); in my_setmode_mii()
655 bmcr &= ~PHY_BMCR_AUTONEGENBL; in my_setmode_mii()
656 my_phy_writereg(sc, PHY_BMCR, bmcr); in my_setmode_mii()
659 bmcr = my_phy_readreg(sc, PHY_BMCR); in my_setmode_mii()
660 bmcr &= ~(PHY_BMCR_AUTONEGENBL | PHY_BMCR_SPEEDSEL | PHY_BMCR_1000 | in my_setmode_mii()
666 bmcr &= ~PHY_BMCR_SPEEDSEL; in my_setmode_mii()
667 bmcr &= ~PHY_BMCR_DUPLEX; in my_setmode_mii()
668 bmcr |= PHY_BMCR_1000; in my_setmode_mii()
673 bmcr |= PHY_BMCR_SPEEDSEL; in my_setmode_mii()
[all …]
/dragonfly/sys/dev/netif/xe/
HDif_xe.c939 u_int16_t bmcr, bmsr, anar, lpar; in xe_setmedia_serialized() local
998 bmcr = xe_phy_readreg(scp, PHY_BMCR); in xe_setmedia_serialized()
999 bmcr &= ~(PHY_BMCR_AUTONEGENBL); in xe_setmedia_serialized()
1000 xe_phy_writereg(scp, PHY_BMCR, bmcr); in xe_setmedia_serialized()
1005 bmcr |= PHY_BMCR_AUTONEGENBL|PHY_BMCR_AUTONEGRSTR; in xe_setmedia_serialized()
1006 xe_phy_writereg(scp, PHY_BMCR, bmcr); in xe_setmedia_serialized()
/dragonfly/sys/dev/netif/txp/
HDif_txp.c1574 u_int16_t bmsr, bmcr, anlpar; in txp_ifmedia_sts() local
1587 &bmcr, NULL, NULL, 1)) in txp_ifmedia_sts()
1597 if (bmcr & BMCR_ISO) { in txp_ifmedia_sts()
1603 if (bmcr & BMCR_LOOP) in txp_ifmedia_sts()
1606 if (bmcr & BMCR_AUTOEN) { in txp_ifmedia_sts()

12