Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/input/misc/
Dims-pcu.c1626 struct usb_cdc_union_desc *union_desc; in ims_pcu_get_cdc_union_desc() local
1638 while (buflen >= sizeof(*union_desc)) { in ims_pcu_get_cdc_union_desc()
1639 union_desc = (struct usb_cdc_union_desc *)buf; in ims_pcu_get_cdc_union_desc()
1641 if (union_desc->bLength > buflen) { in ims_pcu_get_cdc_union_desc()
1646 if (union_desc->bDescriptorType == USB_DT_CS_INTERFACE && in ims_pcu_get_cdc_union_desc()
1647 union_desc->bDescriptorSubType == USB_CDC_UNION_TYPE) { in ims_pcu_get_cdc_union_desc()
1650 if (union_desc->bLength >= sizeof(*union_desc)) in ims_pcu_get_cdc_union_desc()
1651 return union_desc; in ims_pcu_get_cdc_union_desc()
1655 union_desc->bLength, sizeof(*union_desc)); in ims_pcu_get_cdc_union_desc()
1659 buflen -= union_desc->bLength; in ims_pcu_get_cdc_union_desc()
[all …]