Lines Matching defs:sshdr
164 static int ch_find_errno(struct scsi_sense_hdr *sshdr)
169 if (scsi_sense_valid(sshdr) &&
170 sshdr->asc != 0) {
172 if (ch_err[i].sense == sshdr->sense_key &&
173 ch_err[i].asc == sshdr->asc &&
174 ch_err[i].ascq == sshdr->ascq) {
191 struct scsi_sense_hdr sshdr;
199 buflength, &sshdr, timeout * HZ,
204 scsi_print_sense_hdr(ch->device, ch->name, &sshdr);
205 errno = ch_find_errno(&sshdr);
207 switch(sshdr.sense_key) {