Lines Matching defs:status

373   SANE_Status status;
471 static status_$t status;
481 ec2_$advance (&com->CommandAvailable, &status);
482 DomainErrorCheck (status, "Can't advance CommandAvailable EC");
487 &status);
488 DomainErrorCheck (status,
508 ms_$unmap (com, sizeof (struct DomainServerCommon), &status);
509 DomainErrorCheck (status, "Error unmapping common area");
667 DBG (1, "OS/2: id#%02d status=%02xh\n",
668 id, PSRBlock->status);
671 if (PSRBlock->status == SRB_BadDevice)
993 static status_$t status;
1012 &status);
1013 DomainErrorCheck (status, "Can't open common area");
1030 time_$get_ec (time_$clockh_key, &CommandAcceptedPtr[1], &status);
1031 DomainErrorCheck (status, "Can't get time EC");
1051 ec2_$wait_svc (ResultReadyPtr, ResultTriggerValue, 2, &status);
1052 DomainErrorCheck (status, "Error waiting on initial open EC");
1080 ec2_$advance (&com->CommandAvailable, &status);
1081 DomainErrorCheck (status, "Can't advance CommandAvailable EC");
1085 &status);
1086 DomainErrorCheck (status, "Error waiting on Open command acceptance EC");
1094 status = com->CommandStatus;
1095 DomainErrorCheck (status, "Opening device in server");
1101 ms_$wr, true, &length_mapped, &status);
1102 DomainErrorCheck (status, "Mapping Server Data block");
1104 ms_$mk_temporary (pdata, &status);
1105 DomainErrorCheck (status, "Can't make data block temporary");
1110 if (status.all != status_$ok)
1114 DBG (1, "sanei_scsi_open: acquire failed, Domain/OS status is %08x\n",
1115 status.all);
1116 error_$print (status);
1287 SANE_Status status = SANE_STATUS_INVAL;
1290 status = SANE_STATUS_ACCESS_DENIED;
1292 status = SANE_STATUS_DEVICE_BUSY;
1296 return status;
1601 static status_$t status;
1615 ec2_$advance (&com->CommandAvailable, &status);
1616 DomainErrorCheck (status, "Can't advance CommandAvailable EC");
1620 &status);
1621 DomainErrorCheck (status,
1629 status = com->CommandStatus;
1636 &status);
1637 DomainErrorCheck (status, "Error unmapping device data area");
1658 status_$t status;
1677 static status_$t status;
1726 ec2_$advance (&com->CommandAvailable, &status);
1727 DomainErrorCheck (status, "Can't advance CommandAvailable EC");
1730 index = ec2_$wait_svc (CommandAcceptedPtr, CommandTriggerValue, 2, &status);
1731 DomainErrorCheck (status, "Error waiting on Enter command acceptance EC");
1739 status = com->CommandStatus;
1745 /* Now decode the return status */
1746 if (status.all)
1747 DBG (1, "Server returned status %08x from Enter command\n", status.all);
1748 switch (status.all)
1767 SCSI operation status. */
1768 DBG (1, "Server returned SCSI status of %08x\n", SCSIStatus);
1784 DBG (0, "Error - Unrecognized SCSI status %08x returned from "
1791 DBG (0, "Unmapped status (%08x) returned from Domain SANE Server\n",
1792 status.all);
1807 SANE_Status status;
1809 status = SANE_STATUS_GOOD;
1810 return status;
1820 SANE_Status status;
1824 status =
1827 if (status != SANE_STATUS_GOOD)
1828 return status;
1942 rp->status = SANE_STATUS_IO_ERROR;
1983 rp->status = SANE_STATUS_NO_MEM;
1986 rp->status = SANE_STATUS_IO_ERROR;
2004 req->status = SANE_STATUS_IO_ERROR;
2007 req->status = SANE_STATUS_GOOD;
2119 req->status = SANE_STATUS_GOOD;
2224 SANE_Status status = SANE_STATUS_GOOD;
2237 status = req->status;
2283 status = SANE_STATUS_IO_ERROR;
2336 DBG (10, "target status: %02x host status: %02x"
2337 " driver status: %02x\n",
2346 status = SANE_STATUS_DEVICE_BUSY;
2350 status =
2354 status = SANE_STATUS_IO_ERROR;
2358 if (status == SANE_STATUS_GOOD)
2404 "target status: %02x host status: %04x"
2405 " driver status: %04x\n", req->sgdata.sg3.hdr.status,
2414 status = SANE_STATUS_DEVICE_BUSY;
2418 status =
2422 /* status bits INTERMEDIATE and CONDITION MET should not
2425 else if (((req->sgdata.sg3.hdr.status & 0x2a) == 0)
2432 status = SANE_STATUS_GOOD;
2434 status = SANE_STATUS_IO_ERROR;
2442 if (status == SANE_STATUS_GOOD)
2470 return status;
2479 SANE_Status status;
2482 status =
2485 if (status != SANE_STATUS_GOOD)
2486 return status;
3223 DBG (1, "sanei_scsi_cmd: scsi returned with status %d\n", hdr.retsts);
3261 SANE_Status status;
3319 if ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP)
3323 DBG (1, "sanei_scsi_cmd: scsi returned with status %d\n",
3324 (ccb->ccb_h.status & CAM_STATUS_MASK));
3326 switch (ccb->ccb_h.status & CAM_STATUS_MASK)
3331 status = SANE_STATUS_DEVICE_BUSY;
3334 status = SANE_STATUS_IO_ERROR;
3338 if (handler && (ccb->ccb_h.status & CAM_AUTOSNS_VALID))
3349 return status;
3398 if ((cdm.ccb_h.status != CAM_REQ_CMP)
3399 || ((cdm.status != CAM_DEV_MATCH_LAST)
3400 && (cdm.status != CAM_DEV_MATCH_MORE)))
3403 cdm.ccb_h.status, cdm.status);
3499 if ((cdm.ccb_h.status != CAM_REQ_CMP)
3500 || ((cdm.status != CAM_DEV_MATCH_LAST)
3501 && (cdm.status != CAM_DEV_MATCH_MORE)))
3504 cdm.ccb_h.status, cdm.status);
3526 while ((cdm.ccb_h.status == CAM_REQ_CMP)
3527 && (cdm.status == CAM_DEV_MATCH_MORE));
4010 uint_t compcode, status;
4044 &status, sense_buffer, sizeof (sense_buffer)) != 0)
4050 DBG (2, "sanei_scsi_cmd completed with: compcode = %x, status = %x\n",
4051 compcode, status);
4333 if ((PSRBlock->status == SRB_Aborted || PSRBlock->status == SRB_Error) &&
4341 if (PSRBlock->status != SRB_Done ||
4346 "PSRBlock->status= 0x%02x\n"
4350 PSRBlock->status,
4462 DBG (1, "sanei_scsi_cmd: status = %d\n", scsi_req.ds_status);
4478 * Return the appropriate status code...
4633 char status;
4659 scmd.statusp = &status;
4672 DBG (1, "sanei_scsi_cmd: SCSI completed with status=%d\n",
4885 int status;
4887 status = scsi_cmd (fd, test_unit_ready, sizeof (test_unit_ready),
4889 return (status == SANE_STATUS_GOOD);
5004 int status;
5006 status = scsi_cmd (fd, test_unit_ready, sizeof (test_unit_ready),
5008 return (status == SANE_STATUS_GOOD);