Lines Matching refs:bus

286 	device_t *children, bus;  in hidbus_detach_children()  local
293 bus = is_bus ? dev : device_get_parent(dev); in hidbus_detach_children()
295 KASSERT(device_get_devclass(bus) == devclass_find("hidbus"), in hidbus_detach_children()
300 error = bus_generic_detach(bus); in hidbus_detach_children()
306 error = device_get_children(bus, &children, &i); in hidbus_detach_children()
315 error = device_delete_child(bus, children[i]); in hidbus_detach_children()
325 HID_INTR_UNSETUP(device_get_parent(bus), bus); in hidbus_detach_children()
396 hidbus_child_detached(device_t bus, device_t child) in hidbus_child_detached() argument
398 struct hidbus_softc *sc = device_get_softc(bus); in hidbus_child_detached()
420 hidbus_child_deleted(device_t bus, device_t child) in hidbus_child_deleted() argument
422 struct hidbus_softc *sc = device_get_softc(bus); in hidbus_child_deleted()
433 hidbus_read_ivar(device_t bus, device_t child, int which, uintptr_t *result) in hidbus_read_ivar() argument
435 struct hidbus_softc *sc = device_get_softc(bus); in hidbus_read_ivar()
461 hidbus_write_ivar(device_t bus, device_t child, int which, uintptr_t value) in hidbus_write_ivar() argument
463 struct hidbus_softc *sc = device_get_softc(bus); in hidbus_write_ivar()
477 device_get_parent(bus), bus, NULL, NULL, NULL); in hidbus_write_ivar()
494 hidbus_child_location(device_t bus, device_t child, struct sbuf *sb) in hidbus_child_location() argument
504 hidbus_child_pnpinfo(device_t bus, device_t child, struct sbuf *sb) in hidbus_child_pnpinfo() argument
507 struct hid_device_info *devinfo = device_get_ivars(bus); in hidbus_child_pnpinfo()
521 device_t bus = device_get_parent(child); in hidbus_set_desc() local
522 struct hidbus_softc *sc = device_get_softc(bus); in hidbus_set_desc()
523 struct hid_device_info *devinfo = device_get_ivars(bus); in hidbus_set_desc()
535 hidbus_find_child(device_t bus, int32_t usage) in hidbus_find_child() argument
543 if (device_get_children(bus, &children, &ccount) != 0) in hidbus_find_child()
600 hidbus_intr_start(device_t bus, device_t child) in hidbus_intr_start() argument
602 MPASS(bus == device_get_parent(child)); in hidbus_intr_start()
603 struct hidbus_softc *sc = device_get_softc(bus); in hidbus_intr_start()
619 error = refcnted ? 0 : hid_intr_start(bus); in hidbus_intr_start()
626 hidbus_intr_stop(device_t bus, device_t child) in hidbus_intr_stop() argument
628 MPASS(bus == device_get_parent(child)); in hidbus_intr_stop()
629 struct hidbus_softc *sc = device_get_softc(bus); in hidbus_intr_stop()
646 error = refcnted ? 0 : hid_intr_stop(bus); in hidbus_intr_stop()
653 hidbus_intr_poll(device_t bus, device_t child __unused) in hidbus_intr_poll() argument
655 hid_intr_poll(bus); in hidbus_intr_poll()
661 device_t bus = device_get_parent(child); in hidbus_get_rdesc_info() local
662 struct hidbus_softc *sc = device_get_softc(bus); in hidbus_get_rdesc_info()
677 device_t bus; in hid_get_report_descr() local
680 bus = device_get_devclass(dev) == devclass_find("hidbus") ? in hid_get_report_descr()
682 sc = device_get_softc(bus); in hid_get_report_descr()
713 device_t bus; in hid_set_report_descr() local
721 bus = is_bus ? dev : device_get_parent(dev); in hid_set_report_descr()
722 sc = device_get_softc(bus); in hid_set_report_descr()
749 error = hidbus_attach_children(bus); in hid_set_report_descr()
921 device_t bus; in hid_get_device_info() local
923 bus = device_get_devclass(dev) == devclass_find("hidbus") ? in hid_get_device_info()
926 return (device_get_ivars(bus)); in hid_get_device_info()