Lines Matching refs:xprt
345 ip_map_cached_get(struct svc_xprt *xprt) in ip_map_cached_get() argument
350 if (test_bit(XPT_CACHE_AUTH, &xprt->xpt_flags)) { in ip_map_cached_get()
351 spin_lock(&xprt->xpt_lock); in ip_map_cached_get()
352 ipm = xprt->xpt_auth_cache; in ip_map_cached_get()
354 sn = net_generic(xprt->xpt_net, sunrpc_net_id); in ip_map_cached_get()
361 xprt->xpt_auth_cache = NULL; in ip_map_cached_get()
362 spin_unlock(&xprt->xpt_lock); in ip_map_cached_get()
368 spin_unlock(&xprt->xpt_lock); in ip_map_cached_get()
374 ip_map_cached_put(struct svc_xprt *xprt, struct ip_map *ipm) in ip_map_cached_put() argument
376 if (test_bit(XPT_CACHE_AUTH, &xprt->xpt_flags)) { in ip_map_cached_put()
377 spin_lock(&xprt->xpt_lock); in ip_map_cached_put()
378 if (xprt->xpt_auth_cache == NULL) { in ip_map_cached_put()
380 xprt->xpt_auth_cache = ipm; in ip_map_cached_put()
383 spin_unlock(&xprt->xpt_lock); in ip_map_cached_put()
388 sn = net_generic(xprt->xpt_net, sunrpc_net_id); in ip_map_cached_put()
683 struct svc_xprt *xprt = rqstp->rq_xprt; in svcauth_unix_set_client() local
684 struct net *net = xprt->xpt_net; in svcauth_unix_set_client()
704 ipm = ip_map_cached_get(xprt); in svcauth_unix_set_client()
724 ip_map_cached_put(xprt, ipm); in svcauth_unix_set_client()