Lines Matching refs:bos
961 if (dev->bos) { in usb_release_bos_descriptor()
962 kfree(dev->bos->desc); in usb_release_bos_descriptor()
963 kfree(dev->bos); in usb_release_bos_descriptor()
964 dev->bos = NULL; in usb_release_bos_descriptor()
981 struct usb_bos_descriptor *bos; in usb_get_bos_descriptor() local
989 bos = kzalloc(sizeof(struct usb_bos_descriptor), GFP_KERNEL); in usb_get_bos_descriptor()
990 if (!bos) in usb_get_bos_descriptor()
994 ret = usb_get_descriptor(dev, USB_DT_BOS, 0, bos, USB_DT_BOS_SIZE); in usb_get_bos_descriptor()
995 if (ret < USB_DT_BOS_SIZE || bos->bLength < USB_DT_BOS_SIZE) { in usb_get_bos_descriptor()
999 kfree(bos); in usb_get_bos_descriptor()
1003 length = bos->bLength; in usb_get_bos_descriptor()
1004 total_len = le16_to_cpu(bos->wTotalLength); in usb_get_bos_descriptor()
1005 num = bos->bNumDeviceCaps; in usb_get_bos_descriptor()
1006 kfree(bos); in usb_get_bos_descriptor()
1010 dev->bos = kzalloc(sizeof(struct usb_host_bos), GFP_KERNEL); in usb_get_bos_descriptor()
1011 if (!dev->bos) in usb_get_bos_descriptor()
1020 dev->bos->desc = (struct usb_bos_descriptor *)buffer; in usb_get_bos_descriptor()
1038 dev->bos->desc->bNumDeviceCaps = i; in usb_get_bos_descriptor()
1044 dev->bos->desc->bNumDeviceCaps = i; in usb_get_bos_descriptor()
1058 dev->bos->ext_cap = in usb_get_bos_descriptor()
1062 dev->bos->ss_cap = in usb_get_bos_descriptor()
1070 dev->bos->ssp_cap = ssp_cap; in usb_get_bos_descriptor()
1073 dev->bos->ss_id = in usb_get_bos_descriptor()
1077 dev->bos->ptm_cap = in usb_get_bos_descriptor()
1088 dev->bos->desc->wTotalLength = cpu_to_le16(buffer - buffer0); in usb_get_bos_descriptor()