Home
last modified time | relevance | path

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

12345678910>>...17

/Linux-v5.10/include/linux/
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 …]
Dpreempt.h172 barrier(); \
177 barrier(); \
188 barrier(); \
195 barrier(); \
209 barrier(); \
215 barrier(); \
225 barrier(); \
230 barrier(); \
242 #define preempt_disable() barrier()
243 #define sched_preempt_enable_no_resched() barrier()
[all …]
Dcompiler-intel.h16 #define barrier() __memory_barrier() macro
17 #define barrier_data(ptr) barrier()
28 #define OPTIMIZER_HIDE_VAR(var) barrier()
/Linux-v5.10/tools/virtio/ringtest/
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-v5.10/arch/s390/include/asm/
Dbarrier.h26 #define rmb() barrier()
27 #define wmb() barrier()
37 barrier(); \
45 barrier(); \
49 #define __smp_mb__before_atomic() barrier()
50 #define __smp_mb__after_atomic() barrier()
/Linux-v5.10/include/asm-generic/
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-v5.10/tools/virtio/asm/
Dbarrier.h4 #define barrier() asm volatile("" ::: "memory") macro
6 #define virt_rmb() barrier()
7 #define virt_wmb() barrier()
13 barrier(); \
20 #error Please fill in barrier macros
/Linux-v5.10/arch/alpha/include/asm/
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-v5.10/arch/powerpc/kernel/
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-v5.10/arch/x86/include/asm/
Dbarrier.h54 #define dma_rmb() barrier()
55 #define dma_wmb() barrier()
63 #define __smp_wmb() barrier()
69 barrier(); \
77 barrier(); \
/Linux-v5.10/tools/build/feature/
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-v5.10/tools/testing/selftests/bpf/progs/
Dloop5.c5 #define barrier() __asm__ __volatile__("": : :"memory") macro
21 barrier(); in while_true()
24 barrier(); in while_true()
27 barrier(); in while_true()
/Linux-v5.10/tools/arch/x86/include/asm/
Dbarrier.h27 #define smp_rmb() barrier()
28 #define smp_wmb() barrier()
35 barrier(); \
42 barrier(); \
/Linux-v5.10/arch/ia64/include/asm/
Dbarrier.h48 #define __smp_mb__before_atomic() barrier()
49 #define __smp_mb__after_atomic() barrier()
59 barrier(); \
67 barrier(); \
/Linux-v5.10/arch/sparc/include/asm/
Dbarrier_64.h44 barrier(); \
52 barrier(); \
56 #define __smp_mb__before_atomic() barrier()
57 #define __smp_mb__after_atomic() barrier()
/Linux-v5.10/arch/parisc/include/asm/
Dbarrier.h22 #define mb() barrier()
23 #define rmb() barrier()
24 #define wmb() barrier()
25 #define dma_rmb() barrier()
26 #define dma_wmb() barrier()
/Linux-v5.10/arch/arm64/include/asm/
Dhardirq.h54 barrier(); \
60 barrier(); \
78 barrier(); \
86 barrier(); \
/Linux-v5.10/arch/arm/include/asm/
Dbarrier.h70 #define mb() barrier()
71 #define rmb() barrier()
72 #define wmb() barrier()
73 #define dma_rmb() barrier()
74 #define dma_wmb() barrier()
/Linux-v5.10/arch/arm/mach-rpc/
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-v5.10/arch/xtensa/include/asm/
Dbarrier.h15 #define rmb() barrier()
19 #define __smp_mb__before_atomic() barrier()
20 #define __smp_mb__after_atomic() barrier()
/Linux-v5.10/Documentation/
Dmemory-barriers.txt29 particular barrier, and
34 for any particular barrier, but if the architecture provides less than
37 Note also that it is possible that a barrier may be a no-op for an
38 architecture because the way that arch works renders an explicit barrier
53 - Varieties of memory barrier.
57 - SMP barrier pairing.
58 - Examples of memory barrier sequences.
64 - Compiler barrier.
74 (*) Inter-CPU acquiring barrier effects.
85 (*) Kernel I/O barrier effects.
[all …]
/Linux-v5.10/tools/include/linux/
Dcompiler.h41 #define barrier() __asm__ __volatile__("": : :"memory") macro
137 barrier(); in __read_once_size()
139 barrier(); in __read_once_size()
151 barrier(); in __write_once_size()
153 barrier(); in __write_once_size()
/Linux-v5.10/arch/mips/include/asm/
Dbarrier.h86 # define __smp_mb() barrier()
87 # define __smp_rmb() barrier()
88 # define __smp_wmb() barrier()
Dio.h213 #define war_io_reorder_wmb() barrier()
216 #define __BUILD_MEMORY_SINGLE(pfx, bwlq, type, barrier, relax, irq) \ argument
224 if (barrier) \
265 if (barrier) \
297 #define __BUILD_IOPORT_SINGLE(pfx, bwlq, type, barrier, relax, p) \ argument
304 if (barrier) \
328 if (barrier) \
/Linux-v5.10/arch/powerpc/platforms/embedded6xx/
Dusbgecko_udbg.c63 barrier(); in ug_io_transaction()
117 barrier(); in ug_putc()
155 barrier(); in ug_getc()
180 barrier(); in ug_udbg_getc()

12345678910>>...17