Searched refs:sc_cmd (Results 1 – 10 of 10) sorted by relevance
/Linux-v4.19/drivers/scsi/qedf/ |
D | qedf_io.c | 456 struct scsi_cmnd *sc = io_req->sc_cmd; in qedf_map_sg() 544 struct scsi_cmnd *sc = io_req->sc_cmd; in qedf_build_bd_list_from_sg() 565 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; in qedf_build_fcp_cmnd() local 571 int_to_scsilun(sc_cmd->device->lun, in qedf_build_fcp_cmnd() 584 if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) in qedf_build_fcp_cmnd() 586 else if (sc_cmd->sc_data_direction == DMA_FROM_DEVICE) in qedf_build_fcp_cmnd() 594 memcpy(fcp_cmnd->fc_cdb, sc_cmd->cmnd, sc_cmd->cmd_len); in qedf_build_fcp_cmnd() 605 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; in qedf_init_task() local 627 if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) { in qedf_init_task() 657 scsi_bufflen(io_req->sc_cmd); in qedf_init_task() [all …]
|
D | qedf_els.c | 79 els_req->sc_cmd = NULL; in qedf_initiate_els() 155 struct scsi_cmnd *sc_cmd; in qedf_process_els_compl() local 167 sc_cmd = els_req->sc_cmd; in qedf_process_els_compl() 723 if (!orig_io_req->sc_cmd) { in qedf_requeue_io_req() 736 new_io_req->sc_cmd = orig_io_req->sc_cmd; in qedf_requeue_io_req() 744 orig_io_req->sc_cmd = NULL; in qedf_requeue_io_req() 790 struct scsi_cmnd *sc_cmd; in qedf_rec_compl() local 866 sc_cmd = orig_io_req->sc_cmd; in qedf_rec_compl() 867 if (!sc_cmd) { in qedf_rec_compl() 874 if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) { in qedf_rec_compl()
|
D | qedf.h | 107 struct scsi_cmnd *sc_cmd; member 451 struct scsi_cmnd *sc_cmd); 487 extern int qedf_initiate_tmf(struct scsi_cmnd *sc_cmd, u8 tm_flags);
|
D | qedf_main.c | 615 static int qedf_eh_abort(struct scsi_cmnd *sc_cmd) in qedf_eh_abort() argument 617 struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); in qedf_eh_abort() 631 lport = shost_priv(sc_cmd->device->host); in qedf_eh_abort() 641 io_req = (struct qedf_ioreq *)sc_cmd->SCp.ptr; in qedf_eh_abort() 649 "fp_idx=%d.\n", sc_cmd, io_req->xid, io_req->fp_idx); in qedf_eh_abort() 691 static int qedf_eh_target_reset(struct scsi_cmnd *sc_cmd) in qedf_eh_target_reset() argument 694 return qedf_initiate_tmf(sc_cmd, FCP_TMF_TGT_RESET); in qedf_eh_target_reset() 697 static int qedf_eh_device_reset(struct scsi_cmnd *sc_cmd) in qedf_eh_device_reset() argument 700 return qedf_initiate_tmf(sc_cmd, FCP_TMF_LUN_RESET); in qedf_eh_device_reset() 739 static int qedf_eh_host_reset(struct scsi_cmnd *sc_cmd) in qedf_eh_host_reset() argument [all …]
|
/Linux-v4.19/drivers/scsi/bnx2fc/ |
D | bnx2fc_io.c | 165 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; in bnx2fc_scsi_done() local 182 io_req->sc_cmd = NULL; in bnx2fc_scsi_done() 185 if (!sc_cmd) { in bnx2fc_scsi_done() 191 if (!sc_cmd->device) { in bnx2fc_scsi_done() 195 if (!sc_cmd->device->host) { in bnx2fc_scsi_done() 201 sc_cmd->result = err_code << 16; in bnx2fc_scsi_done() 204 sc_cmd, host_byte(sc_cmd->result), sc_cmd->retries, in bnx2fc_scsi_done() 205 sc_cmd->allowed); in bnx2fc_scsi_done() 206 scsi_set_resid(sc_cmd, scsi_bufflen(sc_cmd)); in bnx2fc_scsi_done() 207 sc_cmd->SCp.ptr = NULL; in bnx2fc_scsi_done() [all …]
|
D | bnx2fc.h | 430 struct scsi_cmnd *sc_cmd; member 495 int bnx2fc_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *sc_cmd); 541 int bnx2fc_eh_abort(struct scsi_cmnd *sc_cmd); 542 int bnx2fc_eh_target_reset(struct scsi_cmnd *sc_cmd); 543 int bnx2fc_eh_device_reset(struct scsi_cmnd *sc_cmd);
|
D | bnx2fc_els.c | 385 struct scsi_cmnd *sc_cmd; in bnx2fc_rec_compl() local 484 new_io_req->sc_cmd = orig_io_req->sc_cmd; in bnx2fc_rec_compl() 516 sc_cmd = orig_io_req->sc_cmd; in bnx2fc_rec_compl() 517 if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) { in bnx2fc_rec_compl() 711 els_req->sc_cmd = NULL; in bnx2fc_initiate_els()
|
D | bnx2fc_hwi.c | 1466 struct scsi_cmnd *sc_cmd = orig_io_req->sc_cmd; in bnx2fc_init_seq_cleanup_task() local 1485 if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) in bnx2fc_init_seq_cleanup_task() 1689 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; in bnx2fc_init_task() local 1706 if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) in bnx2fc_init_task()
|
/Linux-v4.19/drivers/scsi/libfc/ |
D | fc_fcp.c | 1080 struct scsi_cmnd *sc_cmd; in fc_fcp_cleanup_each_cmd() local 1086 sc_cmd = fsp->cmd; in fc_fcp_cleanup_each_cmd() 1087 if (id != -1 && scmd_id(sc_cmd) != id) in fc_fcp_cleanup_each_cmd() 1090 if (lun != -1 && sc_cmd->device->lun != lun) in fc_fcp_cleanup_each_cmd() 1870 int fc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *sc_cmd) in fc_queuecommand() argument 1873 struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); in fc_queuecommand() 1882 sc_cmd->result = rval; in fc_queuecommand() 1883 sc_cmd->scsi_done(sc_cmd); in fc_queuecommand() 1892 sc_cmd->result = DID_IMM_RETRY << 16; in fc_queuecommand() 1893 sc_cmd->scsi_done(sc_cmd); in fc_queuecommand() [all …]
|
/Linux-v4.19/drivers/scsi/qedi/ |
D | qedi_fw.c | 580 struct scsi_cmnd *sc_cmd; in qedi_scsi_completion() local 599 sc_cmd = cmd->scsi_cmd; in qedi_scsi_completion() 601 if (!sc_cmd) { in qedi_scsi_completion() 606 if (!sc_cmd->SCp.ptr) { in qedi_scsi_completion() 612 if (!sc_cmd->request) { in qedi_scsi_completion() 615 sc_cmd); in qedi_scsi_completion() 619 if (!sc_cmd->request->special) { in qedi_scsi_completion() 622 sc_cmd); in qedi_scsi_completion() 626 if (!sc_cmd->request->q) { in qedi_scsi_completion() 629 sc_cmd); in qedi_scsi_completion() [all …]
|