Lines Matching defs:sc_cmd
580 struct scsi_cmnd *sc_cmd;
599 sc_cmd = cmd->scsi_cmd;
601 if (!sc_cmd) {
602 QEDI_WARN(&qedi->dbg_ctx, "sc_cmd is NULL!\n");
606 if (!iscsi_cmd(sc_cmd)->task) {
612 if (!scsi_cmd_to_rq(sc_cmd)->q) {
614 "request->q is NULL so request is not valid, sc_cmd=%p.\n",
615 sc_cmd);
646 scsi_bufflen(sc_cmd));
647 hdr->residual_count = cpu_to_be32(scsi_bufflen(sc_cmd));
1919 struct scsi_cmnd *sc_cmd = task->sc;
1928 io_log->lun = sc_cmd->device->lun;
1929 io_log->op = sc_cmd->cmnd[0];
1930 io_log->lba[0] = sc_cmd->cmnd[2];
1931 io_log->lba[1] = sc_cmd->cmnd[3];
1932 io_log->lba[2] = sc_cmd->cmnd[4];
1933 io_log->lba[3] = sc_cmd->cmnd[5];
1934 io_log->bufflen = scsi_bufflen(sc_cmd);
1935 io_log->sg_count = scsi_sg_count(sc_cmd);
1942 io_log->result = sc_cmd->result;