Lines Matching refs:union_desc
1612 struct usb_cdc_union_desc *union_desc;
1624 while (buflen >= sizeof(*union_desc)) {
1625 union_desc = (struct usb_cdc_union_desc *)buf;
1627 if (union_desc->bLength > buflen) {
1632 if (union_desc->bDescriptorType == USB_DT_CS_INTERFACE &&
1633 union_desc->bDescriptorSubType == USB_CDC_UNION_TYPE) {
1636 if (union_desc->bLength >= sizeof(*union_desc))
1637 return union_desc;
1641 union_desc->bLength, sizeof(*union_desc));
1645 buflen -= union_desc->bLength;
1646 buf += union_desc->bLength;
1655 const struct usb_cdc_union_desc *union_desc;
1658 union_desc = ims_pcu_get_cdc_union_desc(intf);
1659 if (!union_desc)
1663 union_desc->bMasterInterface0);
1676 union_desc->bSlaveInterface0);