Lines Matching refs:ipm
176 static int __ip_map_update(struct cache_detail *cd, struct ip_map *ipm, struct unix_domain *udom, time64_t expiry);
308 static int __ip_map_update(struct cache_detail *cd, struct ip_map *ipm,
319 ch = sunrpc_cache_update(cd, &ip.h, &ipm->h,
320 hash_str(ipm->m_class, IP_HASHBITS) ^
321 hash_ip6(&ipm->m_addr));
340 struct ip_map *ipm = NULL;
345 ipm = xprt->xpt_auth_cache;
346 if (ipm != NULL) {
348 if (cache_is_expired(sn->ip_map_cache, &ipm->h)) {
356 cache_put(&ipm->h, sn->ip_map_cache);
359 cache_get(&ipm->h);
363 return ipm;
367 ip_map_cached_put(struct svc_xprt *xprt, struct ip_map *ipm)
373 xprt->xpt_auth_cache = ipm;
374 ipm = NULL;
378 if (ipm) {
382 cache_put(&ipm->h, sn->ip_map_cache);
389 struct ip_map *ipm;
391 ipm = xpt->xpt_auth_cache;
392 if (ipm != NULL) {
396 cache_put(&ipm->h, sn->ip_map_cache);
673 struct ip_map *ipm;
698 ipm = ip_map_cached_get(xprt);
699 if (ipm == NULL)
700 ipm = __ip_map_lookup(sn->ip_map_cache, rqstp->rq_server->sv_program->pg_class,
703 if (ipm == NULL)
706 switch (cache_check(sn->ip_map_cache, &ipm->h, &rqstp->rq_chandle)) {
716 rqstp->rq_client = &ipm->m_client->h;
718 ip_map_cached_put(xprt, ipm);