Lines Matching refs:xprt
337 ip_map_cached_get(struct svc_xprt *xprt) in ip_map_cached_get() argument
342 if (test_bit(XPT_CACHE_AUTH, &xprt->xpt_flags)) { in ip_map_cached_get()
343 spin_lock(&xprt->xpt_lock); in ip_map_cached_get()
344 ipm = xprt->xpt_auth_cache; in ip_map_cached_get()
346 sn = net_generic(xprt->xpt_net, sunrpc_net_id); in ip_map_cached_get()
353 xprt->xpt_auth_cache = NULL; in ip_map_cached_get()
354 spin_unlock(&xprt->xpt_lock); in ip_map_cached_get()
360 spin_unlock(&xprt->xpt_lock); in ip_map_cached_get()
366 ip_map_cached_put(struct svc_xprt *xprt, struct ip_map *ipm) in ip_map_cached_put() argument
368 if (test_bit(XPT_CACHE_AUTH, &xprt->xpt_flags)) { in ip_map_cached_put()
369 spin_lock(&xprt->xpt_lock); in ip_map_cached_put()
370 if (xprt->xpt_auth_cache == NULL) { in ip_map_cached_put()
372 xprt->xpt_auth_cache = ipm; in ip_map_cached_put()
375 spin_unlock(&xprt->xpt_lock); in ip_map_cached_put()
380 sn = net_generic(xprt->xpt_net, sunrpc_net_id); in ip_map_cached_put()
666 struct svc_xprt *xprt = rqstp->rq_xprt; in svcauth_unix_set_client() local
667 struct net *net = xprt->xpt_net; in svcauth_unix_set_client()
688 ipm = ip_map_cached_get(xprt); in svcauth_unix_set_client()
708 ip_map_cached_put(xprt, ipm); in svcauth_unix_set_client()