Home
last modified time | relevance | path

Searched refs:wLength (Results 1 – 25 of 38) sorted by relevance

12

/Zephyr-latest/include/zephyr/usb/
Dmsos_desc.h48 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
Dusb_ch9.h48 uint16_t wLength; member
/Zephyr-latest/subsys/usb/host/
Dusbh_ch9.c42 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 …]
Dusbh_shell.c96 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()
Dusbh_ch9.h20 const uint16_t wLength,
/Zephyr-latest/samples/subsys/usb/webusb-next/src/
Dmsosv2.h52 .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/
Dusbd_ch9.c38 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 …]
Dusbd_endpoint.c63 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/
Dmain.c53 .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/
Dloopback.c143 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()
Dmsc.c351 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/
Dusb_dfu.c507 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/
Dmain.c77 .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/
Dloopback.c76 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()
Dusbd_cdc_ncm.c57 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 …]
Dusbd_hid_api.c80 .wLength = len, in wrapper_get_report()
102 .wLength = len, in wrapper_set_report()
Dusbd_hid.c167 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/
Dusb_device.c150 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/
Dusb_dc_native_posix_adapt.h74 uint16_t wLength; member
Dusb_dc_nrfx.c755 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()
Dusb_dc_rpi_pico.c884 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/
Dudc_common.h293 return sys_le16_to_cpu(setup->wLength); in udc_data_stage_length()
/Zephyr-latest/drivers/usb/common/nrf_usbd_common/
Dnrf_usbd_common.h271 uint16_t wLength; /*!< byte 6, 7 */ member
/Zephyr-latest/include/zephyr/usb/class/
Dusb_cdc.h216 uint16_t wLength; member
/Zephyr-latest/subsys/usb/device/class/hid/
Dcore.c507 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()

12