Lines Matching defs:unit
446 u_int32_t unit;
449 ifc = if_clone_lookup(name, &unit);
457 wildcard = (unit == UINT32_MAX);
459 * Find a free unit if none was given.
469 unit = (bytoff << 3) + bitoff;
472 if (unit > ifc->ifc_maxunit)
475 err = (*ifc->ifc_create)(ifc, unit, params);
480 bytoff = unit >> 3;
481 bitoff = unit - (bytoff << 3);
485 * Allocate the unit in the bitmap.
494 if (snprintf(dp, len - (dp-name), "%d", unit) >
519 u_int32_t unit;
521 ifc = if_clone_lookup(name, &unit);
525 if (unit < ifc->ifc_minifs)
538 * Compute offset in the bitmap and deallocate the unit.
540 bytoff = unit >> 3;
541 bitoff = unit - (bytoff << 3);
578 /* Bogus unit number. */
599 u_int32_t unit;
621 for (unit = 0; unit < ifc->ifc_minifs; unit++) {
622 err = (*ifc->ifc_create)(ifc, unit, NULL);
625 __func__, ifc->ifc_name, unit));
627 /* Allocate the unit in the bitmap. */
628 bytoff = unit >> 3;
629 bitoff = unit - (bytoff << 3);
1382 int unit;
1393 unit = 0;
1398 unit += (c - '0') * m;
1399 if (unit > 1000000)
1414 if (unit == ifp->if_unit)