| /tools/lib/ |
| A D | rbtree.c | 155 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 D | S+poonceonces.litmus | 8 * 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 D | ISA2+poonceonces.litmus | 8 * 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 D | Z6.0+pooncelock+pooncelock+pombonce.litmus | 16 WRITE_ONCE(*x, 1); 17 WRITE_ONCE(*y, 1); 27 WRITE_ONCE(*z, 1); 35 WRITE_ONCE(*z, 2);
|
| A D | S+fencewmbonceonce+poacquireonce.litmus | 14 WRITE_ONCE(*x, 2); 16 WRITE_ONCE(*y, 1); 24 WRITE_ONCE(*x, 1);
|
| A D | R+poonceonces.litmus | 15 WRITE_ONCE(*x, 1); 16 WRITE_ONCE(*y, 1); 23 WRITE_ONCE(*y, 2);
|
| A D | R+fencembonceonces.litmus | 16 WRITE_ONCE(*x, 1); 18 WRITE_ONCE(*y, 1); 25 WRITE_ONCE(*y, 2);
|
| A D | ISA2+pooncelock+pooncelock+pombonce.litmus | 15 WRITE_ONCE(*x, 1); 16 WRITE_ONCE(*y, 1); 26 WRITE_ONCE(*z, 1);
|
| A D | CoWW+poonceonce.litmus | 14 WRITE_ONCE(*x, 1); 15 WRITE_ONCE(*x, 2);
|
| A D | LB+poonceonces.litmus | 17 WRITE_ONCE(*y, 1); 25 WRITE_ONCE(*x, 1);
|
| A D | CoRW+poonceonce+Once.litmus | 17 WRITE_ONCE(*x, 1); 22 WRITE_ONCE(*x, 2);
|
| A D | CoWR+poonceonce+Once.litmus | 16 WRITE_ONCE(*x, 1); 22 WRITE_ONCE(*x, 2);
|
| A D | MP+poonceonces.litmus | 14 WRITE_ONCE(*buf, 1); 15 WRITE_ONCE(*flag, 1);
|
| A D | SB+poonceonces.litmus | 17 WRITE_ONCE(*x, 1); 25 WRITE_ONCE(*y, 1);
|
| A D | MP+fencewmbonceonce+fencermbonceonce.litmus | 15 WRITE_ONCE(*buf, 1); 17 WRITE_ONCE(*flag, 1);
|
| A D | SB+rfionceonce-poonceonces.litmus | 16 WRITE_ONCE(*x, 1); 26 WRITE_ONCE(*y, 1);
|
| A D | SB+fencembonceonces.litmus | 18 WRITE_ONCE(*x, 1); 27 WRITE_ONCE(*y, 1);
|
| A D | WRC+poonceonces+Once.litmus | 15 WRITE_ONCE(*x, 1); 23 WRITE_ONCE(*y, 1);
|
| /tools/testing/selftests/bpf/ |
| A D | bpf_arena_list.h | 49 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 D | sync_regs_test.c | 95 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 D | locking.txt | 34 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 D | control-dependencies.txt | 37 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 D | ucall_common.c | 91 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 D | coalesced_io_test.c | 53 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 D | irqfd_test.c | 98 WRITE_ONCE(__eventfd, kvm_new_eventfd()); in main() 126 WRITE_ONCE(__eventfd, kvm_new_eventfd()); in main() 133 WRITE_ONCE(done, true); in main()
|