Home
last modified time | relevance | path

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

/drivers/scsi/
Dstorvsc_drv.c928 struct scsi_cmnd *scmnd, in storvsc_handle_error() argument
951 switch (scmnd->cmnd[0]) { in storvsc_handle_error()
954 set_host_byte(scmnd, DID_PASSTHROUGH); in storvsc_handle_error()
964 set_host_byte(scmnd, DID_ERROR); in storvsc_handle_error()
968 set_host_byte(scmnd, DID_NO_CONNECT); in storvsc_handle_error()
980 set_host_byte(scmnd, DID_REQUEUE); in storvsc_handle_error()
993 set_host_byte(scmnd, DID_TARGET_FAILURE); in storvsc_handle_error()
1008 struct scsi_cmnd *scmnd = cmd_request->cmd; in storvsc_command_completion() local
1021 scmnd->result = vm_srb->scsi_status; in storvsc_command_completion()
1023 if (scmnd->result) { in storvsc_command_completion()
[all …]
Dvirtio_scsi.c746 static enum blk_eh_timer_return virtscsi_eh_timed_out(struct scsi_cmnd *scmnd) in virtscsi_eh_timed_out() argument
/drivers/infiniband/ulp/srp/
Dib_srp.c1074 static void srp_unmap_data(struct scsi_cmnd *scmnd, in srp_unmap_data() argument
1083 if (!scsi_sglist(scmnd) || in srp_unmap_data()
1084 (scmnd->sc_data_direction != DMA_TO_DEVICE && in srp_unmap_data()
1085 scmnd->sc_data_direction != DMA_FROM_DEVICE)) in srp_unmap_data()
1111 ib_dma_unmap_sg(ibdev, scsi_sglist(scmnd), scsi_sg_count(scmnd), in srp_unmap_data()
1112 scmnd->sc_data_direction); in srp_unmap_data()
1129 struct scsi_cmnd *scmnd) in srp_claim_req() argument
1134 if (req->scmnd && in srp_claim_req()
1135 (!sdev || req->scmnd->device == sdev) && in srp_claim_req()
1136 (!scmnd || req->scmnd == scmnd)) { 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()
166 struct scsi_cmnd *scmnd = csio_scsi_cmnd(req); in csio_scsi_fcp_cmnd() local
169 if (likely(scmnd->SCp.Message == 0)) { in csio_scsi_fcp_cmnd()
170 int_to_scsilun(scmnd->device->lun, &fcp_cmnd->fc_lun); in csio_scsi_fcp_cmnd()
174 memcpy(fcp_cmnd->fc_cdb, scmnd->cmnd, 16); in csio_scsi_fcp_cmnd()
176 fcp_cmnd->fc_dl = cpu_to_be32(scsi_bufflen(scmnd)); in csio_scsi_fcp_cmnd()
187 int_to_scsilun(scmnd->device->lun, &fcp_cmnd->fc_lun); in csio_scsi_fcp_cmnd()
188 fcp_cmnd->fc_tm_flags = (uint8_t)scmnd->SCp.Message; in csio_scsi_fcp_cmnd()
[all …]
/drivers/s390/scsi/
Dzfcp_dbf.h411 void zfcp_dbf_scsi_devreset(char *tag, struct scsi_cmnd *scmnd, u8 flag, in zfcp_dbf_scsi_devreset() argument
422 _zfcp_dbf_scsi(tmp_tag, 1, scmnd, fsf_req); in zfcp_dbf_scsi_devreset()
430 static inline void zfcp_dbf_scsi_nullcmnd(struct scsi_cmnd *scmnd, in zfcp_dbf_scsi_nullcmnd() argument
433 _zfcp_dbf_scsi("scfc__1", 3, scmnd, fsf_req); in zfcp_dbf_scsi_nullcmnd()
Dzfcp_fsf.c884 struct zfcp_fsf_req *zfcp_fsf_abort_fcp_cmnd(struct scsi_cmnd *scmnd) in zfcp_fsf_abort_fcp_cmnd() argument
887 struct scsi_device *sdev = scmnd->device; in zfcp_fsf_abort_fcp_cmnd()
890 unsigned long old_req_id = (unsigned long) scmnd->host_scribble; in zfcp_fsf_abort_fcp_cmnd()
2051 struct scsi_cmnd *scmnd = req->data; in zfcp_fsf_fcp_handler_common() local
2052 struct scsi_device *sdev = scmnd->device; in zfcp_fsf_fcp_handler_common()
2329 struct zfcp_fsf_req *zfcp_fsf_fcp_task_mgmt(struct scsi_cmnd *scmnd, in zfcp_fsf_fcp_task_mgmt() argument
2334 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(scmnd->device); in zfcp_fsf_fcp_task_mgmt()
2354 req->data = scmnd; in zfcp_fsf_fcp_task_mgmt()
2365 zfcp_fc_scsi_to_fcp(fcp_cmnd, scmnd, tm_flags); in zfcp_fsf_fcp_task_mgmt()
/drivers/scsi/aacraid/
Dlinit.c636 struct scsi_cmnd *scmnd = NULL; in get_num_of_incomplete_fibs() local
647 list_for_each_entry(scmnd, &sdev->cmd_list, list) { in get_num_of_incomplete_fibs()
648 switch (scmnd->SCp.phase) { in get_num_of_incomplete_fibs()