Lines Matching refs:sn
1178 struct sunrpc_net *sn = net_generic(SVC_NET(rqstp), sunrpc_net_id); in svcauth_gss_legacy_init() local
1209 rsip = rsi_lookup(sn->rsi_cache, &rsikey); in svcauth_gss_legacy_init()
1213 if (cache_check(sn->rsi_cache, &rsip->h, &rqstp->rq_chandle) < 0) in svcauth_gss_legacy_init()
1218 if (!svcauth_gss_proc_init_verf(sn->rsc_cache, rqstp, &rsip->out_handle, in svcauth_gss_legacy_init()
1230 cache_put(&rsip->h, sn->rsi_cache); in svcauth_gss_legacy_init()
1315 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in svcauth_gss_proxy_init() local
1336 status = gss_proxy_save_rsc(sn->rsc_cache, &ud, &handle); in svcauth_gss_proxy_init()
1346 if (!svcauth_gss_proc_init_verf(sn->rsc_cache, rqstp, &cli_handle, in svcauth_gss_proxy_init()
1370 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in set_gss_proxy() local
1374 ret = cmpxchg(&sn->use_gss_proxy, -1, type); in set_gss_proxy()
1382 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in use_gss_proxy() local
1385 if (sn->use_gss_proxy == -1) in use_gss_proxy()
1387 return sn->use_gss_proxy; in use_gss_proxy()
1449 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in read_gssp() local
1454 snprintf(tbuf, sizeof(tbuf), "%d\n", sn->use_gss_proxy); in read_gssp()
1475 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in create_use_gss_proxy_proc_entry() local
1476 struct proc_dir_entry **p = &sn->use_gssp_proc; in create_use_gss_proxy_proc_entry()
1478 sn->use_gss_proxy = -1; in create_use_gss_proxy_proc_entry()
1480 sn->proc_net_rpc, in create_use_gss_proxy_proc_entry()
1484 init_gssp_clnt(sn); in create_use_gss_proxy_proc_entry()
1490 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in destroy_use_gss_proxy_proc_entry() local
1492 if (sn->use_gssp_proc) { in destroy_use_gss_proxy_proc_entry()
1493 remove_proc_entry("use-gss-proxy", sn->proc_net_rpc); in destroy_use_gss_proxy_proc_entry()
1494 clear_gssp_clnt(sn); in destroy_use_gss_proxy_proc_entry()
1530 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in create_krb5_enctypes_proc_entry() local
1532 sn->gss_krb5_enctypes = in create_krb5_enctypes_proc_entry()
1534 sn->proc_net_rpc, &gss_krb5_enctypes_proc_ops, in create_krb5_enctypes_proc_entry()
1536 return sn->gss_krb5_enctypes ? 0 : -ENOMEM; in create_krb5_enctypes_proc_entry()
1541 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in destroy_krb5_enctypes_proc_entry() local
1543 if (sn->gss_krb5_enctypes) in destroy_krb5_enctypes_proc_entry()
1544 remove_proc_entry("gss_krb5_enctypes", sn->proc_net_rpc); in destroy_krb5_enctypes_proc_entry()
1645 struct sunrpc_net *sn = net_generic(SVC_NET(rqstp), sunrpc_net_id); in svcauth_gss_accept() local
1674 rsci = gss_svc_searchbyctx(sn->rsc_cache, &gc->gc_ctx); in svcauth_gss_accept()
1701 sunrpc_cache_unhash(sn->rsc_cache, &rsci->h); in svcauth_gss_accept()
1759 cache_put(&rsci->h, sn->rsc_cache); in svcauth_gss_accept()
1955 struct sunrpc_net *sn = net_generic(SVC_NET(rqstp), sunrpc_net_id); in svcauth_gss_release() local
1998 cache_put(&gsd->rsci->h, sn->rsc_cache); in svcauth_gss_release()
2032 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rsi_cache_create_net() local
2044 sn->rsi_cache = cd; in rsi_cache_create_net()
2050 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rsi_cache_destroy_net() local
2051 struct cache_detail *cd = sn->rsi_cache; in rsi_cache_destroy_net()
2053 sn->rsi_cache = NULL; in rsi_cache_destroy_net()
2061 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rsc_cache_create_net() local
2073 sn->rsc_cache = cd; in rsc_cache_create_net()
2079 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rsc_cache_destroy_net() local
2080 struct cache_detail *cd = sn->rsc_cache; in rsc_cache_destroy_net()
2082 sn->rsc_cache = NULL; in rsc_cache_destroy_net()