Lines Matching refs:cmd
48 static struct libfc_cmd_priv *libfc_priv(struct scsi_cmnd *cmd) in libfc_priv() argument
50 return scsi_cmd_priv(cmd); in libfc_priv()
323 if (lport->tt.ddp_setup(lport, xid, scsi_sglist(fsp->cmd), in fc_fcp_ddp_setup()
324 scsi_sg_count(fsp->cmd))) in fc_fcp_ddp_setup()
474 struct scsi_cmnd *sc = fsp->cmd; in fc_fcp_recv_data()
637 sc = fsp->cmd; in fc_fcp_send_data()
900 memcpy(fsp->cmd->sense_buffer, in fc_fcp_resp()
919 (scsi_bufflen(fsp->cmd) - in fc_fcp_resp()
920 fsp->scsi_resid) < fsp->cmd->underflow) in fc_fcp_resp()
1032 if (fsp->cmd) in fc_fcp_complete_locked()
1070 sc_cmd = fsp->cmd; in fc_fcp_cleanup_each_cmd()
1135 libfc_priv(fsp->cmd)->fsp = fsp; in fc_fcp_pkt_send()
1139 int_to_scsilun(fsp->cmd->device->lun, &fsp->cdb_cmd.fc_lun); in fc_fcp_pkt_send()
1140 memcpy(fsp->cdb_cmd.fc_cdb, fsp->cmd->cmnd, fsp->cmd->cmd_len); in fc_fcp_pkt_send()
1148 libfc_priv(fsp->cmd)->fsp = NULL; in fc_fcp_pkt_send()
1570 data_dir = fsp->cmd->sc_data_direction; in fc_fcp_rec_resp()
1698 if (!fsp->cmd) in fc_fcp_recovery()
1903 fsp->cmd = sc_cmd; /* save the cmd */ in fc_queuecommand()
1978 sc_cmd = fsp->cmd; in fc_io_compl()