Lines Matching defs:unit
278 int unit, i, err = 0;
284 unit = op->iplo_unit;
285 if (unit == IPL_LOGALL) {
288 } else if (unit >= 0 && unit < IPL_LOGSIZE) {
290 stats.ipls_list[unit] = ip_pool_exists(unit,
293 stats.ipls_list[unit] = ip_pool_list[unit];
308 /* device, indicated by the unit number. */
311 ip_pool_exists(int unit, char *name)
315 for (p = ip_pool_list[unit]; p != NULL; p = p->ipo_next)
328 /* device, indicated by the unit number. If it is marked for deletion then */
332 ip_pool_find(int unit, char *name)
336 p = ip_pool_exists(unit, name);
504 int poolnum, unit;
507 unit = op->iplo_unit;
510 h = ip_pool_exists(unit, op->iplo_name);
542 for (p = ip_pool_list[unit]; p != NULL; ) {
551 p = ip_pool_list[unit];
564 h->ipo_unit = unit;
565 h->ipo_next = ip_pool_list[unit];
566 if (ip_pool_list[unit] != NULL)
567 ip_pool_list[unit]->ipo_pnext = &h->ipo_next;
568 h->ipo_pnext = &ip_pool_list[unit];
569 ip_pool_list[unit] = h;
621 ip_pool_destroy(int unit, char *name)
625 ipo = ip_pool_exists(unit, name);
646 /* Free all pools associated with the device that matches the unit number */
656 int i, num = 0, unit, err;
660 unit = fp->iplf_unit;
663 if (unit != IPLT_ALL && i != unit)
919 ip_pool_iterderef(u_int otype, int unit, void *data)
925 if (unit < 0 || unit > IPL_LOGMAX)