Lines Matching refs:refcnt
70 unsigned int refcnt; /* protected by mtx */ member
405 KASSERT(tlc->refcnt == 0, ("Child device is running")); in hidbus_child_detached()
430 KASSERT(tlc->refcnt == 0, ("Child device is running")); in hidbus_child_deleted()
583 if (tlc->refcnt == 0 || tlc->intr_handler == NULL) in hidbus_intr()
614 int refcnt = 0; in hidbus_intr_start() local
620 refcnt += tlc->refcnt; in hidbus_intr_start()
623 ++tlc->refcnt; in hidbus_intr_start()
627 error = refcnt != 0 ? 0 : HID_INTR_START(device_get_parent(bus)); in hidbus_intr_start()
640 bool refcnt = 0; in hidbus_intr_stop() local
648 MPASS(tlc->refcnt != 0); in hidbus_intr_stop()
649 --tlc->refcnt; in hidbus_intr_stop()
652 refcnt += tlc->refcnt; in hidbus_intr_stop()
654 error = refcnt != 0 ? 0 : HID_INTR_STOP(device_get_parent(bus)); in hidbus_intr_stop()