Lines Matching refs:sn
1107 struct sunrpc_net *sn = net_generic(rqstp->rq_xprt->xpt_net, sunrpc_net_id); in svcauth_gss_legacy_init() local
1116 rsip = rsi_lookup(sn->rsi_cache, &rsikey); in svcauth_gss_legacy_init()
1120 if (cache_check(sn->rsi_cache, &rsip->h, &rqstp->rq_chandle) < 0) in svcauth_gss_legacy_init()
1126 if (gss_write_init_verf(sn->rsc_cache, rqstp, in svcauth_gss_legacy_init()
1136 cache_put(&rsip->h, sn->rsi_cache); in svcauth_gss_legacy_init()
1219 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in svcauth_gss_proxy_init() local
1242 status = gss_proxy_save_rsc(sn->rsc_cache, &ud, &handle); in svcauth_gss_proxy_init()
1254 if (gss_write_init_verf(sn->rsc_cache, rqstp, in svcauth_gss_proxy_init()
1275 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in set_gss_proxy() local
1279 ret = cmpxchg(&sn->use_gss_proxy, -1, type); in set_gss_proxy()
1287 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in use_gss_proxy() local
1290 if (sn->use_gss_proxy == -1) in use_gss_proxy()
1292 return sn->use_gss_proxy; in use_gss_proxy()
1329 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in read_gssp() local
1334 snprintf(tbuf, sizeof(tbuf), "%d\n", sn->use_gss_proxy); in read_gssp()
1355 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in create_use_gss_proxy_proc_entry() local
1356 struct proc_dir_entry **p = &sn->use_gssp_proc; in create_use_gss_proxy_proc_entry()
1358 sn->use_gss_proxy = -1; in create_use_gss_proxy_proc_entry()
1360 sn->proc_net_rpc, in create_use_gss_proxy_proc_entry()
1364 init_gssp_clnt(sn); in create_use_gss_proxy_proc_entry()
1370 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in destroy_use_gss_proxy_proc_entry() local
1372 if (sn->use_gssp_proc) { in destroy_use_gss_proxy_proc_entry()
1373 remove_proc_entry("use-gss-proxy", sn->proc_net_rpc); in destroy_use_gss_proxy_proc_entry()
1374 clear_gssp_clnt(sn); in destroy_use_gss_proxy_proc_entry()
1408 struct sunrpc_net *sn = net_generic(rqstp->rq_xprt->xpt_net, sunrpc_net_id); in svcauth_gss_accept() local
1462 rsci = gss_svc_searchbyctx(sn->rsc_cache, &gc->gc_ctx); in svcauth_gss_accept()
1546 cache_put(&rsci->h, sn->rsc_cache); in svcauth_gss_accept()
1696 struct sunrpc_net *sn = net_generic(rqstp->rq_xprt->xpt_net, sunrpc_net_id); in svcauth_gss_release() local
1739 cache_put(&gsd->rsci->h, sn->rsc_cache); in svcauth_gss_release()
1766 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rsi_cache_create_net() local
1778 sn->rsi_cache = cd; in rsi_cache_create_net()
1784 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rsi_cache_destroy_net() local
1785 struct cache_detail *cd = sn->rsi_cache; in rsi_cache_destroy_net()
1787 sn->rsi_cache = NULL; in rsi_cache_destroy_net()
1795 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rsc_cache_create_net() local
1807 sn->rsc_cache = cd; in rsc_cache_create_net()
1813 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rsc_cache_destroy_net() local
1814 struct cache_detail *cd = sn->rsc_cache; in rsc_cache_destroy_net()
1816 sn->rsc_cache = NULL; in rsc_cache_destroy_net()