/Zephyr-latest/include/zephyr/usb/ |
D | msos_desc.h | 48 uint16_t wLength; member 58 uint16_t wLength; member 69 uint16_t wLength; member 78 uint16_t wLength; member 86 uint16_t wLength; member 104 uint16_t wLength; member 112 uint16_t wLength; member 119 uint16_t wLength; member 125 uint16_t wLength; member
|
D | usb_ch9.h | 48 uint16_t wLength; member
|
/Zephyr-latest/subsys/usb/host/ |
D | usbh_ch9.c | 42 const uint16_t wLength, in usbh_req_setup() argument 50 .wLength = sys_cpu_to_le16(wLength), in usbh_req_setup() 63 __ASSERT((buf != NULL && wLength) || (buf == NULL && !wLength), in usbh_req_setup() 65 if (wLength) { in usbh_req_setup() 105 const uint16_t wLength = sizeof(struct usb_device_descriptor); in usbh_req_desc_dev() local 109 buf = usbh_xfer_buf_alloc(udev, wLength); in usbh_req_desc_dev() 114 ret = usbh_req_desc(udev, type, 0, 0, wLength, buf); in usbh_req_desc_dev() 115 if (ret == 0 && buf->len == wLength) { in usbh_req_desc_dev() 116 memcpy(desc, buf->data, wLength); in usbh_req_desc_dev() 134 const uint16_t wLength = len; in usbh_req_desc_cfg() local [all …]
|
D | usbh_shell.c | 96 uint16_t wLength; in cmd_vendor_in() local 99 wLength = MIN(sizeof(vreq_test_buf), strtol(argv[1], NULL, 10)); in cmd_vendor_in() 100 buf = usbh_xfer_buf_alloc(udev, wLength); in cmd_vendor_in() 106 ret = usbh_req_setup(udev, bmRequestType, bRequest, wValue, 0, wLength, buf); in cmd_vendor_in() 108 memcpy(vreq_test_buf, buf->data, MIN(buf->len, wLength)); in cmd_vendor_in() 124 uint16_t wLength; in cmd_vendor_out() local 127 wLength = MIN(sizeof(vreq_test_buf), strtol(argv[1], NULL, 10)); in cmd_vendor_out() 128 buf = usbh_xfer_buf_alloc(udev, wLength); in cmd_vendor_out() 134 net_buf_add_mem(buf, &vreq_test_buf, wLength); in cmd_vendor_out() 135 ret = usbh_req_setup(udev, bmRequestType, bRequest, wValue, 0, wLength, buf); in cmd_vendor_out()
|
D | usbh_ch9.h | 20 const uint16_t wLength,
|
/Zephyr-latest/samples/subsys/usb/webusb-next/src/ |
D | msosv2.h | 52 .wLength = sizeof(struct msosv2_descriptor_set_header), 59 .wLength = sizeof(struct msosv2_function_subset_header), 66 .wLength = sizeof(struct msosv2_compatible_id), 71 .wLength = sizeof(struct msosv2_guids_property),
|
/Zephyr-latest/subsys/usb/device_next/ |
D | usbd_ch9.c | 38 return setup->wLength && USB_REQTYPE_GET_DIR(setup->bmRequestType); in reqtype_is_to_host() 90 if (setup->wValue > 127 || setup->wIndex || setup->wLength) { in sreq_set_address() 136 if (setup->wValue > UINT8_MAX || setup->wLength) { in sreq_set_configuration() 193 if (setup->wLength) { in sreq_set_interface() 235 if (setup->wLength) { in sreq_clear_feature() 311 if (setup->wLength) { in sreq_set_feature() 404 if (setup->wLength != sizeof(response)) { in sreq_get_status() 442 if (net_buf_tailroom(buf) < setup->wLength) { in sreq_get_status() 523 if (buf->len > setup->wLength) { in sreq_get_desc_cfg() 524 net_buf_remove_mem(buf, buf->len - setup->wLength); in sreq_get_desc_cfg() [all …]
|
D | usbd_endpoint.c | 63 size_t min_len = MIN(setup->wLength, buf->len); in usbd_ep_ctrl_set_zlp() 86 if (setup->wLength > min_len && !(min_len % mps0)) { in usbd_ep_ctrl_set_zlp() 92 setup->wLength, min_len); in usbd_ep_ctrl_set_zlp()
|
/Zephyr-latest/samples/subsys/usb/webusb/src/ |
D | main.c | 53 .wLength = sizeof(struct msosv2_descriptor_set_header), 64 .wLength = sizeof(struct msosv2_function_subset_header), 76 .wLength = sizeof(struct msosv2_compatible_id), 81 .wLength = sizeof(struct msosv2_guids_property),
|
/Zephyr-latest/subsys/usb/device/class/ |
D | loopback.c | 143 MIN(sizeof(loopback_buf), setup->wLength)); in loopback_vendor_handler() 150 setup->wLength, *data); in loopback_vendor_handler() 152 *len = MIN(sizeof(loopback_buf), setup->wLength); in loopback_vendor_handler()
|
D | msc.c | 351 setup->wLength == 0) { in mass_storage_class_handle_req() 358 setup->wLength == 1) { in mass_storage_class_handle_req()
|
/Zephyr-latest/subsys/usb/device/class/dfu/ |
D | usb_dfu.c | 507 setup->wValue, setup->wLength, dfu_data.state); in dfu_class_handle_to_host() 526 if (!setup->wLength || in dfu_class_handle_to_host() 530 dfu_data.block_nr, setup->wLength); in dfu_class_handle_to_host() 539 if (bytes_left < setup->wLength) { in dfu_class_handle_to_host() 542 len = setup->wLength; in dfu_class_handle_to_host() 579 len < setup->wLength) { in dfu_class_handle_to_host() 639 setup->wValue, setup->wLength, dfu_data.state); in dfu_class_handle_to_device() 660 dfu_data_worker.worker_len = setup->wLength; in dfu_class_handle_to_device() 661 memcpy(dfu_data_worker.buf, *data, setup->wLength); in dfu_class_handle_to_device() 667 dfu_data_worker.worker_len = setup->wLength; in dfu_class_handle_to_device() [all …]
|
/Zephyr-latest/samples/subsys/dap/src/ |
D | main.c | 77 .wLength = sizeof(struct msosv2_descriptor_set_header), 84 .wLength = sizeof(struct msosv2_function_subset_header), 92 .wLength = sizeof(struct msosv2_compatible_id), 97 .wLength = sizeof(struct msosv2_guids_property),
|
/Zephyr-latest/subsys/usb/device_next/class/ |
D | loopback.c | 76 MIN(sizeof(lb_buf), setup->wLength)); in lb_control_to_host() 78 LOG_WRN("Device-to-Host, wLength %u | %zu", setup->wLength, in lb_control_to_host() 79 MIN(sizeof(lb_buf), setup->wLength)); in lb_control_to_host() 100 LOG_WRN("Host-to-Device, wLength %u | %zu", setup->wLength, in lb_control_to_dev()
|
D | usbd_cdc_ncm.c | 57 uint16_t wLength; member 108 uint16_t wLength; member 115 uint16_t wLength; member 403 if (sys_le16_to_cpu(ndphdr16->wLength) < in verify_nth16() 406 sys_le16_to_cpu(ndphdr16->wLength)); in verify_nth16() 450 max_ndx = (uint16_t)((sys_le16_to_cpu(ndptr16->wLength) - sizeof(struct ndp16)) / in check_frame() 550 LOG_DBG("NDP16: wLength %u", sys_le16_to_cpu(ndp->wLength)); in cdc_ncm_acl_out_cb() 557 count = (sys_le16_to_cpu(ndp->wLength) - 8U) / 4U; in cdc_ncm_acl_out_cb() 716 .wLength = 0, in cdc_ncm_send_connected() 745 .wLength = sys_cpu_to_le16(8), in cdc_ncm_send_speed_change() [all …]
|
D | usbd_hid_api.c | 80 .wLength = len, in wrapper_get_report() 102 .wLength = len, in wrapper_set_report()
|
D | usbd_hid.c | 167 if (setup->wLength != 1U) { in handle_get_idle() 238 const size_t size = setup->wLength; in handle_get_report() 315 if (setup->wValue != 0 || setup->wLength != 1) { in handle_get_protocol() 345 net_buf_add_mem(buf, ddata->rdesc, MIN(ddata->rsize, setup->wLength)); in handle_get_descriptor() 349 net_buf_add_mem(buf, &desc->hid, MIN(desc->hid.bLength, setup->wLength)); in handle_get_descriptor()
|
/Zephyr-latest/subsys/usb/device/ |
D | usb_device.c | 150 uint16_t wLength; member 172 setup->wLength); in usb_print_setup() 259 usb_dev.setup.wLength > usb_dev.data_buf_len) { in usb_data_to_host() 264 usb_dev.setup.wLength, in usb_data_to_host() 308 setup->wLength = sys_le16_to_cpu(setup_raw.wLength); in usb_handle_control_transfer() 321 if (setup->wLength > CONFIG_USB_REQUEST_BUFFER_SIZE) { in usb_handle_control_transfer() 328 if (setup->wLength) { in usb_handle_control_transfer() 330 usb_dev.data_buf_len = setup->wLength; in usb_handle_control_transfer() 331 usb_dev.data_buf_residue = setup->wLength; in usb_handle_control_transfer() 347 setup->wLength); in usb_handle_control_transfer()
|
/Zephyr-latest/drivers/usb/device/ |
D | usb_dc_native_posix_adapt.h | 74 uint16_t wLength; member
|
D | usb_dc_nrfx.c | 755 usbd_setup->wLength = nrf_usbd_setup_wlength_get(NRF_USBD); in usbd_work_process_setup() 766 (uint32_t)usbd_setup->wLength); in usbd_work_process_setup() 773 if (usb_reqtype_is_to_device(usbd_setup) && usbd_setup->wLength) { in usbd_work_process_setup() 774 ctx->ctrl_read_len = usbd_setup->wLength; in usbd_work_process_setup() 1676 if (data_len && usbd_ctx.setup.wLength > data_len && in usb_dc_ep_write()
|
D | usb_dc_rpi_pico.c | 884 setup->wLength, usb_reqtype_is_to_device(setup)); in usb_dc_control_ep_read_continue() 885 if (setup->wLength != 0U) { in usb_dc_control_ep_read_continue() 905 if (state.control_out_ep_rcvd + ep_state->read_offset < setup->wLength) { in usb_dc_control_ep_read_continue()
|
/Zephyr-latest/drivers/usb/udc/ |
D | udc_common.h | 293 return sys_le16_to_cpu(setup->wLength); in udc_data_stage_length()
|
/Zephyr-latest/drivers/usb/common/nrf_usbd_common/ |
D | nrf_usbd_common.h | 271 uint16_t wLength; /*!< byte 6, 7 */ member
|
/Zephyr-latest/include/zephyr/usb/class/ |
D | usb_cdc.h | 216 uint16_t wLength; member
|
/Zephyr-latest/subsys/usb/device/class/hid/ |
D | core.c | 507 setup->bRequest, setup->bmRequestType, setup->wLength); in hid_custom_handle_req() 535 *len = MIN(setup->wLength, hid_desc->if0_hid.bLength); in hid_custom_handle_req() 541 *len = MIN(setup->wLength, dev_data->report_size); in hid_custom_handle_req()
|