Lines Matching defs:phy
165 int phy, port, err;
172 for (phy = 0; phy < sc->numports; phy++) {
173 if (((1 << phy) & sc->phymask) == 0)
175 sc->ifpport[phy] = port;
176 sc->portphy[port] = phy;
196 BMSR_DEFCAPMASK, phy, MII_OFFSET_ANY, 0);
203 phy);
218 for (phy = 0; phy < sc->numports; phy++) {
219 if (((1 << phy) & sc->phymask) == 0)
221 port = adm6996fc_portforphy(sc, phy);
341 adm6996fc_portforphy(struct adm6996fc_softc *sc, int phy)
344 return (sc->ifpport[phy]);
446 int err, phy;
476 phy = sc->portphy[p->es_port];
478 if (sc->cpuport != -1 && phy == sc->cpuport) {
758 adm6996fc_readphy(device_t dev, int phy, int reg)
766 if (phy < 0 || phy >= 32)
773 (ADM6996FC_PHY_C0 + ADM6996FC_PHY_SIZE * phy) + reg);
780 adm6996fc_writephy(device_t dev, int phy, int reg, int data)
788 if (phy < 0 || phy >= 32)
795 (ADM6996FC_PHY_C0 + ADM6996FC_PHY_SIZE * phy) + reg, data);