Lines Matching full:desc
29 const struct usb_device_descriptor *const desc) in print_dev_desc() argument
31 shell_print(sh, "bLength\t\t\t%u", desc->bLength); in print_dev_desc()
32 shell_print(sh, "bDescriptorType\t\t%u", desc->bDescriptorType); in print_dev_desc()
33 shell_print(sh, "bcdUSB\t\t\t%x", desc->bcdUSB); in print_dev_desc()
34 shell_print(sh, "bDeviceClass\t\t%u", desc->bDeviceClass); in print_dev_desc()
35 shell_print(sh, "bDeviceSubClass\t\t%u", desc->bDeviceSubClass); in print_dev_desc()
36 shell_print(sh, "bDeviceProtocol\t\t%u", desc->bDeviceProtocol); in print_dev_desc()
37 shell_print(sh, "bMaxPacketSize0\t\t%u", desc->bMaxPacketSize0); in print_dev_desc()
38 shell_print(sh, "idVendor\t\t%x", desc->idVendor); in print_dev_desc()
39 shell_print(sh, "idProduct\t\t%x", desc->idProduct); in print_dev_desc()
40 shell_print(sh, "bcdDevice\t\t%x", desc->bcdDevice); in print_dev_desc()
41 shell_print(sh, "iManufacturer\t\t%u", desc->iManufacturer); in print_dev_desc()
42 shell_print(sh, "iProduct\t\t%u", desc->iProduct); in print_dev_desc()
43 shell_print(sh, "iSerial\t\t\t%u", desc->iSerialNumber); in print_dev_desc()
44 shell_print(sh, "bNumConfigurations\t%u", desc->bNumConfigurations); in print_dev_desc()
48 const struct usb_cfg_descriptor *const desc) in print_cfg_desc() argument
50 shell_print(sh, "bLength\t\t\t%u", desc->bLength); in print_cfg_desc()
51 shell_print(sh, "bDescriptorType\t\t%u", desc->bDescriptorType); in print_cfg_desc()
52 shell_print(sh, "wTotalLength\t\t%x", desc->wTotalLength); in print_cfg_desc()
53 shell_print(sh, "bNumInterfaces\t\t%u", desc->bNumInterfaces); in print_cfg_desc()
54 shell_print(sh, "bConfigurationValue\t%u", desc->bConfigurationValue); in print_cfg_desc()
55 shell_print(sh, "iConfiguration\t\t%u", desc->iConfiguration); in print_cfg_desc()
56 shell_print(sh, "bmAttributes\t\t%02x", desc->bmAttributes); in print_cfg_desc()
57 shell_print(sh, "bMaxPower\t\t%u mA", desc->bMaxPower * 2); in print_cfg_desc()
144 struct usb_device_descriptor desc; in cmd_desc_device() local
147 err = usbh_req_desc_dev(udev, &desc); in cmd_desc_device()
151 print_dev_desc(sh, &desc); in cmd_desc_device()
160 struct usb_cfg_descriptor desc; in cmd_desc_config() local
166 err = usbh_req_desc_cfg(udev, cfg, sizeof(desc), &desc); in cmd_desc_config()
170 print_cfg_desc(sh, &desc); in cmd_desc_config()