Home
last modified time | relevance | path

Searched refs:union_desc (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/input/misc/
H A Dims-pcu.c1644 struct usb_cdc_union_desc *union_desc; in ims_pcu_get_cdc_union_desc() local
1656 while (buflen >= sizeof(*union_desc)) { in ims_pcu_get_cdc_union_desc()
1657 union_desc = (struct usb_cdc_union_desc *)buf; in ims_pcu_get_cdc_union_desc()
1659 if (union_desc->bLength > buflen) { in ims_pcu_get_cdc_union_desc()
1664 if (union_desc->bDescriptorType == USB_DT_CS_INTERFACE && in ims_pcu_get_cdc_union_desc()
1665 union_desc->bDescriptorSubType == USB_CDC_UNION_TYPE) { in ims_pcu_get_cdc_union_desc()
1668 if (union_desc->bLength >= sizeof(*union_desc)) in ims_pcu_get_cdc_union_desc()
1669 return union_desc; in ims_pcu_get_cdc_union_desc()
1673 union_desc->bLength, sizeof(*union_desc)); in ims_pcu_get_cdc_union_desc()
1677 buflen -= union_desc->bLength; in ims_pcu_get_cdc_union_desc()
[all …]