Lines Matching refs:ipm
174 static int __ip_map_update(struct cache_detail *cd, struct ip_map *ipm, struct unix_domain *udom, time64_t expiry);
315 static int __ip_map_update(struct cache_detail *cd, struct ip_map *ipm,
326 ch = sunrpc_cache_update(cd, &ip.h, &ipm->h,
327 hash_str(ipm->m_class, IP_HASHBITS) ^
328 hash_ip6(&ipm->m_addr));
347 struct ip_map *ipm = NULL;
352 ipm = xprt->xpt_auth_cache;
353 if (ipm != NULL) {
355 if (cache_is_expired(sn->ip_map_cache, &ipm->h)) {
363 cache_put(&ipm->h, sn->ip_map_cache);
366 cache_get(&ipm->h);
370 return ipm;
374 ip_map_cached_put(struct svc_xprt *xprt, struct ip_map *ipm)
380 xprt->xpt_auth_cache = ipm;
381 ipm = NULL;
385 if (ipm) {
389 cache_put(&ipm->h, sn->ip_map_cache);
396 struct ip_map *ipm;
398 ipm = xpt->xpt_auth_cache;
399 if (ipm != NULL) {
403 cache_put(&ipm->h, sn->ip_map_cache);
680 struct ip_map *ipm;
704 ipm = ip_map_cached_get(xprt);
705 if (ipm == NULL)
706 ipm = __ip_map_lookup(sn->ip_map_cache, rqstp->rq_server->sv_program->pg_class,
709 if (ipm == NULL)
712 switch (cache_check(sn->ip_map_cache, &ipm->h, &rqstp->rq_chandle)) {
722 rqstp->rq_client = &ipm->m_client->h;
724 ip_map_cached_put(xprt, ipm);