Home
last modified time | relevance | path

Searched refs:CMD2PKT (Results 1 – 25 of 26) sorted by relevance

12

/illumos-gate/usr/src/uts/common/sys/
H A Demul64var.h54 #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 Demul64cmd.h37 #define CMD2PKT(sp) ((sp)->cmd_pkt) macro
/illumos-gate/usr/src/uts/common/sys/scsi/adapters/pmcs/
H A Dpmcs_scsa.h38 #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 Dpmcs_scsa.c1800 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 Dpmcs_sata.c34 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 Dpmcs_attach.c2095 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 Dpmcs_subr.c6209 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 Dsmartpqi_util.c113 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 Dsmartpqi_hw.c264 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 Dsmartpqi_hba.c856 struct scsi_pkt *pkt = CMD2PKT(c);
1161 struct scsi_pkt *pkt = CMD2PKT(cmd);
1180 struct scsi_pkt *pkt = CMD2PKT(cmd);
H A Dsmartpqi.h97 #define CMD2PKT(cmd) ((struct scsi_pkt *)(cmd)->pc_pkt) macro
/illumos-gate/usr/src/uts/sun/sys/scsi/adapters/
H A Dfascmd.h60 #define CMD2PKT(sp) ((sp)->cmd_pkt) macro
H A Dsfvar.h246 #define CMD2PKT(cmd) ((cmd)->cmd_pkt) macro
/illumos-gate/usr/src/uts/common/sys/1394/targets/scsa1394/
H A Dcmd.h122 #define CMD2PKT(cmdp) ((struct scsi_pkt *)((cmdp)->sc_pkt)) macro
/illumos-gate/usr/src/uts/common/io/1394/targets/scsa1394/
H A Dsbp2_driver.c750 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 Dhba.c2066 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 Dmegaraid_sas.h1288 #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 Dmegaraid_sas.c2773 pkt = CMD2PKT(acmd); in megasas_softintr()
/illumos-gate/usr/src/uts/common/io/mr_sas/
H A Dmr_sas.h698 #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 Dmr_sas_tbolt.c1216 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 Dscsa2usb.h618 #define CMD2PKT(sp) ((sp)->cmd_pkt) macro
/illumos-gate/usr/src/uts/common/sys/fibre-channel/ulp/
H A Dfcpvar.h1309 #define CMD2PKT(cmd) ((cmd)->cmd_pkt) macro
/illumos-gate/usr/src/uts/common/sys/scsi/adapters/mpt_sas/
H A Dmptsas_var.h188 #define CMD2PKT(cmdp) ((struct scsi_pkt *)((cmdp)->cmd_pkt)) macro
/illumos-gate/usr/src/uts/sun/io/scsi/adapters/
H A Dfas.c2527 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 Dmptsas.c3706 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()

12