Lines Matching refs:next_pcb
1490 struct utun_pcb *next_pcb = NULL; in utun_find_by_unit() local
1493 TAILQ_FOREACH(next_pcb, &utun_head, utun_chain) { in utun_find_by_unit()
1494 if (next_pcb->utun_unit == unit) { in utun_find_by_unit()
1553 struct utun_pcb *next_pcb = TAILQ_LAST(&utun_head, utun_list); in utun_ctl_setup() local
1554 if (next_pcb != NULL) { in utun_ctl_setup()
1556 chosen_unique_id = next_pcb->utun_unique_id + 1; in utun_ctl_setup()
1557 next_pcb = NULL; in utun_ctl_setup()
1566 TAILQ_FOREACH(next_pcb, &utun_head, utun_chain) { in utun_ctl_setup()
1567 if (next_pcb->utun_unique_id > chosen_unique_id) { in utun_ctl_setup()
1572 chosen_unique_id = next_pcb->utun_unique_id + 1; in utun_ctl_setup()
1583 if (next_pcb != NULL) { in utun_ctl_setup()
1584 TAILQ_INSERT_BEFORE(next_pcb, pcb, utun_chain); in utun_ctl_setup()