Lines Matching refs:h
33 struct auth_domain h; member
42 struct unix_domain *ud = container_of(dom, struct unix_domain, h); in svcauth_unix_domain_release()
56 if (new && rv != &new->h) in unix_domain_find()
57 svcauth_unix_domain_release(&new->h); in unix_domain_find()
69 kref_init(&new->h.ref); in unix_domain_find()
70 new->h.name = kstrdup(name, GFP_KERNEL); in unix_domain_find()
71 if (new->h.name == NULL) { in unix_domain_find()
75 new->h.flavour = &svcauth_unix; in unix_domain_find()
76 rv = auth_domain_lookup(name, &new->h); in unix_domain_find()
90 struct cache_head h; member
99 struct ip_map *im = container_of(item, struct ip_map,h); in ip_map_put()
103 auth_domain_put(&im->m_client->h); in ip_map_put()
113 struct ip_map *orig = container_of(corig, struct ip_map, h); in ip_map_match()
114 struct ip_map *new = container_of(cnew, struct ip_map, h); in ip_map_match()
120 struct ip_map *new = container_of(cnew, struct ip_map, h); in ip_map_init()
121 struct ip_map *item = container_of(citem, struct ip_map, h); in ip_map_init()
128 struct ip_map *new = container_of(cnew, struct ip_map, h); in update()
129 struct ip_map *item = container_of(citem, struct ip_map, h); in update()
131 kref_get(&item->m_client->h.ref); in update()
138 return &i->h; in ip_map_alloc()
144 struct cache_head *h, in ip_map_request() argument
148 struct ip_map *im = container_of(h, struct ip_map, h); in ip_map_request()
233 container_of(dom, struct unix_domain, h), in ip_map_parse()
247 struct cache_head *h) in ip_map_show() argument
253 if (h == NULL) { in ip_map_show()
257 im = container_of(h, struct ip_map, h); in ip_map_show()
261 if (test_bit(CACHE_VALID, &h->flags) && in ip_map_show()
262 !test_bit(CACHE_NEGATIVE, &h->flags)) in ip_map_show()
263 dom = im->m_client->h.name; in ip_map_show()
283 ch = sunrpc_cache_lookup(cd, &ip.h, in __ip_map_lookup()
288 return container_of(ch, struct ip_map, h); in __ip_map_lookup()
309 ip.h.flags = 0; in __ip_map_update()
311 set_bit(CACHE_NEGATIVE, &ip.h.flags); in __ip_map_update()
312 ip.h.expiry_time = expiry; in __ip_map_update()
313 ch = sunrpc_cache_update(cd, &ip.h, &ipm->h, in __ip_map_update()
351 if (cache_is_expired(sn->ip_map_cache, &ipm->h)) { in ip_map_cached_get()
359 cache_put(&ipm->h, sn->ip_map_cache); in ip_map_cached_get()
362 cache_get(&ipm->h); in ip_map_cached_get()
385 cache_put(&ipm->h, sn->ip_map_cache); in ip_map_cached_put()
399 cache_put(&ipm->h, sn->ip_map_cache); in svcauth_unix_info_release()
412 struct cache_head h; member
425 struct unix_gid *ug = container_of(item, struct unix_gid, h); in unix_gid_put()
434 struct unix_gid *orig = container_of(corig, struct unix_gid, h); in unix_gid_match()
435 struct unix_gid *new = container_of(cnew, struct unix_gid, h); in unix_gid_match()
440 struct unix_gid *new = container_of(cnew, struct unix_gid, h); in unix_gid_init()
441 struct unix_gid *item = container_of(citem, struct unix_gid, h); in unix_gid_init()
446 struct unix_gid *new = container_of(cnew, struct unix_gid, h); in unix_gid_update()
447 struct unix_gid *item = container_of(citem, struct unix_gid, h); in unix_gid_update()
456 return &g->h; in unix_gid_alloc()
462 struct cache_head *h, in unix_gid_request() argument
466 struct unix_gid *ug = container_of(h, struct unix_gid, h); in unix_gid_request()
527 ug.h.flags = 0; in unix_gid_parse()
528 ug.h.expiry_time = expiry; in unix_gid_parse()
530 &ug.h, &ugp->h, in unix_gid_parse()
548 struct cache_head *h) in unix_gid_show() argument
555 if (h == NULL) { in unix_gid_show()
559 ug = container_of(h, struct unix_gid, h); in unix_gid_show()
560 if (test_bit(CACHE_VALID, &h->flags) && in unix_gid_show()
561 !test_bit(CACHE_NEGATIVE, &h->flags)) in unix_gid_show()
622 ch = sunrpc_cache_lookup(cd, &ug.h, unix_gid_hash(uid)); in unix_gid_lookup()
624 return container_of(ch, struct unix_gid, h); in unix_gid_lookup()
640 ret = cache_check(sn->unix_gid_cache, &ug->h, &rqstp->rq_chandle); in unix_gid_find()
648 cache_put(&ug->h, sn->unix_gid_cache); in unix_gid_find()
692 switch (cache_check(sn->ip_map_cache, &ipm->h, &rqstp->rq_chandle)) { in svcauth_unix_set_client()
702 rqstp->rq_client = &ipm->m_client->h; in svcauth_unix_set_client()