Home
last modified time | relevance | path

Searched refs:pprev (Results 1 – 25 of 33) sorted by relevance

12

/linux/tools/testing/selftests/bpf/
H A Dbpf_arena_list.h12 arena_list_node_t * __arena *pprev; member
54 WRITE_ONCE(first->pprev, tmp); in list_add_head()
62 WRITE_ONCE(n->pprev, tmp); in list_add_head()
68 arena_list_node_t * __arena *pprev = n->pprev; in __list_del() local
71 cast_kern(pprev); in __list_del()
72 WRITE_ONCE(*pprev, next); in __list_del()
74 cast_user(pprev); in __list_del()
76 WRITE_ONCE(next->pprev, pprev); in __list_del()
[all...]
/linux/net/ipv6/
H A Dtunnel6.c34 struct xfrm6_tunnel __rcu **pprev; in xfrm6_tunnel_register() local
43 pprev = &tunnel6_handlers; in xfrm6_tunnel_register()
46 pprev = &tunnel46_handlers; in xfrm6_tunnel_register()
49 pprev = &tunnelmpls6_handlers; in xfrm6_tunnel_register()
55 for (; (t = rcu_dereference_protected(*pprev, in xfrm6_tunnel_register()
57 pprev = &t->next) { in xfrm6_tunnel_register()
64 handler->next = *pprev; in xfrm6_tunnel_register()
65 rcu_assign_pointer(*pprev, handler); in xfrm6_tunnel_register()
78 struct xfrm6_tunnel __rcu **pprev; in xfrm6_tunnel_deregister() local
86 pprev = &tunnel6_handlers; in xfrm6_tunnel_deregister()
[all …]
H A Dxfrm6_protocol.c238 struct xfrm6_protocol __rcu **pprev; in xfrm6_protocol_register() local
253 for (pprev = proto_handlers(protocol); in xfrm6_protocol_register()
254 (t = rcu_dereference_protected(*pprev, in xfrm6_protocol_register()
256 pprev = &t->next) { in xfrm6_protocol_register()
263 handler->next = *pprev; in xfrm6_protocol_register()
264 rcu_assign_pointer(*pprev, handler); in xfrm6_protocol_register()
285 struct xfrm6_protocol __rcu **pprev; in xfrm6_protocol_deregister() local
294 for (pprev = proto_handlers(protocol); in xfrm6_protocol_deregister()
295 (t = rcu_dereference_protected(*pprev, in xfrm6_protocol_deregister()
297 pprev = &t->next) { in xfrm6_protocol_deregister()
[all …]
/linux/tools/lib/bpf/
H A Dhashmap.c24 static void hashmap_add_entry(struct hashmap_entry **pprev, in hashmap_add_entry() argument
27 entry->next = *pprev; in hashmap_add_entry()
28 *pprev = entry; in hashmap_add_entry()
31 static void hashmap_del_entry(struct hashmap_entry **pprev, in hashmap_del_entry() argument
34 *pprev = entry->next; in hashmap_del_entry()
132 struct hashmap_entry ***pprev, in hashmap_find_entry() argument
144 if (pprev) in hashmap_find_entry()
145 *pprev = prev_ptr; in hashmap_find_entry()
223 struct hashmap_entry **pprev, *entry; in hashmap_delete() local
227 if (!hashmap_find_entry(map, key, h, &pprev, &entry)) in hashmap_delete()
[all …]
/linux/tools/perf/util/
H A Dhashmap.c24 static void hashmap_add_entry(struct hashmap_entry **pprev, in hashmap_add_entry() argument
27 entry->next = *pprev; in hashmap_add_entry()
28 *pprev = entry; in hashmap_add_entry()
31 static void hashmap_del_entry(struct hashmap_entry **pprev, in hashmap_del_entry() argument
34 *pprev = entry->next; in hashmap_del_entry()
132 struct hashmap_entry ***pprev, in hashmap_find_entry() argument
144 if (pprev) in hashmap_find_entry()
145 *pprev = prev_ptr; in hashmap_find_entry()
223 struct hashmap_entry **pprev, *entry; in hashmap_delete() local
227 if (!hashmap_find_entry(map, key, h, &pprev, &entry)) in hashmap_delete()
[all …]
/linux/net/ipv4/
H A Dtunnel4.c33 struct xfrm_tunnel __rcu **pprev; in xfrm4_tunnel_register() local
41 for (pprev = fam_handlers(family); in xfrm4_tunnel_register()
42 (t = rcu_dereference_protected(*pprev, in xfrm4_tunnel_register()
44 pprev = &t->next) { in xfrm4_tunnel_register()
51 handler->next = *pprev; in xfrm4_tunnel_register()
52 rcu_assign_pointer(*pprev, handler); in xfrm4_tunnel_register()
65 struct xfrm_tunnel __rcu **pprev; in xfrm4_tunnel_deregister() local
71 for (pprev = fam_handlers(family); in xfrm4_tunnel_deregister()
72 (t = rcu_dereference_protected(*pprev, in xfrm4_tunnel_deregister()
74 pprev = &t->next) { in xfrm4_tunnel_deregister()
[all …]
H A Dfib_trie.c1630 struct hlist_node **pprev = old->fa_list.pprev; in fib_remove_alias() local
1631 struct fib_alias *fa = hlist_entry(pprev, typeof(*fa), fa_list.next); in fib_remove_alias()
1649 if (*pprev) in fib_remove_alias()
/linux/include/linux/
H A Drculist.h239 WRITE_ONCE(n->pprev, NULL); in hlist_del_init_rcu()
600 WRITE_ONCE(n->pprev, LIST_POISON2); in hlist_del_rcu()
618 WRITE_ONCE(new->pprev, old->pprev); in hlist_replace_rcu()
619 rcu_assign_pointer(*(struct hlist_node __rcu **)new->pprev, new); in hlist_replace_rcu()
621 WRITE_ONCE(new->next->pprev, &new->next); in hlist_replace_rcu()
622 WRITE_ONCE(old->pprev, LIST_POISON2); in hlist_replace_rcu()
642 WRITE_ONCE(node2->pprev, &left->first); in hlists_swap_heads_rcu()
643 WRITE_ONCE(node1->pprev, &right->first); in hlists_swap_heads_rcu()
651 #define hlist_pprev_rcu(node) (*((struct hlist_node __rcu **)((node)->pprev)))
678 WRITE_ONCE(n->pprev, &h->first); in hlist_add_head_rcu()
[all …]
H A Dlist.h986 h->pprev = NULL; in INIT_HLIST_NODE()
999 return !h->pprev; in hlist_unhashed()
1012 return !READ_ONCE(h->pprev); in hlist_unhashed_lockless()
1027 struct hlist_node **pprev = n->pprev; in __hlist_del() local
1029 WRITE_ONCE(*pprev, next); in __hlist_del()
1031 WRITE_ONCE(next->pprev, pprev); in __hlist_del()
1045 n->pprev = LIST_POISON2; in hlist_del()
1075 WRITE_ONCE(first->pprev, &n->next); in hlist_add_head()
1077 WRITE_ONCE(n->pprev, &h->first); in hlist_add_head()
1088 WRITE_ONCE(n->pprev, next->pprev); in hlist_add_before()
[all …]
H A Drhashtable.h764 struct rhash_head __rcu **pprev; in __rhashtable_insert_fast() local
781 pprev = NULL; in __rhashtable_insert_fast()
800 pprev = &head->next; in __rhashtable_insert_fast()
816 if (pprev) { in __rhashtable_insert_fast()
817 rcu_assign_pointer(*pprev, obj); in __rhashtable_insert_fast()
1052 struct rhash_head __rcu **pprev; in __rhashtable_remove_fast_one() local
1062 pprev = NULL; in __rhashtable_remove_fast_one()
1073 pprev = &he->next; in __rhashtable_remove_fast_one()
1105 if (pprev) { in __rhashtable_remove_fast_one()
1106 rcu_assign_pointer(*pprev, obj); in __rhashtable_remove_fast_one()
[all …]
/linux/tools/include/linux/
H A Dlist.h622 h->pprev = NULL; in INIT_HLIST_NODE()
627 return !h->pprev; in hlist_unhashed()
638 struct hlist_node **pprev = n->pprev; in __hlist_del() local
640 WRITE_ONCE(*pprev, next); in __hlist_del()
642 next->pprev = pprev; in __hlist_del()
649 n->pprev = LIST_POISON2; in hlist_del()
665 first->pprev = &n->next; in hlist_add_head()
667 n->pprev = &h->first; in hlist_add_head()
674 n->pprev = next->pprev; in hlist_add_before()
676 next->pprev = &n->next; in hlist_add_before()
[all …]
H A Dtypes.h108 struct hlist_node *next, **pprev; member
/linux/scripts/include/
H A Dlist.h325 h->pprev = NULL; in INIT_HLIST_NODE()
338 return !h->pprev; in hlist_unhashed()
344 struct hlist_node **pprev = n->pprev; in __hlist_del() local
346 *pprev = next; in __hlist_del()
348 next->pprev = pprev; in __hlist_del()
362 n->pprev = LIST_POISON2; in hlist_del()
393 first->pprev = &n->next; in hlist_add_head()
395 n->pprev = &h->first; in hlist_add_head()
H A Dlist_types.h14 struct hlist_node *next, **pprev; member
/linux/lib/
H A Drhashtable.c244 struct rhash_head __rcu **pprev = NULL; in rhashtable_rehash_one() local
261 pprev = &entry->next; in rhashtable_rehash_one()
278 if (pprev) in rhashtable_rehash_one()
279 rcu_assign_pointer(*pprev, next); in rhashtable_rehash_one()
536 struct rhash_head __rcu **pprev = NULL; in rhashtable_lookup_one() local
550 pprev = &head->next; in rhashtable_lookup_one()
563 if (pprev) in rhashtable_lookup_one()
564 rcu_assign_pointer(*pprev, obj); in rhashtable_lookup_one()
H A Ddebugobjects.c168 next_batch->pprev = &src->objects.first; in pool_move_batch()
173 last->next->pprev = &last->next; in pool_move_batch()
174 first_batch->pprev = &dst->objects.first; in pool_move_batch()
218 next->pprev = &src->objects.first; in pool_pop_batch()
/linux/tools/testing/selftests/bpf/progs/
H A Dbtf_dump_test_case_ordering.c38 struct hlist_node **pprev; member
H A Dbpf_iter_tcp4.c12 return !(h->pprev); in hlist_unhashed_lockless()
H A Dbpf_iter_tcp6.c12 return !(h->pprev); in hlist_unhashed_lockless()
/linux/net/sched/
H A Dcls_api.c1888 struct tcf_proto __rcu **pprev; member
1895 return tcf_chain_dereference(*chain_info->pprev, chain); in tcf_chain_tp_prev()
1906 if (*chain_info->pprev == chain->filter_chain) in tcf_chain_tp_insert()
1909 rcu_assign_pointer(*chain_info->pprev, tp); in tcf_chain_tp_insert()
1923 RCU_INIT_POINTER(*chain_info->pprev, next); in tcf_chain_tp_remove()
1976 struct tcf_proto **pprev; in tcf_chain_tp_delete_empty() local
1982 for (pprev = &chain->filter_chain; in tcf_chain_tp_delete_empty()
1983 (tp_iter = tcf_chain_dereference(*pprev, chain)); in tcf_chain_tp_delete_empty()
1984 pprev = &tp_iter->next) { in tcf_chain_tp_delete_empty()
1986 chain_info.pprev = pprev; in tcf_chain_tp_delete_empty()
[all …]
/linux/lib/tests/
H A Dlist-test.c905 KUNIT_EXPECT_PTR_EQ(test, b.pprev, &list.first); in hlist_test_del()
921 KUNIT_EXPECT_PTR_EQ(test, b.pprev, &list.first); in hlist_test_del_init()
925 KUNIT_EXPECT_PTR_EQ(test, a.pprev, NULL); in hlist_test_del_init()
942 KUNIT_EXPECT_PTR_EQ(test, c.pprev, &(b.next)); in hlist_test_add()
945 KUNIT_EXPECT_PTR_EQ(test, a.pprev, &(c.next)); in hlist_test_add()
948 KUNIT_EXPECT_PTR_EQ(test, d.pprev, &(a.next)); in hlist_test_add()
/linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/
H A Dchtls_cm.c515 struct request_sock **pprev; in chtls_disconnect_acceptq() local
517 pprev = ACCEPT_QUEUE(listen_sk); in chtls_disconnect_acceptq()
518 while (*pprev) { in chtls_disconnect_acceptq()
519 struct request_sock *req = *pprev; in chtls_disconnect_acceptq()
525 *pprev = req->dl_next; in chtls_disconnect_acceptq()
537 pprev = &req->dl_next; in chtls_disconnect_acceptq()
/linux/fs/afs/
H A Dcell.c739 cell->proc_link.pprev = p; in afs_activate_cell()
743 cell->proc_link.next->pprev = &cell->proc_link.next; in afs_activate_cell()
/linux/net/rxrpc/
H A Dlocal_object.c299 cursor->pprev = NULL; in rxrpc_lookup_local()
/linux/tools/testing/vma/include/
H A Ddup.h1398 struct vm_area_struct **pprev) in find_vma_prev() argument
1404 *pprev = vma_prev(&vmi); in find_vma_prev()

12