• Home
  • Raw
  • Download

Lines Matching refs:pn

134 l2tp_session_id_hash_2(struct l2tp_net *pn, u32 session_id)  in l2tp_session_id_hash_2()  argument
136 return &pn->l2tp_session_hlist[hash_32(session_id, L2TP_HASH_BITS_2)]; in l2tp_session_id_hash_2()
200 const struct l2tp_net *pn = l2tp_pernet(net); in l2tp_tunnel_get() local
204 list_for_each_entry_rcu(tunnel, &pn->l2tp_tunnel_list, list) { in l2tp_tunnel_get()
229 struct l2tp_net *pn = l2tp_pernet(net); in l2tp_session_get() local
231 session_list = l2tp_session_id_hash_2(pn, session_id); in l2tp_session_get()
300 struct l2tp_net *pn = l2tp_pernet(net); in l2tp_session_get_by_ifname() local
306 hlist_for_each_entry_rcu(session, &pn->l2tp_session_hlist[hash], global_hlist) { in l2tp_session_get_by_ifname()
330 struct l2tp_net *pn; in l2tp_session_register() local
348 pn = l2tp_pernet(tunnel->l2tp_net); in l2tp_session_register()
352 spin_lock_bh(&pn->l2tp_session_hlist_lock); in l2tp_session_register()
369 spin_unlock_bh(&pn->l2tp_session_hlist_lock); in l2tp_session_register()
385 spin_unlock_bh(&pn->l2tp_session_hlist_lock); in l2tp_session_register()
398 struct l2tp_net *pn = l2tp_pernet(net); in l2tp_tunnel_find() local
401 list_for_each_entry_rcu(tunnel, &pn->l2tp_tunnel_list, list) { in l2tp_tunnel_find()
415 struct l2tp_net *pn = l2tp_pernet(net); in l2tp_tunnel_find_nth() local
420 list_for_each_entry_rcu(tunnel, &pn->l2tp_tunnel_list, list) { in l2tp_tunnel_find_nth()
1257 struct l2tp_net *pn; in l2tp_tunnel_destruct() local
1282 pn = l2tp_pernet(tunnel->l2tp_net); in l2tp_tunnel_destruct()
1283 spin_lock_bh(&pn->l2tp_tunnel_list_lock); in l2tp_tunnel_destruct()
1285 spin_unlock_bh(&pn->l2tp_tunnel_list_lock); in l2tp_tunnel_destruct()
1539 struct l2tp_net *pn; in l2tp_tunnel_create() local
1625 pn = l2tp_pernet(net); in l2tp_tunnel_create()
1685 spin_lock_bh(&pn->l2tp_tunnel_list_lock); in l2tp_tunnel_create()
1686 list_add_rcu(&tunnel->list, &pn->l2tp_tunnel_list); in l2tp_tunnel_create()
1687 spin_unlock_bh(&pn->l2tp_tunnel_list_lock); in l2tp_tunnel_create()
1754 struct l2tp_net *pn = l2tp_pernet(tunnel->l2tp_net); in __l2tp_session_unhash() local
1755 spin_lock_bh(&pn->l2tp_session_hlist_lock); in __l2tp_session_unhash()
1757 spin_unlock_bh(&pn->l2tp_session_hlist_lock); in __l2tp_session_unhash()
1877 struct l2tp_net *pn = net_generic(net, l2tp_net_id); in l2tp_init_net() local
1880 INIT_LIST_HEAD(&pn->l2tp_tunnel_list); in l2tp_init_net()
1881 spin_lock_init(&pn->l2tp_tunnel_list_lock); in l2tp_init_net()
1884 INIT_HLIST_HEAD(&pn->l2tp_session_hlist[hash]); in l2tp_init_net()
1886 spin_lock_init(&pn->l2tp_session_hlist_lock); in l2tp_init_net()
1893 struct l2tp_net *pn = l2tp_pernet(net); in l2tp_exit_net() local
1897 list_for_each_entry_rcu(tunnel, &pn->l2tp_tunnel_list, list) { in l2tp_exit_net()