Lines Matching refs:len
44 unsigned len = (*src)->bLength; in usb_descriptor_fillbuf() local
46 if (len > buflen) in usb_descriptor_fillbuf()
48 memcpy(dest, *src, len); in usb_descriptor_fillbuf()
49 buflen -= len; in usb_descriptor_fillbuf()
50 dest += len; in usb_descriptor_fillbuf()
84 int len; in usb_gadget_config_buf() local
93 len = usb_descriptor_fillbuf(USB_DT_CONFIG_SIZE + (u8 *)buf, in usb_gadget_config_buf()
95 if (len < 0) in usb_gadget_config_buf()
96 return len; in usb_gadget_config_buf()
97 len += USB_DT_CONFIG_SIZE; in usb_gadget_config_buf()
98 if (len > 0xffff) in usb_gadget_config_buf()
104 put_unaligned_le16(len, &cp->wTotalLength); in usb_gadget_config_buf()
106 return len; in usb_gadget_config_buf()