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