Home
last modified time | relevance | path

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

12

/Linux-v5.4/include/linux/
Dlist_bl.h39 struct hlist_bl_node *next, **pprev; member
47 h->pprev = NULL; in INIT_HLIST_BL_NODE()
54 return !h->pprev; in hlist_bl_unhashed()
84 first->pprev = &n->next; in hlist_bl_add_head()
85 n->pprev = &h->first; in hlist_bl_add_head()
92 struct hlist_bl_node **pprev = next->pprev; in hlist_bl_add_before() local
94 n->pprev = pprev; in hlist_bl_add_before()
96 next->pprev = &n->next; in hlist_bl_add_before()
99 WRITE_ONCE(*pprev, in hlist_bl_add_before()
101 ((uintptr_t)n | ((uintptr_t)*pprev & LIST_BL_LOCKMASK))); in hlist_bl_add_before()
[all …]
Dlist_nulls.h26 struct hlist_nulls_node *next, **pprev; member
61 return !h->pprev; in hlist_nulls_unhashed()
75 n->pprev = &h->first; in hlist_nulls_add_head()
78 first->pprev = &n->next; in hlist_nulls_add_head()
84 struct hlist_nulls_node **pprev = n->pprev; in __hlist_nulls_del() local
86 WRITE_ONCE(*pprev, next); in __hlist_nulls_del()
88 next->pprev = pprev; in __hlist_nulls_del()
94 n->pprev = LIST_POISON2; in hlist_nulls_del()
Drculist.h176 n->pprev = NULL; in hlist_del_init_rcu()
476 n->pprev = LIST_POISON2; in hlist_del_rcu()
492 new->pprev = old->pprev; in hlist_replace_rcu()
493 rcu_assign_pointer(*(struct hlist_node __rcu **)new->pprev, new); in hlist_replace_rcu()
495 new->next->pprev = &new->next; in hlist_replace_rcu()
496 old->pprev = LIST_POISON2; in hlist_replace_rcu()
504 #define hlist_pprev_rcu(node) (*((struct hlist_node __rcu **)((node)->pprev)))
531 n->pprev = &h->first; in hlist_add_head_rcu()
534 first->pprev = &n->next; in hlist_add_head_rcu()
567 n->pprev = &last->next; in hlist_add_tail_rcu()
[all …]
Dlist.h744 h->pprev = NULL; in INIT_HLIST_NODE()
749 return !h->pprev; in hlist_unhashed()
760 struct hlist_node **pprev = n->pprev; in __hlist_del() local
762 WRITE_ONCE(*pprev, next); in __hlist_del()
764 next->pprev = pprev; in __hlist_del()
771 n->pprev = LIST_POISON2; in hlist_del()
787 first->pprev = &n->next; in hlist_add_head()
789 n->pprev = &h->first; in hlist_add_head()
796 n->pprev = next->pprev; in hlist_add_before()
798 next->pprev = &n->next; in hlist_add_before()
[all …]
Drculist_bl.h51 n->pprev = NULL; in hlist_bl_del_init_rcu()
77 n->pprev = LIST_POISON2; in hlist_bl_del_rcu()
109 first->pprev = &n->next; in hlist_bl_add_head_rcu()
110 n->pprev = &h->first; in hlist_bl_add_head_rcu()
Drculist_nulls.h37 n->pprev = NULL; in hlist_nulls_del_init_rcu()
69 n->pprev = LIST_POISON2; in hlist_nulls_del_rcu()
97 n->pprev = &h->first; in hlist_nulls_add_head_rcu()
100 first->pprev = &n->next; in hlist_nulls_add_head_rcu()
Drhashtable.h713 struct rhash_head __rcu **pprev; in __rhashtable_insert_fast() local
729 pprev = NULL; in __rhashtable_insert_fast()
748 pprev = &head->next; in __rhashtable_insert_fast()
764 if (pprev) { in __rhashtable_insert_fast()
765 rcu_assign_pointer(*pprev, obj); in __rhashtable_insert_fast()
999 struct rhash_head __rcu **pprev; in __rhashtable_remove_fast_one() local
1008 pprev = NULL; in __rhashtable_remove_fast_one()
1019 pprev = &he->next; in __rhashtable_remove_fast_one()
1051 if (pprev) { in __rhashtable_remove_fast_one()
1052 rcu_assign_pointer(*pprev, obj); in __rhashtable_remove_fast_one()
[all …]
Dtypes.h190 struct hlist_node *next, **pprev; member
Dtimer.h167 return timer->entry.pprev != NULL; in timer_pending()
/Linux-v5.4/net/ipv6/
Dtunnel6.c28 struct xfrm6_tunnel __rcu **pprev; in xfrm6_tunnel_register() local
35 for (pprev = (family == AF_INET6) ? &tunnel6_handlers : &tunnel46_handlers; in xfrm6_tunnel_register()
36 (t = rcu_dereference_protected(*pprev, in xfrm6_tunnel_register()
38 pprev = &t->next) { in xfrm6_tunnel_register()
45 handler->next = *pprev; in xfrm6_tunnel_register()
46 rcu_assign_pointer(*pprev, handler); in xfrm6_tunnel_register()
59 struct xfrm6_tunnel __rcu **pprev; in xfrm6_tunnel_deregister() local
65 for (pprev = (family == AF_INET6) ? &tunnel6_handlers : &tunnel46_handlers; in xfrm6_tunnel_deregister()
66 (t = rcu_dereference_protected(*pprev, in xfrm6_tunnel_deregister()
68 pprev = &t->next) { in xfrm6_tunnel_deregister()
[all …]
Dxfrm6_protocol.c188 struct xfrm6_protocol __rcu **pprev; in xfrm6_protocol_register() local
203 for (pprev = proto_handlers(protocol); in xfrm6_protocol_register()
204 (t = rcu_dereference_protected(*pprev, in xfrm6_protocol_register()
206 pprev = &t->next) { in xfrm6_protocol_register()
213 handler->next = *pprev; in xfrm6_protocol_register()
214 rcu_assign_pointer(*pprev, handler); in xfrm6_protocol_register()
235 struct xfrm6_protocol __rcu **pprev; in xfrm6_protocol_deregister() local
244 for (pprev = proto_handlers(protocol); in xfrm6_protocol_deregister()
245 (t = rcu_dereference_protected(*pprev, in xfrm6_protocol_deregister()
247 pprev = &t->next) { in xfrm6_protocol_deregister()
[all …]
/Linux-v5.4/net/ipv4/
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 …]
Dxfrm4_protocol.c214 struct xfrm4_protocol __rcu **pprev; in xfrm4_protocol_register() local
229 for (pprev = proto_handlers(protocol); in xfrm4_protocol_register()
230 (t = rcu_dereference_protected(*pprev, in xfrm4_protocol_register()
232 pprev = &t->next) { in xfrm4_protocol_register()
239 handler->next = *pprev; in xfrm4_protocol_register()
240 rcu_assign_pointer(*pprev, handler); in xfrm4_protocol_register()
261 struct xfrm4_protocol __rcu **pprev; in xfrm4_protocol_deregister() local
270 for (pprev = proto_handlers(protocol); in xfrm4_protocol_deregister()
271 (t = rcu_dereference_protected(*pprev, in xfrm4_protocol_deregister()
273 pprev = &t->next) { in xfrm4_protocol_deregister()
[all …]
/Linux-v5.4/tools/lib/bpf/
Dhashmap.c18 static void hashmap_add_entry(struct hashmap_entry **pprev, in hashmap_add_entry() argument
21 entry->next = *pprev; in hashmap_add_entry()
22 *pprev = entry; in hashmap_add_entry()
25 static void hashmap_del_entry(struct hashmap_entry **pprev, in hashmap_del_entry() argument
28 *pprev = entry->next; in hashmap_del_entry()
120 struct hashmap_entry ***pprev, in hashmap_find_entry() argument
132 if (pprev) in hashmap_find_entry()
133 *pprev = prev_ptr; in hashmap_find_entry()
211 struct hashmap_entry **pprev, *entry; in hashmap__delete() local
215 if (!hashmap_find_entry(map, key, h, &pprev, &entry)) in hashmap__delete()
[all …]
/Linux-v5.4/tools/include/linux/
Dlist.h601 h->pprev = NULL; in INIT_HLIST_NODE()
606 return !h->pprev; in hlist_unhashed()
617 struct hlist_node **pprev = n->pprev; in __hlist_del() local
619 WRITE_ONCE(*pprev, next); in __hlist_del()
621 next->pprev = pprev; in __hlist_del()
628 n->pprev = LIST_POISON2; in hlist_del()
644 first->pprev = &n->next; in hlist_add_head()
646 n->pprev = &h->first; in hlist_add_head()
653 n->pprev = next->pprev; in hlist_add_before()
655 next->pprev = &n->next; in hlist_add_before()
[all …]
Dtypes.h78 struct hlist_node *next, **pprev; member
/Linux-v5.4/kernel/
Dtask_work.c58 struct callback_head **pprev = &task->task_works; in task_work_cancel() local
71 while ((work = READ_ONCE(*pprev))) { in task_work_cancel()
73 pprev = &work->next; in task_work_cancel()
74 else if (cmpxchg(pprev, work, work->next) == work) in task_work_cancel()
/Linux-v5.4/mm/
Dmprotect.c339 mprotect_fixup(struct vm_area_struct *vma, struct vm_area_struct **pprev, in mprotect_fixup() argument
351 *pprev = vma; in mprotect_fixup()
395 *pprev = vma_merge(mm, *pprev, start, end, newflags, in mprotect_fixup()
398 if (*pprev) { in mprotect_fixup()
399 vma = *pprev; in mprotect_fixup()
404 *pprev = vma; in mprotect_fixup()
/Linux-v5.4/drivers/of/
Dfdt.c114 struct property *pp, **pprev = NULL; in populate_properties() local
118 pprev = &np->properties; in populate_properties()
167 *pprev = pp; in populate_properties()
168 pprev = &pp->next; in populate_properties()
195 *pprev = pp; in populate_properties()
196 pprev = &pp->next; in populate_properties()
205 *pprev = NULL; in populate_properties()
Dunittest.c2379 struct device_node **pprev; in of_unittest_overlay_high_level() local
2405 pprev = &overlay_base_root->child; in of_unittest_overlay_high_level()
2408 *pprev = np->sibling; in of_unittest_overlay_high_level()
2411 pprev = &np->sibling; in of_unittest_overlay_high_level()
2418 pprev = &overlay_base_root->child; in of_unittest_overlay_high_level()
2422 *pprev = np->sibling; in of_unittest_overlay_high_level()
2425 pprev = &np->sibling; in of_unittest_overlay_high_level()
/Linux-v5.4/lib/
Drhashtable.c223 struct rhash_head __rcu **pprev = NULL; in rhashtable_rehash_one() local
239 pprev = &entry->next; in rhashtable_rehash_one()
255 if (pprev) in rhashtable_rehash_one()
256 rcu_assign_pointer(*pprev, next); in rhashtable_rehash_one()
487 struct rhash_head __rcu **pprev = NULL; in rhashtable_lookup_one() local
501 pprev = &head->next; in rhashtable_lookup_one()
514 if (pprev) in rhashtable_lookup_one()
515 rcu_assign_pointer(*pprev, obj); in rhashtable_lookup_one()
/Linux-v5.4/tools/testing/selftests/bpf/progs/
Dbtf_dump_test_case_ordering.c38 struct hlist_node **pprev; member
/Linux-v5.4/tools/testing/selftests/rcutorture/formal/srcu-cbmc/include/linux/
Dtypes.h117 struct hlist_node *next, **pprev; member
/Linux-v5.4/net/sched/
Dcls_api.c1632 struct tcf_proto __rcu **pprev; member
1639 return tcf_chain_dereference(*chain_info->pprev, chain); in tcf_chain_tp_prev()
1649 if (*chain_info->pprev == chain->filter_chain) in tcf_chain_tp_insert()
1653 rcu_assign_pointer(*chain_info->pprev, tp); in tcf_chain_tp_insert()
1667 RCU_INIT_POINTER(*chain_info->pprev, next); in tcf_chain_tp_remove()
1720 struct tcf_proto **pprev; in tcf_chain_tp_delete_empty() local
1726 for (pprev = &chain->filter_chain; in tcf_chain_tp_delete_empty()
1727 (tp_iter = tcf_chain_dereference(*pprev, chain)); in tcf_chain_tp_delete_empty()
1728 pprev = &tp_iter->next) { in tcf_chain_tp_delete_empty()
1730 chain_info.pprev = pprev; in tcf_chain_tp_delete_empty()
[all …]
/Linux-v5.4/fs/afs/
Dcallback.c66 new_vi->srv_link.pprev = pp; in afs_create_interest()
69 (*pp)->pprev = &new_vi->srv_link.next; in afs_create_interest()

12