Lines Matching full:setup
62 struct LIBUSB20_CONTROL_SETUP_DECODED setup; variable
76 setup.bmRequestType, in doit()
77 setup.bRequest, in doit()
78 setup.wValue, in doit()
79 setup.wIndex, in doit()
80 setup.wLength); in doit()
108 if ((setup.bmRequestType & 0x80) != 0) in doit()
111 data = malloc(setup.wLength); in doit()
116 setup.wLength); in doit()
125 if ((rv = libusb20_dev_request_sync(dev, &setup, data, in doit()
134 if ((setup.bmRequestType & 0x80) != 0) in doit()
136 print_formatted(data, (uint32_t)setup.wLength); in doit()
280 setup.bmRequestType = rt; in parse_req()
284 setup.bRequest = get_req(argv[idx]); in parse_req()
288 setup.wValue = strtoul(argv[idx], 0, 0); in parse_req()
292 setup.wIndex = strtoul(argv[idx], 0, 0); in parse_req()
296 setup.wLength = strtoul(argv[idx], 0, 0); in parse_req()
311 * Initialize setup struct. This step is required, and initializes in main()
317 * setup.bmRequestType: bitmask, bit 7 is direction in main()
323 * setup.bRequest: the request itself (see get_req() for standard in main()
325 * setup.wValue: a 16-bit value in main()
326 * setup.wIndex: another 16-bit value in main()
327 * setup.wLength: length of associated data transfer, direction in main()
330 LIBUSB20_INIT(LIBUSB20_CONTROL_SETUP, &setup); in main()