Lines Matching defs:sshdr
189 struct scsi_sense_hdr local_sshdr, *sshdr = &local_sshdr;
194 if (cgc->sshdr)
195 sshdr = cgc->sshdr;
204 cgc->buffer, cgc->buflen, NULL, sshdr,
209 switch (sshdr->sense_key) {
220 if (sshdr->asc == 0x04 &&
221 sshdr->ascq == 0x01) {
244 if (sshdr->asc == 0x20 &&
245 sshdr->ascq == 0x00)
287 struct scsi_sense_hdr sshdr;
294 if (!scsi_test_unit_ready(cd->device, SR_TIMEOUT, MAX_RETRIES, &sshdr))
298 if (scsi_sense_valid(&sshdr) && sshdr.sense_key == NOT_READY
299 && sshdr.asc == 0x04 && sshdr.ascq == 0x01)
316 if (scsi_sense_valid(&sshdr) && sshdr.sense_key == NOT_READY
317 && sshdr.asc == 0x04 && sshdr.ascq == 0x02)
323 if (sshdr.sense_key == NOT_READY && sshdr.asc == 0x04)
331 if (scsi_sense_valid(&sshdr) &&
333 sshdr.asc == 0x3a)