Home
last modified time | relevance | path

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

12

/Zephyr-Core-3.6.0/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.c97 uint16_t wLength; in cmd_vendor_in() local
100 wLength = MIN(sizeof(vreq_test_buf), strtol(argv[1], NULL, 10)); in cmd_vendor_in()
101 buf = usbh_xfer_buf_alloc(udev, wLength); in cmd_vendor_in()
107 ret = usbh_req_setup(udev, bmRequestType, bRequest, wValue, 0, wLength, buf); in cmd_vendor_in()
109 memcpy(vreq_test_buf, buf->data, MIN(buf->len, wLength)); in cmd_vendor_in()
125 uint16_t wLength; in cmd_vendor_out() local
128 wLength = MIN(sizeof(vreq_test_buf), strtol(argv[1], NULL, 10)); in cmd_vendor_out()
129 buf = usbh_xfer_buf_alloc(udev, wLength); in cmd_vendor_out()
135 net_buf_add_mem(buf, &vreq_test_buf, wLength); in cmd_vendor_out()
136 ret = usbh_req_setup(udev, bmRequestType, bRequest, wValue, 0, wLength, buf); in cmd_vendor_out()
Dusbh_ch9.h20 const uint16_t wLength,
/Zephyr-Core-3.6.0/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
Dusb_ch9.h47 uint16_t wLength; member
/Zephyr-Core-3.6.0/subsys/usb/device_next/
Dusbd_ch9.c33 return setup->wLength && USB_REQTYPE_GET_DIR(setup->bmRequestType); in reqtype_is_to_host()
85 if (setup->wValue > 127 || setup->wLength) { in sreq_set_address()
130 if (setup->wValue > UINT8_MAX || setup->wLength) { in sreq_set_configuration()
183 if (setup->wLength) { in sreq_set_interface()
225 if (setup->wLength) { in sreq_clear_feature()
301 if (setup->wLength) { in sreq_set_feature()
394 if (setup->wLength != sizeof(response)) { in sreq_get_status()
432 if (net_buf_tailroom(buf) < setup->wLength) { in sreq_get_status()
461 len = MIN(setup->wLength, net_buf_tailroom(buf)); in sreq_get_desc_cfg()
468 len = MIN(setup->wLength, net_buf_tailroom(buf)); in sreq_get_desc_cfg()
[all …]
Dusbd_endpoint.c62 size_t min_len = MIN(setup->wLength, buf->len); in usbd_ep_ctrl_set_zlp()
73 if (setup->wLength > min_len && !(min_len % USB_CONTROL_EP_MPS)) { in usbd_ep_ctrl_set_zlp()
79 setup->wLength, min_len); in usbd_ep_ctrl_set_zlp()
/Zephyr-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/subsys/usb/device/class/dfu/
Dusb_dfu.c503 setup->wValue, setup->wLength, dfu_data.state); in dfu_class_handle_to_host()
522 if (!setup->wLength || in dfu_class_handle_to_host()
526 dfu_data.block_nr, setup->wLength); in dfu_class_handle_to_host()
535 if (bytes_left < setup->wLength) { in dfu_class_handle_to_host()
538 len = setup->wLength; in dfu_class_handle_to_host()
575 len < setup->wLength) { in dfu_class_handle_to_host()
635 setup->wValue, setup->wLength, dfu_data.state); in dfu_class_handle_to_device()
656 dfu_data_worker.worker_len = setup->wLength; in dfu_class_handle_to_device()
657 memcpy(dfu_data_worker.buf, *data, setup->wLength); in dfu_class_handle_to_device()
663 dfu_data_worker.worker_len = setup->wLength; in dfu_class_handle_to_device()
[all …]
/Zephyr-Core-3.6.0/subsys/usb/device_next/class/
Dloopback.c226 MIN(sizeof(lb_buf), setup->wLength)); in lb_control_to_host()
228 LOG_WRN("Device-to-Host, wLength %u | %zu", setup->wLength, in lb_control_to_host()
229 MIN(sizeof(lb_buf), setup->wLength)); in lb_control_to_host()
250 LOG_WRN("Host-to-Device, wLength %u | %zu", setup->wLength, in lb_control_to_dev()
Dusbd_cdc_acm.c345 min_len = MIN(sizeof(data->line_coding), setup->wLength); in usbd_cdc_acm_cth()
369 if (setup->wLength != len) { in usbd_cdc_acm_ctd()
413 .wLength = sys_cpu_to_le16(sizeof(uint16_t)), in cdc_acm_send_notification()
Dusbd_cdc_ecm.c51 uint16_t wLength; member
282 .wLength = 0, in cdc_ecm_send_notification()
Dusbd_msc.c678 setup->wValue == 0 && setup->wLength == 0) { in msc_bot_control_to_dev()
696 setup->wValue == 0 && setup->wLength >= 1) { in msc_bot_control_to_host()
/Zephyr-Core-3.6.0/subsys/usb/device/
Dusb_device.c149 uint16_t wLength; member
171 setup->wLength); in usb_print_setup()
258 usb_dev.setup.wLength > usb_dev.data_buf_len) { in usb_data_to_host()
263 usb_dev.setup.wLength, in usb_data_to_host()
307 setup->wLength = sys_le16_to_cpu(setup_raw.wLength); in usb_handle_control_transfer()
320 if (setup->wLength > CONFIG_USB_REQUEST_BUFFER_SIZE) { in usb_handle_control_transfer()
327 if (setup->wLength) { in usb_handle_control_transfer()
329 usb_dev.data_buf_len = setup->wLength; in usb_handle_control_transfer()
330 usb_dev.data_buf_residue = setup->wLength; in usb_handle_control_transfer()
346 setup->wLength); in usb_handle_control_transfer()
/Zephyr-Core-3.6.0/drivers/usb/device/
Dusb_dc_native_posix_adapt.h74 uint16_t wLength; member
Dusb_dc_rpi_pico.c820 setup->wLength, usb_reqtype_is_to_device(setup)); in usb_dc_control_ep_read_continue()
821 if (setup->wLength != 0U) { in usb_dc_control_ep_read_continue()
841 if (state.control_out_ep_rcvd + ep_state->read_offset < setup->wLength) { in usb_dc_control_ep_read_continue()
Dusb_dc_nrfx.c754 usbd_setup->wLength = nrf_usbd_setup_wlength_get(NRF_USBD); in usbd_work_process_setup()
765 (uint32_t)usbd_setup->wLength); in usbd_work_process_setup()
772 if (usb_reqtype_is_to_device(usbd_setup) && usbd_setup->wLength) { in usbd_work_process_setup()
773 ctx->ctrl_read_len = usbd_setup->wLength; in usbd_work_process_setup()
1675 if (data_len && usbd_ctx.setup.wLength > data_len && in usb_dc_ep_write()
Dusb_dc_sam_usbc.c1289 static int usb_dc_ep_read_ex_stp(uint32_t take, uint32_t wLength) in usb_dc_ep_read_ex_stp() argument
1301 if (wLength == 0) { in usb_dc_ep_read_ex_stp()
1402 setup->wLength); in usb_dc_ep_read_ex()
/Zephyr-Core-3.6.0/include/zephyr/usb/class/
Dusb_cdc.h197 uint16_t wLength; member
/Zephyr-Core-3.6.0/drivers/usb/udc/
Dudc_common.h293 return sys_le16_to_cpu(setup->wLength); in udc_data_stage_length()
/Zephyr-Core-3.6.0/drivers/usb/common/nrf_usbd_common/
Dnrf_usbd_common.h271 uint16_t wLength; /*!< byte 6, 7 */ member
/Zephyr-Core-3.6.0/samples/net/wpanusb/
Dwpan-radio-spec.txt28 Data length wLength
/Zephyr-Core-3.6.0/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