/titanic_44/usr/src/uts/common/sys/ |
H A D | emul64var.h | 56 #define TGT(sp) (CMD2PKT(sp)->pkt_address.a_target) 57 #define LUN(sp) (CMD2PKT(sp)->pkt_address.a_lun) 179 if ((sp) && CMD2PKT(sp)->pkt_reason == CMD_CMPLT) \ 180 CMD2PKT(sp)->pkt_reason = (reason); \ 211 #define CMD2ADDR(cmd) (&CMD2PKT(cmd)->pkt_address) 212 #define CMD2TRAN(cmd) (CMD2PKT(cmd)->pkt_address.a_hba_tran)
|
H A D | emul64cmd.h | 39 #define CMD2PKT(sp) ((sp)->cmd_pkt) macro
|
/titanic_44/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
|
/titanic_44/usr/src/uts/common/io/scsi/adapters/pmcs/ |
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() 99 pkt = CMD2PKT(sp); in pmcs_sata_special_work()
|
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_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 | 6205 if (CMD2PKT(sp)->pkt_numcookies == 0) { in pmcs_dma_load() 6212 sg = CMD2PKT(sp)->pkt_cookies; in pmcs_dma_load() 6218 if (CMD2PKT(sp)->pkt_numcookies == 1) { in pmcs_dma_load() 6255 for (seg = 0; seg < CMD2PKT(sp)->pkt_numcookies; seg++) { in pmcs_dma_load() 6271 seg < (CMD2PKT(sp)->pkt_numcookies - 1)) { in pmcs_dma_load() 6999 CMD2PKT(sp)->pkt_reason = CMD_DEV_GONE; in pmcs_flush_target_queues() 7000 CMD2PKT(sp)->pkt_state = STATE_GOT_BUS; in pmcs_flush_target_queues() 7049 CMD2PKT(sp)->pkt_reason = CMD_DEV_GONE; in pmcs_flush_target_queues() 7050 CMD2PKT(sp)->pkt_state = STATE_GOT_BUS; in pmcs_flush_target_queues() 7069 CMD2PKT(sp)->pkt_reason = CMD_DEV_GONE; in pmcs_flush_target_queues() [all …]
|
/titanic_44/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
|
/titanic_44/usr/src/uts/common/sys/1394/targets/scsa1394/ |
H A D | cmd.h | 124 #define CMD2PKT(cmdp) ((struct scsi_pkt *)((cmdp)->sc_pkt)) macro
|
/titanic_44/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 | 2067 struct scsi_pkt *pkt = CMD2PKT(cmd); in scsa1394_cmd_fill_cdb_rbc() 2179 struct scsi_pkt *pkt = CMD2PKT(cmd); in scsa1394_cmd_fill_cdb_other() 2259 struct scsi_pkt *pkt = CMD2PKT(cmd); in scsa1394_cmd_fake_mode_sense() 2291 struct scsi_pkt *pkt = CMD2PKT(cmd); in scsa1394_cmd_fake_inquiry() 2317 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()
|
/titanic_44/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()
|
/titanic_44/usr/src/uts/common/io/mr_sas/ |
H A D | mr_sas.h | 694 #define CMD2PKT(sp) ((sp)->cmd_pkt) macro 697 #define CMD2ADDR(cmd) (&CMD2PKT(cmd)->pkt_address) 698 #define CMD2TRAN(cmd) (CMD2PKT(cmd)->pkt_address.a_hba_tran)
|
H A D | mr_sas_tbolt.c | 1218 struct scsi_pkt *pkt = CMD2PKT(acmd); in mrsas_tbolt_prepare_pkt() 2360 pkt = (struct scsi_pkt *)CMD2PKT(acmd); in tbolt_complete_cmd()
|
H A D | mr_sas.c | 4496 pkt = CMD2PKT(acmd); in mrsas_softintr()
|
/titanic_44/usr/src/uts/common/sys/usb/scsa2usb/ |
H A D | scsa2usb.h | 583 #define CMD2PKT(sp) ((sp)->cmd_pkt macro
|
/titanic_44/usr/src/uts/common/sys/fibre-channel/ulp/ |
H A D | fcpvar.h | 1309 #define CMD2PKT(cmd) ((cmd)->cmd_pkt) macro
|
/titanic_44/usr/src/uts/common/sys/scsi/adapters/mpt_sas/ |
H A D | mptsas_var.h | 186 #define CMD2PKT(cmdp) ((struct scsi_pkt *)((cmdp)->cmd_pkt)) macro
|
/titanic_44/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()
|
H A D | sf.c | 1356 struct scsi_pkt *pkt = CMD2PKT(cmd); in sf_pkt_alloc_extern() 1390 struct scsi_pkt *pkt = CMD2PKT(cmd); in sf_pkt_destroy_extern() 5829 pkt = CMD2PKT(cmd); in sf_throttle_start()
|
/titanic_44/usr/src/uts/common/io/scsi/adapters/mpt_sas/ |
H A D | mptsas.c | 3618 struct scsi_pkt *pkt = CMD2PKT(cmd); in mptsas_prepare_pkt() 5262 pkt = CMD2PKT(cmd); in mptsas_handle_scsi_io_success() 5572 pkt = CMD2PKT(cmd); in mptsas_check_scsi_io_error() 5807 struct scsi_pkt *pkt = CMD2PKT(cmd); in mptsas_check_task_mgt() 5870 pkt = CMD2PKT(cmd); in mptsas_doneq_thread() 8627 struct scsi_pkt *pkt = CMD2PKT(cmd); in mptsas_start_cmd() 8898 struct scsi_pkt *pkt = CMD2PKT(cmd); in mptsas_fma_check() 8970 struct scsi_pkt *pkt = CMD2PKT(cmd); in mptsas_doneq_add() 9034 pkt = CMD2PKT(cmd); in mptsas_doneq_empty()
|