Home
last modified time | relevance | path

Searched refs:sc_cmd (Results 1 – 5 of 5) sorted by relevance

/linux-4.4.14/drivers/scsi/bnx2fc/
Dbnx2fc_io.c164 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; in bnx2fc_scsi_done() local
181 io_req->sc_cmd = NULL; in bnx2fc_scsi_done()
182 if (!sc_cmd) { in bnx2fc_scsi_done()
188 sc_cmd->result = err_code << 16; in bnx2fc_scsi_done()
191 sc_cmd, host_byte(sc_cmd->result), sc_cmd->retries, in bnx2fc_scsi_done()
192 sc_cmd->allowed); in bnx2fc_scsi_done()
193 scsi_set_resid(sc_cmd, scsi_bufflen(sc_cmd)); in bnx2fc_scsi_done()
194 sc_cmd->SCp.ptr = NULL; in bnx2fc_scsi_done()
195 sc_cmd->scsi_done(sc_cmd); in bnx2fc_scsi_done()
648 static int bnx2fc_initiate_tmf(struct scsi_cmnd *sc_cmd, u8 tm_flags) in bnx2fc_initiate_tmf() argument
[all …]
Dbnx2fc.h427 struct scsi_cmnd *sc_cmd; member
492 int bnx2fc_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *sc_cmd);
538 int bnx2fc_eh_abort(struct scsi_cmnd *sc_cmd);
539 int bnx2fc_eh_host_reset(struct scsi_cmnd *sc_cmd);
540 int bnx2fc_eh_target_reset(struct scsi_cmnd *sc_cmd);
541 int bnx2fc_eh_device_reset(struct scsi_cmnd *sc_cmd);
Dbnx2fc_els.c377 struct scsi_cmnd *sc_cmd; in bnx2fc_rec_compl() local
476 new_io_req->sc_cmd = orig_io_req->sc_cmd; in bnx2fc_rec_compl()
508 sc_cmd = orig_io_req->sc_cmd; in bnx2fc_rec_compl()
509 if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) { in bnx2fc_rec_compl()
703 els_req->sc_cmd = NULL; in bnx2fc_initiate_els()
Dbnx2fc_hwi.c1464 struct scsi_cmnd *sc_cmd = orig_io_req->sc_cmd; in bnx2fc_init_seq_cleanup_task() local
1483 if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) in bnx2fc_init_seq_cleanup_task()
1687 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; in bnx2fc_init_task() local
1704 if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) in bnx2fc_init_task()
/linux-4.4.14/drivers/scsi/libfc/
Dfc_fcp.c1026 struct scsi_cmnd *sc_cmd; in fc_fcp_cleanup_each_cmd() local
1032 sc_cmd = fsp->cmd; in fc_fcp_cleanup_each_cmd()
1033 if (id != -1 && scmd_id(sc_cmd) != id) in fc_fcp_cleanup_each_cmd()
1036 if (lun != -1 && sc_cmd->device->lun != lun) in fc_fcp_cleanup_each_cmd()
1805 int fc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *sc_cmd) in fc_queuecommand() argument
1808 struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); in fc_queuecommand()
1817 sc_cmd->result = rval; in fc_queuecommand()
1818 sc_cmd->scsi_done(sc_cmd); in fc_queuecommand()
1827 sc_cmd->result = DID_IMM_RETRY << 16; in fc_queuecommand()
1828 sc_cmd->scsi_done(sc_cmd); in fc_queuecommand()
[all …]