Home
last modified time | relevance | path

Searched refs:arqstat (Results 1 – 16 of 16) sorted by relevance

/illumos-gate/usr/src/uts/common/io/cpqary3/
H A Dcpqary3_transport.c1126 struct scsi_arq_status *arqstat; in cpqary3_additional_cmd() local
1128 arqstat = (struct scsi_arq_status *)(scsi_pktp->pkt_scbp); in cpqary3_additional_cmd()
1156 arqstat->sts_status.sts_chk = 1; /* CHECK CONDITION */ in cpqary3_additional_cmd()
1157 arqstat->sts_rqpkt_reason = CMD_CMPLT; in cpqary3_additional_cmd()
1158 arqstat->sts_rqpkt_resid = 0; in cpqary3_additional_cmd()
1159 arqstat->sts_rqpkt_state = STATE_GOT_BUS | STATE_GOT_TARGET | in cpqary3_additional_cmd()
1161 arqstat->sts_rqpkt_statistics = 0; in cpqary3_additional_cmd()
1162 arqstat->sts_sensedata.es_valid = 1; in cpqary3_additional_cmd()
1163 arqstat->sts_sensedata.es_class = CLASS_EXTENDED_SENSE; in cpqary3_additional_cmd()
1164 arqstat->sts_sensedata.es_key = KEY_ILLEGAL_REQUEST; in cpqary3_additional_cmd()
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi_io.c441 struct scsi_arq_status *arqstat; in iscsi_cmd_rsp_cmd_status() local
507 arqstat = in iscsi_cmd_rsp_cmd_status()
511 *((uchar_t *)&arqstat->sts_status) = in iscsi_cmd_rsp_cmd_status()
518 arqstat->sts_rqpkt_state = (STATE_GOT_BUS | in iscsi_cmd_rsp_cmd_status()
523 *((uchar_t *)&arqstat->sts_rqpkt_status) = in iscsi_cmd_rsp_cmd_status()
526 arqstat->sts_rqpkt_reason = CMD_CMPLT; in iscsi_cmd_rsp_cmd_status()
531 arqstat->sts_rqpkt_status.sts_chk = 1; in iscsi_cmd_rsp_cmd_status()
532 arqstat->sts_rqpkt_resid = statuslen; in iscsi_cmd_rsp_cmd_status()
535 arqstat->sts_rqpkt_resid = statuslen - senselen; in iscsi_cmd_rsp_cmd_status()
538 arqstat->sts_rqpkt_resid = 0; in iscsi_cmd_rsp_cmd_status()
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/targets/
H A Dsgen.c1725 struct scsi_arq_status *arqstat; in sgen_handle_autosense() local
1730 arqstat = (struct scsi_arq_status *)(pkt->pkt_scbp); in sgen_handle_autosense()
1734 if (arqstat->sts_rqpkt_reason != CMD_CMPLT) { in sgen_handle_autosense()
1742 amt = MAX_SENSE_LENGTH - arqstat->sts_rqpkt_resid; in sgen_handle_autosense()
1744 if (arqstat->sts_rqpkt_resid > SENSE_LENGTH) { in sgen_handle_autosense()
1745 amt = MAX_SENSE_LENGTH - arqstat->sts_rqpkt_resid; in sgen_handle_autosense()
1747 amt = SENSE_LENGTH - arqstat->sts_rqpkt_resid; in sgen_handle_autosense()
1752 ucmd->uscsi_rqstatus = *((char *)&arqstat->sts_rqpkt_status); in sgen_handle_autosense()
1756 bcopy(&(arqstat->sts_sensedata), sg_state->sgen_rqs_sen, rqlen); in sgen_handle_autosense()
1762 if (arqstat->sts_rqpkt_status.sts_chk) { in sgen_handle_autosense()
[all …]
H A Dst.c10491 struct scsi_arq_status arqstat; in st_handle_sense() local
10539 bcopy(SCBP(pkt), &arqstat.sts_status, in st_handle_sense()
10541 bcopy(SCBP(rqpkt), &arqstat.sts_rqpkt_status, in st_handle_sense()
10543 arqstat.sts_rqpkt_reason = rqpkt->pkt_reason; in st_handle_sense()
10544 arqstat.sts_rqpkt_resid = rqpkt->pkt_resid; in st_handle_sense()
10545 arqstat.sts_rqpkt_state = rqpkt->pkt_state; in st_handle_sense()
10546 arqstat.sts_rqpkt_statistics = rqpkt->pkt_statistics; in st_handle_sense()
10547 bcopy(ST_RQSENSE, &arqstat.sts_sensedata, SENSE_LENGTH); in st_handle_sense()
10552 st_update_error_stack(un, pkt, &arqstat); in st_handle_sense()
10553 return (st_decode_sense(un, bp, amt, &arqstat, pos)); in st_handle_sense()
[all …]
H A Dsd.c25801 struct scsi_arq_status *arqstat; local
25862 arqstat =
25864 sensep = (uint8_t *)&arqstat->sts_sensedata;
/illumos-gate/usr/src/uts/intel/io/amr/
H A Damr.c2061 struct scsi_arq_status *arqstat; in amr_set_arq_data() local
2063 arqstat = (struct scsi_arq_status *)(pkt->pkt_scbp); in amr_set_arq_data()
2064 arqstat->sts_status.sts_chk = 1; /* CHECK CONDITION */ in amr_set_arq_data()
2065 arqstat->sts_rqpkt_reason = CMD_CMPLT; in amr_set_arq_data()
2066 arqstat->sts_rqpkt_resid = 0; in amr_set_arq_data()
2067 arqstat->sts_rqpkt_state = STATE_GOT_BUS | STATE_GOT_TARGET | in amr_set_arq_data()
2069 arqstat->sts_rqpkt_statistics = 0; in amr_set_arq_data()
2070 arqstat->sts_sensedata.es_valid = 1; in amr_set_arq_data()
2071 arqstat->sts_sensedata.es_class = CLASS_EXTENDED_SENSE; in amr_set_arq_data()
2072 arqstat->sts_sensedata.es_key = key; in amr_set_arq_data()
/illumos-gate/usr/src/uts/common/io/mr_sas/
H A Dmr_sas_tbolt.c2306 struct scsi_arq_status *arqstat; in tbolt_complete_cmd() local
2423 arqstat = (void *)(pkt->pkt_scbp); in tbolt_complete_cmd()
2424 arqstat->sts_rqpkt_reason = CMD_CMPLT; in tbolt_complete_cmd()
2425 arqstat->sts_rqpkt_resid = 0; in tbolt_complete_cmd()
2426 arqstat->sts_rqpkt_state |= in tbolt_complete_cmd()
2430 *(uint8_t *)&arqstat->sts_rqpkt_status = in tbolt_complete_cmd()
2437 (uint8_t *)&(arqstat->sts_sensedata), in tbolt_complete_cmd()
2471 arqstat = (void *)(pkt->pkt_scbp); in tbolt_complete_cmd()
2472 arqstat->sts_rqpkt_reason = CMD_CMPLT; in tbolt_complete_cmd()
2473 arqstat->sts_rqpkt_resid = 0; in tbolt_complete_cmd()
[all …]
H A Dmr_sas.c4431 struct scsi_arq_status *arqstat; in mrsas_softintr() local
4562 arqstat = (void *)(pkt->pkt_scbp); in mrsas_softintr()
4563 arqstat->sts_rqpkt_reason = CMD_CMPLT; in mrsas_softintr()
4564 arqstat->sts_rqpkt_resid = 0; in mrsas_softintr()
4565 arqstat->sts_rqpkt_state |= in mrsas_softintr()
4569 *(uint8_t *)&arqstat->sts_rqpkt_status = in mrsas_softintr()
4574 &(arqstat->sts_sensedata), in mrsas_softintr()
4593 arqstat = (void *)(pkt->pkt_scbp); in mrsas_softintr()
4594 arqstat->sts_rqpkt_reason = CMD_CMPLT; in mrsas_softintr()
4595 arqstat->sts_rqpkt_resid = 0; in mrsas_softintr()
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/impl/
H A Dscsi_watch.c926 struct scsi_arq_status *arqstat = in scsi_watch_request_intr() local
929 rqstatusp = &arqstat->sts_rqpkt_status; in scsi_watch_request_intr()
930 rqsensep = &arqstat->sts_sensedata; in scsi_watch_request_intr()
932 arqstat->sts_rqpkt_resid; in scsi_watch_request_intr()
H A Dscsi_subr.c91 struct scsi_arq_status *arqstat; in scsi_poll() local
152 arqstat = in scsi_poll()
154 sensep = (uint8_t *)&arqstat->sts_sensedata; in scsi_poll()
/illumos-gate/usr/src/uts/common/io/mega_sas/
H A Dmegaraid_sas.c2715 struct scsi_arq_status *arqstat; in megasas_softintr() local
2851 arqstat = (void *)(pkt->pkt_scbp); in megasas_softintr()
2852 arqstat->sts_rqpkt_reason = CMD_CMPLT; in megasas_softintr()
2853 arqstat->sts_rqpkt_resid = 0; in megasas_softintr()
2854 arqstat->sts_rqpkt_state |= in megasas_softintr()
2858 *(uint8_t *)&arqstat->sts_rqpkt_status = in megasas_softintr()
2862 &(arqstat->sts_sensedata), in megasas_softintr()
2881 arqstat = (void *)(pkt->pkt_scbp); in megasas_softintr()
2882 arqstat->sts_rqpkt_reason = CMD_CMPLT; in megasas_softintr()
2883 arqstat->sts_rqpkt_resid = 0; in megasas_softintr()
[all …]
/illumos-gate/usr/src/uts/common/io/aac/
H A Daac.c1149 struct scsi_arq_status *arqstat = (void *)(pkt->pkt_scbp); in aac_set_arq_data() local
1154 *(uint8_t *)&arqstat->sts_rqpkt_status = STATUS_GOOD; in aac_set_arq_data()
1155 arqstat->sts_rqpkt_reason = CMD_CMPLT; in aac_set_arq_data()
1156 arqstat->sts_rqpkt_resid = 0; in aac_set_arq_data()
1157 arqstat->sts_rqpkt_state = in aac_set_arq_data()
1162 arqstat->sts_rqpkt_statistics = 0; in aac_set_arq_data()
1165 arqstat->sts_sensedata.es_valid = 1; in aac_set_arq_data()
1166 arqstat->sts_sensedata.es_class = CLASS_EXTENDED_SENSE; in aac_set_arq_data()
1167 arqstat->sts_sensedata.es_code = CODE_FMT_FIXED_CURRENT; in aac_set_arq_data()
1168 arqstat->sts_sensedata.es_key = key; in aac_set_arq_data()
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/conf/
H A Dscsi_confsubr.c729 struct scsi_arq_status *arqstat; in scsi_test_ereport_post() local
734 arqstat = (struct scsi_arq_status *)pkt->pkt_scbp; in scsi_test_ereport_post()
735 sensep = (uint8_t *)&arqstat->sts_sensedata; in scsi_test_ereport_post()
747 sensep, sizeof (arqstat->sts_sensedata)); in scsi_test_ereport_post()
/illumos-gate/usr/src/uts/sun/io/scsi/adapters/
H A Dfas.c3842 struct scsi_arq_status *arqstat; in fas_finish() local
3844 arqstat = (struct scsi_arq_status *) in fas_finish()
3846 arqstat->sts_rqpkt_reason = CMD_TRAN_ERR; in fas_finish()
7034 struct scsi_arq_status *arqstat; in fas_complete_arq_pkt() local
7046 arqstat = (struct scsi_arq_status *)(ssp->cmd_pkt->pkt_scbp); in fas_complete_arq_pkt()
7047 arqstat->sts_rqpkt_status = *((struct scsi_status *) in fas_complete_arq_pkt()
7049 arqstat->sts_rqpkt_reason = sp->cmd_pkt->pkt_reason; in fas_complete_arq_pkt()
7050 arqstat->sts_rqpkt_state = sp->cmd_pkt->pkt_state; in fas_complete_arq_pkt()
7051 arqstat->sts_rqpkt_statistics = sp->cmd_pkt->pkt_statistics; in fas_complete_arq_pkt()
7052 arqstat->sts_rqpkt_resid = sp->cmd_pkt->pkt_resid; in fas_complete_arq_pkt()
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/scsi_vhci/
H A Dscsi_vhci.c8392 struct scsi_arq_status *arqstat; in vhci_uscsi_iodone() local
8422 arqstat = (struct scsi_arq_status *)(intptr_t)(pkt->pkt_scbp); in vhci_uscsi_iodone()
8445 int rqlen = SENSE_LENGTH - arqstat->sts_rqpkt_resid; in vhci_uscsi_iodone()
8449 *((char *)&arqstat->sts_rqpkt_status); in vhci_uscsi_iodone()
8452 bcopy(&(arqstat->sts_sensedata), in vhci_uscsi_iodone()
8462 arqstat->sts_rqpkt_resid)); in vhci_uscsi_iodone()
/illumos-gate/usr/src/uts/common/io/scsi/adapters/mpt_sas/
H A Dmptsas.c5625 struct scsi_arq_status *arqstat; in mptsas_check_scsi_io_error() local
5698 arqstat = (void*)(pkt->pkt_scbp); in mptsas_check_scsi_io_error()
5699 arqstat->sts_rqpkt_status = *((struct scsi_status *) in mptsas_check_scsi_io_error()
5709 arqstat->sts_rqpkt_reason = pkt->pkt_reason; in mptsas_check_scsi_io_error()
5710 arqstat->sts_rqpkt_state = pkt->pkt_state; in mptsas_check_scsi_io_error()
5711 arqstat->sts_rqpkt_state |= STATE_XFERRED_DATA; in mptsas_check_scsi_io_error()
5712 arqstat->sts_rqpkt_statistics = pkt->pkt_statistics; in mptsas_check_scsi_io_error()
5713 sensedata = (uint8_t *)&arqstat->sts_sensedata; in mptsas_check_scsi_io_error()
5726 arqstat->sts_rqpkt_resid = (cmd_rqs_len - sensecount); in mptsas_check_scsi_io_error()
5733 arqstat->sts_rqpkt_status = zero_status; in mptsas_check_scsi_io_error()