Lines Matching defs:item
274 idtoname_lookup(struct cache_detail *cd, struct ent *item)
276 struct cache_head *ch = sunrpc_cache_lookup_rcu(cd, &item->h,
277 idtoname_hash(item));
439 nametoid_lookup(struct cache_detail *cd, struct ent *item)
441 struct cache_head *ch = sunrpc_cache_lookup_rcu(cd, &item->h,
442 nametoid_hash(item));
509 struct ent *key, struct cache_detail *detail, struct ent **item)
513 *item = lookup_fn(detail, key);
514 if (!*item)
517 ret = cache_check(detail, &(*item)->h, &rqstp->rq_chandle);
520 struct ent *prev_item = *item;
521 *item = lookup_fn(detail, key);
522 if (*item != prev_item)
524 cache_put(&(*item)->h, detail);
542 struct ent *item, key = {
553 ret = idmap_lookup(rqstp, nametoid_lookup, &key, nn->nametoid_cache, &item);
558 *id = item->id;
559 cache_put(&item->h, nn->nametoid_cache);
580 struct ent *item, key = {
589 ret = idmap_lookup(rqstp, idtoname_lookup, &key, nn->idtoname_cache, &item);
594 ret = strlen(item->name);
599 p = xdr_encode_opaque(p, item->name, ret);
600 cache_put(&item->h, nn->idtoname_cache);