Home
last modified time | relevance | path

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

12

/net/sunrpc/auth_gss/
Dgss_rpc_upcall.c124 void init_gssp_clnt(struct sunrpc_net *sn) in init_gssp_clnt() argument
126 mutex_init(&sn->gssp_lock); in init_gssp_clnt()
127 sn->gssp_clnt = NULL; in init_gssp_clnt()
132 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in set_gssp_clnt() local
136 mutex_lock(&sn->gssp_lock); in set_gssp_clnt()
139 if (sn->gssp_clnt) in set_gssp_clnt()
140 rpc_shutdown_client(sn->gssp_clnt); in set_gssp_clnt()
141 sn->gssp_clnt = clnt; in set_gssp_clnt()
143 mutex_unlock(&sn->gssp_lock); in set_gssp_clnt()
147 void clear_gssp_clnt(struct sunrpc_net *sn) in clear_gssp_clnt() argument
[all …]
Dsvcauth_gss.c1247 struct sunrpc_net *sn = net_generic(SVC_NET(rqstp), sunrpc_net_id); in svcauth_gss_legacy_init() local
1256 rsip = rsi_lookup(sn->rsi_cache, &rsikey); in svcauth_gss_legacy_init()
1260 if (cache_check(sn->rsi_cache, &rsip->h, &rqstp->rq_chandle) < 0) in svcauth_gss_legacy_init()
1266 if (gss_write_init_verf(sn->rsc_cache, rqstp, in svcauth_gss_legacy_init()
1276 cache_put(&rsip->h, sn->rsi_cache); in svcauth_gss_legacy_init()
1362 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in svcauth_gss_proxy_init() local
1383 status = gss_proxy_save_rsc(sn->rsc_cache, &ud, &handle); in svcauth_gss_proxy_init()
1394 if (gss_write_init_verf(sn->rsc_cache, rqstp, in svcauth_gss_proxy_init()
1416 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in set_gss_proxy() local
1420 ret = cmpxchg(&sn->use_gss_proxy, -1, type); in set_gss_proxy()
[all …]
Dauth_gss.c259 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in get_pipe_version() local
263 if (sn->pipe_version >= 0) { in get_pipe_version()
264 atomic_inc(&sn->pipe_users); in get_pipe_version()
265 ret = sn->pipe_version; in get_pipe_version()
274 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in put_pipe_version() local
276 if (atomic_dec_and_lock(&sn->pipe_users, &pipe_version_lock)) { in put_pipe_version()
277 sn->pipe_version = -1; in put_pipe_version()
628 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in gss_create_upcall() local
646 sn->pipe_version >= 0, 15 * HZ); in gss_create_upcall()
647 if (sn->pipe_version < 0) { in gss_create_upcall()
[all …]
/net/sunrpc/
Drpcb_clnt.c166 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rpcb_get_local() local
168 spin_lock(&sn->rpcb_clnt_lock); in rpcb_get_local()
169 if (sn->rpcb_users) in rpcb_get_local()
170 sn->rpcb_users++; in rpcb_get_local()
171 cnt = sn->rpcb_users; in rpcb_get_local()
172 spin_unlock(&sn->rpcb_clnt_lock); in rpcb_get_local()
179 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rpcb_put_local() local
180 struct rpc_clnt *clnt = sn->rpcb_local_clnt; in rpcb_put_local()
181 struct rpc_clnt *clnt4 = sn->rpcb_local_clnt4; in rpcb_put_local()
184 spin_lock(&sn->rpcb_clnt_lock); in rpcb_put_local()
[all …]
Drpc_pipe.c927 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rpc_add_pipe_dir_object() local
929 mutex_lock(&sn->pipefs_sb_lock); in rpc_add_pipe_dir_object()
931 mutex_unlock(&sn->pipefs_sb_lock); in rpc_add_pipe_dir_object()
950 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rpc_remove_pipe_dir_object() local
952 mutex_lock(&sn->pipefs_sb_lock); in rpc_remove_pipe_dir_object()
954 mutex_unlock(&sn->pipefs_sb_lock); in rpc_remove_pipe_dir_object()
975 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rpc_find_or_alloc_pipe_dir_object() local
978 mutex_lock(&sn->pipefs_sb_lock); in rpc_find_or_alloc_pipe_dir_object()
989 mutex_unlock(&sn->pipefs_sb_lock); in rpc_find_or_alloc_pipe_dir_object()
1201 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rpc_pipefs_init_net() local
[all …]
Dsvcauth_unix.c329 struct sunrpc_net *sn; in svcauth_unix_purge() local
331 sn = net_generic(net, sunrpc_net_id); in svcauth_unix_purge()
332 cache_purge(sn->ip_map_cache); in svcauth_unix_purge()
340 struct sunrpc_net *sn; in ip_map_cached_get() local
346 sn = net_generic(xprt->xpt_net, sunrpc_net_id); in ip_map_cached_get()
347 if (cache_is_expired(sn->ip_map_cache, &ipm->h)) { in ip_map_cached_get()
355 cache_put(&ipm->h, sn->ip_map_cache); in ip_map_cached_get()
378 struct sunrpc_net *sn; in ip_map_cached_put() local
380 sn = net_generic(xprt->xpt_net, sunrpc_net_id); in ip_map_cached_put()
381 cache_put(&ipm->h, sn->ip_map_cache); in ip_map_cached_put()
[all …]
Dstats.c285 struct sunrpc_net *sn; in do_register() local
288 sn = net_generic(net, sunrpc_net_id); in do_register()
289 return proc_create_data(name, 0, sn->proc_net_rpc, proc_ops, data); in do_register()
302 struct sunrpc_net *sn; in rpc_proc_unregister() local
304 sn = net_generic(net, sunrpc_net_id); in rpc_proc_unregister()
305 remove_proc_entry(name, sn->proc_net_rpc); in rpc_proc_unregister()
319 struct sunrpc_net *sn; in svc_proc_unregister() local
321 sn = net_generic(net, sunrpc_net_id); in svc_proc_unregister()
322 remove_proc_entry(name, sn->proc_net_rpc); in svc_proc_unregister()
328 struct sunrpc_net *sn; in rpc_proc_init() local
[all …]
Dsunrpc_syms.c36 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in sunrpc_init_net() local
54 INIT_LIST_HEAD(&sn->all_clients); in sunrpc_init_net()
55 spin_lock_init(&sn->rpc_client_lock); in sunrpc_init_net()
56 spin_lock_init(&sn->rpcb_clnt_lock); in sunrpc_init_net()
71 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in sunrpc_exit_net() local
77 WARN_ON_ONCE(!list_empty(&sn->all_clients)); in sunrpc_exit_net()
Dclnt.c85 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rpc_register_client() local
87 spin_lock(&sn->rpc_client_lock); in rpc_register_client()
88 list_add(&clnt->cl_clients, &sn->all_clients); in rpc_register_client()
89 spin_unlock(&sn->rpc_client_lock); in rpc_register_client()
95 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rpc_unregister_client() local
97 spin_lock(&sn->rpc_client_lock); in rpc_unregister_client()
99 spin_unlock(&sn->rpc_client_lock); in rpc_unregister_client()
224 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rpc_get_client_for_event() local
227 spin_lock(&sn->rpc_client_lock); in rpc_get_client_for_event()
228 list_for_each_entry(clnt, &sn->all_clients, cl_clients) { in rpc_get_client_for_event()
[all …]
Dcache.c1680 struct sunrpc_net *sn; in create_cache_proc_entries() local
1682 sn = net_generic(net, sunrpc_net_id); in create_cache_proc_entries()
1683 cd->procfs = proc_mkdir(cd->name, sn->proc_net_rpc); in create_cache_proc_entries()
/net/smc/
Dsmc_pnet.c107 struct smc_net *sn; in smc_pnet_remove_by_pnetid() local
112 sn = net_generic(net, smc_net_id); in smc_pnet_remove_by_pnetid()
113 pnettable = &sn->pnettable; in smc_pnet_remove_by_pnetid()
189 struct smc_net *sn; in smc_pnet_add_by_ndev() local
193 sn = net_generic(net, smc_net_id); in smc_pnet_add_by_ndev()
194 pnettable = &sn->pnettable; in smc_pnet_add_by_ndev()
221 struct smc_net *sn; in smc_pnet_remove_by_ndev() local
225 sn = net_generic(net, smc_net_id); in smc_pnet_remove_by_ndev()
226 pnettable = &sn->pnettable; in smc_pnet_remove_by_ndev()
479 struct smc_net *sn; in smc_pnet_enter() local
[all …]
/net/mac80211/
Dmesh_hwmp.c454 if (SN_GT(mpath->sn, orig_sn) || in hwmp_route_info_get()
455 (mpath->sn == orig_sn && in hwmp_route_info_get()
467 newer_sn = have_sn && SN_GT(orig_sn, mpath->sn); in hwmp_route_info_get()
469 (SN_DELTA(orig_sn, mpath->sn) > in hwmp_route_info_get()
499 mpath->sn = orig_sn; in hwmp_route_info_get()
596 if (SN_GT(target_sn, ifmsh->sn)) in hwmp_preq_frame_process()
597 ifmsh->sn = target_sn; in hwmp_preq_frame_process()
602 ++ifmsh->sn; in hwmp_preq_frame_process()
605 target_sn = ifmsh->sn; in hwmp_preq_frame_process()
614 target_sn = ++ifmsh->sn; in hwmp_preq_frame_process()
[all …]
Dmesh_pathtbl.c495 ++mpath->sn; in mesh_plink_broken()
499 mpath->dst, mpath->sn, in mesh_plink_broken()
744 mpath->sn = 0xffff; in mesh_path_fix_nexthop()
Dmesh.h114 u32 sn; member
Dscan.c643 u16 sn = get_random_u16(); in ieee80211_send_scan_probe_req() local
647 cpu_to_le16(IEEE80211_SN_TO_SEQ(sn)); in ieee80211_send_scan_probe_req()
/net/rose/
Drose_route.c372 struct rose_neigh *sn; in rose_add_loopback_neigh() local
377 sn = rose_loopback_neigh; in rose_add_loopback_neigh()
379 sn->callsign = null_ax25_address; in rose_add_loopback_neigh()
380 sn->digipeat = NULL; in rose_add_loopback_neigh()
381 sn->ax25 = NULL; in rose_add_loopback_neigh()
382 sn->dev = NULL; in rose_add_loopback_neigh()
383 sn->count = 0; in rose_add_loopback_neigh()
384 sn->use = 0; in rose_add_loopback_neigh()
385 sn->dce_mode = 1; in rose_add_loopback_neigh()
386 sn->loopback = 1; in rose_add_loopback_neigh()
[all …]
/net/netfilter/
Dnf_conntrack_standalone.c1017 struct nf_sctp_net *sn = nf_sctp_pernet(net); in nf_conntrack_standalone_init_sctp_sysctl() local
1019 #define XASSIGN(XNAME, sn) \ in nf_conntrack_standalone_init_sctp_sysctl() argument
1021 &(sn)->timeouts[SCTP_CONNTRACK_ ## XNAME] in nf_conntrack_standalone_init_sctp_sysctl()
1023 XASSIGN(CLOSED, sn); in nf_conntrack_standalone_init_sctp_sysctl()
1024 XASSIGN(COOKIE_WAIT, sn); in nf_conntrack_standalone_init_sctp_sysctl()
1025 XASSIGN(COOKIE_ECHOED, sn); in nf_conntrack_standalone_init_sctp_sysctl()
1026 XASSIGN(ESTABLISHED, sn); in nf_conntrack_standalone_init_sctp_sysctl()
1027 XASSIGN(SHUTDOWN_SENT, sn); in nf_conntrack_standalone_init_sctp_sysctl()
1028 XASSIGN(SHUTDOWN_RECD, sn); in nf_conntrack_standalone_init_sctp_sysctl()
1029 XASSIGN(SHUTDOWN_ACK_SENT, sn); in nf_conntrack_standalone_init_sctp_sysctl()
[all …]
Dnf_conntrack_proto_sctp.c631 struct nf_sctp_net *sn = nf_sctp_pernet(net); in sctp_timeout_nlattr_to_obj() local
635 timeouts = sn->timeouts; in sctp_timeout_nlattr_to_obj()
639 timeouts[i] = sn->timeouts[i]; in sctp_timeout_nlattr_to_obj()
684 struct nf_sctp_net *sn = nf_sctp_pernet(net); in nf_conntrack_sctp_init_net() local
688 sn->timeouts[i] = sctp_timeouts[i]; in nf_conntrack_sctp_init_net()
693 sn->timeouts[0] = sctp_timeouts[SCTP_CONNTRACK_CLOSED]; in nf_conntrack_sctp_init_net()
/net/nfc/
Dllcp_core.c360 const u8 *sn, size_t sn_len, in nfc_llcp_sock_from_sn() argument
366 pr_debug("sn %zd %p\n", sn_len, sn); in nfc_llcp_sock_from_sn()
368 if (sn == NULL || sn_len == 0) in nfc_llcp_sock_from_sn()
395 if (memcmp(sn, tmp_sock->service_name, sn_len) == 0) { in nfc_llcp_sock_from_sn()
840 const u8 *sn, size_t sn_len) in nfc_llcp_sock_get_sn() argument
842 return nfc_llcp_sock_from_sn(local, sn, sn_len, true); in nfc_llcp_sock_get_sn()
924 const u8 *sn; in nfc_llcp_recv_connect() local
927 sn = nfc_llcp_connect_sn(skb, &sn_len); in nfc_llcp_recv_connect()
928 if (sn == NULL) { in nfc_llcp_recv_connect()
935 sock = nfc_llcp_sock_get_sn(local, sn, sn_len); in nfc_llcp_recv_connect()
/net/can/
Disotp.c131 u8 sn; member
513 so->rx.sn = 1; in isotp_rcv_ff()
557 if ((cf->data[ae] & 0x0F) != so->rx.sn) { in isotp_rcv_cf()
567 so->rx.sn++; in isotp_rcv_cf()
568 so->rx.sn %= 16; in isotp_rcv_cf()
766 cf->data[ae] = N_PCI_CF | so->tx.sn++; in isotp_send_cframe()
767 so->tx.sn %= 16; in isotp_send_cframe()
825 so->tx.sn = 1; in isotp_create_fframe()
/net/ipv6/
Dip6_fib.c1407 struct fib6_node *sn; in fib6_add() local
1434 sn = fib6_add_1(info->nl_net, table, sfn, in fib6_add()
1439 if (IS_ERR(sn)) { in fib6_add()
1445 err = PTR_ERR(sn); in fib6_add()
1453 sn = fib6_add_1(info->nl_net, table, FIB6_SUBTREE(fn), in fib6_add()
1458 if (IS_ERR(sn)) { in fib6_add()
1459 err = PTR_ERR(sn); in fib6_add()
1474 fn = sn; in fib6_add()
Droute.c1147 struct fib6_node *pn, *sn; in fib6_backtrack() local
1152 sn = FIB6_SUBTREE(pn); in fib6_backtrack()
1153 if (sn && sn != fn) in fib6_backtrack()
1154 fn = fib6_node_lookup(sn, NULL, saddr); in fib6_backtrack()
/net/mac802154/
Dllsec.c43 struct ieee802154_llsec_seclevel *sl, *sn; in mac802154_llsec_destroy() local
47 list_for_each_entry_safe(sl, sn, &sec->table.security_levels, list) { in mac802154_llsec_destroy()
/net/sctp/
Dsm_make_chunk.c3818 __u32 result, __u32 sn) in sctp_make_strreset_resp() argument
3830 resp.response_seq = htonl(sn); in sctp_make_strreset_resp()
3854 __u32 result, __u32 sn, in sctp_make_strreset_tsnresp() argument
3869 tsnresp.response_seq = htonl(sn); in sctp_make_strreset_tsnresp()
/net/wireless/
Dtrace.h1047 __field(u32, sn)
1060 __entry->sn = pinfo->sn;
1071 __entry->filled, __entry->frame_qlen, __entry->sn,

12