Lines Matching refs:desc

143 				const struct usb_endpoint_descriptor *desc)  in usb_dump_endpoint_descriptor()  argument
151 dir = usb_endpoint_dir_in(desc) ? 'I' : 'O'; in usb_dump_endpoint_descriptor()
154 bandwidth = usb_endpoint_maxp_mult(desc); in usb_dump_endpoint_descriptor()
157 switch (usb_endpoint_type(desc)) { in usb_dump_endpoint_descriptor()
175 interval = usb_decode_interval(desc, speed); in usb_dump_endpoint_descriptor()
183 start += sprintf(start, format_endpt, desc->bEndpointAddress, dir, in usb_dump_endpoint_descriptor()
184 desc->bmAttributes, type, in usb_dump_endpoint_descriptor()
185 usb_endpoint_maxp(desc) * in usb_dump_endpoint_descriptor()
196 const struct usb_interface_descriptor *desc; in usb_dump_interface_descriptor() local
202 desc = &intfc->altsetting[setno].desc; in usb_dump_interface_descriptor()
207 active = (desc == &iface->cur_altsetting->desc); in usb_dump_interface_descriptor()
211 desc->bInterfaceNumber, in usb_dump_interface_descriptor()
212 desc->bAlternateSetting, in usb_dump_interface_descriptor()
213 desc->bNumEndpoints, in usb_dump_interface_descriptor()
214 desc->bInterfaceClass, in usb_dump_interface_descriptor()
215 class_decode(desc->bInterfaceClass), in usb_dump_interface_descriptor()
216 desc->bInterfaceSubClass, in usb_dump_interface_descriptor()
217 desc->bInterfaceProtocol, in usb_dump_interface_descriptor()
226 const struct usb_host_interface *desc = &intfc->altsetting[setno]; in usb_dump_interface() local
230 for (i = 0; i < desc->desc.bNumEndpoints; i++) { in usb_dump_interface()
232 start, end, &desc->endpoint[i].desc); in usb_dump_interface()
258 const struct usb_config_descriptor *desc, in usb_dump_config_descriptor() argument
272 desc->bNumInterfaces, in usb_dump_config_descriptor()
273 desc->bConfigurationValue, in usb_dump_config_descriptor()
274 desc->bmAttributes, in usb_dump_config_descriptor()
275 desc->bMaxPower * mul); in usb_dump_config_descriptor()
291 start = usb_dump_config_descriptor(start, end, &config->desc, active, in usb_dump_config()
299 for (i = 0; i < config->desc.bNumInterfaces; i++) { in usb_dump_config()
314 const struct usb_device_descriptor *desc) in usb_dump_device_descriptor() argument
316 u16 bcdUSB = le16_to_cpu(desc->bcdUSB); in usb_dump_device_descriptor()
317 u16 bcdDevice = le16_to_cpu(desc->bcdDevice); in usb_dump_device_descriptor()
323 desc->bDeviceClass, in usb_dump_device_descriptor()
324 class_decode(desc->bDeviceClass), in usb_dump_device_descriptor()
325 desc->bDeviceSubClass, in usb_dump_device_descriptor()
326 desc->bDeviceProtocol, in usb_dump_device_descriptor()
327 desc->bMaxPacketSize0, in usb_dump_device_descriptor()
328 desc->bNumConfigurations); in usb_dump_device_descriptor()
332 le16_to_cpu(desc->idVendor), in usb_dump_device_descriptor()
333 le16_to_cpu(desc->idProduct), in usb_dump_device_descriptor()