Lines Matching refs:bLength

12     uint8_t bLength = 0x12;  in usb_desc_device()  local
15 if (len < bLength) { in usb_desc_device()
19 d->bLength = bLength; in usb_desc_device()
51 return bLength; in usb_desc_device()
57 uint8_t bLength = 0x0a; in usb_desc_device_qualifier() local
60 if (len < bLength) { in usb_desc_device_qualifier()
64 d->bLength = bLength; in usb_desc_device_qualifier()
76 return bLength; in usb_desc_device_qualifier()
82 uint8_t bLength = 0x09; in usb_desc_config() local
87 if (len < bLength) { in usb_desc_config()
91 d->bLength = bLength; in usb_desc_config()
99 wTotalLength += bLength; in usb_desc_config()
134 uint8_t bLength = 0x08; in usb_desc_iface_group() local
136 if (len < bLength) { in usb_desc_iface_group()
140 dest[0x00] = bLength; in usb_desc_iface_group()
148 pos += bLength; in usb_desc_iface_group()
165 uint8_t bLength = 0x09; in usb_desc_iface() local
169 if (len < bLength) { in usb_desc_iface()
173 d->bLength = bLength; in usb_desc_iface()
183 pos += bLength; in usb_desc_iface()
207 uint8_t bLength = ep->is_audio ? 0x09 : 0x07; in usb_desc_endpoint() local
212 if (len < bLength + extralen + superlen) { in usb_desc_endpoint()
216 d->bLength = bLength; in usb_desc_endpoint()
230 d = (void *)(dest + bLength); in usb_desc_endpoint()
232 d->bLength = 0x06; in usb_desc_endpoint()
244 memcpy(dest + bLength + superlen, ep->extra, extralen); in usb_desc_endpoint()
247 return bLength + extralen + superlen; in usb_desc_endpoint()
252 int bLength = desc->length ? desc->length : desc->data[0]; in usb_desc_other() local
254 if (len < bLength) { in usb_desc_other()
258 memcpy(dest, desc->data, bLength); in usb_desc_other()
259 return bLength; in usb_desc_other()
264 uint8_t bLength = 0x07; in usb_desc_cap_usb2_ext() local
267 if (len < bLength) { in usb_desc_cap_usb2_ext()
271 d->bLength = bLength; in usb_desc_cap_usb2_ext()
280 return bLength; in usb_desc_cap_usb2_ext()
285 uint8_t bLength = 0x0a; in usb_desc_cap_super() local
288 if (len < bLength) { in usb_desc_cap_super()
292 d->bLength = bLength; in usb_desc_cap_super()
321 return bLength; in usb_desc_cap_super()
326 uint8_t bLength = 0x05; in usb_desc_bos() local
332 if (len < bLength) { in usb_desc_bos()
336 d->bLength = bLength; in usb_desc_bos()
339 wTotalLength += bLength; in usb_desc_bos()
594 uint8_t bLength, pos, i; in usb_desc_string() local
618 bLength = strlen(str) * 2 + 2; in usb_desc_string()
619 dest[0] = bLength; in usb_desc_string()
622 while (pos+1 < bLength && pos+1 < len) { in usb_desc_string()