Lines Matching refs:errno
124 int errno; member
132 .errno = EBADSLT, /* Invalid element address */
137 .errno = EBADE, /* Import or export element accessed */
142 .errno = EXFULL, /* Medium destination element full */
147 .errno = EBADE, /* Medium source element empty */
152 .errno = EBADRQC, /* Invalid command operation code */
162 int i,errno = 0; in ch_find_errno() local
167 for (i = 0; ch_err[i].errno != 0; i++) { in ch_find_errno()
171 errno = -ch_err[i].errno; in ch_find_errno()
176 if (errno == 0) in ch_find_errno()
177 errno = -EIO; in ch_find_errno()
178 return errno; in ch_find_errno()
186 int errno, retries = 0, timeout, result; in ch_do_scsi() local
193 errno = 0; in ch_do_scsi()
207 errno = ch_find_errno(&sshdr); in ch_do_scsi()
217 return errno; in ch_do_scsi()