Home
last modified time | relevance | path

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

12345

/OK3568_Linux_fs/kernel/include/linux/
H A 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 …]
H A Dlist_nulls.h26 struct hlist_nulls_node *next, **pprev; member
69 return !h->pprev; in hlist_nulls_unhashed()
83 return !READ_ONCE(h->pprev); in hlist_nulls_unhashed_lockless()
97 WRITE_ONCE(n->pprev, &h->first); in hlist_nulls_add_head()
100 WRITE_ONCE(first->pprev, &n->next); in hlist_nulls_add_head()
106 struct hlist_nulls_node **pprev = n->pprev; in __hlist_nulls_del() local
108 WRITE_ONCE(*pprev, next); in __hlist_nulls_del()
110 WRITE_ONCE(next->pprev, pprev); in __hlist_nulls_del()
116 WRITE_ONCE(n->pprev, LIST_POISON2); in hlist_nulls_del()
H A Drculist.h194 WRITE_ONCE(n->pprev, NULL); in hlist_del_init_rcu()
515 WRITE_ONCE(n->pprev, LIST_POISON2); in hlist_del_rcu()
531 WRITE_ONCE(new->pprev, old->pprev); in hlist_replace_rcu()
532 rcu_assign_pointer(*(struct hlist_node __rcu **)new->pprev, new); in hlist_replace_rcu()
534 WRITE_ONCE(new->next->pprev, &new->next); in hlist_replace_rcu()
535 WRITE_ONCE(old->pprev, LIST_POISON2); in hlist_replace_rcu()
555 WRITE_ONCE(node2->pprev, &left->first); in hlists_swap_heads_rcu()
556 WRITE_ONCE(node1->pprev, &right->first); in hlists_swap_heads_rcu()
564 #define hlist_pprev_rcu(node) (*((struct hlist_node __rcu **)((node)->pprev)))
591 WRITE_ONCE(n->pprev, &h->first); in hlist_add_head_rcu()
[all …]
H A Dlist.h795 h->pprev = NULL; in INIT_HLIST_NODE()
808 return !h->pprev; in hlist_unhashed()
821 return !READ_ONCE(h->pprev); in hlist_unhashed_lockless()
836 struct hlist_node **pprev = n->pprev; in __hlist_del() local
838 WRITE_ONCE(*pprev, next); in __hlist_del()
840 WRITE_ONCE(next->pprev, pprev); in __hlist_del()
854 n->pprev = LIST_POISON2; in hlist_del()
884 WRITE_ONCE(first->pprev, &n->next); in hlist_add_head()
886 WRITE_ONCE(n->pprev, &h->first); in hlist_add_head()
897 WRITE_ONCE(n->pprev, next->pprev); in hlist_add_before()
[all …]
H A Drculist_nulls.h37 WRITE_ONCE(n->pprev, NULL); in hlist_nulls_del_init_rcu()
77 WRITE_ONCE(n->pprev, LIST_POISON2); in hlist_nulls_del_rcu()
105 WRITE_ONCE(n->pprev, &h->first); in hlist_nulls_add_head_rcu()
108 WRITE_ONCE(first->pprev, &n->next); in hlist_nulls_add_head_rcu()
141 n->pprev = &last->next; in hlist_nulls_add_tail_rcu()
151 n->pprev = &n->next; in hlist_nulls_add_fake()
H A Drhashtable.h706 struct rhash_head __rcu **pprev; in __rhashtable_insert_fast() local
722 pprev = NULL; in __rhashtable_insert_fast()
741 pprev = &head->next; in __rhashtable_insert_fast()
757 if (pprev) { in __rhashtable_insert_fast()
758 rcu_assign_pointer(*pprev, obj); in __rhashtable_insert_fast()
992 struct rhash_head __rcu **pprev; in __rhashtable_remove_fast_one() local
1001 pprev = NULL; in __rhashtable_remove_fast_one()
1012 pprev = &he->next; in __rhashtable_remove_fast_one()
1044 if (pprev) { in __rhashtable_remove_fast_one()
1045 rcu_assign_pointer(*pprev, obj); in __rhashtable_remove_fast_one()
[all …]
H A Drculist_bl.h49 n->pprev = LIST_POISON2; in hlist_bl_del_rcu()
81 first->pprev = &n->next; in hlist_bl_add_head_rcu()
82 n->pprev = &h->first; in hlist_bl_add_head_rcu()
/OK3568_Linux_fs/external/mpp/osal/inc/
H A Dmpp_hash.h42 struct hlist_node *next, **pprev; member
64 h->pprev = NULL; in INIT_HLIST_NODE()
69 return !h->pprev; in hlist_unhashed()
80 struct hlist_node **pprev = n->pprev; in __hlist_del() local
82 WRITE_ONCE(*pprev, next); in __hlist_del()
84 next->pprev = pprev; in __hlist_del()
91 n->pprev = (struct hlist_node**)LIST_POISON2; in hlist_del()
107 first->pprev = &n->next; in hlist_add_head()
109 n->pprev = &h->first; in hlist_add_head()
114 n->pprev = next->pprev; in hlist_add_before()
[all …]
/OK3568_Linux_fs/kernel/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.c236 struct xfrm6_protocol __rcu **pprev; in xfrm6_protocol_register() local
251 for (pprev = proto_handlers(protocol); in xfrm6_protocol_register()
252 (t = rcu_dereference_protected(*pprev, in xfrm6_protocol_register()
254 pprev = &t->next) { in xfrm6_protocol_register()
261 handler->next = *pprev; in xfrm6_protocol_register()
262 rcu_assign_pointer(*pprev, handler); in xfrm6_protocol_register()
283 struct xfrm6_protocol __rcu **pprev; in xfrm6_protocol_deregister() local
292 for (pprev = proto_handlers(protocol); in xfrm6_protocol_deregister()
293 (t = rcu_dereference_protected(*pprev, in xfrm6_protocol_deregister()
295 pprev = &t->next) { in xfrm6_protocol_deregister()
[all …]
/OK3568_Linux_fs/kernel/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 Dxfrm4_protocol.c223 struct xfrm4_protocol __rcu **pprev; in xfrm4_protocol_register() local
238 for (pprev = proto_handlers(protocol); in xfrm4_protocol_register()
239 (t = rcu_dereference_protected(*pprev, in xfrm4_protocol_register()
241 pprev = &t->next) { in xfrm4_protocol_register()
248 handler->next = *pprev; in xfrm4_protocol_register()
249 rcu_assign_pointer(*pprev, handler); in xfrm4_protocol_register()
270 struct xfrm4_protocol __rcu **pprev; in xfrm4_protocol_deregister() local
279 for (pprev = proto_handlers(protocol); in xfrm4_protocol_deregister()
280 (t = rcu_dereference_protected(*pprev, in xfrm4_protocol_deregister()
282 pprev = &t->next) { in xfrm4_protocol_deregister()
[all …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/external/security/librkcrypto/include/
H A Drk_list.h18 struct hlist_node *next, **pprev; member
672 h->pprev = NULL; in INIT_HLIST_NODE()
685 return !h->pprev; in hlist_unhashed()
696 struct hlist_node **pprev = n->pprev; in __hlist_del() local
697 *pprev = next; in __hlist_del()
699 next->pprev = pprev; in __hlist_del()
713 n->pprev = LIST_POISON2; in hlist_del()
744 first->pprev = &n->next; in hlist_add_head()
747 n->pprev = &h->first; in hlist_add_head()
754 n->pprev = next->pprev; in hlist_add_before()
[all …]
/OK3568_Linux_fs/kernel/tools/include/linux/
H A 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 …]
/OK3568_Linux_fs/external/rk_pcba_test/pcba_minui/
H A Dlist.h38 struct hlist_node *next, **pprev; member
626 h->pprev = NULL; in INIT_HLIST_NODE()
631 return !h->pprev; in hlist_unhashed()
642 struct hlist_node **pprev = n->pprev; in __hlist_del() local
643 *pprev = next; in __hlist_del()
645 next->pprev = pprev; in __hlist_del()
652 n->pprev = LIST_POISON2; in hlist_del()
668 first->pprev = &n->next; in hlist_add_head()
670 n->pprev = &h->first; in hlist_add_head()
677 n->pprev = next->pprev; in hlist_add_before()
[all …]
/OK3568_Linux_fs/u-boot/include/linux/
H A Dlist.h548 struct hlist_node *next, **pprev; member
557 h->pprev = NULL; in INIT_HLIST_NODE()
562 return !h->pprev; in hlist_unhashed()
573 struct hlist_node **pprev = n->pprev; in __hlist_del() local
574 *pprev = next; in __hlist_del()
576 next->pprev = pprev; in __hlist_del()
583 n->pprev = LIST_POISON2; in hlist_del()
599 first->pprev = &n->next; in hlist_add_head()
601 n->pprev = &h->first; in hlist_add_head()
608 n->pprev = next->pprev; in hlist_add_before()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/mvl88w8977/mlan/
H A Dmlan_util.h33 struct _mlan_linked_list *pprev; member
41 struct _mlan_linked_list *pprev; member
59 phead->pprev = phead->pnext = (pmlan_linked_list)phead; in util_init_list()
100 phead->pprev = phead->pnext = 0; in util_free_list_head()
154 pold_last = phead->pprev; in util_enqueue_list_tail()
155 pnode->pprev = pold_last; in util_enqueue_list_tail()
158 phead->pprev = pold_last->pnext = pnode; in util_enqueue_list_tail()
187 pnode->pprev = (pmlan_linked_list)phead; in util_enqueue_list_head()
190 phead->pnext = pold_first->pprev = pnode; in util_enqueue_list_head()
218 pmy_prev = pnode->pprev; in util_unlink_list()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/nxp/mlan/
H A Dmlan_util.h35 struct _mlan_linked_list *pprev; member
43 struct _mlan_linked_list *pprev; member
63 phead->pprev = phead->pnext = (pmlan_linked_list)phead; in util_init_list()
99 phead->pprev = phead->pnext = MNULL; in util_free_list_head()
148 pold_last = phead->pprev; in util_enqueue_list_tail()
149 pnode->pprev = pold_last; in util_enqueue_list_tail()
152 phead->pprev = pold_last->pnext = pnode; in util_enqueue_list_tail()
177 pnode->pprev = (pmlan_linked_list)phead; in util_enqueue_list_head()
180 phead->pnext = pold_first->pprev = pnode; in util_enqueue_list_head()
205 pmy_prev = pnode->pprev; in util_unlink_list()
[all …]
/OK3568_Linux_fs/kernel/kernel/
H A Dtask_work.c77 struct callback_head **pprev = &task->task_works; in task_work_cancel_match() local
90 while ((work = READ_ONCE(*pprev))) { in task_work_cancel_match()
92 pprev = &work->next; in task_work_cancel_match()
93 else if (cmpxchg(pprev, work, work->next) == work) in task_work_cancel_match()
/OK3568_Linux_fs/kernel/mm/
H A Dmprotect.c399 mprotect_fixup(struct vm_area_struct *vma, struct vm_area_struct **pprev, in mprotect_fixup() argument
411 *pprev = vma; in mprotect_fixup()
455 *pprev = vma_merge(mm, *pprev, start, end, newflags, in mprotect_fixup()
458 if (*pprev) { in mprotect_fixup()
459 vma = *pprev; in mprotect_fixup()
464 *pprev = vma; in mprotect_fixup()
/OK3568_Linux_fs/kernel/drivers/of/
H A 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()
/OK3568_Linux_fs/kernel/lib/
H A Drhashtable.c232 struct rhash_head __rcu **pprev = NULL; in rhashtable_rehash_one() local
248 pprev = &entry->next; in rhashtable_rehash_one()
264 if (pprev) in rhashtable_rehash_one()
265 rcu_assign_pointer(*pprev, next); in rhashtable_rehash_one()
496 struct rhash_head __rcu **pprev = NULL; in rhashtable_lookup_one() local
510 pprev = &head->next; in rhashtable_lookup_one()
523 if (pprev) in rhashtable_lookup_one()
524 rcu_assign_pointer(*pprev, obj); in rhashtable_lookup_one()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8723ds/os_dep/linux/
H A Drhashtable.h749 struct rhash_head __rcu **pprev; in __rhashtable_remove_fast() local
760 pprev = &tbl->buckets[hash]; in __rhashtable_remove_fast()
763 pprev = &he->next; in __rhashtable_remove_fast()
767 rcu_assign_pointer(*pprev, obj->next); in __rhashtable_remove_fast()

12345