Lines Matching defs:phyreg
283 char phyreg[7];
286 phyreg[0] = lynx->phy_reg0;
288 phyreg[i] = get_phy_reg(lynx, i);
292 lsid = 0x80400000 | ((phyreg[0] & 0xfc) << 22);
293 lsid |= (phyreg[1] & 0x3f) << 16; /* gap count */
294 lsid |= (phyreg[2] & 0xc0) << 8; /* max speed */
296 lsid |= (phyreg[6] & 0x01) << 11; /* contender (phy dependent) */
298 lsid |= (phyreg[6] & 0x10) >> 3; /* initiated reset */
300 for (i = 0; i < (phyreg[2] & 0xf); i++) { /* ports */
301 if (phyreg[3 + i] & 0x4) {
302 lsid |= (((phyreg[3 + i] & 0x8) | 0x10) >> 3)