Lines Matching refs:item

268 idtoname_lookup(struct cache_detail *cd, struct ent *item)  in idtoname_lookup()  argument
270 struct cache_head *ch = sunrpc_cache_lookup(cd, &item->h, in idtoname_lookup()
271 idtoname_hash(item)); in idtoname_lookup()
426 nametoid_lookup(struct cache_detail *cd, struct ent *item) in nametoid_lookup() argument
428 struct cache_head *ch = sunrpc_cache_lookup(cd, &item->h, in nametoid_lookup()
429 nametoid_hash(item)); in nametoid_lookup()
496 struct ent *key, struct cache_detail *detail, struct ent **item) in idmap_lookup() argument
500 *item = lookup_fn(detail, key); in idmap_lookup()
501 if (!*item) in idmap_lookup()
504 ret = cache_check(detail, &(*item)->h, &rqstp->rq_chandle); in idmap_lookup()
507 struct ent *prev_item = *item; in idmap_lookup()
508 *item = lookup_fn(detail, key); in idmap_lookup()
509 if (*item != prev_item) in idmap_lookup()
511 cache_put(&(*item)->h, detail); in idmap_lookup()
529 struct ent *item, key = { in idmap_name_to_id() local
540 ret = idmap_lookup(rqstp, nametoid_lookup, &key, nn->nametoid_cache, &item); in idmap_name_to_id()
545 *id = item->id; in idmap_name_to_id()
546 cache_put(&item->h, nn->nametoid_cache); in idmap_name_to_id()
567 struct ent *item, key = { in idmap_id_to_name() local
576 ret = idmap_lookup(rqstp, idtoname_lookup, &key, nn->idtoname_cache, &item); in idmap_id_to_name()
581 ret = strlen(item->name); in idmap_id_to_name()
586 p = xdr_encode_opaque(p, item->name, ret); in idmap_id_to_name()
587 cache_put(&item->h, nn->idtoname_cache); in idmap_id_to_name()