Home
last modified time | relevance | path

Searched refs:scsicmd (Results 1 – 14 of 14) sorted by relevance

/drivers/scsi/aacraid/
Daachba.c212 static long aac_build_sg(struct scsi_cmnd *scsicmd, struct sgmap *sgmap);
213 static long aac_build_sg64(struct scsi_cmnd *scsicmd, struct sgmap64 *psg);
214 static long aac_build_sgraw(struct scsi_cmnd *scsicmd, struct sgmapraw *psg);
215 static long aac_build_sgraw2(struct scsi_cmnd *scsicmd,
219 static int aac_send_srb_fib(struct scsi_cmnd* scsicmd);
319 static inline int aac_valid_context(struct scsi_cmnd *scsicmd, in aac_valid_context() argument
323 if (unlikely(!scsicmd || !scsicmd->scsi_done)) { in aac_valid_context()
328 scsicmd->SCp.phase = AAC_OWNER_MIDLEVEL; in aac_valid_context()
329 device = scsicmd->device; in aac_valid_context()
420 static void aac_expose_phy_device(struct scsi_cmnd *scsicmd) in aac_expose_phy_device() argument
[all …]
/drivers/staging/unisys/visorhba/
Dvisorhba_main.c302 struct scsi_cmnd *scsicmd) in forward_taskmgmt_command() argument
305 struct scsi_device *scsidev = scsicmd->device; in forward_taskmgmt_command()
354 scsicmd->result = DID_ABORT << 16; in forward_taskmgmt_command()
356 scsicmd->result = DID_RESET << 16; in forward_taskmgmt_command()
358 scsicmd->scsi_done(scsicmd); in forward_taskmgmt_command()
377 static int visorhba_abort_handler(struct scsi_cmnd *scsicmd) in visorhba_abort_handler() argument
384 scsidev = scsicmd->device; in visorhba_abort_handler()
392 return forward_taskmgmt_command(TASK_MGMT_ABORT_TASK, scsicmd); in visorhba_abort_handler()
401 static int visorhba_device_reset_handler(struct scsi_cmnd *scsicmd) in visorhba_device_reset_handler() argument
408 scsidev = scsicmd->device; in visorhba_device_reset_handler()
[all …]
/drivers/ata/
Dlibata-scsi.c801 qc->scsicmd = cmd; in ata_scsi_qc_new()
816 struct scsi_cmnd *scmd = qc->scsicmd; in ata_qc_set_pc_nbytes()
1019 struct scsi_cmnd *cmd = qc->scsicmd; in ata_gen_passthru_sense()
1118 struct scsi_cmnd *cmd = qc->scsicmd; in ata_gen_ata_sense()
1408 struct scsi_cmnd *scmd = qc->scsicmd; in ata_scsi_start_stop_xlat()
1623 struct scsi_cmnd *scmd = qc->scsicmd; in ata_scsi_verify_xlat()
1757 struct scsi_cmnd *scmd = qc->scsicmd; in ata_scsi_rw_xlat()
1848 struct scsi_cmnd *cmd = qc->scsicmd; in ata_qc_done()
1858 struct scsi_cmnd *cmd = qc->scsicmd; in ata_scsi_qc_complete()
2521 u8 *scsicmd = args->cmd->cmnd, *p = rbuf; in ata_scsiop_mode_sense() local
[all …]
Dsata_promise.c1075 u8 *scsicmd = qc->scsicmd->cmnd; in pdc_check_atapi_dma() local
1079 switch (scsicmd[0]) { in pdc_check_atapi_dma()
1091 if (scsicmd[0] == WRITE_10) { in pdc_check_atapi_dma()
1093 (scsicmd[2] << 24) | in pdc_check_atapi_dma()
1094 (scsicmd[3] << 16) | in pdc_check_atapi_dma()
1095 (scsicmd[4] << 8) | in pdc_check_atapi_dma()
1096 scsicmd[5]; in pdc_check_atapi_dma()
Dsata_sx4.c934 u8 *scsicmd = qc->scsicmd->cmnd; in pdc_check_atapi_dma() local
938 switch (scsicmd[0]) { in pdc_check_atapi_dma()
950 if (scsicmd[0] == WRITE_10) { in pdc_check_atapi_dma()
952 (scsicmd[2] << 24) | in pdc_check_atapi_dma()
953 (scsicmd[3] << 16) | in pdc_check_atapi_dma()
954 (scsicmd[4] << 8) | in pdc_check_atapi_dma()
955 scsicmd[5]; in pdc_check_atapi_dma()
Dlibata-eh.c541 WARN_ON(qc->scsicmd != cmd); in ata_scsi_timed_out()
671 qc->scsicmd == scmd) in ata_scsi_cmd_error_handler()
972 struct request_queue *q = qc->scsicmd->device->request_queue; in ata_qc_schedule_eh()
986 blk_abort_request(qc->scsicmd->request); in ata_qc_schedule_eh()
1293 struct scsi_cmnd *scmd = qc->scsicmd; in __ata_eh_qc_complete()
1314 struct scsi_cmnd *scmd = qc->scsicmd; in ata_eh_qc_complete()
1332 struct scsi_cmnd *scmd = qc->scsicmd; in ata_eh_qc_retry()
1858 ata_scsi_set_sense(dev, qc->scsicmd, sense_key, asc, ascq); in ata_eh_analyze_ncq_error()
1859 ata_scsi_set_sense_information(dev, qc->scsicmd, in ata_eh_analyze_ncq_error()
1909 ata_eh_request_sense(qc, qc->scsicmd); in ata_eh_analyze_tf()
[all …]
Dpata_pdc2027x.c443 struct scsi_cmnd *cmd = qc->scsicmd; in pdc2027x_check_atapi_dma()
444 u8 *scsicmd = cmd->cmnd; in pdc2027x_check_atapi_dma() local
453 switch (scsicmd[0]) { in pdc2027x_check_atapi_dma()
Dsata_svw.c100 u8 cmnd = qc->scsicmd->cmnd[0]; in k2_sata_check_atapi_dma()
Dsata_via.c398 (qc->scsicmd->sc_data_direction == DMA_TO_DEVICE)) { in vt6420_bmdma_start()
Dlibata-core.c1597 qc->scsicmd = NULL; in ata_exec_internal_sg()
4991 qc->scsicmd = NULL; in ata_qc_new_init()
Dsata_mv.c1868 struct scsi_cmnd *scmd = qc->scsicmd; in mv_check_atapi_dma()
/drivers/scsi/libsas/
Dsas_ata.c110 else if (qc && qc->scsicmd) in sas_ata_task_done()
111 ASSIGN_SAS_TASK(qc->scsicmd, NULL); in sas_ata_task_done()
128 if (qc->scsicmd) in sas_ata_task_done()
239 if (qc->scsicmd) in sas_ata_qc_issue()
240 ASSIGN_SAS_TASK(qc->scsicmd, task); in sas_ata_qc_issue()
246 if (qc->scsicmd) in sas_ata_qc_issue()
247 ASSIGN_SAS_TASK(qc->scsicmd, NULL); in sas_ata_qc_issue()
590 if (qc->scsicmd) { in sas_ata_task_abort()
591 struct request_queue *q = qc->scsicmd->device->request_queue; in sas_ata_task_abort()
595 blk_abort_request(qc->scsicmd->request); in sas_ata_task_abort()
/drivers/block/
Dcciss_scsi.c1652 static int cciss_eh_device_reset_handler(struct scsi_cmnd *scsicmd) in cciss_eh_device_reset_handler() argument
1660 h = (ctlr_info_t *) scsicmd->device->host->hostdata[0]; in cciss_eh_device_reset_handler()
1665 cmd_in_trouble = (CommandList_struct *) scsicmd->host_scribble; in cciss_eh_device_reset_handler()
1678 static int cciss_eh_abort_handler(struct scsi_cmnd *scsicmd) in cciss_eh_abort_handler() argument
1686 h = (ctlr_info_t *) scsicmd->device->host->hostdata[0]; in cciss_eh_abort_handler()
1692 cmd_to_abort = (CommandList_struct *) scsicmd->host_scribble; in cciss_eh_abort_handler()
/drivers/scsi/
Dhpsa.c256 static int hpsa_eh_device_reset_handler(struct scsi_cmnd *scsicmd);
257 static int hpsa_eh_abort_handler(struct scsi_cmnd *scsicmd);
5791 static int hpsa_eh_device_reset_handler(struct scsi_cmnd *scsicmd) in hpsa_eh_device_reset_handler() argument
5800 h = sdev_to_hba(scsicmd->device); in hpsa_eh_device_reset_handler()
5807 dev = scsicmd->device->hostdata; in hpsa_eh_device_reset_handler()
5817 hpsa_get_cmd_index(scsicmd)); in hpsa_eh_device_reset_handler()
5826 hpsa_get_cmd_index(scsicmd)); in hpsa_eh_device_reset_handler()