Home
last modified time | relevance | path

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

/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 …]
/drivers/net/usb/
Dcdc_ncm.c692 const struct usb_cdc_union_desc *union_desc = NULL; in cdc_ncm_bind_common() local
730 if (buf[0] < sizeof(*union_desc)) in cdc_ncm_bind_common()
733 union_desc = (const struct usb_cdc_union_desc *)buf; in cdc_ncm_bind_common()
736 union_desc->bMasterInterface0) { in cdc_ncm_bind_common()
741 union_desc->bSlaveInterface0); in cdc_ncm_bind_common()
785 if (!union_desc && intf->intf_assoc && intf->intf_assoc->bInterfaceCount == 2) { in cdc_ncm_bind_common()