Lines Matching refs:h

64 	struct cache_head h;  member
80 struct ent *new = container_of(cnew, struct ent, h); in ent_init()
81 struct ent *itm = container_of(citm, struct ent, h); in ent_init()
93 struct ent *map = container_of(ref, struct ent, h.ref); in ent_put()
102 return &e->h; in ent_alloc()
127 idtoname_upcall(struct cache_detail *cd, struct cache_head *h) in idtoname_upcall() argument
129 return sunrpc_cache_pipe_upcall_timeout(cd, h); in idtoname_upcall()
136 struct ent *ent = container_of(ch, struct ent, h); in idtoname_request()
150 struct ent *a = container_of(ca, struct ent, h); in idtoname_match()
151 struct ent *b = container_of(cb, struct ent, h); in idtoname_match()
158 idtoname_show(struct seq_file *m, struct cache_detail *cd, struct cache_head *h) in idtoname_show() argument
162 if (h == NULL) { in idtoname_show()
166 ent = container_of(h, struct ent, h); in idtoname_show()
170 if (test_bit(CACHE_VALID, &h->flags)) in idtoname_show()
243 error = get_expiry(&buf, &ent.h.expiry_time); in idtoname_parse()
258 set_bit(CACHE_NEGATIVE, &ent.h.flags); in idtoname_parse()
266 cache_put(&res->h, cd); in idtoname_parse()
276 struct cache_head *ch = sunrpc_cache_lookup_rcu(cd, &item->h, in idtoname_lookup()
279 return container_of(ch, struct ent, h); in idtoname_lookup()
287 struct cache_head *ch = sunrpc_cache_update(cd, &new->h, &old->h, in idtoname_update()
290 return container_of(ch, struct ent, h); in idtoname_update()
307 nametoid_upcall(struct cache_detail *cd, struct cache_head *h) in nametoid_upcall() argument
309 return sunrpc_cache_pipe_upcall_timeout(cd, h); in nametoid_upcall()
316 struct ent *ent = container_of(ch, struct ent, h); in nametoid_request()
328 struct ent *a = container_of(ca, struct ent, h); in nametoid_match()
329 struct ent *b = container_of(cb, struct ent, h); in nametoid_match()
336 nametoid_show(struct seq_file *m, struct cache_detail *cd, struct cache_head *h) in nametoid_show() argument
340 if (h == NULL) { in nametoid_show()
344 ent = container_of(h, struct ent, h); in nametoid_show()
348 if (test_bit(CACHE_VALID, &h->flags)) in nametoid_show()
411 error = get_expiry(&buf, &ent.h.expiry_time); in nametoid_parse()
420 set_bit(CACHE_NEGATIVE, &ent.h.flags); in nametoid_parse()
430 cache_put(&res->h, cd); in nametoid_parse()
441 struct cache_head *ch = sunrpc_cache_lookup_rcu(cd, &item->h, in nametoid_lookup()
444 return container_of(ch, struct ent, h); in nametoid_lookup()
452 struct cache_head *ch = sunrpc_cache_update(cd, &new->h, &old->h, in nametoid_update()
455 return container_of(ch, struct ent, h); in nametoid_update()
517 ret = cache_check(detail, &(*item)->h, &rqstp->rq_chandle); in idmap_lookup()
524 cache_put(&(*item)->h, detail); in idmap_lookup()
559 cache_put(&item->h, nn->nametoid_cache); in idmap_name_to_id()
605 cache_put(&item->h, nn->idtoname_cache); in idmap_id_to_name()