Home
last modified time | relevance | path

Searched refs:bmRequestType (Results 1 – 25 of 27) sorted by relevance

12

/third_party/FreeBSD/sys/dev/usb/
Dusb_request.c144 if ((temp != req->bmRequestType) && (temp >= 0) && (temp <= 255)) in usbd_get_debug_bits()
247 req.bmRequestType = UT_WRITE_ENDPOINT; in usb_do_clear_stall_callback()
404 udev, req->bmRequestType, req->bRequest, in usbd_do_request_flags()
443 if (!(req->bmRequestType & UT_READ)) { in usbd_do_request_flags()
555 if (!(req->bmRequestType & UT_READ)) { in usbd_do_request_flags()
624 if (req->bmRequestType & UT_READ) { in usbd_do_request_flags()
731 if ((len != 0) && (req->bmRequestType & UE_DIR_IN)) { in usbd_do_request_proc()
978 req.bmRequestType = UT_READ_DEVICE; in usbd_req_get_desc()
1185 req.bmRequestType = UT_READ_DEVICE; in usbd_req_get_descriptor_ptr()
1367 req.bmRequestType = UT_READ_INTERFACE; in usbd_req_get_alt_interface_no()
[all …]
Dusb_util.c209 if (((req->bmRequestType == UT_WRITE_DEVICE) && in usb_check_request()
211 ((req->bmRequestType == UT_WRITE_DEVICE) && in usb_check_request()
213 ((req->bmRequestType == UT_WRITE_INTERFACE) && in usb_check_request()
226 if (req->bmRequestType == UT_WRITE_ENDPOINT) { in usb_check_request()
Dusb_handle_request.c190 if ((req.bmRequestType & 0x1F) == UT_INTERFACE) { in usb_handle_iface_request()
241 ((req.bmRequestType & 0x1F) == UT_INTERFACE) && in usb_handle_iface_request()
260 if ((req.bmRequestType & 0x1F) != UT_INTERFACE) { in usb_handle_iface_request()
268 switch (req.bmRequestType) { in usb_handle_iface_request()
501 "off=0x%x rem=0x%x, state=%d\n", req.bmRequestType, in usb_handle_request()
506 switch (req.bmRequestType) { in usb_handle_request()
Dusb_cdc.h185 uByte bmRequestType; member
Dusb.h131 uByte bmRequestType; member
Dusb_generic.c1012 if ((req->bmRequestType & in ugen_fs_copy_in()
1192 if ((req->bmRequestType & (UT_READ | UT_WRITE)) == UT_READ) { in ugen_fs_copy_out()
1578 req.bmRequestType = UT_WRITE_ENDPOINT; in ugen_ioctl()
Dusb_hub.c292 req.bmRequestType = UT_WRITE_CLASS_OTHER; in uhub_tt_buffer_reset_async_locked()
304 req.bmRequestType = UT_WRITE_CLASS_OTHER; in uhub_tt_buffer_reset_async_locked()
2677 req.bmRequestType = UT_WRITE_INTERFACE; in usbd_device_30_remote_wakeup()
Dusb_transfer.c1398 (req.bmRequestType & UT_READ) ? UE_DIR_IN : UE_DIR_OUT; in usbd_control_transfer_init()
3193 req.bmRequestType = UT_WRITE_ENDPOINT; in usbd_clear_stall_callback()
/third_party/NuttX/drivers/usbdev/gadget/
Dcomposite.c488 if (ctrl->bmRequestType != USB_DIR_IN) in usb_composite_setup()
542 if (ctrl->bmRequestType != USB_DIR_OUT) in usb_composite_setup()
579 if (ctrl->bmRequestType == USB_RECIP_INTERFACE && in usb_composite_setup()
590 if (ctrl->bmRequestType != (USB_DIR_IN | USB_RECIP_INTERFACE)) in usb_composite_setup()
601 if (ctrl->bmRequestType != (USB_DIR_OUT | USB_RECIP_INTERFACE)) in usb_composite_setup()
611 switch (ctrl->bmRequestType & USB_RECIP_MASK) in usb_composite_setup()
Dcdcacm.c1407 ctrl->bmRequestType, ctrl->bRequest, value, index, len); in cdcacm_setup()
1408 if (UT_GET_TYPE(ctrl->bmRequestType) == UT_STANDARD) in cdcacm_setup()
1417 if (ctrl->bmRequestType == 0) in cdcacm_setup()
1436 else if (UT_GET_TYPE(ctrl->bmRequestType) == UT_CLASS) in cdcacm_setup()
1445 if (ctrl->bmRequestType == (USB_DIR_IN | USB_TYPE_CLASS | USB_RECIP_INTERFACE) && in cdcacm_setup()
1474 if (ctrl->bmRequestType == (USB_DIR_OUT | USB_TYPE_CLASS | USB_RECIP_INTERFACE) && in cdcacm_setup()
1508 if (ctrl->bmRequestType == (USB_DIR_OUT | USB_TYPE_CLASS | USB_RECIP_INTERFACE) && in cdcacm_setup()
1531 ctrl->bmRequestType, ctrl->bRequest, value, index, len); in cdcacm_setup()
1565 state_buf->bmRequestType = USB_DIR_IN | USB_TYPE_CLASS | USB_RECIP_INTERFACE; in cdcacm_serial_connect_state()
Ddfu.c252 if ((ctrl->bmRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) in usbclass_setup()
274 else if ((ctrl->bmRequestType & USB_TYPE_MASK) == USB_TYPE_CLASS) in usbclass_setup()
Drndis.c1960 switch (ctrl->bmRequestType & USB_TYPE_MASK) in usbclass_setup()
1973 if (ctrl->bmRequestType == 0) in usbclass_setup()
1991 if ((ctrl->bmRequestType & USB_RECIP_MASK) == USB_RECIP_INTERFACE) in usbclass_setup()
Df_hid.c659 req_type = ctrl->bmRequestType; in usbclass_hid_setup()
Df_uac.c780 req_type = ctrl->bmRequestType; in usbclass_uac_setup()
Df_uvc.c2610 req_type = ctrl->bmRequestType; in usbclass_uvc_setup()
2648 if ((ctrl->bmRequestType & USB_RECIP_MASK) == USB_RECIP_INTERFACE) in usbclass_uvc_setup()
Df_mass_storage.c1749 if (ctrl->bmRequestType != (USB_DIR_IN | in usbclass_mass_setup()
/third_party/FreeBSD/sys/dev/usb/net/
Dif_cdce.c278 req.bmRequestType = UT_READ_CLASS_INTERFACE; in cdce_ncm_init()
382 req.bmRequestType = UT_WRITE_CLASS_INTERFACE; in cdce_ncm_init()
406 req.bmRequestType = UT_WRITE_CLASS_INTERFACE; in cdce_ncm_init()
419 req.bmRequestType = UT_WRITE_CLASS_INTERFACE; in cdce_ncm_init()
1001 req.bmRequestType = UCDC_NOTIFICATION; in cdce_intr_write_callback()
1014 req.bmRequestType = UCDC_NOTIFICATION; in cdce_intr_write_callback()
1061 if (req->bmRequestType == UT_WRITE_CLASS_INTERFACE && \ in cdce_handle_request()
Dif_axge.c154 req.bmRequestType = UT_WRITE_VENDOR_DEVICE; in axge_write_mem()
190 req.bmRequestType = UT_READ_VENDOR_DEVICE; in axge_read_mem()
Dif_axe.c229 req.bmRequestType = (AXE_CMD_IS_WRITE(cmd) ? in axe_cmd()
Dif_urndis.c410 req.bmRequestType = rt; in urndis_ctrl_msg()
/third_party/NuttX/drivers/usbdev/gadget/fconfig/src/
Df_generic.c688 if (UT_GET_TYPE(ctrl->bmRequestType) == UT_STANDARD) in usbclass_generic_setup()
696 if (ctrl->bmRequestType == 0) in usbclass_generic_setup()
703 if (ctrl->bmRequestType == 0) in usbclass_generic_setup()
715 switch (UT_GET_RECIPIENT(ctrl->bmRequestType)) in usbclass_generic_setup()
/third_party/FreeBSD/sys/dev/usb/serial/
Du3g.c624 if (req.bmRequestType & UE_DIR_IN) { in u3g_sael_m460_init()
945 req.bmRequestType = UT_WRITE_CLASS_INTERFACE; in u3g_cfg_set_line()
1024 if (pkt.bmRequestType == UCDC_NOTIFICATION in u3g_intr_callback()
/third_party/FreeBSD/sys/dev/usb/input/
Duhid.c231 req->bmRequestType = UT_WRITE_CLASS_INTERFACE; in uhid_fill_set_report()
243 req->bmRequestType = UT_READ_CLASS_INTERFACE; in uhid_fill_get_report()
/third_party/FreeBSD/sys/compat/linuxkpi/common/src/
Dlinux_usb.c660 req.bmRequestType = requesttype; in usb_control_msg()
711 if (size && (!(req.bmRequestType & UT_READ))) { in usb_control_msg()
718 if (req.bmRequestType & UT_READ) { in usb_control_msg()
/third_party/FreeBSD/sys/dev/usb/storage/
Dumass.c1163 req.bmRequestType = UT_READ_VENDOR_DEVICE; in umass_init_shuttle()
1307 req.bmRequestType = UT_WRITE_CLASS_INTERFACE; in umass_t_bbb_reset1_callback()
1696 req.bmRequestType = UT_READ_CLASS_INTERFACE; in umass_bbb_get_max_lun()
1767 req.bmRequestType = UT_WRITE_CLASS_INTERFACE; in umass_t_cbi_reset1_callback()
1891 req.bmRequestType = UT_WRITE_CLASS_INTERFACE; in umass_t_cbi_command_callback()

12