Lines Matching refs:ctrl
338 struct usbdevfs_ctrltransfer ctrl; in probe_devices() local
370 ctrl.bRequestType = USB_DIR_IN | USB_TYPE_STANDARD | USB_RECIP_DEVICE; in probe_devices()
371 ctrl.bRequest = USB_REQ_GET_DESCRIPTOR; in probe_devices()
372 ctrl.wValue = USB_DT_DEVICE << 8; in probe_devices()
373 ctrl.wIndex = 0; in probe_devices()
374 ctrl.wLength = sizeof(descriptor); in probe_devices()
376 ctrl.requesttype = USB_DIR_IN | USB_TYPE_STANDARD | USB_RECIP_DEVICE; in probe_devices()
377 ctrl.request = USB_REQ_GET_DESCRIPTOR; in probe_devices()
378 ctrl.value = USB_DT_DEVICE << 8; in probe_devices()
379 ctrl.index = 0; in probe_devices()
380 ctrl.length = sizeof(descriptor); in probe_devices()
382 ctrl.data = descriptor; in probe_devices()
383 ctrl.timeout = CTRL_TIMEOUT; in probe_devices()
385 ret = ioctl(fd, USBDEVFS_CONTROL, &ctrl); in probe_devices()
389 ctrl.wValue = USB_DT_CONFIG << 8; in probe_devices()
390 ctrl.wLength = sizeof(configdesc); in probe_devices()
392 ctrl.value = USB_DT_CONFIG << 8; in probe_devices()
393 ctrl.length = sizeof(configdesc); in probe_devices()
395 ctrl.data = configdesc; in probe_devices()
396 ret = ioctl(fd, USBDEVFS_CONTROL, &ctrl); in probe_devices()
401 ctrl.wLength = wtotallength; in probe_devices()
403 ctrl.length = wtotallength; in probe_devices()
405 ctrl.data = malloc(wtotallength); in probe_devices()
406 if (ctrl.data) { in probe_devices()
407 ret = ioctl(fd, USBDEVFS_CONTROL, &ctrl); in probe_devices()
408 free(ctrl.data); in probe_devices()