Lines Matching full:ipm
176 static int __ip_map_update(struct cache_detail *cd, struct ip_map *ipm, struct unix_domain *udom, t…
308 static int __ip_map_update(struct cache_detail *cd, struct ip_map *ipm, in __ip_map_update() argument
319 ch = sunrpc_cache_update(cd, &ip.h, &ipm->h, in __ip_map_update()
320 hash_str(ipm->m_class, IP_HASHBITS) ^ in __ip_map_update()
321 hash_ip6(&ipm->m_addr)); in __ip_map_update()
340 struct ip_map *ipm = NULL; in ip_map_cached_get() local
345 ipm = xprt->xpt_auth_cache; in ip_map_cached_get()
346 if (ipm != NULL) { in ip_map_cached_get()
348 if (cache_is_expired(sn->ip_map_cache, &ipm->h)) { in ip_map_cached_get()
356 cache_put(&ipm->h, sn->ip_map_cache); in ip_map_cached_get()
359 cache_get(&ipm->h); in ip_map_cached_get()
363 return ipm; in ip_map_cached_get()
367 ip_map_cached_put(struct svc_xprt *xprt, struct ip_map *ipm) in ip_map_cached_put() argument
373 xprt->xpt_auth_cache = ipm; in ip_map_cached_put()
374 ipm = NULL; in ip_map_cached_put()
378 if (ipm) { in ip_map_cached_put()
382 cache_put(&ipm->h, sn->ip_map_cache); in ip_map_cached_put()
389 struct ip_map *ipm; in svcauth_unix_info_release() local
391 ipm = xpt->xpt_auth_cache; in svcauth_unix_info_release()
392 if (ipm != NULL) { in svcauth_unix_info_release()
396 cache_put(&ipm->h, sn->ip_map_cache); in svcauth_unix_info_release()
673 struct ip_map *ipm; in svcauth_unix_set_client() local
698 ipm = ip_map_cached_get(xprt); in svcauth_unix_set_client()
699 if (ipm == NULL) in svcauth_unix_set_client()
700 ipm = __ip_map_lookup(sn->ip_map_cache, in svcauth_unix_set_client()
704 if (ipm == NULL) in svcauth_unix_set_client()
707 switch (cache_check(sn->ip_map_cache, &ipm->h, &rqstp->rq_chandle)) { in svcauth_unix_set_client()
717 rqstp->rq_client = &ipm->m_client->h; in svcauth_unix_set_client()
719 ip_map_cached_put(xprt, ipm); in svcauth_unix_set_client()