Lines Matching defs:error
16 * convert an AFS abort code to a Linux error number
26 /* VICE "special error" codes; 101 - 111 */
69 /* Unified AFS error table */
113 * Select the error to report from a set of errors.
115 void afs_prioritise_error(struct afs_error *e, int error, u32 abort_code)
117 switch (error) {
121 if (e->error == -ETIMEDOUT ||
122 e->error == -ETIME)
127 if (e->error == -ENOMEM ||
128 e->error == -ENONET)
133 if (e->error == -ERFKILL)
137 if (e->error == -EADDRNOTAVAIL)
141 if (e->error == -ENETUNREACH)
145 if (e->error == -EHOSTUNREACH)
149 if (e->error == -EHOSTDOWN)
153 if (e->error == -ECONNREFUSED)
157 if (e->error == -ECONNRESET)
163 e->error = error;
168 e->error = afs_abort_to_error(abort_code);