Lines Matching refs:c
180 struct errormap *c; in p9_error_init() local
188 for (c = errmap; c->name; c++) { in p9_error_init()
189 c->namelen = strlen(c->name); in p9_error_init()
190 bucket = jhash(c->name, c->namelen, 0) % ERRHASHSZ; in p9_error_init()
191 INIT_HLIST_NODE(&c->list); in p9_error_init()
192 hlist_add_head(&c->list, &hash_errmap[bucket]); in p9_error_init()
209 struct errormap *c; in p9_errstr2errno() local
213 c = NULL; in p9_errstr2errno()
215 hlist_for_each_entry(c, &hash_errmap[bucket], list) { in p9_errstr2errno()
216 if (c->namelen == len && !memcmp(c->name, errstr, len)) { in p9_errstr2errno()
217 errno = c->val; in p9_errstr2errno()