/illumos-gate/usr/src/uts/common/sys/ |
H A D | emul64var.h | 54 #define TGT(sp) (CMD2PKT(sp)->pkt_address.a_target) 55 #define LUN(sp) (CMD2PKT(sp)->pkt_address.a_lun) 177 if ((sp) && CMD2PKT(sp)->pkt_reason == CMD_CMPLT) \ 178 CMD2PKT(sp)->pkt_reason = (reason); \ 209 #define CMD2ADDR(cmd) (&CMD2PKT(cmd)->pkt_address) 210 #define CMD2TRAN(cmd) (CMD2PKT(cmd)->pkt_address.a_hba_tran)
|
H A D | emul64cmd.h | 37 #define CMD2PKT(sp) ((sp)->cmd_pkt) macro
|
/illumos-gate/usr/src/uts/common/sys/scsi/adapters/pmcs/ |
H A D | pmcs_scsa.h | 38 #define CMD2TRAN(cmd) (CMD2PKT(cmd)->pkt_address.a_hba_tran) 43 #define CMD2PKT(sp) (sp->cmd_pkt) macro
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/ |
H A D | pmcs_scsa.c | 1800 pkt = CMD2PKT(sp); in pmcs_scsa_cq_run() 1845 struct scsi_pkt *pkt = CMD2PKT(sp); in pmcs_SAS_run() 1904 CMD2PKT(sp)->pkt_scbp[0] = STATUS_QFULL; in pmcs_SAS_run() 1905 CMD2PKT(sp)->pkt_reason = CMD_CMPLT; in pmcs_SAS_run() 1906 CMD2PKT(sp)->pkt_state |= STATE_GOT_BUS | in pmcs_SAS_run() 1974 sp_pkt_time = CMD2PKT(sp)->pkt_time; in pmcs_SAS_run() 2011 struct scsi_pkt *pkt = CMD2PKT(sp); in pmcs_SAS_done() 2047 CMD2PKT(sp)->pkt_scbp[0] = STATUS_GOOD; in pmcs_SAS_done() 2048 CMD2PKT(sp)->pkt_state |= STATE_GOT_BUS | STATE_GOT_TARGET | in pmcs_SAS_done() 2050 CMD2PKT(sp)->pkt_statistics |= STAT_TIMEOUT; in pmcs_SAS_done() [all …]
|
H A D | pmcs_sata.c | 34 struct buf *bp = scsi_pkt2bp(CMD2PKT(sp)); in SATAcopy() 36 bp_mapin(scsi_pkt2bp(CMD2PKT(sp))); in SATAcopy() 39 CMD2PKT(sp)->pkt_resid -= amt; in SATAcopy() 40 CMD2PKT(sp)->pkt_state |= STATE_XFERRED_DATA; in SATAcopy() 41 bp_mapout(scsi_pkt2bp(CMD2PKT(sp))); in SATAcopy() 100 pkt = CMD2PKT(sp); in pmcs_sata_special_work()
|
H A D | pmcs_attach.c | 2095 CMD2PKT(sp)->pkt_reason = CMD_TIMEOUT; in pmcs_check_commands() 2096 CMD2PKT(sp)->pkt_statistics |= STAT_TIMEOUT; in pmcs_check_commands() 2135 CMD2PKT(sp)->pkt_reason = CMD_DEV_GONE; in pmcs_check_commands() 2136 CMD2PKT(sp)->pkt_state = STATE_GOT_BUS; in pmcs_check_commands() 2159 CMD2PKT(sp)->pkt_reason = CMD_DEV_GONE; in pmcs_check_commands() 2160 CMD2PKT(sp)->pkt_state = STATE_GOT_BUS; in pmcs_check_commands()
|
H A D | pmcs_subr.c | 6209 if (CMD2PKT(sp)->pkt_numcookies == 0) { in pmcs_dma_load() 6216 sg = CMD2PKT(sp)->pkt_cookies; in pmcs_dma_load() 6222 if (CMD2PKT(sp)->pkt_numcookies == 1) { in pmcs_dma_load() 6259 for (seg = 0; seg < CMD2PKT(sp)->pkt_numcookies; seg++) { in pmcs_dma_load() 6275 seg < (CMD2PKT(sp)->pkt_numcookies - 1)) { in pmcs_dma_load() 7003 CMD2PKT(sp)->pkt_reason = CMD_DEV_GONE; in pmcs_flush_target_queues() 7004 CMD2PKT(sp)->pkt_state = STATE_GOT_BUS; in pmcs_flush_target_queues() 7053 CMD2PKT(sp)->pkt_reason = CMD_DEV_GONE; in pmcs_flush_target_queues() 7054 CMD2PKT(sp)->pkt_state = STATE_GOT_BUS; in pmcs_flush_target_queues() 7073 CMD2PKT(sp)->pkt_reason = CMD_DEV_GONE; in pmcs_flush_target_queues() [all …]
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/smartpqi/ |
H A D | smartpqi_util.c | 113 pkt = CMD2PKT(c); in pqi_cmd_action_nolock() 198 pkt = CMD2PKT(c); in pqi_cmd_action_nolock() 224 if (CMD2PKT(c) != NULL) { in pqi_cmd_action_nolock() 724 struct scsi_pkt *pkt = CMD2PKT(c); in cmd_finish_task() 738 if (CMD2PKT(c) != NULL) { in cmd_start_time()
|
H A D | smartpqi_hw.c | 264 struct scsi_pkt *pkt = CMD2PKT(cmd); in pqi_fail_cmd() 662 struct scsi_pkt *pkt = CMD2PKT(cmd); in aio_io_complete() 948 struct scsi_pkt *pkt = CMD2PKT(c); in take_ctlr_offline()
|
H A D | smartpqi_hba.c | 856 struct scsi_pkt *pkt = CMD2PKT(c); 1161 struct scsi_pkt *pkt = CMD2PKT(cmd); 1180 struct scsi_pkt *pkt = CMD2PKT(cmd);
|
H A D | smartpqi.h | 97 #define CMD2PKT(cmd) ((struct scsi_pkt *)(cmd)->pc_pkt) macro
|
/illumos-gate/usr/src/uts/sun/sys/scsi/adapters/ |
H A D | fascmd.h | 60 #define CMD2PKT(sp) ((sp)->cmd_pkt) macro
|
H A D | sfvar.h | 246 #define CMD2PKT(cmd) ((cmd)->cmd_pkt) macro
|
/illumos-gate/usr/src/uts/common/sys/1394/targets/scsa1394/ |
H A D | cmd.h | 122 #define CMD2PKT(cmdp) ((struct scsi_pkt *)((cmdp)->sc_pkt)) macro
|
/illumos-gate/usr/src/uts/common/io/1394/targets/scsa1394/ |
H A D | sbp2_driver.c | 750 struct scsi_pkt *pkt = CMD2PKT(cmd); in scsa1394_sbp2_status_proc() 851 struct scsi_pkt *pkt = CMD2PKT(cmd); in scsa1394_sbp2_conv_status() 943 struct scsi_pkt *pkt = CMD2PKT(cmd); in scsa1394_sbp2_reset_proc() 984 pkt = CMD2PKT(cmd); in scsa1394_sbp2_flush_cmds()
|
H A D | hba.c | 2066 struct scsi_pkt *pkt = CMD2PKT(cmd); in scsa1394_cmd_fill_cdb_rbc() 2178 struct scsi_pkt *pkt = CMD2PKT(cmd); in scsa1394_cmd_fill_cdb_other() 2258 struct scsi_pkt *pkt = CMD2PKT(cmd); in scsa1394_cmd_fake_mode_sense() 2290 struct scsi_pkt *pkt = CMD2PKT(cmd); in scsa1394_cmd_fake_inquiry() 2316 struct scsi_pkt *pkt = CMD2PKT(cmd); in scsa1394_cmd_fake_comp() 2408 struct scsi_pkt *pkt = CMD2PKT(cmd); in scsa1394_cmd_setup_next_xfer() 2474 struct scsi_pkt *pkt = CMD2PKT(cmd); in scsa1394_cmd_status_proc() 2514 struct scsi_pkt *pkt = CMD2PKT(cmd); in scsa1394_cmd_status_wrka()
|
/illumos-gate/usr/src/uts/common/io/mega_sas/ |
H A D | megaraid_sas.h | 1288 #define CMD2PKT(sp) ((sp)->cmd_pkt) macro 1291 #define CMD2ADDR(cmd) (&CMD2PKT(cmd)->pkt_address) 1292 #define CMD2TRAN(cmd) (CMD2PKT(cmd)->pkt_address.a_hba_tran)
|
H A D | megaraid_sas.c | 2773 pkt = CMD2PKT(acmd); in megasas_softintr()
|
/illumos-gate/usr/src/uts/common/io/mr_sas/ |
H A D | mr_sas.h | 698 #define CMD2PKT(sp) ((sp)->cmd_pkt) macro 701 #define CMD2ADDR(cmd) (&CMD2PKT(cmd)->pkt_address) 702 #define CMD2TRAN(cmd) (CMD2PKT(cmd)->pkt_address.a_hba_tran)
|
H A D | mr_sas_tbolt.c | 1216 struct scsi_pkt *pkt = CMD2PKT(acmd); in mrsas_tbolt_prepare_pkt() 2353 pkt = (struct scsi_pkt *)CMD2PKT(acmd); in tbolt_complete_cmd()
|
/illumos-gate/usr/src/uts/common/sys/usb/scsa2usb/ |
H A D | scsa2usb.h | 618 #define CMD2PKT(sp) ((sp)->cmd_pkt) macro
|
/illumos-gate/usr/src/uts/common/sys/fibre-channel/ulp/ |
H A D | fcpvar.h | 1309 #define CMD2PKT(cmd) ((cmd)->cmd_pkt) macro
|
/illumos-gate/usr/src/uts/common/sys/scsi/adapters/mpt_sas/ |
H A D | mptsas_var.h | 188 #define CMD2PKT(cmdp) ((struct scsi_pkt *)((cmdp)->cmd_pkt)) macro
|
/illumos-gate/usr/src/uts/sun/io/scsi/adapters/ |
H A D | fas.c | 2527 struct scsi_pkt *pkt = CMD2PKT(sp); in fas_prepare_pkt() 3099 struct scsi_pkt *pkt = CMD2PKT(sp); in fas_startcmd() 3736 struct scsi_pkt *pkt = CMD2PKT(sp); in fas_finish() 6975 RQ_MAKECOM_G0((CMD2PKT(rqpktp)), in fas_create_arq_pkt() 7018 scsi_destroy_pkt(CMD2PKT(rqpktp)); in fas_delete_arq_pkt()
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/mpt_sas/ |
H A D | mptsas.c | 3706 struct scsi_pkt *pkt = CMD2PKT(cmd); in mptsas_prepare_pkt() 5350 pkt = CMD2PKT(cmd); in mptsas_handle_scsi_io_success() 5660 pkt = CMD2PKT(cmd); in mptsas_check_scsi_io_error() 5895 struct scsi_pkt *pkt = CMD2PKT(cmd); in mptsas_check_task_mgt() 5958 pkt = CMD2PKT(cmd); in mptsas_doneq_thread() 8714 struct scsi_pkt *pkt = CMD2PKT(cmd); in mptsas_start_cmd() 8985 struct scsi_pkt *pkt = CMD2PKT(cmd); in mptsas_fma_check() 9057 struct scsi_pkt *pkt = CMD2PKT(cmd); in mptsas_doneq_add() 9121 pkt = CMD2PKT(cmd); in mptsas_doneq_empty()
|