Lines Matching defs:scmd
562 /* finish or retry handled scmd's and clean up */
582 struct scsi_cmnd *scmd, *tmp;
600 * completions are honored. A scmd is determined to have
618 list_for_each_entry_safe(scmd, tmp, eh_work_q, eh_entry) {
623 qc->scsicmd == scmd)
628 /* the scmd has an associated qc */
640 scmd->retries = scmd->allowed;
641 scsi_eh_finish_cmd(scmd, &ap->eh_done_q);
1146 static void ata_eh_scsidone(struct scsi_cmnd *scmd)
1154 struct scsi_cmnd *scmd = qc->scsicmd;
1163 scsi_eh_finish_cmd(scmd, &ap->eh_done_q);
1175 struct scsi_cmnd *scmd = qc->scsicmd;
1176 scmd->retries = scmd->allowed;
1187 * SCSI midlayer limits the number of retries to scmd->allowed.
1188 * scmd->allowed is incremented for commands which get retried
1193 struct scsi_cmnd *scmd = qc->scsicmd;
1195 scmd->allowed++;
3926 * will not increment scmd->allowed, so upper
3944 * scmd->allowed, so upper layer is guaranteed