Lines Matching refs:wLength

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()
563 struct net_buf *const buf, const uint16_t wLength) in string_ascii7_to_utf16le() argument
589 wLength, head.bLength, net_buf_tailroom(buf)); in string_ascii7_to_utf16le()
591 len = MIN(net_buf_tailroom(buf), MIN(head.bLength, wLength)); in string_ascii7_to_utf16le()
616 len = MIN(setup->wLength, net_buf_tailroom(buf)); in sreq_get_desc_dev()
657 len = MIN(setup->wLength, net_buf_tailroom(buf)); in sreq_get_desc_str()
661 string_ascii7_to_utf16le(d_nd, buf, setup->wLength); in sreq_get_desc_str()
698 len = MIN(setup->wLength, net_buf_tailroom(buf)); in sreq_get_dev_qualifier()
749 len = MIN(net_buf_tailroom(buf), MIN(setup->wLength, bos.wTotalLength)); in sreq_get_desc_bos()
752 setup->wLength, bos.bLength, bos.wTotalLength, net_buf_tailroom(buf)); in sreq_get_desc_bos()
833 if (setup->wLength != sizeof(cfg)) { in sreq_get_configuration()
838 if (net_buf_tailroom(buf) < setup->wLength) { in sreq_get_configuration()
884 if (setup->wLength != sizeof(cur_alt)) { in sreq_get_interface()
889 if (net_buf_tailroom(buf) < setup->wLength) { in sreq_get_interface()
1044 setup->wLength = sys_le16_to_cpu(setup->wLength); in ctrl_xfer_get_setup()
1057 if (setup->wLength) { in ctrl_xfer_get_setup()
1069 if (!setup->wLength) { in ctrl_xfer_get_setup()
1168 if (reqtype_is_to_device(setup) && setup->wLength) { in usbd_handle_ctrl_xfer()
1222 } else if (setup->wLength) { in usbd_handle_ctrl_xfer()