Lines Matching refs:unit
551 int ipflog_read(unit, uio, ifs) in ipflog_read() argument
552 minor_t unit; in ipflog_read()
565 if (IPL_LOGMAX < unit)
580 while (ifs->ifs_iplt[unit] == NULL) {
607 l = get_sleep_lock(&ifs->ifs_iplh[unit]);
608 error = sleep(&ifs->ifs_iplh[unit], PZERO+1);
612 error = mpsleep(&ifs->ifs_iplh[unit], PSUSP|PCATCH, "iplread", 0,
617 error = SLEEP(&ifs->ifs_iplh[unit], "ipl sleep");
631 for (copied = 0; ((ipl = ifs->ifs_iplt[unit]) != NULL); copied += dlen) {
638 ifs->ifs_iplt[unit] = ipl->ipl_next;
639 ifs->ifs_iplused[unit] -= dlen;
640 if (ifs->ifs_iplt[unit] == NULL) {
641 ifs->ifs_iplh[unit] = &ifs->ifs_iplt[unit];
642 ifs->ifs_ipll[unit] = NULL;
650 ifs->ifs_iplused[unit] += dlen;
651 ipl->ipl_next = ifs->ifs_iplt[unit];
652 ifs->ifs_iplt[unit] = ipl;
653 ifs->ifs_ipll[unit] = ipl;
654 if (ifs->ifs_iplh[unit] == &ifs->ifs_iplt[unit]) {
655 *ifs->ifs_iplh[unit] = ipl;
656 ifs->ifs_iplh[unit] = &ipl->ipl_next;
678 int ipflog_clear(unit, ifs) in ipflog_clear() argument
679 minor_t unit; in ipflog_clear()
688 while ((ipl = ifs->ifs_iplt[unit]) != NULL) {
689 ifs->ifs_iplt[unit] = ipl->ipl_next;
692 ifs->ifs_iplh[unit] = &ifs->ifs_iplt[unit];
693 ifs->ifs_ipll[unit] = NULL;
694 used = ifs->ifs_iplused[unit];
695 ifs->ifs_iplused[unit] = 0;
696 bzero((char *)&ifs->ifs_iplcrc[unit], FI_CSIZE);