Lines Matching defs:unit
289 int unit;
292 ifc = if_clone_lookup(name, &unit);
300 wildcard = (unit < 0);
302 * Find a free unit if none was given.
312 unit = (bytoff << 3) + bitoff;
315 if (unit > ifc->ifc_maxunit)
318 err = (*ifc->ifc_create)(ifc, unit);
323 bytoff = unit >> 3;
324 bitoff = unit - (bytoff << 3);
328 * Allocate the unit in the bitmap.
337 if (snprintf(dp, len - (dp-name), "%d", unit) >
361 int unit;
363 ifc = if_clone_lookup(name, &unit);
367 if (unit < ifc->ifc_minifs)
380 * Compute offset in the bitmap and deallocate the unit.
382 bytoff = unit >> 3;
383 bitoff = unit - (bytoff << 3);
420 /* Bogus unit number. */
441 int unit;
461 for (unit = 0; unit < ifc->ifc_minifs; unit++) {
462 err = (*ifc->ifc_create)(ifc, unit);
465 __func__, ifc->ifc_name, unit));
467 /* Allocate the unit in the bitmap. */
468 bytoff = unit >> 3;
469 bitoff = unit - (bytoff << 3);
1082 int unit;
1093 unit = 0;
1098 unit += (c - '0') * m;
1099 if (unit > 1000000)
1114 if (unit == ifp->if_unit)