1 // SPDX-License-Identifier: GPL-2.0 2 3 #include <asm/barrier.h> 4 5 __rust_helper void rust_helper_mb(void) 6 { 7 mb(); 8 } 9 10 __rust_helper void rust_helper_rmb(void) 11 { 12 rmb(); 13 } 14 15 __rust_helper void rust_helper_wmb(void) 16 { 17 wmb(); 18 } 19 20 __rust_helper void rust_helper_dma_mb(void) 21 { 22 dma_mb(); 23 } 24 25 __rust_helper void rust_helper_dma_rmb(void) 26 { 27 dma_rmb(); 28 } 29 30 __rust_helper void rust_helper_dma_wmb(void) 31 { 32 dma_wmb(); 33 } 34 35 __rust_helper void rust_helper_smp_mb(void) 36 { 37 smp_mb(); 38 } 39 40 __rust_helper void rust_helper_smp_wmb(void) 41 { 42 smp_wmb(); 43 } 44 45 __rust_helper void rust_helper_smp_rmb(void) 46 { 47 smp_rmb(); 48 } 49