Lines Matching refs:sn

1236 	struct sunrpc_net *sn = net_generic(SVC_NET(rqstp), sunrpc_net_id);  in svcauth_gss_legacy_init()  local
1245 rsip = rsi_lookup(sn->rsi_cache, &rsikey); in svcauth_gss_legacy_init()
1249 if (cache_check(sn->rsi_cache, &rsip->h, &rqstp->rq_chandle) < 0) in svcauth_gss_legacy_init()
1255 if (gss_write_init_verf(sn->rsc_cache, rqstp, in svcauth_gss_legacy_init()
1265 cache_put(&rsip->h, sn->rsi_cache); in svcauth_gss_legacy_init()
1351 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in svcauth_gss_proxy_init() local
1373 status = gss_proxy_save_rsc(sn->rsc_cache, &ud, &handle); in svcauth_gss_proxy_init()
1384 if (gss_write_init_verf(sn->rsc_cache, rqstp, in svcauth_gss_proxy_init()
1406 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in set_gss_proxy() local
1410 ret = cmpxchg(&sn->use_gss_proxy, -1, type); in set_gss_proxy()
1418 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in use_gss_proxy() local
1421 if (sn->use_gss_proxy == -1) in use_gss_proxy()
1423 return sn->use_gss_proxy; in use_gss_proxy()
1460 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in read_gssp() local
1465 snprintf(tbuf, sizeof(tbuf), "%d\n", sn->use_gss_proxy); in read_gssp()
1486 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in create_use_gss_proxy_proc_entry() local
1487 struct proc_dir_entry **p = &sn->use_gssp_proc; in create_use_gss_proxy_proc_entry()
1489 sn->use_gss_proxy = -1; in create_use_gss_proxy_proc_entry()
1491 sn->proc_net_rpc, in create_use_gss_proxy_proc_entry()
1495 init_gssp_clnt(sn); in create_use_gss_proxy_proc_entry()
1501 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in destroy_use_gss_proxy_proc_entry() local
1503 if (sn->use_gssp_proc) { in destroy_use_gss_proxy_proc_entry()
1504 remove_proc_entry("use-gss-proxy", sn->proc_net_rpc); in destroy_use_gss_proxy_proc_entry()
1505 clear_gssp_clnt(sn); in destroy_use_gss_proxy_proc_entry()
1539 struct sunrpc_net *sn = net_generic(SVC_NET(rqstp), sunrpc_net_id); in svcauth_gss_accept() local
1590 rsci = gss_svc_searchbyctx(sn->rsc_cache, &gc->gc_ctx); in svcauth_gss_accept()
1613 sunrpc_cache_unhash(sn->rsc_cache, &rsci->h); in svcauth_gss_accept()
1675 cache_put(&rsci->h, sn->rsc_cache); in svcauth_gss_accept()
1831 struct sunrpc_net *sn = net_generic(SVC_NET(rqstp), sunrpc_net_id); in svcauth_gss_release() local
1877 cache_put(&gsd->rsci->h, sn->rsc_cache); in svcauth_gss_release()
1911 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rsi_cache_create_net() local
1923 sn->rsi_cache = cd; in rsi_cache_create_net()
1929 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rsi_cache_destroy_net() local
1930 struct cache_detail *cd = sn->rsi_cache; in rsi_cache_destroy_net()
1932 sn->rsi_cache = NULL; in rsi_cache_destroy_net()
1940 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rsc_cache_create_net() local
1952 sn->rsc_cache = cd; in rsc_cache_create_net()
1958 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rsc_cache_destroy_net() local
1959 struct cache_detail *cd = sn->rsc_cache; in rsc_cache_destroy_net()
1961 sn->rsc_cache = NULL; in rsc_cache_destroy_net()