Lines Matching defs:unit
538 /* Parameters: unit(I) - device we are reading from */
548 ipflog_read(minor_t unit, struct uio *uio)
559 if (IPL_LOGMAX < unit)
574 while (iplt[unit] == NULL) {
593 l = get_sleep_lock(&iplh[unit]);
594 error = sleep(&iplh[unit], PZERO+1);
598 error = mpsleep(&iplh[unit], PSUSP|PCATCH, "iplread", 0,
603 error = SLEEP(unit + iplh, "ipl sleep");
618 for (copied = 0; (ipl = iplt[unit]) != NULL; copied += dlen) {
625 iplt[unit] = ipl->ipl_next;
626 iplused[unit] -= dlen;
633 ipl->ipl_next = iplt[unit];
634 iplt[unit] = ipl;
635 iplused[unit] += dlen;
642 if (!iplt[unit]) {
643 iplused[unit] = 0;
644 iplh[unit] = &iplt[unit];
645 ipll[unit] = NULL;
657 /* Parameters: unit(I) - device we are reading from */
662 ipflog_clear(minor_t unit)
670 while ((ipl = iplt[unit]) != NULL) {
671 iplt[unit] = ipl->ipl_next;
674 iplh[unit] = &iplt[unit];
675 ipll[unit] = NULL;
676 used = iplused[unit];
677 iplused[unit] = 0;
678 bzero((char *)&iplcrc[unit], FI_CSIZE);
688 /* Parameters: unit(I) - device we are reading from */
694 ipflog_canread(int unit)
696 return iplt[unit] != NULL;