Lines Matching refs:item

265 idtoname_lookup(struct cache_detail *cd, struct ent *item)  in idtoname_lookup()  argument
267 struct cache_head *ch = sunrpc_cache_lookup(cd, &item->h, in idtoname_lookup()
268 idtoname_hash(item)); in idtoname_lookup()
423 nametoid_lookup(struct cache_detail *cd, struct ent *item) in nametoid_lookup() argument
425 struct cache_head *ch = sunrpc_cache_lookup(cd, &item->h, in nametoid_lookup()
426 nametoid_hash(item)); in nametoid_lookup()
493 struct ent *key, struct cache_detail *detail, struct ent **item) in idmap_lookup() argument
497 *item = lookup_fn(detail, key); in idmap_lookup()
498 if (!*item) in idmap_lookup()
501 ret = cache_check(detail, &(*item)->h, &rqstp->rq_chandle); in idmap_lookup()
504 struct ent *prev_item = *item; in idmap_lookup()
505 *item = lookup_fn(detail, key); in idmap_lookup()
506 if (*item != prev_item) in idmap_lookup()
508 cache_put(&(*item)->h, detail); in idmap_lookup()
526 struct ent *item, key = { in idmap_name_to_id() local
537 ret = idmap_lookup(rqstp, nametoid_lookup, &key, nn->nametoid_cache, &item); in idmap_name_to_id()
542 *id = item->id; in idmap_name_to_id()
543 cache_put(&item->h, nn->nametoid_cache); in idmap_name_to_id()
564 struct ent *item, key = { in idmap_id_to_name() local
573 ret = idmap_lookup(rqstp, idtoname_lookup, &key, nn->idtoname_cache, &item); in idmap_id_to_name()
578 ret = strlen(item->name); in idmap_id_to_name()
583 p = xdr_encode_opaque(p, item->name, ret); in idmap_id_to_name()
584 cache_put(&item->h, nn->idtoname_cache); in idmap_id_to_name()