Lines Matching refs:ctrlData
344 struct UsbControlRequestData ctrlData;
351 ctrlData.requestType = USB_PIPE_DIRECTION_IN;
352 ctrlData.requestCmd = USB_REQUEST_GET_CONFIGURATION;
353 ctrlData.value = 0;
354 ctrlData.index = 0;
355 ctrlData.length = 1;
356 ctrlData.timeout = USB_RAW_REQUEST_DEFAULT_TIMEOUT;
357 ctrlData.data = &activeConfig;
358 ret = ioctl(fd, USBDEVFS_CONTROL, &ctrlData);
368 static int32_t AdapterUsbControlMsg(const struct UsbDeviceHandle *handle, struct UsbControlRequestData *ctrlData)
370 if (handle == NULL || handle->dev == NULL || ctrlData == NULL) {
375 return ioctl(handle->fd, USBDEVFS_CONTROL, ctrlData);