Lines Matching defs:sshdr
189 struct scsi_sense_hdr sshdr;
214 scsi_normalize_sense((char *)sense, sizeof(*sense), &sshdr);
218 switch (sshdr.sense_key) {
228 if (sshdr.asc == 0x04 &&
229 sshdr.ascq == 0x01) {
246 scsi_print_sense_hdr("sr", &sshdr);
252 if (sshdr.asc == 0x20 &&
253 sshdr.ascq == 0x00)
258 scsi_print_sense_hdr("sr", &sshdr);
264 scsi_print_sense_hdr("sr", &sshdr);
304 struct scsi_sense_hdr sshdr;
311 if (!scsi_test_unit_ready(cd->device, SR_TIMEOUT, MAX_RETRIES, &sshdr))
315 if (scsi_sense_valid(&sshdr) && sshdr.sense_key == NOT_READY
316 && sshdr.asc == 0x04 && sshdr.ascq == 0x01)
333 if (scsi_sense_valid(&sshdr) && sshdr.sense_key == NOT_READY
334 && sshdr.asc == 0x04 && sshdr.ascq == 0x02)
340 if (sshdr.sense_key == NOT_READY && sshdr.asc == 0x04)
348 if (scsi_sense_valid(&sshdr) &&
350 sshdr.asc == 0x3a)