Lines Matching refs:cdesc
61 struct usb_config_descriptor *cdesc; in usb_emul_find_descriptor() local
63 cdesc = (struct usb_config_descriptor *)*ptr; in usb_emul_find_descriptor()
64 if (cdesc && cdesc->bConfigurationValue == index) in usb_emul_find_descriptor()
264 struct usb_config_descriptor *cdesc; in usb_emul_setup_device() local
272 for (cdesc = NULL, upto = 0; *ptr; upto += (*ptr)->bLength, ptr++) { in usb_emul_setup_device()
275 if (cdesc) { in usb_emul_setup_device()
276 cdesc->wTotalLength = upto; in usb_emul_setup_device()
278 cdesc->bConfigurationValue, in usb_emul_setup_device()
279 cdesc->bLength); in usb_emul_setup_device()
281 cdesc = (struct usb_config_descriptor *)*ptr; in usb_emul_setup_device()
285 if (cdesc) { in usb_emul_setup_device()
286 cdesc->wTotalLength = upto; in usb_emul_setup_device()
288 cdesc->bConfigurationValue, cdesc->wTotalLength); in usb_emul_setup_device()