/Linux-v5.10/include/linux/ |
D | spinlock_up.h | 32 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 …]
|
D | preempt.h | 172 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 …]
|
D | compiler-intel.h | 16 #define barrier() __memory_barrier() macro 17 #define barrier_data(ptr) barrier() 28 #define OPTIMIZER_HIDE_VAR(var) barrier()
|
/Linux-v5.10/tools/virtio/ringtest/ |
D | main.h | 91 #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/ |
D | barrier.h | 26 #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/ |
D | barrier.h | 31 #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/ |
D | barrier.h | 4 #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/ |
D | irqflags.h | 35 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/ |
D | smp-tbsync.c | 53 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/ |
D | barrier.h | 54 #define dma_rmb() barrier() 55 #define dma_wmb() barrier() 63 #define __smp_wmb() barrier() 69 barrier(); \ 77 barrier(); \
|
/Linux-v5.10/tools/build/feature/ |
D | test-pthread-barrier.c | 7 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/ |
D | loop5.c | 5 #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/ |
D | barrier.h | 27 #define smp_rmb() barrier() 28 #define smp_wmb() barrier() 35 barrier(); \ 42 barrier(); \
|
/Linux-v5.10/arch/ia64/include/asm/ |
D | barrier.h | 48 #define __smp_mb__before_atomic() barrier() 49 #define __smp_mb__after_atomic() barrier() 59 barrier(); \ 67 barrier(); \
|
/Linux-v5.10/arch/sparc/include/asm/ |
D | barrier_64.h | 44 barrier(); \ 52 barrier(); \ 56 #define __smp_mb__before_atomic() barrier() 57 #define __smp_mb__after_atomic() barrier()
|
/Linux-v5.10/arch/parisc/include/asm/ |
D | barrier.h | 22 #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/ |
D | hardirq.h | 54 barrier(); \ 60 barrier(); \ 78 barrier(); \ 86 barrier(); \
|
/Linux-v5.10/arch/arm/include/asm/ |
D | barrier.h | 70 #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/ |
D | time.c | 37 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/ |
D | barrier.h | 15 #define rmb() barrier() 19 #define __smp_mb__before_atomic() barrier() 20 #define __smp_mb__after_atomic() barrier()
|
/Linux-v5.10/Documentation/ |
D | memory-barriers.txt | 29 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/ |
D | compiler.h | 41 #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/ |
D | barrier.h | 86 # define __smp_mb() barrier() 87 # define __smp_rmb() barrier() 88 # define __smp_wmb() barrier()
|
D | io.h | 213 #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/ |
D | usbgecko_udbg.c | 63 barrier(); in ug_io_transaction() 117 barrier(); in ug_putc() 155 barrier(); in ug_getc() 180 barrier(); in ug_udbg_getc()
|