Lines Matching defs:bos
718 * @cdev: pointer to usb_composite device to generate the bos
729 struct usb_bos_descriptor *bos = cdev->req->buf;
732 bos->bLength = USB_DT_BOS_SIZE;
733 bos->bDescriptorType = USB_DT_BOS;
735 bos->wTotalLength = cpu_to_le16(USB_DT_BOS_SIZE);
736 bos->bNumDeviceCaps = 0;
766 usb_ext = cdev->req->buf + le16_to_cpu(bos->wTotalLength);
767 bos->bNumDeviceCaps++;
768 le16_add_cpu(&bos->wTotalLength, USB_DT_USB_EXT_CAP_SIZE);
783 ss_cap = cdev->req->buf + le16_to_cpu(bos->wTotalLength);
784 bos->bNumDeviceCaps++;
785 le16_add_cpu(&bos->wTotalLength, USB_DT_USB_SS_CAP_SIZE);
815 ssp_cap = cdev->req->buf + le16_to_cpu(bos->wTotalLength);
816 bos->bNumDeviceCaps++;
818 le16_add_cpu(&bos->wTotalLength, USB_DT_USB_SSP_CAP_SIZE(ssac));
881 webusb_cap = cdev->req->buf + le16_to_cpu(bos->wTotalLength);
883 bos->bNumDeviceCaps++;
884 le16_add_cpu(&bos->wTotalLength,
906 return le16_to_cpu(bos->wTotalLength);