Lines Matching defs:status

87 static void	usb_disk_callback(void *cookie, status_t status, void *data,
93 usb_massbulk_command_status_wrapper *status);
291 callback_interrupt(void* cookie, int32 status, void* data, size_t length)
316 interrupt_status_wrapper *status)
325 status->status = device->interruptBuffer[0];
326 status->misc = device->interruptBuffer[1];
334 usb_massbulk_command_status_wrapper *status)
336 status_t result = usb_disk_transfer_data(device, true, status,
341 if (device->status != B_OK
344 // receiving the command status wrapper failed
392 if (device->status != B_OK || transferedData != *dataLength) {
394 if (device->status == B_DEV_STALLED) {
407 interrupt_status_wrapper status;
408 result = receive_csw_interrupt(device, &status);
414 result = receive_csw_interrupt(device, &status);
418 TRACE_ALWAYS("receiving the command status interrupt failed\n");
459 if (device->status != B_OK ||
463 strerror(device->status));
476 if (device->status != B_OK || transferedData != *dataLength) {
478 if (device->status == B_DEV_STALLED) {
483 strerror(device->status));
490 usb_massbulk_command_status_wrapper status;
491 result = receive_csw_bulk(device, &status);
495 result = receive_csw_bulk(device, &status);
499 TRACE_ALWAYS("receiving the command status wrapper failed: %s\n",
505 if (status.signature != USB_MASSBULK_CSW_SIGNATURE
506 || status.tag != command.tag) {
507 // the command status wrapper is not valid
508 TRACE_ALWAYS("command status wrapper is not valid: %#" B_PRIx32 "\n",
509 status.signature);
514 switch (status.status) {
518 // The residue from "status.data_residue" is not maintained
532 if (status.status == USB_MASSBULK_CSW_STATUS_COMMAND_PASSED) {
561 // command status wrapper is not meaningful
562 TRACE_ALWAYS("command status wrapper has invalid status\n");
668 status_t status = B_ERROR;
671 &status);
685 scsi_get_sense_key_info(parameter.sense_key, &label, &action, &status);
688 if (status == B_DEV_MEDIA_CHANGED) {
692 && status != B_DEV_NO_MEDIA) {
694 } else if (status == B_DEV_NOT_READY) {
702 return status;
864 // yield a unit attention telling us that the device or media status
911 // yield a unit attention telling us that the device or media status
1018 usb_disk_callback(void *cookie, status_t status, void *data,
1023 device->status = status;
1812 status_t status = request->Buffer()->LockMemory(request->TeamID(), request->IsWrite());
1813 if (status != B_OK) {
1814 TRACE_ALWAYS("failed to lock memory: %s\n", strerror(status));
1815 return status;
1820 status_t status = B_OK;
1823 status = dmaResource->TranslateNext(request, &operation, 0);
1824 if (status != B_OK)
1841 status = usb_disk_block_write(lun,
1844 status = usb_disk_block_read(lun,
1848 operation.SetStatus(status, length);
1849 } while (status == B_OK && !operation.Finish());
1851 if (status == B_OK && operation.Status() != B_OK) {
1853 status = operation.Status();
1859 TRACE("%p: status %s, remaining bytes %" B_PRIuGENADDR "\n", request,
1860 strerror(status), request->RemainingBytes());
1861 if (status != B_OK)
1865 return status;
1887 status_t status;
1889 status = usb_disk_block_write(lun,
1892 status = usb_disk_block_read(lun,
1897 return status;
1915 status_t status;
1917 status = usb_disk_direct_io(lun, request);
1919 status = usb_disk_bounced_io(lun, request);
1926 request->SetStatusAndNotify(status);
1929 return status;
2031 status_t status = B_OK;
2034 status = gDeviceManager->publish_device(device->node, device->luns[i]->name,
2038 return status;