Lines Matching refs:phyreg
370 char phyreg[7]; in generate_own_selfid() local
373 phyreg[0] = lynx->phy_reg0; in generate_own_selfid()
375 phyreg[i] = get_phy_reg(lynx, i); in generate_own_selfid()
381 lsid = 0x80400000 | ((phyreg[0] & 0xfc) << 22); in generate_own_selfid()
382 lsid |= (phyreg[1] & 0x3f) << 16; /* gap count */ in generate_own_selfid()
383 lsid |= (phyreg[2] & 0xc0) << 8; /* max speed */ in generate_own_selfid()
384 lsid |= (phyreg[6] & 0x01) << 11; /* contender (phy dependent) */ in generate_own_selfid()
386 lsid |= (phyreg[6] & 0x10) >> 3; /* initiated reset */ in generate_own_selfid()
388 for (i = 0; i < (phyreg[2] & 0xf); i++) { /* ports */ in generate_own_selfid()
389 if (phyreg[3 + i] & 0x4) { in generate_own_selfid()
390 lsid |= (((phyreg[3 + i] & 0x8) | 0x10) >> 3) in generate_own_selfid()