Lines Matching refs:scmd
246 * completions are honored. A scmd is determined to have
250 struct scsi_cmnd *scmd, *tmp;
255 list_for_each_entry_safe(scmd, tmp, &host->eh_cmd_q, eh_entry) {
261 qc->scsicmd == scmd)
266 /* the scmd has an associated qc */
278 scmd->retries = scmd->allowed;
279 scsi_eh_finish_cmd(scmd, &ap->eh_done_q);
358 /* finish or retry handled scmd's and clean up */
701 static void ata_eh_scsidone(struct scsi_cmnd *scmd)
709 struct scsi_cmnd *scmd = qc->scsicmd;
718 scsi_eh_finish_cmd(scmd, &ap->eh_done_q);
730 struct scsi_cmnd *scmd = qc->scsicmd;
731 scmd->retries = scmd->allowed;
742 * SCSI midlayer limits the number of retries to scmd->allowed.
743 * scmd->retries is decremented for commands which get retried
748 struct scsi_cmnd *scmd = qc->scsicmd;
749 if (!qc->err_mask && scmd->retries)
750 scmd->retries--;