Lines Matching refs:ctrl
340 struct usbdevfs_ctrltransfer ctrl; in probe_devices() local
372 ctrl.bRequestType = USB_DIR_IN | USB_TYPE_STANDARD | USB_RECIP_DEVICE; in probe_devices()
373 ctrl.bRequest = USB_REQ_GET_DESCRIPTOR; in probe_devices()
374 ctrl.wValue = USB_DT_DEVICE << 8; in probe_devices()
375 ctrl.wIndex = 0; in probe_devices()
376 ctrl.wLength = sizeof(descriptor); in probe_devices()
378 ctrl.requesttype = USB_DIR_IN | USB_TYPE_STANDARD | USB_RECIP_DEVICE; in probe_devices()
379 ctrl.request = USB_REQ_GET_DESCRIPTOR; in probe_devices()
380 ctrl.value = USB_DT_DEVICE << 8; in probe_devices()
381 ctrl.index = 0; in probe_devices()
382 ctrl.length = sizeof(descriptor); in probe_devices()
384 ctrl.data = descriptor; in probe_devices()
385 ctrl.timeout = CTRL_TIMEOUT; in probe_devices()
387 ret = ioctl(fd, USBDEVFS_CONTROL, &ctrl); in probe_devices()
391 ctrl.wValue = USB_DT_CONFIG << 8; in probe_devices()
392 ctrl.wLength = sizeof(configdesc); in probe_devices()
394 ctrl.value = USB_DT_CONFIG << 8; in probe_devices()
395 ctrl.length = sizeof(configdesc); in probe_devices()
397 ctrl.data = configdesc; in probe_devices()
398 ret = ioctl(fd, USBDEVFS_CONTROL, &ctrl); in probe_devices()
403 ctrl.wLength = wtotallength; in probe_devices()
405 ctrl.length = wtotallength; in probe_devices()
407 ctrl.data = malloc(wtotallength); in probe_devices()
408 if (ctrl.data) { in probe_devices()
409 ret = ioctl(fd, USBDEVFS_CONTROL, &ctrl); in probe_devices()
410 free(ctrl.data); in probe_devices()