Lines Matching defs:sshdr
160 static int ch_find_errno(struct scsi_sense_hdr *sshdr)
165 if (scsi_sense_valid(sshdr) &&
166 sshdr->asc != 0) {
168 if (ch_err[i].sense == sshdr->sense_key &&
169 ch_err[i].asc == sshdr->asc &&
170 ch_err[i].ascq == sshdr->ascq) {
187 struct scsi_sense_hdr sshdr;
200 buflength, &sshdr, timeout * HZ,
206 scsi_print_sense_hdr(ch->name, &sshdr);
207 errno = ch_find_errno(&sshdr);
209 switch(sshdr.sense_key) {