Lines Matching refs:numports
71 int numports; /* number of ports */ member
148 if (++port >= sc->numports) in ukswitch_attach_phys()
168 sc->numports = 6; in ukswitch_attach()
175 "numports", &sc->numports); in ukswitch_attach()
196 sc->ifp = malloc(sizeof(if_t) * sc->numports, M_UKSWITCH, in ukswitch_attach()
198 sc->ifname = malloc(sizeof(char *) * sc->numports, M_UKSWITCH, in ukswitch_attach()
200 sc->miibus = malloc(sizeof(device_t *) * sc->numports, M_UKSWITCH, in ukswitch_attach()
202 sc->portphy = malloc(sizeof(int) * sc->numports, M_UKSWITCH, in ukswitch_attach()
269 if (port < 0 || port > sc->numports) in ukswitch_miiforport()
278 if (port < 0 || port > sc->numports) in ukswitch_ifpforport()
355 if (p->es_port < 0 || p->es_port >= sc->numports) in ukswitch_getport()
393 if (p->es_port < 0 || p->es_port >= sc->numports) in ukswitch_setport()