• Home
  • Raw
  • Download

Lines Matching refs:item

273 idtoname_lookup(struct cache_detail *cd, struct ent *item)  in idtoname_lookup()  argument
275 struct cache_head *ch = sunrpc_cache_lookup_rcu(cd, &item->h, in idtoname_lookup()
276 idtoname_hash(item)); in idtoname_lookup()
438 nametoid_lookup(struct cache_detail *cd, struct ent *item) in nametoid_lookup() argument
440 struct cache_head *ch = sunrpc_cache_lookup_rcu(cd, &item->h, in nametoid_lookup()
441 nametoid_hash(item)); in nametoid_lookup()
508 struct ent *key, struct cache_detail *detail, struct ent **item) in idmap_lookup() argument
512 *item = lookup_fn(detail, key); in idmap_lookup()
513 if (!*item) in idmap_lookup()
516 ret = cache_check(detail, &(*item)->h, &rqstp->rq_chandle); in idmap_lookup()
519 struct ent *prev_item = *item; in idmap_lookup()
520 *item = lookup_fn(detail, key); in idmap_lookup()
521 if (*item != prev_item) in idmap_lookup()
523 cache_put(&(*item)->h, detail); in idmap_lookup()
541 struct ent *item, key = { in idmap_name_to_id() local
552 ret = idmap_lookup(rqstp, nametoid_lookup, &key, nn->nametoid_cache, &item); in idmap_name_to_id()
557 *id = item->id; in idmap_name_to_id()
558 cache_put(&item->h, nn->nametoid_cache); in idmap_name_to_id()
579 struct ent *item, key = { in idmap_id_to_name() local
588 ret = idmap_lookup(rqstp, idtoname_lookup, &key, nn->idtoname_cache, &item); in idmap_id_to_name()
593 ret = strlen(item->name); in idmap_id_to_name()
598 p = xdr_encode_opaque(p, item->name, ret); in idmap_id_to_name()
599 cache_put(&item->h, nn->idtoname_cache); in idmap_id_to_name()