Lines Matching defs:phy
164 int err, phy, port;
171 for (phy = 0; phy < MII_NPHY; phy++) {
172 if (((1 << phy) & sc->phymask) == 0)
174 sc->phyport[phy] = port;
175 sc->portphy[port] = phy;
191 BMSR_DEFCAPMASK, phy, MII_OFFSET_ANY, 0);
198 phy);
410 int err, phy;
416 phy = sc->portphy[p->es_port];
419 p->es_pvid = sc->pvid[phy];
422 if (sc->addtag & (1 << phy))
424 if (sc->striptag & (1 << phy))
436 if (phy == sc->cpuport) {
464 int phy;
470 phy = sc->portphy[p->es_port];
484 sc->pvid[phy] = p->es_pvid;
493 sc->addtag &= ~(1 << phy);
494 sc->striptag &= ~(1 << phy);
498 sc->addtag |= (1 << phy);
500 sc->striptag |= (1 << phy);
508 if (phy == sc->cpuport)