Lines Matching refs:xprt
341 ip_map_cached_get(struct svc_xprt *xprt) in ip_map_cached_get() argument
346 if (test_bit(XPT_CACHE_AUTH, &xprt->xpt_flags)) { in ip_map_cached_get()
347 spin_lock(&xprt->xpt_lock); in ip_map_cached_get()
348 ipm = xprt->xpt_auth_cache; in ip_map_cached_get()
356 sn = net_generic(xprt->xpt_net, sunrpc_net_id); in ip_map_cached_get()
357 xprt->xpt_auth_cache = NULL; in ip_map_cached_get()
358 spin_unlock(&xprt->xpt_lock); in ip_map_cached_get()
364 spin_unlock(&xprt->xpt_lock); in ip_map_cached_get()
370 ip_map_cached_put(struct svc_xprt *xprt, struct ip_map *ipm) in ip_map_cached_put() argument
372 if (test_bit(XPT_CACHE_AUTH, &xprt->xpt_flags)) { in ip_map_cached_put()
373 spin_lock(&xprt->xpt_lock); in ip_map_cached_put()
374 if (xprt->xpt_auth_cache == NULL) { in ip_map_cached_put()
376 xprt->xpt_auth_cache = ipm; in ip_map_cached_put()
379 spin_unlock(&xprt->xpt_lock); in ip_map_cached_put()
384 sn = net_generic(xprt->xpt_net, sunrpc_net_id); in ip_map_cached_put()
664 struct svc_xprt *xprt = rqstp->rq_xprt; in svcauth_unix_set_client() local
665 struct net *net = xprt->xpt_net; in svcauth_unix_set_client()
685 ipm = ip_map_cached_get(xprt); in svcauth_unix_set_client()
705 ip_map_cached_put(xprt, ipm); in svcauth_unix_set_client()