/third_party/FreeBSD/sys/dev/usb/ |
D | usb_device.c | 89 usb_get_manufacturer(struct usb_device *udev) in usb_get_manufacturer() argument 91 return (udev->manufacturer ? udev->manufacturer : "Unknown"); in usb_get_manufacturer() 95 usb_get_product(struct usb_device *udev) in usb_get_product() argument 97 return (udev->product ? udev->product : ""); in usb_get_product() 101 usb_get_serial(struct usb_device *udev) in usb_get_serial() argument 103 return (udev->serial ? udev->serial : ""); in usb_get_serial() 117 usbd_get_ep_by_addr(struct usb_device *udev, uint8_t ea_val) in usbd_get_ep_by_addr() argument 119 struct usb_endpoint *ep = udev->endpoints; in usbd_get_ep_by_addr() 120 struct usb_endpoint *ep_end = udev->endpoints + udev->endpoints_max; in usbd_get_ep_by_addr() 148 if ((udev->ctrl_ep.edesc != NULL) && in usbd_get_ep_by_addr() [all …]
|
D | usb_hub.c | 113 static void usb_dev_resume_peer(struct usb_device *udev); 114 static void usb_dev_suspend_peer(struct usb_device *udev); 115 static uint8_t usb_peer_should_wakeup(struct usb_device *udev); 224 struct usb_device *udev = pm->udev; in uhub_reset_tt_proc() local 228 hub = udev->hub; in uhub_reset_tt_proc() 236 USB_BUS_UNLOCK(udev->bus); in uhub_reset_tt_proc() 242 USB_BUS_LOCK(udev->bus); in uhub_reset_tt_proc() 256 struct usb_device *udev; in uhub_tt_buffer_reset_async_locked() local 265 udev = child->parent_hs_hub; in uhub_tt_buffer_reset_async_locked() 268 if (udev == NULL) in uhub_tt_buffer_reset_async_locked() [all …]
|
D | usb_request.c | 107 usbd_get_debug_bits(struct usb_device *udev, struct usb_device_request *req, in usbd_get_debug_bits() argument 136 if (usbd_get_bus_index(udev) != usb_ctrl_debug.bus_index) in usbd_get_debug_bits() 139 if (usbd_get_device_index(udev) != usb_ctrl_debug.dev_index) in usbd_get_debug_bits() 183 (void)cv_signal(&xfer->xroot->udev->ctrlreq_cv); in usbd_do_request_callback() 197 struct usb_device *udev; in usb_do_clear_stall_callback() local 204 udev = xfer->xroot->udev; in usb_do_clear_stall_callback() 206 USB_BUS_LOCK(udev->bus); in usb_do_clear_stall_callback() 210 ep = udev->ep_curr; in usb_do_clear_stall_callback() 211 ep_end = udev->endpoints + udev->endpoints_max; in usb_do_clear_stall_callback() 212 ep_first = udev->endpoints; in usb_do_clear_stall_callback() [all …]
|
D | usb_request.h | 34 usb_error_t usbd_req_clear_hub_feature(struct usb_device *udev, 36 usb_error_t usbd_req_clear_port_feature(struct usb_device *udev, 38 usb_error_t usbd_req_get_alt_interface_no(struct usb_device *udev, 41 usb_error_t usbd_req_get_config(struct usb_device *udev, struct mtx *mtx, 43 usb_error_t usbd_req_get_descriptor_ptr(struct usb_device *udev, 45 usb_error_t usbd_req_get_config_desc(struct usb_device *udev, struct mtx *mtx, 47 usb_error_t usbd_req_get_config_desc_full(struct usb_device *udev, 50 usb_error_t usbd_req_get_desc(struct usb_device *udev, struct mtx *mtx, 54 usb_error_t usbd_req_get_device_desc(struct usb_device *udev, struct mtx *mtx, 56 usb_error_t usbd_req_get_device_status(struct usb_device *udev, [all …]
|
D | usb_handle_request.c | 111 struct usb_device *udev = xfer->xroot->udev; in usb_handle_set_config() local 122 do_unlock = usbd_enum_lock(udev); in usb_handle_set_config() 134 if (usbd_set_config_index(udev, conf_no)) { in usb_handle_set_config() 139 if (usb_probe_and_attach(udev, USB_IFACE_INDEX_ANY)) { in usb_handle_set_config() 146 usbd_enum_unlock(udev); in usb_handle_set_config() 152 usb_check_alt_setting(struct usb_device *udev, in usb_check_alt_setting() argument 159 do_unlock = usbd_enum_lock(udev); in usb_check_alt_setting() 161 if (alt_index >= usbd_get_no_alts(udev->cdesc, iface->idesc)) in usb_check_alt_setting() 165 usbd_enum_unlock(udev); in usb_check_alt_setting() 184 struct usb_device *udev = xfer->xroot->udev; in usb_handle_iface_request() local [all …]
|
D | usb_generic.c | 91 struct usb_device *udev = f->udev; in ugen_transfer_setup() local 101 error = usbd_transfer_setup(udev, &iface_index, f->xfer, in ugen_transfer_setup() 131 switch (usbd_get_speed(f->udev)) { in ugen_open() 559 if (f->udev->flags.usb_mode != USB_MODE_HOST) { in ugen_set_config() 571 if (usbd_start_set_config(f->udev, index) != 0) in ugen_set_config() 583 if (f->udev->flags.usb_mode != USB_MODE_HOST) { in ugen_set_interface() 594 if (usbd_set_alt_interface_index(f->udev, iface_index, alt_index)) { in ugen_set_interface() 598 if (usb_probe_and_attach(f->udev, iface_index)) { in ugen_set_interface() 614 struct usb_device *udev = f->udev; in ugen_get_cdesc() local 626 (ugd->ugd_config_index == udev->curr_config_index)) { in ugen_get_cdesc() [all …]
|
D | usb_debug.c | 71 usb_dump_device(struct usb_device *udev) in usb_dump_device() argument 73 if (udev == NULL) { in usb_dump_device() 79 udev->bus, in usb_dump_device() 80 udev->address, udev->curr_config_no, udev->depth, udev->speed, in usb_dump_device() 81 udev->flags.self_powered, udev->power, udev->langid); in usb_dump_device() 136 struct usb_device *udev; in usb_dump_xfer() local 146 udev = xfer->xroot->udev; in usb_dump_xfer() 149 xfer, udev, in usb_dump_xfer() 150 UGETW(udev->ddesc.idVendor), in usb_dump_xfer() 151 UGETW(udev->ddesc.idProduct), in usb_dump_xfer() [all …]
|
D | usb_util.c | 41 struct usb_device *udev; in device_set_usb_desc() local 56 udev = uaa->device; in device_set_usb_desc() 68 do_unlock = usbd_ctrl_lock(udev); in device_set_usb_desc() 70 temp_p = (char *)udev->scratch.data; in device_set_usb_desc() 74 err = usbd_req_get_string_any(udev, NULL, temp_p, in device_set_usb_desc() 75 sizeof(udev->scratch.data), in device_set_usb_desc() 80 usb_devinfo(udev, temp_p, in device_set_usb_desc() 81 sizeof(udev->scratch.data)); in device_set_usb_desc() 85 usbd_ctrl_unlock(udev); in device_set_usb_desc() 89 device_get_nameunit(udev->bus->bdev)); in device_set_usb_desc() [all …]
|
D | usb_transfer.c | 153 usbd_get_dma_delay(struct usb_device *udev) in usbd_get_dma_delay() argument 158 mtod = udev->bus->methods; in usbd_get_dma_delay() 162 (mtod->get_dma_delay) (udev, &temp); in usbd_get_dma_delay() 364 xfer->flags_int.usb_mode = parm->udev->flags.usb_mode; in usbd_transfer_setup_sub() 854 usbd_transfer_setup(struct usb_device *udev, in usbd_transfer_setup() argument 908 do_unlock = usbd_ctrl_lock(udev); in usbd_transfer_setup() 913 parm = &udev->scratch.xfer_setup[0].parm; in usbd_transfer_setup() 916 parm->udev = udev; in usbd_transfer_setup() 917 parm->speed = usbd_get_speed(udev); in usbd_transfer_setup() 949 parm->dma_tag_p, udev->bus->dma_parent_tag[0].tag, in usbd_transfer_setup() [all …]
|
D | usbdi_util.h | 42 usb_error_t usbd_do_request_proc(struct usb_device *udev, struct usb_process *pproc, 62 usb_error_t usbd_req_get_report(struct usb_device *udev, struct mtx *mtx, 65 usb_error_t usbd_req_get_report_descriptor(struct usb_device *udev, 68 usb_error_t usbd_req_get_string_any(struct usb_device *udev, struct mtx *mtx, 70 usb_error_t usbd_req_get_string_desc(struct usb_device *udev, struct mtx *mtx, 73 usb_error_t usbd_req_set_config(struct usb_device *udev, struct mtx *mtx, 75 usb_error_t usbd_req_set_alt_interface_no(struct usb_device *udev, 77 usb_error_t usbd_req_set_idle(struct usb_device *udev, struct mtx *mtx, 79 usb_error_t usbd_req_set_protocol(struct usb_device *udev, struct mtx *mtx, 81 usb_error_t usbd_req_set_report(struct usb_device *udev, struct mtx *mtx,
|
D | usbdi.h | 497 void *usbd_find_descriptor(struct usb_device *udev, void *id, 501 struct usb_device *udev); 503 struct usb_device *udev); 504 struct usb_interface *usbd_get_iface(struct usb_device *udev, 508 struct usb_endpoint *usbd_get_endpoint(struct usb_device *udev, uint8_t iface_index, 510 struct usb_endpoint *usbd_get_ep_by_addr(struct usb_device *udev, uint8_t ea_val); 511 usb_error_t usbd_interface_count(struct usb_device *udev, uint8_t *count); 512 enum usb_hc_mode usbd_get_mode(struct usb_device *udev); 513 enum usb_dev_speed usbd_get_speed(struct usb_device *udev); 516 usb_error_t usbd_set_pnpinfo(struct usb_device *udev, [all …]
|
D | usb_dev.c | 133 cpd->udev = cpd->bus->devices[cpd->dev_index]; in usb_ref_device() 134 if (cpd->udev == NULL) { in usb_ref_device() 139 if (cpd->udev->state == USB_STATE_DETACHED && in usb_ref_device() 147 if (cpd->udev->refcount == USB_DEV_REF_MAX) { in usb_ref_device() 151 cpd->udev->refcount++; in usb_ref_device() 159 crd->do_unlock = usbd_enum_lock(cpd->udev); in usb_ref_device() 181 ppf = cpd->udev->fifo; in usb_ref_device() 198 ppf = cpd->udev->fifo; in usb_ref_device() 229 usbd_enum_unlock(cpd->udev); in usb_ref_device() 232 if (cpd->udev && --(cpd->udev->refcount) == 0) in usb_ref_device() [all …]
|
D | usb_dynamic.c | 47 usb_temp_setup_by_index_w(struct usb_device *udev, uint16_t index) in usb_temp_setup_by_index_w() argument 65 usb_temp_get_desc_w(struct usb_device *udev, struct usb_device_request *req, const void **pPtr, uin… in usb_temp_get_desc_w() argument 72 usb_temp_unsetup_w(struct usb_device *udev) in usb_temp_unsetup_w() argument 74 usbd_free_config_desc(udev, udev->usb_template_ptr); in usb_temp_unsetup_w() 75 udev->usb_template_ptr = NULL; in usb_temp_unsetup_w()
|
D | usb_device.h | 54 struct usb_device *udev; member 137 struct usb_device *udev; member 306 usb_error_t usb_probe_and_attach(struct usb_device *udev, 309 usb_error_t usb_reset_iface_endpoints(struct usb_device *udev, 311 usb_error_t usbd_set_config_index(struct usb_device *udev, uint8_t index); 312 usb_error_t usbd_set_endpoint_stall(struct usb_device *udev, 314 usb_error_t usb_suspend_resume(struct usb_device *udev, 316 void usb_devinfo(struct usb_device *udev, char *dst_ptr, uint16_t dst_len); 319 uint8_t usb_peer_can_wakeup(struct usb_device *udev); 320 struct usb_endpoint *usb_endpoint_foreach(struct usb_device *udev, struct usb_endpoint *ep);
|
/third_party/libinput/test/ |
D | test-udev.c | 55 struct udev *udev; in START_TEST() local 57 udev = udev_new(); in START_TEST() 65 li = libinput_udev_create_context(NULL, NULL, udev); in START_TEST() 68 li = libinput_udev_create_context(&simple_interface, NULL, udev); in START_TEST() 73 udev_unref(udev); in START_TEST() 81 struct udev *udev; in START_TEST() local 84 udev = udev_new(); in START_TEST() 85 ck_assert_notnull(udev); in START_TEST() 87 li = libinput_udev_create_context(&simple_interface, NULL, udev); in START_TEST() 101 udev_unref(udev); in START_TEST() [all …]
|
/third_party/FreeBSD/sys/dev/usb/controller/ |
D | usb_controller.c | 330 struct usb_device *udev; in usb_bus_explore() local 333 udev = bus->devices[USB_ROOT_HUB_ADDR]; in usb_bus_explore() 338 if (udev != NULL) { in usb_bus_explore() 340 uhub_explore_handle_re_enumerate(udev); in usb_bus_explore() 344 if ((udev != NULL) && (udev->hub != NULL)) { in usb_bus_explore() 374 (void)(udev->hub->explore) (udev); in usb_bus_explore() 391 struct usb_device *udev; in usb_bus_detach() local 395 udev = bus->devices[USB_ROOT_HUB_ADDR]; in usb_bus_detach() 409 usb_free_device(udev, 0); in usb_bus_detach() 425 struct usb_device *udev; in usb_bus_suspend() local [all …]
|
D | xhci.c | 1334 xhci_set_address(struct usb_device *udev, struct mtx *mtx, uint16_t address) in xhci_set_address() argument 1338 struct xhci_softc *sc = XHCI_BUS2SC(udev->bus); in xhci_set_address() 1348 if (udev->parent_hub == NULL) in xhci_set_address() 1351 index = udev->controller_slot_id; in xhci_set_address() 1367 (void)xhci_configure_mask(udev, 3, 0); in xhci_set_address() 1370 err = xhci_configure_device(udev); in xhci_set_address() 1378 switch (udev->speed) { in xhci_set_address() 1391 pepext = xhci_get_endpoint_ext(udev, in xhci_set_address() 1392 &udev->ctrl_ep_desc); in xhci_set_address() 1395 USB_BUS_LOCK(udev->bus); in xhci_set_address() [all …]
|
/third_party/libinput/src/ |
D | path-seat.c | 34 struct udev *udev; member 246 udev_unref(path_input->udev); in path_input_destroy() 306 struct udev *udev; in libinput_path_create_context() local 311 udev = udev_new(); in libinput_path_create_context() 312 if (!udev) in libinput_path_create_context() 318 udev_unref(udev); in libinput_path_create_context() 323 input->udev = udev; in libinput_path_create_context() 331 struct udev *udev, in udev_device_from_devnode() argument 341 dev = udev_device_new_from_devnum(udev, 'c', st.st_rdev); in udev_device_from_devnode() 353 dev = udev_device_new_from_devnum(udev, 'c', st.st_rdev); in udev_device_from_devnode() [all …]
|
D | udev-seat.c | 170 udev_input_add_devices(struct udev_input *input, struct udev *udev) in udev_input_add_devices() argument 177 e = udev_enumerate_new(udev); in udev_input_add_devices() 182 device = udev_device_new_from_syspath(udev, path); in udev_input_add_devices() 279 struct udev *udev = input->udev; in udev_input_enable() local 285 input->udev_monitor = udev_monitor_new_from_netlink(udev, "udev"); in udev_input_enable() 316 if (udev_input_add_devices(input, udev) < 0) { in udev_input_enable() 332 udev_unref(udev_input->udev); in udev_input_destroy() 400 struct udev *udev) in libinput_udev_create_context() argument 404 if (!interface || !udev) in libinput_udev_create_context() 416 input->udev = udev_ref(udev); in libinput_udev_create_context()
|
/third_party/libinput/udev/ |
D | libinput-device-group.c | 100 struct udev *udev; in wacom_handle_ekr() local 105 udev = udev_device_get_udev(device); in wacom_handle_ekr() 106 e = udev_enumerate_new(udev); in wacom_handle_ekr() 122 d = udev_device_new_from_syspath(udev, path); in wacom_handle_ekr() 155 struct udev *udev = NULL; in main() local 169 udev = udev_new(); in main() 170 if (!udev) in main() 173 device = udev_device_new_from_syspath(udev, syspath); in main() 256 if (udev) in main() 257 udev_unref(udev); in main()
|
D | libinput-fuzz-to-zero.c | 84 struct udev *udev = NULL; in main() local 93 udev = udev_new(); in main() 94 if (!udev) in main() 97 device = udev_device_new_from_syspath(udev, syspath); in main() 108 if (udev) in main() 109 udev_unref(udev); in main()
|
D | libinput-fuzz-extract.c | 117 struct udev *udev = NULL; in main() local 126 udev = udev_new(); in main() 127 if (!udev) in main() 130 device = udev_device_new_from_syspath(udev, syspath); in main() 142 if (udev) in main() 143 udev_unref(udev); in main()
|
/third_party/pulseaudio/src/modules/ |
D | udev-util.c | 167 struct udev *udev; in pa_udev_get_info() local 176 if (!(udev = udev_new())) { in pa_udev_get_info() 182 card = udev_device_new_from_syspath(udev, t); in pa_udev_get_info() 258 if (udev) in pa_udev_get_info() 259 udev_unref(udev); in pa_udev_get_info() 265 struct udev *udev; in pa_udev_get_property() local 273 if (!(udev = udev_new())) { in pa_udev_get_property() 279 card = udev_device_new_from_syspath(udev, t); in pa_udev_get_property() 295 if (udev) in pa_udev_get_property() 296 udev_unref(udev); in pa_udev_get_property()
|
/third_party/libinput/tools/ |
D | libinput-quirks.c | 97 struct udev *udev = NULL; in main() local 197 udev = udev_new(); in main() 198 if (!udev) in main() 203 device = udev_device_new_from_syspath(udev, path); in main() 211 device = udev_device_new_from_devnum(udev, 'c', st.st_rdev); in main() 223 udev_unref(udev); in main()
|
D | shared.c | 305 struct udev *udev = udev_new(); in tools_open_udev() local 307 if (!udev) { in tools_open_udev() 312 li = libinput_udev_create_context(&interface, grab, udev); in tools_open_udev() 330 udev_unref(udev); in tools_open_udev() 466 struct udev *udev; in find_device() local 473 udev = udev_new(); in find_device() 474 if (!udev) in find_device() 477 e = udev_enumerate_new(udev); in find_device() 483 device = udev_device_new_from_syspath(udev, path); in find_device() 503 udev_unref(udev); in find_device() [all …]
|