Lines Matching refs:sshdr
163 static int ch_find_errno(struct scsi_sense_hdr *sshdr) in ch_find_errno() argument
168 if (scsi_sense_valid(sshdr) && in ch_find_errno()
169 sshdr->asc != 0) { in ch_find_errno()
171 if (ch_err[i].sense == sshdr->sense_key && in ch_find_errno()
172 ch_err[i].asc == sshdr->asc && in ch_find_errno()
173 ch_err[i].ascq == sshdr->ascq) { in ch_find_errno()
190 struct scsi_sense_hdr sshdr; in ch_do_scsi() local
198 buflength, &sshdr, timeout * HZ, in ch_do_scsi()
203 scsi_print_sense_hdr(ch->device, ch->name, &sshdr); in ch_do_scsi()
204 errno = ch_find_errno(&sshdr); in ch_do_scsi()
206 switch(sshdr.sense_key) { in ch_do_scsi()