Lines Matching refs:unit
93 static struct kctl *ctl_find_by_id_unit(u_int32_t id, u_int32_t unit);
95 static struct ctl_cb *kcb_find(struct kctl *, u_int32_t unit);
329 u_int32_t unit = 1;
332 if (kcb_next->unit > unit) {
336 unit = kcb_next->unit + 1;
337 if (unit == ctl_maxunit)
341 if (unit == ctl_maxunit) {
346 sa.sc_unit = unit;
349 kcb->unit = sa.sc_unit;
377 kcb->unit = 0;
394 (*kctl->disconnect)(kctl, kcb->unit, kcb->userdata);
399 kcb->unit = 0;
425 sc.sc_unit = kcb->unit;
449 error = (*kctl->send)(kctl, kcb->unit, kcb->userdata, m, flags);
456 ctl_enqueuembuf(void *kctlref, u_int32_t unit, struct mbuf *m, u_int32_t flags)
466 kcb = kcb_find(kctl, unit);
489 ctl_enqueuedata(void *kctlref, u_int32_t unit, void *data, size_t len, u_int32_t flags)
503 kcb = kcb_find(kctl, unit);
547 ctl_getenqueuespace(kern_ctl_ref kctlref, u_int32_t unit, size_t *space)
557 kcb = kcb_find(kctl, unit);
606 error = (*kctl->setopt)(kcb->kctl, kcb->unit, kcb->userdata, sopt->sopt_name,
626 error = (*kctl->getopt)(kcb->kctl, kcb->unit, kcb->userdata, sopt->sopt_name,
720 * CTL_FLAG_REG_ID_UNIT indicates the control ID and unit number are
867 ctl_find_by_id_unit(u_int32_t id, u_int32_t unit)
874 else if (kctl->id == id && kctl->reg_unit == unit)
884 kcb_find(struct kctl *kctl, u_int32_t unit)
889 if ((kcb->unit == unit))