Lines Matching refs:head
41 struct ck_stack_entry *head; member
58 stack = ck_pr_load_ptr(&target->head); in ck_stack_push_upmc()
62 while (ck_pr_cas_ptr_value(&target->head, stack, entry, &stack) == false) { in ck_stack_push_upmc()
82 stack = ck_pr_load_ptr(&target->head); in ck_stack_trypush_upmc()
86 return ck_pr_cas_ptr(&target->head, stack, entry); in ck_stack_trypush_upmc()
100 entry = ck_pr_load_ptr(&target->head); in ck_stack_pop_upmc()
106 while (ck_pr_cas_ptr_value(&target->head, entry, next, &entry) == false) { in ck_stack_pop_upmc()
131 entry = ck_pr_load_ptr(&target->head); in ck_stack_trypop_upmc()
136 if (ck_pr_cas_ptr(&target->head, entry, entry->next) == true) { in ck_stack_trypop_upmc()
155 entry = ck_pr_fas_ptr(&target->head, NULL); in ck_stack_batch_pop_upmc()
201 original.head = ck_pr_load_ptr(&target->head); in ck_stack_pop_mpmc()
202 if (original.head == NULL) in ck_stack_pop_mpmc()
209 update.head = original.head->next; in ck_stack_pop_mpmc()
212 if (original.head == NULL) in ck_stack_pop_mpmc()
219 update.head = original.head->next; in ck_stack_pop_mpmc()
222 return original.head; in ck_stack_pop_mpmc()
235 original.head = ck_pr_load_ptr(&target->head); in ck_stack_trypop_mpmc()
236 if (original.head == NULL) in ck_stack_trypop_mpmc()
241 update.head = original.head->next; in ck_stack_trypop_mpmc()
244 *r = original.head; in ck_stack_trypop_mpmc()
279 stack = ck_pr_fas_ptr(&target->head, entry); in ck_stack_push_mpnc()
294 entry->next = target->head; in ck_stack_push_spnc()
295 target->head = entry; in ck_stack_push_spnc()
307 if (target->head == NULL) in ck_stack_pop_npsc()
310 n = target->head; in ck_stack_pop_npsc()
311 target->head = n->next; in ck_stack_pop_npsc()
324 n = target->head; in ck_stack_batch_pop_npsc()
325 target->head = NULL; in ck_stack_batch_pop_npsc()
337 stack->head = NULL; in ck_stack_init()
345 #define CK_STACK_ISEMPTY(m) ((m)->head == NULL)
346 #define CK_STACK_FIRST(s) ((s)->head)