| /linux/net/handshake/ |
| H A D | request.c | 144 static bool __add_pending_locked(struct handshake_net *hn, in __add_pending_locked() argument 149 hn->hn_pending++; in __add_pending_locked() 150 list_add_tail(&req->hr_list, &hn->hn_requests); in __add_pending_locked() 154 static void __remove_pending_locked(struct handshake_net *hn, in __remove_pending_locked() argument 157 hn->hn_pending--; in __remove_pending_locked() 169 static bool remove_pending(struct handshake_net *hn, struct handshake_req *req) in remove_pending() argument 173 spin_lock_bh(&hn->hn_lock); in remove_pending() 174 if (!test_bit(HANDSHAKE_F_NET_DRAINING, &hn->hn_flags) && in remove_pending() 176 __remove_pending_locked(hn, req); in remove_pending() 179 spin_unlock_bh(&hn->hn_lock); in remove_pending() [all …]
|
| H A D | netlink.c | 93 struct handshake_net *hn = handshake_pernet(net); in handshake_nl_accept_doit() local 98 if (!hn) in handshake_nl_accept_doit() 107 req = handshake_req_next(hn, class); in handshake_nl_accept_doit() 171 struct handshake_net *hn = net_generic(net, handshake_net_id); in handshake_net_init() local 182 hn->hn_pending_max = clamp(tmp, 3UL, 50UL); in handshake_net_init() 184 spin_lock_init(&hn->hn_lock); in handshake_net_init() 185 hn->hn_pending = 0; in handshake_net_init() 186 hn->hn_flags = 0; in handshake_net_init() 187 INIT_LIST_HEAD(&hn->hn_requests); in handshake_net_init() 193 struct handshake_net *hn = net_generic(net, handshake_net_id); in handshake_net_exit() local [all …]
|
| H A D | handshake-test.c | 249 struct handshake_net *hn; in handshake_req_submit_test5() local 268 hn = handshake_pernet(net); in handshake_req_submit_test5() 269 KUNIT_ASSERT_NOT_NULL(test, hn); in handshake_req_submit_test5() 271 saved = hn->hn_pending; in handshake_req_submit_test5() 272 hn->hn_pending = hn->hn_pending_max + 1; in handshake_req_submit_test5() 283 hn->hn_pending = saved; in handshake_req_submit_test5() 366 struct handshake_net *hn; in handshake_req_cancel_test2() local 391 hn = handshake_pernet(net); in handshake_req_cancel_test2() 392 KUNIT_ASSERT_NOT_NULL(test, hn); in handshake_req_cancel_test2() 395 next = handshake_req_next(hn, HANDSHAKE_HANDLER_CLASS_TLSHD); in handshake_req_cancel_test2() [all …]
|
| H A D | handshake.h | 88 struct handshake_req *handshake_req_next(struct handshake_net *hn, int class);
|
| /linux/net/netfilter/ipvs/ |
| H A D | ip_vs_conn.c | 371 struct ip_vs_conn_hnode *hn; in __ip_vs_conn_in_get() local 384 hlist_bl_for_each_entry_rcu(hn, e, head, node) { in __ip_vs_conn_in_get() 385 if (READ_ONCE(hn->hash_key) != hash_key || in __ip_vs_conn_in_get() 386 hn->dir != 0) in __ip_vs_conn_in_get() 388 cp = ip_vs_hn0_to_conn(hn); in __ip_vs_conn_in_get() 479 struct ip_vs_conn_hnode *hn; in ip_vs_ct_in_get() local 492 hlist_bl_for_each_entry_rcu(hn, e, head, node) { in ip_vs_ct_in_get() 493 if (READ_ONCE(hn->hash_key) != hash_key || in ip_vs_ct_in_get() 494 hn->dir != 0) in ip_vs_ct_in_get() 496 cp = ip_vs_hn0_to_conn(hn); in ip_vs_ct_in_get() [all …]
|
| H A D | ip_vs_ctl.c | 3201 struct ip_vs_conn_hnode *hn; in ip_vs_status_show() local 3240 hlist_bl_for_each_entry_rcu(hn, e, head, node) { in ip_vs_status_show()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| H A D | mpfs.h | 52 #define for_each_l2hash_node(hn, tmp, hash, i) \ argument 54 hlist_for_each_entry_safe(hn, tmp, &(hash)[i], hlist)
|
| /linux/sound/firewire/digi00x/ |
| H A D | amdtp-dot.c | 92 const u8 hn = (idx >> 4) & 0xf; in dot_scrt() local 93 const u8 hr = (hn == 0x9) ? 0x9 : hir[(hio[hn] + off) % 15]; in dot_scrt()
|
| /linux/samples/bpf/ |
| H A D | do_hbm_test.sh | 248 hn="::1" 251 hn=$server 255 ( ping6 -i 0.2 -c $m $hn > ping.out 2>&1 ) &
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_arfs.c | 98 #define mlx5e_for_each_arfs_rule(hn, tmp, arfs_tables, i, j) \ argument 100 mlx5e_for_each_hash_arfs_rule(hn, tmp, arfs_tables[i].rules_hash, j) 102 #define mlx5e_for_each_hash_arfs_rule(hn, tmp, hash, j) \ argument 104 hlist_for_each_entry_safe(hn, tmp, &hash[j], hlist)
|
| /linux/net/sched/ |
| H A D | cls_u32.c | 612 struct tc_u_hnode __rcu **hn; in u32_destroy_hnode() local 617 hn = &tp_c->hlist; in u32_destroy_hnode() 618 for (phn = rtnl_dereference(*hn); in u32_destroy_hnode() 620 hn = &phn->next, phn = rtnl_dereference(*hn)) { in u32_destroy_hnode() 625 RCU_INIT_POINTER(*hn, ht->next); in u32_destroy_hnode()
|
| /linux/include/net/ |
| H A D | ip_vs.h | 1691 ip_vs_hn0_to_conn(struct ip_vs_conn_hnode *hn) in ip_vs_hn0_to_conn() argument 1693 return container_of(hn, struct ip_vs_conn, hn0); in ip_vs_hn0_to_conn() 1697 ip_vs_hn_to_conn(struct ip_vs_conn_hnode *hn) in ip_vs_hn_to_conn() argument 1699 return hn->dir ? container_of(hn, struct ip_vs_conn, hn1) : in ip_vs_hn_to_conn() 1700 container_of(hn, struct ip_vs_conn, hn0); in ip_vs_hn_to_conn()
|
| /linux/drivers/usb/host/ |
| H A D | xhci-mtk-sch.c | 956 struct hlist_node *hn; in drop_ep_quirk() local 964 hn, hentry, (unsigned long)ep) { in drop_ep_quirk()
|
| /linux/drivers/power/supply/ |
| H A D | bd71828-power.c | 904 #define BDIRQ(na, hn) { .name = (na), .handler = (hn) } argument
|