Lines Matching refs:command

61 	usb_raw_command command;
62 if (ioctl(fRawFD, B_USB_RAW_COMMAND_GET_VERSION, &command, sizeof(command))
63 || command.version.status != B_USB_RAW_PROTOCOL_VERSION) {
68 command.device.descriptor = &fDescriptor;
69 if (ioctl(fRawFD, B_USB_RAW_COMMAND_GET_DEVICE_DESCRIPTOR, &command,
70 sizeof(command)) || command.device.status != B_USB_RAW_STATUS_SUCCESS) {
254 usb_raw_command command;
255 command.string.descriptor = descriptor;
256 command.string.string_index = index;
257 command.string.length = length;
259 if (ioctl(fRawFD, B_USB_RAW_COMMAND_GET_STRING_DESCRIPTOR, &command,
260 sizeof(command)) || command.string.status != B_USB_RAW_STATUS_SUCCESS)
263 return command.string.length;
319 usb_raw_command command;
320 command.descriptor.type = type;
321 command.descriptor.index = index;
322 command.descriptor.language_id = languageID;
323 command.descriptor.data = data;
324 command.descriptor.length = length;
326 if (ioctl(fRawFD, B_USB_RAW_COMMAND_GET_DESCRIPTOR, &command,
327 sizeof(command)) || command.descriptor.status != B_USB_RAW_STATUS_SUCCESS)
330 return command.descriptor.length;
367 usb_raw_command command;
368 command.config.config_index = configuration->Index();
370 if (ioctl(fRawFD, B_USB_RAW_COMMAND_SET_CONFIGURATION, &command,
371 sizeof(command)) || command.config.status != B_USB_RAW_STATUS_SUCCESS)
386 usb_raw_command command;
387 command.control.request_type = requestType;
388 command.control.request = request;
389 command.control.value = value;
390 command.control.index = index;
391 command.control.length = length;
392 command.control.data = data;
394 if (ioctl(fRawFD, B_USB_RAW_COMMAND_CONTROL_TRANSFER, &command,
395 sizeof(command)) || command.control.status != B_USB_RAW_STATUS_SUCCESS)
398 return command.control.length;