• Home
  • Raw
  • Download

Lines Matching refs:h

43 	struct svc_expkey *key = container_of(ref, struct svc_expkey, h.ref);  in expkey_put()
45 if (test_bit(CACHE_VALID, &key->h.flags) && in expkey_put()
46 !test_bit(CACHE_NEGATIVE, &key->h.flags)) in expkey_put()
53 struct cache_head *h, in expkey_request() argument
57 struct svc_expkey *ek = container_of(h, struct svc_expkey, h); in expkey_request()
118 key.h.flags = 0; in expkey_parse()
119 key.h.expiry_time = get_expiry(&mesg); in expkey_parse()
120 if (key.h.expiry_time == 0) in expkey_parse()
140 set_bit(CACHE_NEGATIVE, &key.h.flags); in expkey_parse()
159 cache_put(&ek->h, cd); in expkey_parse()
168 struct cache_head *h) in expkey_show() argument
173 if (h ==NULL) { in expkey_show()
177 ek = container_of(h, struct svc_expkey, h); in expkey_show()
182 if (test_bit(CACHE_VALID, &h->flags) && in expkey_show()
183 !test_bit(CACHE_NEGATIVE, &h->flags)) { in expkey_show()
193 struct svc_expkey *orig = container_of(a, struct svc_expkey, h); in expkey_match()
194 struct svc_expkey *new = container_of(b, struct svc_expkey, h); in expkey_match()
206 struct svc_expkey *new = container_of(cnew, struct svc_expkey, h); in expkey_init()
207 struct svc_expkey *item = container_of(citem, struct svc_expkey, h); in expkey_init()
219 struct svc_expkey *new = container_of(cnew, struct svc_expkey, h); in expkey_update()
220 struct svc_expkey *item = container_of(citem, struct svc_expkey, h); in expkey_update()
230 return &i->h; in expkey_alloc()
268 ch = sunrpc_cache_lookup(cd, &item->h, hash); in svc_expkey_lookup()
270 return container_of(ch, struct svc_expkey, h); in svc_expkey_lookup()
282 ch = sunrpc_cache_update(cd, &new->h, &old->h, hash); in svc_expkey_update()
284 return container_of(ch, struct svc_expkey, h); in svc_expkey_update()
312 struct svc_export *exp = container_of(ref, struct svc_export, h.ref); in svc_export_put()
321 struct cache_head *h, in svc_export_request() argument
325 struct svc_export *exp = container_of(h, struct svc_export, h); in svc_export_request()
554 exp.h.expiry_time = get_expiry(&mesg); in svc_export_parse()
555 if (exp.h.expiry_time == 0) in svc_export_parse()
562 set_bit(CACHE_NEGATIVE, &exp.h.flags); in svc_export_parse()
612 if (exp.h.expiry_time < seconds_since_boot()) in svc_export_parse()
659 struct cache_head *h) in svc_export_show() argument
663 if (h ==NULL) { in svc_export_show()
667 exp = container_of(h, struct svc_export, h); in svc_export_show()
672 if (test_bit(CACHE_VALID, &h->flags) && in svc_export_show()
673 !test_bit(CACHE_NEGATIVE, &h->flags)) { in svc_export_show()
692 struct svc_export *orig = container_of(a, struct svc_export, h); in svc_export_match()
693 struct svc_export *new = container_of(b, struct svc_export, h); in svc_export_match()
700 struct svc_export *new = container_of(cnew, struct svc_export, h); in svc_export_init()
701 struct svc_export *item = container_of(citem, struct svc_export, h); in svc_export_init()
717 struct svc_export *new = container_of(cnew, struct svc_export, h); in export_update()
718 struct svc_export *item = container_of(citem, struct svc_export, h); in export_update()
746 return &i->h; in svc_export_alloc()
782 ch = sunrpc_cache_lookup(exp->cd, &exp->h, hash); in svc_export_lookup()
784 return container_of(ch, struct svc_export, h); in svc_export_lookup()
795 ch = sunrpc_cache_update(old->cd, &new->h, &old->h, hash); in svc_export_update()
797 return container_of(ch, struct svc_export, h); in svc_export_update()
820 err = cache_check(cd, &ek->h, reqp); in exp_find_key()
843 err = cache_check(cd, &exp->h, reqp); in exp_get_by_name()
932 cache_put(&ek->h, nn->svc_expkey_cache); in exp_find()
1201 struct svc_export *exp = container_of(cp, struct svc_export, h); in e_show()
1211 if (cache_check(cd, &exp->h, NULL)) in e_show()