Home
last modified time | relevance | path

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

12345

/tools/lib/
A Drbtree.c155 WRITE_ONCE(parent->rb_right, tmp); in __rb_insert()
156 WRITE_ONCE(node->rb_left, parent); in __rb_insert()
199 WRITE_ONCE(parent->rb_left, tmp); in __rb_insert()
200 WRITE_ONCE(node->rb_right, parent); in __rb_insert()
253 WRITE_ONCE(parent->rb_right, tmp1); in ____rb_erase_color()
320 WRITE_ONCE(sibling->rb_left, tmp1); in ____rb_erase_color()
322 WRITE_ONCE(parent->rb_right, tmp2); in ____rb_erase_color()
343 WRITE_ONCE(parent->rb_right, tmp2); in ____rb_erase_color()
357 WRITE_ONCE(parent->rb_left, tmp1); in ____rb_erase_color()
386 WRITE_ONCE(parent->rb_left, tmp2); in ____rb_erase_color()
[all …]
/tools/memory-model/litmus-tests/
A DS+poonceonces.litmus8 * is replaced by WRITE_ONCE() and the smp_load_acquire() replaced by
16 WRITE_ONCE(*x, 2);
17 WRITE_ONCE(*y, 1);
25 WRITE_ONCE(*x, 1);
A DISA2+poonceonces.litmus8 * smp_store_release() invocations are replaced by WRITE_ONCE() and all
16 WRITE_ONCE(*x, 1);
17 WRITE_ONCE(*y, 1);
25 WRITE_ONCE(*z, 1);
A DZ6.0+pooncelock+pooncelock+pombonce.litmus16 WRITE_ONCE(*x, 1);
17 WRITE_ONCE(*y, 1);
27 WRITE_ONCE(*z, 1);
35 WRITE_ONCE(*z, 2);
A DS+fencewmbonceonce+poacquireonce.litmus14 WRITE_ONCE(*x, 2);
16 WRITE_ONCE(*y, 1);
24 WRITE_ONCE(*x, 1);
A DR+poonceonces.litmus15 WRITE_ONCE(*x, 1);
16 WRITE_ONCE(*y, 1);
23 WRITE_ONCE(*y, 2);
A DR+fencembonceonces.litmus16 WRITE_ONCE(*x, 1);
18 WRITE_ONCE(*y, 1);
25 WRITE_ONCE(*y, 2);
A DISA2+pooncelock+pooncelock+pombonce.litmus15 WRITE_ONCE(*x, 1);
16 WRITE_ONCE(*y, 1);
26 WRITE_ONCE(*z, 1);
A DCoWW+poonceonce.litmus14 WRITE_ONCE(*x, 1);
15 WRITE_ONCE(*x, 2);
A DLB+poonceonces.litmus17 WRITE_ONCE(*y, 1);
25 WRITE_ONCE(*x, 1);
A DCoRW+poonceonce+Once.litmus17 WRITE_ONCE(*x, 1);
22 WRITE_ONCE(*x, 2);
A DCoWR+poonceonce+Once.litmus16 WRITE_ONCE(*x, 1);
22 WRITE_ONCE(*x, 2);
A DMP+poonceonces.litmus14 WRITE_ONCE(*buf, 1);
15 WRITE_ONCE(*flag, 1);
A DSB+poonceonces.litmus17 WRITE_ONCE(*x, 1);
25 WRITE_ONCE(*y, 1);
A DMP+fencewmbonceonce+fencermbonceonce.litmus15 WRITE_ONCE(*buf, 1);
17 WRITE_ONCE(*flag, 1);
A DSB+rfionceonce-poonceonces.litmus16 WRITE_ONCE(*x, 1);
26 WRITE_ONCE(*y, 1);
A DSB+fencembonceonces.litmus18 WRITE_ONCE(*x, 1);
27 WRITE_ONCE(*y, 1);
A DWRC+poonceonces+Once.litmus15 WRITE_ONCE(*x, 1);
23 WRITE_ONCE(*y, 1);
/tools/testing/selftests/bpf/
A Dbpf_arena_list.h49 WRITE_ONCE(n->next, first); in list_add_head()
54 WRITE_ONCE(first->pprev, tmp); in list_add_head()
57 WRITE_ONCE(h->first, n); in list_add_head()
62 WRITE_ONCE(n->pprev, tmp); in list_add_head()
74 WRITE_ONCE(tmp, next); in __list_del()
78 WRITE_ONCE(next->pprev, pprev); in __list_del()
/tools/testing/selftests/kvm/x86/
A Dsync_regs_test.c95 WRITE_ONCE(events->exception.nr, UD_VECTOR); in race_events_inj_pen()
99 WRITE_ONCE(events->flags, 0); in race_events_inj_pen()
100 WRITE_ONCE(events->exception.injected, 1); in race_events_inj_pen()
101 WRITE_ONCE(events->exception.pending, 1); in race_events_inj_pen()
120 WRITE_ONCE(events->flags, 0); in race_events_exc()
121 WRITE_ONCE(events->exception.nr, UD_VECTOR); in race_events_exc()
122 WRITE_ONCE(events->exception.pending, 1); in race_events_exc()
123 WRITE_ONCE(events->exception.nr, 255); in race_events_exc()
143 WRITE_ONCE(run->kvm_dirty_regs, KVM_SYNC_X86_SREGS); in race_sregs_cr4()
144 WRITE_ONCE(*cr4, pae_enabled); in race_sregs_cr4()
[all …]
/tools/memory-model/Documentation/
A Dlocking.txt34 WRITE_ONCE(x, 1);
36 WRITE_ONCE(y, 1);
75 WRITE_ONCE(x, 1);
77 WRITE_ONCE(y, 1);
163 WRITE_ONCE(x, 1);
164 WRITE_ONCE(y, 1);
172 WRITE_ONCE(z, 1);
178 WRITE_ONCE(z, 2);
196 WRITE_ONCE(x, 1);
197 WRITE_ONCE(y, 1);
[all …]
A Dcontrol-dependencies.txt37 WRITE_ONCE(b, 1);
65 WRITE_ONCE(b, 1);
69 WRITE_ONCE(b, 1);
108 WRITE_ONCE(b, 1);
111 WRITE_ONCE(b, 2);
125 WRITE_ONCE(b, 1);
128 WRITE_ONCE(b, 2);
138 WRITE_ONCE(b, 2);
151 WRITE_ONCE(b, 1);
154 WRITE_ONCE(b, 2);
[all …]
/tools/testing/selftests/kvm/lib/
A Ducall_common.c91 WRITE_ONCE(uc->args[GUEST_ERROR_STRING], (uint64_t)(exp)); in ucall_assert()
92 WRITE_ONCE(uc->args[GUEST_FILE], (uint64_t)(file)); in ucall_assert()
93 WRITE_ONCE(uc->args[GUEST_LINE], line); in ucall_assert()
129 WRITE_ONCE(uc->cmd, cmd); in ucall()
135 WRITE_ONCE(uc->args[i], va_arg(va, uint64_t)); in ucall()
/tools/testing/selftests/kvm/
A Dcoalesced_io_test.c53 WRITE_ONCE(*io->mmio, io->mmio_gpa + i); in guest_code()
60 WRITE_ONCE(*io->mmio, io->mmio_gpa + i); in guest_code()
64 WRITE_ONCE(*io->mmio, io->mmio_gpa + i); in guest_code()
81 WRITE_ONCE(ring->first, ring_start); in vcpu_run_and_verify_io_exit()
82 WRITE_ONCE(ring->last, ring_start); in vcpu_run_and_verify_io_exit()
169 WRITE_ONCE(ring->first, ring_start); in test_coalesced_io()
170 WRITE_ONCE(ring->last, ring_start); in test_coalesced_io()
A Dirqfd_test.c98 WRITE_ONCE(__eventfd, kvm_new_eventfd()); in main()
126 WRITE_ONCE(__eventfd, kvm_new_eventfd()); in main()
133 WRITE_ONCE(done, true); in main()

Completed in 20 milliseconds

12345