Lines Matching refs:status

44 	status_t			status;
147 status_t *status)
152 *status = B_USB_RAW_STATUS_INVALID_CONFIGURATION;
162 uint32 interfaceIndex, uint32 alternateIndex, status_t *status)
165 = usb_raw_get_configuration(device, configIndex, status);
170 *status = B_USB_RAW_STATUS_INVALID_INTERFACE;
181 *status = B_USB_RAW_STATUS_INVALID_INTERFACE;
248 usb_raw_callback(void *cookie, status_t status, void *data, size_t actualLength)
253 switch (status) {
255 device->status = B_USB_RAW_STATUS_SUCCESS;
258 device->status = B_USB_RAW_STATUS_TIMEOUT;
261 device->status = B_USB_RAW_STATUS_ABORTED;
264 device->status = B_USB_RAW_STATUS_CRC_ERROR;
267 device->status = B_USB_RAW_STATUS_STALLED;
270 device->status = B_USB_RAW_STATUS_FAILED;
288 if (length < sizeof(command.version.status))
296 command.version.status = B_USB_RAW_STATUS_ABORTED;
297 status_t status = B_DEV_INVALID_IOCTL;
302 command.version.status = B_USB_RAW_PROTOCOL_VERSION;
303 status = B_OK;
312 status = B_OK;
324 command.device.status = B_USB_RAW_STATUS_SUCCESS;
338 status = B_OK;
341 &command.config.status);
357 command.config.status = B_USB_RAW_STATUS_SUCCESS;
367 status = B_OK;
371 &command.alternate.status);
377 command.alternate.status = B_USB_RAW_STATUS_INVALID_INTERFACE;
395 command.alternate.status = B_USB_RAW_STATUS_SUCCESS;
403 status = B_OK;
412 &command.interface.status);
421 &command.interface_etc.status);
433 command.interface.status = B_USB_RAW_STATUS_SUCCESS;
442 status = B_OK;
451 &command.endpoint.status);
461 &command.endpoint_etc.status);
469 command.endpoint.status = B_USB_RAW_STATUS_INVALID_ENDPOINT;
480 command.endpoint.status = B_USB_RAW_STATUS_SUCCESS;
490 status = B_OK;
499 &command.generic.status);
510 &command.generic_etc.status);
519 command.endpoint.status = B_USB_RAW_STATUS_INVALID_ENDPOINT;
534 command.generic.status = B_USB_RAW_STATUS_NO_MEMORY;
536 command.generic.status = B_USB_RAW_STATUS_SUCCESS;
547 status = B_OK;
555 command.string.status = B_USB_RAW_STATUS_ABORTED;
567 command.string.status = B_USB_RAW_STATUS_ABORTED;
575 command.string.status = B_USB_RAW_STATUS_ABORTED;
577 status = B_NO_MEMORY;
585 command.string.status = B_USB_RAW_STATUS_ABORTED;
598 command.string.status = B_USB_RAW_STATUS_SUCCESS;
611 status = B_OK;
619 command.descriptor.status = B_USB_RAW_STATUS_ABORTED;
628 command.descriptor.status = B_USB_RAW_STATUS_ABORTED;
630 status = B_NO_MEMORY;
639 command.descriptor.status = B_USB_RAW_STATUS_ABORTED;
652 command.descriptor.status = B_USB_RAW_STATUS_SUCCESS;
663 status = B_OK;
666 &command.config.status);
672 command.config.status = B_USB_RAW_STATUS_FAILED;
676 command.config.status = B_USB_RAW_STATUS_SUCCESS;
685 status = B_OK;
689 &command.alternate.status);
695 command.alternate.status = B_USB_RAW_STATUS_INVALID_INTERFACE;
702 command.alternate.status = B_USB_RAW_STATUS_INVALID_INTERFACE;
708 command.alternate.status = B_USB_RAW_STATUS_FAILED;
712 command.alternate.status = B_USB_RAW_STATUS_SUCCESS;
740 command.control.status = B_USB_RAW_STATUS_FAILED;
742 status = B_OK;
746 status = acquire_sem_etc(device->notify, 1, B_KILL_CAN_INTERRUPT, 0);
747 if (status != B_OK) {
752 command.control.status = device->status;
756 if (command.control.status == B_OK)
757 status = B_OK;
760 status = B_BAD_ADDRESS;
772 status = B_OK;
776 command.transfer.status = B_USB_RAW_STATUS_INVALID_CONFIGURATION;
781 command.transfer.status = B_USB_RAW_STATUS_INVALID_INTERFACE;
788 command.transfer.status = B_USB_RAW_STATUS_ABORTED;
793 command.transfer.status = B_USB_RAW_STATUS_INVALID_ENDPOINT;
800 command.transfer.status = B_USB_RAW_STATUS_INVALID_ENDPOINT;
820 command.transfer.status = B_USB_RAW_STATUS_NO_MEMORY;
836 command.transfer.status = B_USB_RAW_STATUS_NO_MEMORY;
849 status_t status;
852 status = gUSBModule->queue_interrupt(endpointInfo->handle,
856 status = gUSBModule->queue_bulk(endpointInfo->handle,
860 status = gUSBModule->queue_isochronous(endpointInfo->handle,
866 if (status < B_OK) {
867 command.transfer.status = B_USB_RAW_STATUS_FAILED;
869 status = B_OK;
873 status = acquire_sem_etc(device->notify, 1, B_KILL_CAN_INTERRUPT, 0);
874 if (status != B_OK) {
879 command.transfer.status = device->status;
883 if (command.transfer.status == B_OK)
884 status = B_OK;
888 status = B_BAD_ADDRESS;
893 status = B_BAD_ADDRESS;
904 return status;