Lines Matching defs:bos
655 * @cdev: pointer to usb_composite device to generate the bos
666 struct usb_bos_descriptor *bos = cdev->req->buf;
669 bos->bLength = USB_DT_BOS_SIZE;
670 bos->bDescriptorType = USB_DT_BOS;
672 bos->wTotalLength = cpu_to_le16(USB_DT_BOS_SIZE);
673 bos->bNumDeviceCaps = 0;
702 usb_ext = cdev->req->buf + le16_to_cpu(bos->wTotalLength);
703 bos->bNumDeviceCaps++;
704 le16_add_cpu(&bos->wTotalLength, USB_DT_USB_EXT_CAP_SIZE);
718 ss_cap = cdev->req->buf + le16_to_cpu(bos->wTotalLength);
719 bos->bNumDeviceCaps++;
720 le16_add_cpu(&bos->wTotalLength, USB_DT_USB_SS_CAP_SIZE);
738 ssp_cap = cdev->req->buf + le16_to_cpu(bos->wTotalLength);
739 bos->bNumDeviceCaps++;
745 le16_add_cpu(&bos->wTotalLength, USB_DT_USB_SSP_CAP_SIZE(1));
780 return le16_to_cpu(bos->wTotalLength);