Lines Matching +full:min +full:- +full:x
4 * SPDX-License-Identifier: Apache-2.0
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()
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()
68 len = MIN(sizeof(vreq_test_buf), strtol(argv[2], NULL, 10)); in cmd_bulk()
72 return -ENOMEM; in cmd_bulk()
77 return -ENOMEM; in cmd_bulk()
80 xfer->buf = buf; in cmd_bulk()
99 wLength = MIN(sizeof(vreq_test_buf), strtol(argv[1], NULL, 10)); in cmd_vendor_in()
103 return -ENOMEM; in cmd_vendor_in()
108 memcpy(vreq_test_buf, buf->data, MIN(buf->len, wLength)); in cmd_vendor_in()
127 wLength = MIN(sizeof(vreq_test_buf), strtol(argv[1], NULL, 10)); in cmd_vendor_out()
131 return -ENOMEM; in cmd_vendor_out()
190 return -ENOMEM; in cmd_desc_string()
197 shell_hexdump(sh, buf->data, buf->len); in cmd_desc_string()
218 shell_print(sh, "host: Device 0x%02x, ep 0x%02x halt feature set", in cmd_feature_set_halt()
219 udev->addr, ep); in cmd_feature_set_halt()
234 shell_print(sh, "host: Device 0x%02x, rwup feature cleared", udev->addr); in cmd_feature_clear_rwup()
249 shell_print(sh, "host: Device 0x%02x, rwup feature set", udev->addr); in cmd_feature_set_rwup()
267 shell_print(sh, "host: Device 0x%02x, port %d, ppwr feature set", in cmd_feature_set_ppwr()
268 udev->addr, port); in cmd_feature_set_ppwr()
286 shell_print(sh, "host: Device 0x%02x, port %d, prst feature set", in cmd_feature_set_prst()
287 udev->addr, port); in cmd_feature_set_prst()
305 shell_print(sh, "host: Device 0x%02x, new configuration %u", in cmd_config_set()
306 udev->addr, cfg); in cmd_config_set()
322 shell_print(sh, "host: Device 0x%02x, current configuration %u", in cmd_config_get()
323 udev->addr, cfg); in cmd_config_get()
343 shell_print(sh, "host: Device 0x%02x, new %u alternate %u", in cmd_device_interface()
344 udev->addr, iface, alt); in cmd_device_interface()
362 shell_print(sh, "host: New device address is 0x%02x", addr); in cmd_device_address()
431 if (err == -EALREADY) { in cmd_usbh_init()
519 SHELL_CMD_ARG(feature-set, &feature_set_cmds, "feature selector",
521 SHELL_CMD_ARG(feature-clear, &feature_clear_cmds, "feature selector",