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