Home
last modified time | relevance | path

Searched refs:sn (Results 1 – 22 of 22) sorted by relevance

/net/sunrpc/auth_gss/
Dgss_rpc_upcall.c136 void init_gssp_clnt(struct sunrpc_net *sn) in init_gssp_clnt() argument
138 mutex_init(&sn->gssp_lock); in init_gssp_clnt()
139 sn->gssp_clnt = NULL; in init_gssp_clnt()
144 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in set_gssp_clnt() local
148 mutex_lock(&sn->gssp_lock); in set_gssp_clnt()
151 if (sn->gssp_clnt) in set_gssp_clnt()
152 rpc_shutdown_client(sn->gssp_clnt); in set_gssp_clnt()
153 sn->gssp_clnt = clnt; in set_gssp_clnt()
155 mutex_unlock(&sn->gssp_lock); in set_gssp_clnt()
159 void clear_gssp_clnt(struct sunrpc_net *sn) in clear_gssp_clnt() argument
[all …]
Dsvcauth_gss.c1110 struct sunrpc_net *sn = net_generic(SVC_NET(rqstp), sunrpc_net_id); in svcauth_gss_legacy_init() local
1119 rsip = rsi_lookup(sn->rsi_cache, &rsikey); in svcauth_gss_legacy_init()
1123 if (cache_check(sn->rsi_cache, &rsip->h, &rqstp->rq_chandle) < 0) in svcauth_gss_legacy_init()
1129 if (gss_write_init_verf(sn->rsc_cache, rqstp, in svcauth_gss_legacy_init()
1139 cache_put(&rsip->h, sn->rsi_cache); in svcauth_gss_legacy_init()
1226 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in svcauth_gss_proxy_init() local
1249 status = gss_proxy_save_rsc(sn->rsc_cache, &ud, &handle); in svcauth_gss_proxy_init()
1261 if (gss_write_init_verf(sn->rsc_cache, rqstp, in svcauth_gss_proxy_init()
1282 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in set_gss_proxy() local
1286 ret = cmpxchg(&sn->use_gss_proxy, -1, type); in set_gss_proxy()
[all …]
Dauth_gss.c276 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in get_pipe_version() local
280 if (sn->pipe_version >= 0) { in get_pipe_version()
281 atomic_inc(&sn->pipe_users); in get_pipe_version()
282 ret = sn->pipe_version; in get_pipe_version()
291 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in put_pipe_version() local
293 if (atomic_dec_and_lock(&sn->pipe_users, &pipe_version_lock)) { in put_pipe_version()
294 sn->pipe_version = -1; in put_pipe_version()
589 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in gss_create_upcall() local
608 sn->pipe_version >= 0, 15 * HZ); in gss_create_upcall()
609 if (sn->pipe_version < 0) { in gss_create_upcall()
[all …]
/net/sunrpc/
Drpcb_clnt.c167 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rpcb_get_local() local
169 spin_lock(&sn->rpcb_clnt_lock); in rpcb_get_local()
170 if (sn->rpcb_users) in rpcb_get_local()
171 sn->rpcb_users++; in rpcb_get_local()
172 cnt = sn->rpcb_users; in rpcb_get_local()
173 spin_unlock(&sn->rpcb_clnt_lock); in rpcb_get_local()
180 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rpcb_put_local() local
181 struct rpc_clnt *clnt = sn->rpcb_local_clnt; in rpcb_put_local()
182 struct rpc_clnt *clnt4 = sn->rpcb_local_clnt4; in rpcb_put_local()
185 spin_lock(&sn->rpcb_clnt_lock); in rpcb_put_local()
[all …]
Dsvcauth_unix.c296 struct sunrpc_net *sn; in ip_map_lookup() local
298 sn = net_generic(net, sunrpc_net_id); in ip_map_lookup()
299 return __ip_map_lookup(sn->ip_map_cache, class, addr); in ip_map_lookup()
325 struct sunrpc_net *sn; in ip_map_update() local
327 sn = net_generic(net, sunrpc_net_id); in ip_map_update()
328 return __ip_map_update(sn->ip_map_cache, ipm, udom, expiry); in ip_map_update()
333 struct sunrpc_net *sn; in svcauth_unix_purge() local
335 sn = net_generic(net, sunrpc_net_id); in svcauth_unix_purge()
336 cache_purge(sn->ip_map_cache); in svcauth_unix_purge()
344 struct sunrpc_net *sn; in ip_map_cached_get() local
[all …]
Dstats.c246 struct sunrpc_net *sn; in do_register() local
249 sn = net_generic(net, sunrpc_net_id); in do_register()
250 return proc_create_data(name, 0, sn->proc_net_rpc, fops, data); in do_register()
263 struct sunrpc_net *sn; in rpc_proc_unregister() local
265 sn = net_generic(net, sunrpc_net_id); in rpc_proc_unregister()
266 remove_proc_entry(name, sn->proc_net_rpc); in rpc_proc_unregister()
280 struct sunrpc_net *sn; in svc_proc_unregister() local
282 sn = net_generic(net, sunrpc_net_id); in svc_proc_unregister()
283 remove_proc_entry(name, sn->proc_net_rpc); in svc_proc_unregister()
289 struct sunrpc_net *sn; in rpc_proc_init() local
[all …]
Drpc_pipe.c942 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rpc_add_pipe_dir_object() local
944 mutex_lock(&sn->pipefs_sb_lock); in rpc_add_pipe_dir_object()
946 mutex_unlock(&sn->pipefs_sb_lock); in rpc_add_pipe_dir_object()
965 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rpc_remove_pipe_dir_object() local
967 mutex_lock(&sn->pipefs_sb_lock); in rpc_remove_pipe_dir_object()
969 mutex_unlock(&sn->pipefs_sb_lock); in rpc_remove_pipe_dir_object()
990 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rpc_find_or_alloc_pipe_dir_object() local
993 mutex_lock(&sn->pipefs_sb_lock); in rpc_find_or_alloc_pipe_dir_object()
1004 mutex_unlock(&sn->pipefs_sb_lock); in rpc_find_or_alloc_pipe_dir_object()
1216 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rpc_pipefs_init_net() local
[all …]
Dsunrpc_syms.c33 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in sunrpc_init_net() local
51 INIT_LIST_HEAD(&sn->all_clients); in sunrpc_init_net()
52 spin_lock_init(&sn->rpc_client_lock); in sunrpc_init_net()
53 spin_lock_init(&sn->rpcb_clnt_lock); in sunrpc_init_net()
Dclnt.c86 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rpc_register_client() local
88 spin_lock(&sn->rpc_client_lock); in rpc_register_client()
89 list_add(&clnt->cl_clients, &sn->all_clients); in rpc_register_client()
90 spin_unlock(&sn->rpc_client_lock); in rpc_register_client()
96 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rpc_unregister_client() local
98 spin_lock(&sn->rpc_client_lock); in rpc_unregister_client()
100 spin_unlock(&sn->rpc_client_lock); in rpc_unregister_client()
223 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rpc_get_client_for_event() local
226 spin_lock(&sn->rpc_client_lock); in rpc_get_client_for_event()
227 list_for_each_entry(clnt, &sn->all_clients, cl_clients) { in rpc_get_client_for_event()
[all …]
Dcache.c1609 struct sunrpc_net *sn; in remove_cache_proc_entries() local
1620 sn = net_generic(net, sunrpc_net_id); in remove_cache_proc_entries()
1621 remove_proc_entry(cd->name, sn->proc_net_rpc); in remove_cache_proc_entries()
1628 struct sunrpc_net *sn; in create_cache_proc_entries() local
1630 sn = net_generic(net, sunrpc_net_id); in create_cache_proc_entries()
1631 cd->u.procfs.proc_ent = proc_mkdir(cd->name, sn->proc_net_rpc); in create_cache_proc_entries()
/net/netfilter/
Dnf_conntrack_proto_sctp.c609 struct sctp_net *sn = sctp_pernet(net); in sctp_timeout_nlattr_to_obj() local
614 timeouts[i] = sn->timeouts[i]; in sctp_timeout_nlattr_to_obj()
765 struct sctp_net *sn) in sctp_kmemdup_sysctl_table() argument
777 pn->ctl_table[0].data = &sn->timeouts[SCTP_CONNTRACK_CLOSED]; in sctp_kmemdup_sysctl_table()
778 pn->ctl_table[1].data = &sn->timeouts[SCTP_CONNTRACK_COOKIE_WAIT]; in sctp_kmemdup_sysctl_table()
779 pn->ctl_table[2].data = &sn->timeouts[SCTP_CONNTRACK_COOKIE_ECHOED]; in sctp_kmemdup_sysctl_table()
780 pn->ctl_table[3].data = &sn->timeouts[SCTP_CONNTRACK_ESTABLISHED]; in sctp_kmemdup_sysctl_table()
781 pn->ctl_table[4].data = &sn->timeouts[SCTP_CONNTRACK_SHUTDOWN_SENT]; in sctp_kmemdup_sysctl_table()
782 pn->ctl_table[5].data = &sn->timeouts[SCTP_CONNTRACK_SHUTDOWN_RECD]; in sctp_kmemdup_sysctl_table()
783 pn->ctl_table[6].data = &sn->timeouts[SCTP_CONNTRACK_SHUTDOWN_ACK_SENT]; in sctp_kmemdup_sysctl_table()
[all …]
/net/mac80211/
Dmesh_hwmp.c431 if (SN_GT(mpath->sn, orig_sn) || in hwmp_route_info_get()
432 (mpath->sn == orig_sn && in hwmp_route_info_get()
441 newer_sn = have_sn && SN_GT(orig_sn, mpath->sn); in hwmp_route_info_get()
443 (SN_DELTA(orig_sn, mpath->sn) > in hwmp_route_info_get()
471 mpath->sn = orig_sn; in hwmp_route_info_get()
556 if (SN_GT(target_sn, ifmsh->sn)) in hwmp_preq_frame_process()
557 ifmsh->sn = target_sn; in hwmp_preq_frame_process()
562 ++ifmsh->sn; in hwmp_preq_frame_process()
565 target_sn = ifmsh->sn; in hwmp_preq_frame_process()
574 target_sn = ++ifmsh->sn; in hwmp_preq_frame_process()
[all …]
Dmesh_pathtbl.c768 ++mpath->sn; in mesh_plink_broken()
772 mpath->dst, mpath->sn, in mesh_plink_broken()
1027 mpath->sn = 0xffff; in mesh_path_fix_nexthop()
Dmesh.h113 u32 sn; member
Dieee80211_i.h641 u32 sn; member
Dcfg.c1449 pinfo->sn = mpath->sn; in mpath_set_pinfo()
/net/rose/
Drose_route.c373 struct rose_neigh *sn; in rose_add_loopback_neigh() local
378 sn = rose_loopback_neigh; in rose_add_loopback_neigh()
380 sn->callsign = null_ax25_address; in rose_add_loopback_neigh()
381 sn->digipeat = NULL; in rose_add_loopback_neigh()
382 sn->ax25 = NULL; in rose_add_loopback_neigh()
383 sn->dev = NULL; in rose_add_loopback_neigh()
384 sn->count = 0; in rose_add_loopback_neigh()
385 sn->use = 0; in rose_add_loopback_neigh()
386 sn->dce_mode = 1; in rose_add_loopback_neigh()
387 sn->loopback = 1; in rose_add_loopback_neigh()
[all …]
/net/nfc/
Dllcp_core.c340 u8 *sn, size_t sn_len) in nfc_llcp_sock_from_sn() argument
345 pr_debug("sn %zd %p\n", sn_len, sn); in nfc_llcp_sock_from_sn()
347 if (sn == NULL || sn_len == 0) in nfc_llcp_sock_from_sn()
374 if (memcmp(sn, tmp_sock->service_name, sn_len) == 0) { in nfc_llcp_sock_from_sn()
817 u8 *sn, size_t sn_len) in nfc_llcp_sock_get_sn() argument
821 llcp_sock = nfc_llcp_sock_from_sn(local, sn, sn_len); in nfc_llcp_sock_get_sn()
909 u8 *sn; in nfc_llcp_recv_connect() local
912 sn = nfc_llcp_connect_sn(skb, &sn_len); in nfc_llcp_recv_connect()
913 if (sn == NULL) { in nfc_llcp_recv_connect()
920 sock = nfc_llcp_sock_get_sn(local, sn, sn_len); in nfc_llcp_recv_connect()
/net/ipv6/
Dip6_fib.c1002 struct fib6_node *sn; in fib6_add() local
1029 sn = fib6_add_1(sfn, &rt->rt6i_src.addr, in fib6_add()
1034 if (IS_ERR(sn)) { in fib6_add()
1040 err = PTR_ERR(sn); in fib6_add()
1048 sn = fib6_add_1(fn->subtree, &rt->rt6i_src.addr, in fib6_add()
1053 if (IS_ERR(sn)) { in fib6_add()
1054 err = PTR_ERR(sn); in fib6_add()
1063 fn = sn; in fib6_add()
/net/mac802154/
Dllsec.c49 struct ieee802154_llsec_seclevel *sl, *sn; in mac802154_llsec_destroy() local
53 list_for_each_entry_safe(sl, sn, &sec->table.security_levels, list) { in mac802154_llsec_destroy()
/net/wireless/
Dtrace.h893 __field(u32, sn)
906 __entry->sn = pinfo->sn;
917 __entry->filled, __entry->frame_qlen, __entry->sn,
Dnl80211.c4648 nla_put_u32(msg, NL80211_MPATH_INFO_SN, pinfo->sn)) || in nl80211_send_mpath()