Lines Matching refs:wLength
49 const uint16_t wLength, in usbh_req_setup() argument
57 .wLength = sys_cpu_to_le16(wLength), in usbh_req_setup()
70 __ASSERT((buf != NULL && wLength) || (buf == NULL && !wLength), in usbh_req_setup()
72 if (wLength) { in usbh_req_setup()
123 const uint16_t wLength = MIN(len, sizeof(struct usb_device_descriptor)); in usbh_req_desc_dev() local
127 buf = usbh_xfer_buf_alloc(udev, wLength); in usbh_req_desc_dev()
132 ret = usbh_req_desc(udev, type, 0, 0, wLength, buf); in usbh_req_desc_dev()
133 if (ret == 0 && buf->len == wLength) { in usbh_req_desc_dev()
134 memcpy(desc, buf->data, wLength); in usbh_req_desc_dev()
152 const uint16_t wLength = len; in usbh_req_desc_cfg() local
161 ret = usbh_req_desc(udev, type, index, 0, wLength, buf); in usbh_req_desc_cfg()
195 const uint16_t wLength = 1; in usbh_req_get_cfg() local
199 buf = usbh_xfer_buf_alloc(udev, wLength); in usbh_req_get_cfg()
204 ret = usbh_req_setup(udev, bmRequestType, bRequest, 0, 0, wLength, buf); in usbh_req_get_cfg()
205 if (ret == 0 && buf->len == wLength) { in usbh_req_get_cfg()