Home
last modified time | relevance | path

Searched refs:scmnd (Results 1 – 6 of 6) sorted by relevance

/drivers/scsi/
Dstorvsc_drv.c785 struct scsi_cmnd *scmnd, in storvsc_handle_error() argument
801 switch (scmnd->cmnd[0]) { in storvsc_handle_error()
804 set_host_byte(scmnd, DID_PASSTHROUGH); in storvsc_handle_error()
807 set_host_byte(scmnd, DID_TARGET_FAILURE); in storvsc_handle_error()
821 set_host_byte(scmnd, DID_REQUEUE); in storvsc_handle_error()
834 set_host_byte(scmnd, DID_TARGET_FAILURE); in storvsc_handle_error()
847 struct scsi_cmnd *scmnd = cmd_request->cmd; in storvsc_command_completion() local
848 struct hv_host_device *host_dev = shost_priv(scmnd->device->host); in storvsc_command_completion()
852 struct stor_mem_pools *memp = scmnd->device->hostdata; in storvsc_command_completion()
863 copy_from_bounce_buffer(scsi_sglist(scmnd), in storvsc_command_completion()
[all …]
/drivers/infiniband/ulp/srp/
Dib_srp.c620 static void srp_unmap_data(struct scsi_cmnd *scmnd, in srp_unmap_data() argument
627 if (!scsi_sglist(scmnd) || in srp_unmap_data()
628 (scmnd->sc_data_direction != DMA_TO_DEVICE && in srp_unmap_data()
629 scmnd->sc_data_direction != DMA_FROM_DEVICE)) in srp_unmap_data()
636 ib_dma_unmap_sg(ibdev, scsi_sglist(scmnd), scsi_sg_count(scmnd), in srp_unmap_data()
637 scmnd->sc_data_direction); in srp_unmap_data()
652 struct scsi_cmnd *scmnd) in srp_claim_req() argument
657 if (!scmnd) { in srp_claim_req()
658 scmnd = req->scmnd; in srp_claim_req()
659 req->scmnd = NULL; in srp_claim_req()
[all …]
Dib_srp.h115 struct scsi_cmnd *scmnd; member
/drivers/scsi/csiostor/
Dcsio_scsi.c86 struct scsi_cmnd *scmnd = csio_scsi_cmnd(ioreq); in csio_scsi_match_io() local
90 if (scmnd == NULL) in csio_scsi_match_io()
95 ((uint64_t)scmnd->device->lun == sld->oslun)); in csio_scsi_match_io()
156 csio_scsi_tag(struct scsi_cmnd *scmnd, uint8_t *tag, uint8_t hq, in csio_scsi_tag() argument
161 if (scsi_populate_tag_msg(scmnd, stag)) { in csio_scsi_tag()
188 struct scsi_cmnd *scmnd = csio_scsi_cmnd(req); in csio_scsi_fcp_cmnd() local
191 if (likely(scmnd->SCp.Message == 0)) { in csio_scsi_fcp_cmnd()
192 int_to_scsilun(scmnd->device->lun, &fcp_cmnd->fc_lun); in csio_scsi_fcp_cmnd()
197 memcpy(fcp_cmnd->fc_cdb, scmnd->cmnd, 16); in csio_scsi_fcp_cmnd()
198 csio_scsi_tag(scmnd, &fcp_cmnd->fc_pri_ta, in csio_scsi_fcp_cmnd()
[all …]
/drivers/s390/scsi/
Dzfcp_dbf.h370 void zfcp_dbf_scsi_devreset(char *tag, struct scsi_cmnd *scmnd, u8 flag) in zfcp_dbf_scsi_devreset() argument
380 _zfcp_dbf_scsi(tmp_tag, 1, scmnd, NULL); in zfcp_dbf_scsi_devreset()
Dzfcp_fsf.c864 struct zfcp_fsf_req *zfcp_fsf_abort_fcp_cmnd(struct scsi_cmnd *scmnd) in zfcp_fsf_abort_fcp_cmnd() argument
867 struct scsi_device *sdev = scmnd->device; in zfcp_fsf_abort_fcp_cmnd()
870 unsigned long old_req_id = (unsigned long) scmnd->host_scribble; in zfcp_fsf_abort_fcp_cmnd()
2040 struct scsi_cmnd *scmnd = req->data; in zfcp_fsf_fcp_handler_common() local
2041 struct scsi_device *sdev = scmnd->device; in zfcp_fsf_fcp_handler_common()
2319 struct zfcp_fsf_req *zfcp_fsf_fcp_task_mgmt(struct scsi_cmnd *scmnd, in zfcp_fsf_fcp_task_mgmt() argument
2324 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(scmnd->device); in zfcp_fsf_fcp_task_mgmt()
2344 req->data = scmnd; in zfcp_fsf_fcp_task_mgmt()
2355 zfcp_fc_scsi_to_fcp(fcp_cmnd, scmnd, tm_flags); in zfcp_fsf_fcp_task_mgmt()