Lines Matching defs:unit
148 allocif(int unit, struct shmif_sc **scp)
161 sc->sc_unit = unit;
165 sprintf(ifp->if_xname, "shmif%d", unit);
182 unit, ether_sprintf(enaddr));
289 int unit, error;
307 unit = t - 1;
309 if ((error = allocif(unit, &sc)) != 0) {
330 *ifnum = unit;
336 shmif_clone(struct if_clone *ifc, int unit)
342 * Ok, we know the unit number, but we must still reserve it.
345 * the range of unit numbers by +1 since vmem cannot deal with
348 rc = vmem_xalloc(shmif_units, 1, 0, 0, 0, unit+1, unit+1,
350 KASSERT(rc == 0 && unit2-1 == unit);
352 return allocif(unit, NULL);