Lines Matching defs:ipm
182 static int ip_map_update(struct ip_map *ipm, struct unix_domain *udom, time_t expiry);
329 static int ip_map_update(struct ip_map *ipm, struct unix_domain *udom, time_t expiry)
348 &ip.h, &ipm->h,
349 hash_str(ipm->m_class, IP_HASHBITS) ^
350 hash_ip6(ipm->m_addr));
388 struct ip_map *ipm;
391 ipm = ip_map_lookup("nfsd", addr);
393 if (!ipm)
395 if (cache_check(&ip_map_cache, &ipm->h, NULL))
398 if ((ipm->m_client->addr_changes - ipm->m_add_change) >0) {
399 if (test_and_set_bit(CACHE_NEGATIVE, &ipm->h.flags) == 0)
400 auth_domain_put(&ipm->m_client->h);
403 rv = &ipm->m_client->h;
406 cache_put(&ipm->h, &ip_map_cache);
420 struct ip_map *ipm = NULL;
425 ipm = xprt->xpt_auth_cache;
426 if (ipm != NULL) {
427 if (!cache_valid(&ipm->h)) {
435 cache_put(&ipm->h, &ip_map_cache);
438 cache_get(&ipm->h);
442 return ipm;
446 ip_map_cached_put(struct svc_rqst *rqstp, struct ip_map *ipm)
454 xprt->xpt_auth_cache = ipm;
455 ipm = NULL;
459 if (ipm)
460 cache_put(&ipm->h, &ip_map_cache);
466 struct ip_map *ipm = info;
467 cache_put(&ipm->h, &ip_map_cache);
691 struct ip_map *ipm;
712 ipm = ip_map_cached_get(rqstp);
713 if (ipm == NULL)
714 ipm = ip_map_lookup(rqstp->rq_server->sv_program->pg_class,
717 if (ipm == NULL)
720 switch (cache_check(&ip_map_cache, &ipm->h, &rqstp->rq_chandle)) {
729 rqstp->rq_client = &ipm->m_client->h;
731 ip_map_cached_put(rqstp, ipm);