Home
last modified time | relevance | path

Searched refs:barrier (Results 1 – 25 of 2471) sorted by relevance

12345678910>>...99

/linux/include/linux/
A Dspinlock_up.h32 barrier(); in arch_spin_lock()
40 barrier(); in arch_spin_trylock()
47 barrier(); in arch_spin_unlock()
54 #define arch_read_lock(lock) do { barrier(); (void)(lock); } while (0)
55 #define arch_write_lock(lock) do { barrier(); (void)(lock); } while (0)
56 #define arch_read_trylock(lock) ({ barrier(); (void)(lock); 1; })
57 #define arch_write_trylock(lock) ({ barrier(); (void)(lock); 1; })
58 #define arch_read_unlock(lock) do { barrier(); (void)(lock); } while (0)
59 #define arch_write_unlock(lock) do { barrier(); (void)(lock); } while (0)
64 # define arch_spin_lock(lock) do { barrier(); (void)(lock); } while (0)
[all …]
A Dpreempt.h204 barrier(); \
209 barrier(); \
220 barrier(); \
227 barrier(); \
241 barrier(); \
247 barrier(); \
257 barrier(); \
262 barrier(); \
274 #define preempt_disable() barrier()
277 #define preempt_enable() barrier()
[all …]
A Dcompiler-intel.h16 #define barrier() __memory_barrier() macro
17 #define barrier_data(ptr) barrier()
28 #define OPTIMIZER_HIDE_VAR(var) barrier()
/linux/tools/virtio/ringtest/
A Dmain.h91 #define barrier() asm volatile("" ::: "memory") macro
97 #define cpu_relax() barrier()
110 barrier(); in busy_wait()
128 barrier(); \
134 barrier(); \
138 #define smp_wmb() barrier()
158 barrier(); \ in __read_once_size()
160 barrier(); \ in __read_once_size()
172 barrier(); in __write_once_size()
174 barrier(); in __write_once_size()
/linux/include/asm-generic/
A Dbarrier.h31 #define mb() barrier()
79 #define smp_mb() barrier()
83 #define smp_rmb() barrier()
87 #define smp_wmb() barrier()
148 #define smp_store_mb(var, value) do { WRITE_ONCE(var, value); barrier(); } while (0)
152 #define smp_mb__before_atomic() barrier()
156 #define smp_mb__after_atomic() barrier()
163 barrier(); \
173 barrier(); \
/linux/arch/s390/include/asm/
A Dbarrier.h30 #define rmb() barrier()
31 #define wmb() barrier()
41 barrier(); \
49 barrier(); \
53 #define __smp_mb__before_atomic() barrier()
54 #define __smp_mb__after_atomic() barrier()
/linux/arch/powerpc/kernel/
A Dsmp-tbsync.c53 barrier(); in smp_generic_take_timebase()
59 barrier(); in smp_generic_take_timebase()
70 barrier(); in smp_generic_take_timebase()
96 barrier(); in start_contest()
99 barrier(); in start_contest()
104 barrier(); in start_contest()
125 barrier(); in smp_generic_give_timebase()
166 barrier(); in smp_generic_give_timebase()
/linux/arch/alpha/include/asm/
A Dirqflags.h35 barrier(); in arch_local_irq_disable()
41 barrier(); in arch_local_irq_save()
47 barrier(); in arch_local_irq_enable()
53 barrier(); in arch_local_irq_restore()
55 barrier(); in arch_local_irq_restore()
/linux/tools/virtio/asm/
A Dbarrier.h4 #define barrier() asm volatile("" ::: "memory") macro
6 #define virt_rmb() barrier()
7 #define virt_wmb() barrier()
13 barrier(); \
30 #error Please fill in barrier macros
/linux/arch/x86/include/asm/
A Dbarrier.h54 #define dma_rmb() barrier()
55 #define dma_wmb() barrier()
60 #define __smp_wmb() barrier()
66 barrier(); \
74 barrier(); \
/linux/tools/build/feature/
A Dtest-pthread-barrier.c7 pthread_barrier_t barrier; in main() local
9 pthread_barrier_init(&barrier, NULL, 1); in main()
10 pthread_barrier_wait(&barrier); in main()
11 return pthread_barrier_destroy(&barrier); in main()
/linux/tools/testing/selftests/bpf/progs/
A Dloop5.c5 #define barrier() __asm__ __volatile__("": : :"memory") macro
21 barrier(); in while_true()
24 barrier(); in while_true()
27 barrier(); in while_true()
/linux/arch/parisc/include/asm/
A Dbarrier.h22 #define mb() barrier()
23 #define rmb() barrier()
24 #define wmb() barrier()
25 #define dma_rmb() barrier()
26 #define dma_wmb() barrier()
/linux/tools/arch/x86/include/asm/
A Dbarrier.h27 #define smp_rmb() barrier()
28 #define smp_wmb() barrier()
35 barrier(); \
42 barrier(); \
/linux/Documentation/
A Dmemory-barriers.txt571 <write barrier>
598 <write barrier>
721 barrier();
725 barrier();
734 barrier();
931 a release barrier, a read barrier, or a general barrier. Similarly a
933 with a write barrier, an acquire barrier, a release barrier, or a
978 <write barrier> \ <read barrier>
1370 <general barrier> <read barrier>
1519 barrier();
[all …]
/linux/arch/ia64/include/asm/
A Dbarrier.h48 #define __smp_mb__before_atomic() barrier()
49 #define __smp_mb__after_atomic() barrier()
59 barrier(); \
67 barrier(); \
/linux/arch/sparc/include/asm/
A Dbarrier_64.h44 barrier(); \
52 barrier(); \
56 #define __smp_mb__before_atomic() barrier()
57 #define __smp_mb__after_atomic() barrier()
/linux/arch/arm/include/asm/
A Dbarrier.h70 #define mb() barrier()
71 #define rmb() barrier()
72 #define wmb() barrier()
73 #define dma_rmb() barrier()
74 #define dma_wmb() barrier()
/linux/arch/arm64/include/asm/
A Dhardirq.h51 barrier(); \
57 barrier(); \
75 barrier(); \
83 barrier(); \
/linux/tools/testing/selftests/perf_events/
A Dsigtrap_threads.c86 pthread_barrier_t *barrier = (pthread_barrier_t *)arg; in test_thread() local
91 pthread_barrier_wait(barrier); in test_thread()
107 pthread_barrier_t barrier; in FIXTURE() local
130 pthread_barrier_init(&self->barrier, NULL, NUM_THREADS + 1); in FIXTURE_SETUP()
132 ASSERT_EQ(pthread_create(&self->threads[i], NULL, test_thread, &self->barrier), 0); in FIXTURE_SETUP()
137 pthread_barrier_destroy(&self->barrier); in FIXTURE_TEARDOWN()
147 pthread_barrier_wait(&self->barrier); in run_test_threads()
/linux/arch/arm/mach-rpc/
A Dtime.c37 barrier (); in ioc_timer_read()
39 barrier (); in ioc_timer_read()
41 barrier (); in ioc_timer_read()
43 barrier (); in ioc_timer_read()
/linux/tools/include/linux/
A Dcompiler.h39 #define barrier() __asm__ __volatile__("": : :"memory") macro
135 barrier(); in __read_once_size()
137 barrier(); in __read_once_size()
149 barrier(); in __write_once_size()
151 barrier(); in __write_once_size()
/linux/arch/xtensa/include/asm/
A Dbarrier.h15 #define rmb() barrier()
19 #define __smp_mb__before_atomic() barrier()
20 #define __smp_mb__after_atomic() barrier()
/linux/arch/mips/include/asm/
A Dbarrier.h86 # define __smp_mb() barrier()
87 # define __smp_rmb() barrier()
88 # define __smp_wmb() barrier()
A Dio.h225 #define war_io_reorder_wmb() barrier()
228 #define __BUILD_MEMORY_SINGLE(pfx, bwlq, type, barrier, relax, irq) \ argument
236 if (barrier) \
277 if (barrier) \
309 #define __BUILD_IOPORT_SINGLE(pfx, bwlq, type, barrier, relax, p) \ argument
316 if (barrier) \
340 if (barrier) \

Completed in 57 milliseconds

12345678910>>...99