/src/sys/dev/mii/ |
ukphy_subr.c | 61 uint16_t bmsr, bmcr, anar, anlpar, gtcr, gtsr, result; local in function:ukphy_status 73 PHY_READ(phy, MII_BMCR, &bmcr); 74 if (bmcr & BMCR_ISO) { 80 if (bmcr & BMCR_LOOP) 83 if (bmcr & BMCR_AUTOEN) {
|
etphy.c | 190 uint16_t bmcr; local in function:etphy_service 207 PHY_READ(sc, MII_BMCR, &bmcr); 208 PHY_WRITE(sc, MII_BMCR, bmcr | BMCR_ISO); 217 PHY_READ(sc, MII_BMCR, &bmcr); 218 bmcr &= ~BMCR_AUTOEN; 219 PHY_WRITE(sc, MII_BMCR, bmcr); 220 PHY_WRITE(sc, MII_BMCR, bmcr | BMCR_PDOWN); 232 PHY_READ(sc, MII_BMCR, &bmcr); 233 bmcr &= ~BMCR_PDOWN; 234 PHY_WRITE(sc, MII_BMCR, bmcr); 319 uint16_t bmsr, bmcr, sr; local in function:etphy_status [all...] |
smscphy.c | 130 uint16_t bmcr, new; local in function:smscphy_power 132 PHY_READ(sc, MII_BMCR, &bmcr); 134 new = bmcr & ~BMCR_PDOWN; 136 new = bmcr | BMCR_PDOWN; 137 if (bmcr != new) 219 uint16_t bmcr, bmsr, status; local in function:smscphy_status 231 PHY_READ(sc, MII_BMCR, &bmcr); 232 if ((bmcr & BMCR_ISO) != 0) { 238 if ((bmcr & BMCR_LOOP) != 0) 241 if ((bmcr & BMCR_AUTOEN) != 0) [all...] |
jmphy.c | 124 uint16_t bmcr, ssr; local in function:jmphy_service 141 PHY_READ(sc, MII_BMCR, &bmcr); 142 PHY_WRITE(sc, MII_BMCR, bmcr | BMCR_ISO); 197 uint16_t bmcr, ssr, gtsr; local in function:jmphy_status 208 PHY_READ(sc, MII_BMCR, &bmcr); 209 if ((bmcr & BMCR_ISO) != 0) { 215 if ((bmcr & BMCR_LOOP) != 0) 310 uint16_t anar, bmcr, gig; local in function:jmphy_auto 315 PHY_READ(sc, MII_BMCR, &bmcr); 327 PHY_WRITE(sc, MII_BMCR, bmcr | BMCR_ISO | BMCR_PDOWN) [all...] |
makphy.c | 350 uint16_t bmcr, new; local in function:makphy_pdown 358 PHY_READ(sc, MII_BMCR, &bmcr); 360 new = bmcr | BMCR_PDOWN; 362 new = bmcr & ~BMCR_PDOWN; 363 if (bmcr != new) 375 uint16_t bmcr; local in function:makphy_service 395 PHY_READ(sc, MII_BMCR, &bmcr); 396 PHY_WRITE(sc, MII_BMCR, bmcr | BMCR_ISO); 417 PHY_READ(sc, MII_BMCR, &bmcr); 418 PHY_WRITE(sc, MII_BMCR, bmcr | BMCR_RESET) 449 uint16_t bmcr, gsr, pssr, essr; local in function:makphy_status [all...] |
atphy.c | 221 uint16_t anar, bmcr, bmsr; local in function:atphy_service 238 PHY_READ(sc, MII_BMCR, &bmcr); 239 PHY_WRITE(sc, MII_BMCR, bmcr | BMCR_ISO); 247 bmcr = 0; 254 bmcr = BMCR_S100; 257 bmcr = BMCR_S10; 260 PHY_READ(sc, MII_BMCR, &bmcr); 269 PHY_WRITE(sc, MII_BMCR, bmcr | BMCR_ISO); 277 bmcr |= BMCR_FDX; 289 PHY_WRITE(sc, MII_BMCR, bmcr | BMCR_AUTOEN | BMCR_STARTNEG) 344 uint16_t bmsr, bmcr, gsr, ssr; local in function:atphy_status [all...] |
glxtphy.c | 203 uint16_t bmcr, qsr, gtsr; local in function:glxtphy_status 215 PHY_READ(sc, MII_BMCR, &bmcr); 216 if (bmcr & BMCR_ISO) { 222 if (bmcr & BMCR_LOOP) 225 if (bmcr & BMCR_AUTOEN) {
|
iophy.c | 200 uint16_t bmsr, bmcr, ext0; local in function:iophy_status 211 PHY_READ(sc, MII_BMCR, &bmcr); 212 if (bmcr & BMCR_ISO) { 218 if (bmcr & BMCR_LOOP) 221 if (bmcr & BMCR_AUTOEN) {
|
rdcphy.c | 206 uint16_t bmsr, bmcr, physts; local in function:rdcphy_status 220 PHY_READ(sc, MII_BMCR, &bmcr); 221 if ((bmcr & BMCR_ISO) != 0) { 227 if ((bmcr & BMCR_LOOP) != 0) 230 if ((bmcr & BMCR_AUTOEN) != 0) {
|
tqphy.c | 212 uint16_t bmsr, bmcr, diag; local in function:tqphy_status 224 PHY_READ(sc, MII_BMCR, &bmcr); 225 if (bmcr & BMCR_ISO) { 231 if (bmcr & BMCR_LOOP) 234 if (bmcr & BMCR_AUTOEN) {
|
amhphy.c | 181 uint16_t bmsr, bmcr, ssr; local in function:amhphy_status 194 PHY_READ(sc, MII_BMCR, &bmcr); 195 if (bmcr & BMCR_ISO) { 201 if (bmcr & BMCR_LOOP) 204 if (bmcr & BMCR_AUTOEN) {
|
pnaphy.c | 191 uint16_t bmsr, bmcr; local in function:pnaphy_status 204 PHY_READ(sc, MII_BMCR, &bmcr); 205 if (bmcr & BMCR_ISO) { 211 if (bmcr & BMCR_LOOP)
|
acphy.c | 203 uint16_t bmsr, bmcr, dr; local in function:acphy_status 217 PHY_READ(sc, MII_BMCR, &bmcr); 218 if (bmcr & BMCR_ISO) { 224 if (bmcr & BMCR_LOOP) 227 if (bmcr & BMCR_AUTOEN) {
|
bmtphy.c | 212 uint16_t bmsr, bmcr, aux_csr; local in function:bmtphy_status 225 PHY_READ(sc, MII_BMCR, &bmcr); 226 if (bmcr & BMCR_ISO) { 232 if (bmcr & BMCR_LOOP) 235 if (bmcr & BMCR_AUTOEN) {
|
dmphy.c | 207 uint16_t bmsr, bmcr, dscsr; local in function:dmphy_status 219 PHY_READ(sc, MII_BMCR, &bmcr); 220 if (bmcr & BMCR_ISO) { 226 if (bmcr & BMCR_LOOP) 229 if (bmcr & BMCR_AUTOEN) {
|
gentbi.c | 245 uint16_t bmsr, bmcr, anlpar; local in function:gentbi_status 258 PHY_READ(sc, MII_BMCR, &bmcr); 259 if (bmcr & BMCR_ISO) { 265 if (bmcr & BMCR_LOOP) 268 if (bmcr & BMCR_AUTOEN) {
|
gphyter.c | 234 uint16_t bmsr, bmcr, physup, gtsr; local in function:gphyter_status 249 PHY_READ(sc, MII_BMCR, &bmcr); 250 if (bmcr & BMCR_ISO) { 256 if (bmcr & BMCR_LOOP) 259 if (bmcr & BMCR_AUTOEN) { 315 * we start polling the BMCR again. Notably, the DP83840A manual
|
icsphy.c | 206 uint16_t bmcr, qpr; local in function:icsphy_status 224 PHY_READ(sc, MII_BMCR, &bmcr); 225 if (bmcr & BMCR_ISO) { 231 if (bmcr & BMCR_LOOP) 234 if (bmcr & BMCR_AUTOEN) {
|
ihphy.c | 229 uint16_t esr, bmcr, gtsr; local in function:ihphy_status 241 PHY_READ(sc, MII_BMCR, &bmcr); 242 if (bmcr & (BMCR_ISO | BMCR_PDOWN)) { 247 if (bmcr & BMCR_LOOP) 250 if (bmcr & BMCR_AUTOEN) {
|
ikphy.c | 285 uint16_t pssr, bmcr, gtsr, kmrn; local in function:ikphy_status 297 PHY_READ(sc, MII_BMCR, &bmcr); 298 if (bmcr & BMCR_ISO) { 304 if (bmcr & BMCR_LOOP) 307 if (bmcr & BMCR_AUTOEN) {
|
inphy.c | 208 uint16_t bmsr, bmcr, scr; local in function:inphy_status 220 PHY_READ(sc, MII_BMCR, &bmcr); 221 if (bmcr & BMCR_ISO) { 227 if (bmcr & BMCR_LOOP) 230 if (bmcr & BMCR_AUTOEN) {
|
lxtphy.c | 231 uint16_t bmcr, bmsr, csr; local in function:lxtphy_status 247 PHY_READ(sc, MII_BMCR, &bmcr); 248 if (bmcr & BMCR_ISO) { 254 if (bmcr & BMCR_LOOP) 257 if (bmcr & BMCR_AUTOEN) {
|
/src/sys/dev/pci/cxgb/ |
cxgb_vsc8211.c | 123 unsigned int bmcr, status, lpa, adv; local in function:vsc8211_get_link_status 126 err = mdio_read(cphy, 0, MII_BMCR, &bmcr); 143 if (!(bmcr & BMCR_ANENABLE)) { 144 dplx = (bmcr & BMCR_FULLDPLX) ? DUPLEX_FULL : DUPLEX_HALF; 145 if (bmcr & BMCR_SPEED1000) 147 else if (bmcr & BMCR_SPEED100)
|
/src/sys/arch/arm/amlogic/ |
gxlphy.c | 248 uint16_t bmcr, bmsr, wol, lpa, aner; local in function:gxlphy_status 252 PHY_READ(sc, MII_BMCR, &bmcr); 253 if ((bmcr & BMCR_AUTOEN) == 0) 268 bmcr &= ~BMCR_ISO; 269 bmcr |= BMCR_AUTOEN; 270 bmcr |= BMCR_STARTNEG; 271 PHY_WRITE(sc, MII_BMCR, bmcr);
|
/src/sys/dev/sbus/ |
be.c | 410 /* Use `ifm_data' to store BMCR bits */ 1344 uint16_t bmcr; local in function:be_mii_reset 1346 be_mii_readreg(self, phy, MII_BMCR, &bmcr); 1347 if ((bmcr & BMCR_RESET) == 0) 1352 aprint_error_dev(self, "bmcr reset failed\n"); 1439 uint16_t bmcr, bmsr; local in function:be_intphy_service 1459 be_mii_readreg(self, BE_PHY_INTERNAL, MII_BMCR, &bmcr); 1461 BE_PHY_INTERNAL, MII_BMCR, bmcr | BMCR_ISO); 1471 be_mii_readreg(self, BE_PHY_INTERNAL, MII_BMCR, &bmcr); 1477 bmcr |= BMCR_S100 1594 uint16_t bmcr, bmsr; local in function:be_intphy_status [all...] |