Home
last modified time | relevance | path

Searched refs:WRITE_ONCE (Results 1 – 25 of 63) sorted by relevance

123

/linux-4.19.296/lib/
Drbtree.c171 WRITE_ONCE(parent->rb_right, tmp); in __rb_insert()
172 WRITE_ONCE(node->rb_left, parent); in __rb_insert()
192 WRITE_ONCE(gparent->rb_left, tmp); /* == parent->rb_right */ in __rb_insert()
193 WRITE_ONCE(parent->rb_right, gparent); in __rb_insert()
215 WRITE_ONCE(parent->rb_left, tmp); in __rb_insert()
216 WRITE_ONCE(node->rb_right, parent); in __rb_insert()
227 WRITE_ONCE(gparent->rb_right, tmp); /* == parent->rb_left */ in __rb_insert()
228 WRITE_ONCE(parent->rb_left, gparent); in __rb_insert()
269 WRITE_ONCE(parent->rb_right, tmp1); in ____rb_erase_color()
270 WRITE_ONCE(sibling->rb_left, parent); in ____rb_erase_color()
[all …]
Drandom32.c445 WRITE_ONCE(state->v0, v0); in prandom_seed()
446 WRITE_ONCE(state->v1, v1); in prandom_seed()
447 WRITE_ONCE(state->v2, v2); in prandom_seed()
448 WRITE_ONCE(state->v3, v3); in prandom_seed()
534 WRITE_ONCE(state->v0, v0 ? v0 : -1ul); in prandom_reseed()
535 WRITE_ONCE(state->v1, v1 ? v1 : -1ul); in prandom_reseed()
536 WRITE_ONCE(state->v2, v2 ? v2 : -1ul); in prandom_reseed()
537 WRITE_ONCE(state->v3, v3 ? v3 : -1ul); in prandom_reseed()
/linux-4.19.296/include/linux/
Dlist_nulls.h75 WRITE_ONCE(n->pprev, &h->first); in hlist_nulls_add_head()
78 WRITE_ONCE(first->pprev, &n->next); in hlist_nulls_add_head()
86 WRITE_ONCE(*pprev, next); in __hlist_nulls_del()
88 WRITE_ONCE(next->pprev, pprev); in __hlist_nulls_del()
94 WRITE_ONCE(n->pprev, LIST_POISON2); in hlist_nulls_del()
Drculist_nulls.h37 WRITE_ONCE(n->pprev, NULL); in hlist_nulls_del_init_rcu()
69 WRITE_ONCE(n->pprev, LIST_POISON2); in hlist_nulls_del_rcu()
97 WRITE_ONCE(n->pprev, &h->first); in hlist_nulls_add_head_rcu()
100 WRITE_ONCE(first->pprev, &n->next); in hlist_nulls_add_head_rcu()
Drbtree_augmented.h140 WRITE_ONCE(parent->rb_left, new); in __rb_change_child()
142 WRITE_ONCE(parent->rb_right, new); in __rb_change_child()
144 WRITE_ONCE(root->rb_node, new); in __rb_change_child()
239 WRITE_ONCE(parent->rb_left, child2); in __rb_erase_augmented()
240 WRITE_ONCE(successor->rb_right, child); in __rb_erase_augmented()
248 WRITE_ONCE(successor->rb_left, tmp); in __rb_erase_augmented()
Dlist.h28 WRITE_ONCE(list->next, list); in INIT_LIST_HEAD()
66 WRITE_ONCE(prev->next, new); in __list_add()
106 WRITE_ONCE(prev->next, next); in __list_del()
688 WRITE_ONCE(*pprev, next); in __hlist_del()
714 WRITE_ONCE(h->first, n); in hlist_add_head()
725 WRITE_ONCE(*(n->pprev), n); in hlist_add_before()
732 WRITE_ONCE(prev->next, n); in hlist_add_behind()
Drcuwait.h60 WRITE_ONCE((w)->task, NULL); \
Drcupdate.h166 WRITE_ONCE((t)->rcu_tasks_holdout, false); \
407 WRITE_ONCE((p), (typeof(p))(_r_a_p__v)); \
833 WRITE_ONCE(p, RCU_INITIALIZER(v)); \
Daverage.h65 WRITE_ONCE(e->internal, internal ? \
Dvirtio_ring.h55 WRITE_ONCE(*p, v); in virtio_store_mb()
Dsrcutiny.h76 WRITE_ONCE(sp->srcu_lock_nesting[idx], sp->srcu_lock_nesting[idx] + 1); in __srcu_read_lock()
Dptr_ring.h117 WRITE_ONCE(r->queue[r->producer++], ptr); in __ptr_ring_produce()
292 WRITE_ONCE(r->consumer_head, consumer_head); in __ptr_ring_discard_one()
551 WRITE_ONCE(r->consumer_head, head); in ptr_ring_unconsume()
Dcgroup-defs.h815 WRITE_ONCE(skcd->val, skcd_buf.val); /* see sock_cgroup_ptr() */ in sock_cgroup_set_prioidx()
832 WRITE_ONCE(skcd->val, skcd_buf.val); /* see sock_cgroup_ptr() */ in sock_cgroup_set_classid()
Dlist_bl.h97 WRITE_ONCE(*pprev, in __hlist_bl_del()
Drculist.h33 WRITE_ONCE(list->next, list); in INIT_LIST_HEAD_RCU()
34 WRITE_ONCE(list->prev, list); in INIT_LIST_HEAD_RCU()
/linux-4.19.296/include/asm-generic/
Dbarrier.h112 #define __smp_store_mb(var, value) do { WRITE_ONCE(var, value); __smp_mb(); } while (0)
128 WRITE_ONCE(*p, v); \
167 #define smp_store_mb(var, value) do { WRITE_ONCE(var, value); barrier(); } while (0)
183 WRITE_ONCE(*p, v); \
Datomic.h185 #define atomic_set(v, i) WRITE_ONCE(((v)->counter), (i))
/linux-4.19.296/drivers/misc/mic/scif/
Dscif_rb.c141 WRITE_ONCE(*rb->write_ptr, rb->current_write_offset); in scif_rb_commit()
150 WRITE_ONCE(*rb->write_ptr, rb->current_write_offset); in scif_rb_commit()
213 WRITE_ONCE(*rb->read_ptr, new_offset); in scif_rb_update_read_ptr()
222 WRITE_ONCE(*rb->read_ptr, new_offset); in scif_rb_update_read_ptr()
/linux-4.19.296/include/drm/
Dspsc_queue.h74 WRITE_ONCE(*tail, node); in spsc_queue_push()
102 WRITE_ONCE(queue->head, next); in spsc_queue_pop()
/linux-4.19.296/include/net/
Dbusy_poll.h137 WRITE_ONCE(sk->sk_napi_id, skb->napi_id); in sk_mark_napi_id()
148 WRITE_ONCE(sk->sk_napi_id, skb->napi_id); in sk_mark_napi_id_once()
/linux-4.19.296/drivers/i2c/busses/
Di2c-xgene-slimpro.c147 WRITE_ONCE(*addr, cpu_to_le16(val)); in xgene_word_tst_and_clr()
198 WRITE_ONCE(generic_comm_base->signature, in slimpro_i2c_pcc_tx_prepare()
201 WRITE_ONCE(generic_comm_base->command, in slimpro_i2c_pcc_tx_prepare()
206 WRITE_ONCE(generic_comm_base->status, cpu_to_le16(status)); in slimpro_i2c_pcc_tx_prepare()
210 WRITE_ONCE(ptr[i], cpu_to_le32(msg[i])); in slimpro_i2c_pcc_tx_prepare()
/linux-4.19.296/drivers/char/
Drandom.c261 WRITE_ONCE(base_crng.generation, next_gen); in crng_reseed()
262 WRITE_ONCE(base_crng.birth, jiffies); in crng_reseed()
315 WRITE_ONCE(early_boot, false); in crng_has_old_seed()
1054 WRITE_ONCE(state->last_time, now); in add_timer_randomness()
1057 WRITE_ONCE(state->last_delta, delta); in add_timer_randomness()
1060 WRITE_ONCE(state->last_delta2, delta2); in add_timer_randomness()
/linux-4.19.296/drivers/base/firmware_loader/
Dfirmware.h107 WRITE_ONCE(fw_st->status, status); in __fw_state_set()
/linux-4.19.296/fs/btrfs/
Dtree-log.h38 WRITE_ONCE(fs_info->last_trans_log_full_commit, trans->transid); in btrfs_set_log_full_commit()
/linux-4.19.296/fs/
Duserfaultfd.c123 WRITE_ONCE(uwq->waken, true); in userfaultfd_wake_function()
661 WRITE_ONCE(ctx->mmap_changing, false); in userfaultfd_event_wait_completion()
711 WRITE_ONCE(octx->mmap_changing, true); in dup_userfaultfd()
758 WRITE_ONCE(ctx->mmap_changing, true); in mremap_userfaultfd_prep()
803 WRITE_ONCE(ctx->mmap_changing, true); in userfaultfd_remove()
847 WRITE_ONCE(ctx->mmap_changing, true); in userfaultfd_unmap_prep()
886 WRITE_ONCE(ctx->released, true); in userfaultfd_release()

123