Lines Matching refs:next
49 struct ck_hp_fifo_entry *next; member
64 stub->next = NULL; in ck_hp_fifo_init()
83 struct ck_hp_fifo_entry *tail, *next; in ck_hp_fifo_enqueue_mpmc() local
86 entry->next = NULL; in ck_hp_fifo_enqueue_mpmc()
95 next = ck_pr_load_ptr(&tail->next); in ck_hp_fifo_enqueue_mpmc()
96 if (next != NULL) { in ck_hp_fifo_enqueue_mpmc()
97 ck_pr_cas_ptr(&fifo->tail, tail, next); in ck_hp_fifo_enqueue_mpmc()
99 } else if (ck_pr_cas_ptr(&fifo->tail->next, next, entry) == true) in ck_hp_fifo_enqueue_mpmc()
114 struct ck_hp_fifo_entry *tail, *next; in ck_hp_fifo_tryenqueue_mpmc() local
117 entry->next = NULL; in ck_hp_fifo_tryenqueue_mpmc()
125 next = ck_pr_load_ptr(&tail->next); in ck_hp_fifo_tryenqueue_mpmc()
126 if (next != NULL) { in ck_hp_fifo_tryenqueue_mpmc()
127 ck_pr_cas_ptr(&fifo->tail, tail, next); in ck_hp_fifo_tryenqueue_mpmc()
129 } else if (ck_pr_cas_ptr(&fifo->tail->next, next, entry) == false) in ck_hp_fifo_tryenqueue_mpmc()
142 struct ck_hp_fifo_entry *head, *tail, *next; in ck_hp_fifo_dequeue_mpmc() local
152 next = ck_pr_load_ptr(&head->next); in ck_hp_fifo_dequeue_mpmc()
153 ck_hp_set_fence(record, 1, next); in ck_hp_fifo_dequeue_mpmc()
158 if (next == NULL) in ck_hp_fifo_dequeue_mpmc()
161 ck_pr_cas_ptr(&fifo->tail, tail, next); in ck_hp_fifo_dequeue_mpmc()
163 } else if (ck_pr_cas_ptr(&fifo->head, head, next) == true) in ck_hp_fifo_dequeue_mpmc()
167 ck_pr_store_ptr_unsafe(value, next->value); in ck_hp_fifo_dequeue_mpmc()
176 struct ck_hp_fifo_entry *head, *tail, *next; in ck_hp_fifo_trydequeue_mpmc() local
185 next = ck_pr_load_ptr(&head->next); in ck_hp_fifo_trydequeue_mpmc()
186 ck_hp_set_fence(record, 1, next); in ck_hp_fifo_trydequeue_mpmc()
191 if (next == NULL) in ck_hp_fifo_trydequeue_mpmc()
194 ck_pr_cas_ptr(&fifo->tail, tail, next); in ck_hp_fifo_trydequeue_mpmc()
196 } else if (ck_pr_cas_ptr(&fifo->head, head, next) == false) in ck_hp_fifo_trydequeue_mpmc()
199 ck_pr_store_ptr_unsafe(value, next->value); in ck_hp_fifo_trydequeue_mpmc()
203 #define CK_HP_FIFO_ISEMPTY(f) ((f)->head->next == NULL)
204 #define CK_HP_FIFO_FIRST(f) ((f)->head->next)
205 #define CK_HP_FIFO_NEXT(m) ((m)->next)
212 (entry) != NULL && ((T) = (entry)->next, 1); \