/arch/arc/include/asm/ |
D | atomic-llsc.h | 8 #define ATOMIC_OP(op, c_op, asm_op) \ argument 15 " " #asm_op " %[val], %[val], %[i] \n" \ 24 #define ATOMIC_OP_RETURN(op, c_op, asm_op) \ argument 31 " " #asm_op " %[val], %[val], %[i] \n" \ 45 #define ATOMIC_FETCH_OP(op, c_op, asm_op) \ argument 52 " " #asm_op " %[val], %[orig], %[i] \n" \ 72 #define ATOMIC_OPS(op, c_op, asm_op) \ argument 73 ATOMIC_OP(op, c_op, asm_op) \ 74 ATOMIC_OP_RETURN(op, c_op, asm_op) \ 75 ATOMIC_FETCH_OP(op, c_op, asm_op) [all …]
|
D | atomic-spinlock.h | 31 #define ATOMIC_OP(op, c_op, asm_op) \ argument 41 #define ATOMIC_OP_RETURN(op, c_op, asm_op) \ argument 59 #define ATOMIC_FETCH_OP(op, c_op, asm_op) \ argument 76 #define ATOMIC_OPS(op, c_op, asm_op) \ argument 77 ATOMIC_OP(op, c_op, asm_op) \ 78 ATOMIC_OP_RETURN(op, c_op, asm_op) \ 79 ATOMIC_FETCH_OP(op, c_op, asm_op) 85 #define ATOMIC_OPS(op, c_op, asm_op) \ argument 86 ATOMIC_OP(op, c_op, asm_op) \ 87 ATOMIC_FETCH_OP(op, c_op, asm_op)
|
/arch/m68k/include/asm/ |
D | atomic.h | 32 #define ATOMIC_OP(op, c_op, asm_op) \ argument 35 __asm__ __volatile__(#asm_op "l %1,%0" : "+m" (*v) : ASM_DI (i));\ 40 #define ATOMIC_OP_RETURN(op, c_op, asm_op) \ argument 47 " " #asm_op "l %3,%1\n" \ 55 #define ATOMIC_FETCH_OP(op, c_op, asm_op) \ argument 62 " " #asm_op "l %3,%1\n" \ 72 #define ATOMIC_OP_RETURN(op, c_op, asm_op) \ argument 85 #define ATOMIC_FETCH_OP(op, c_op, asm_op) \ argument 101 #define ATOMIC_OPS(op, c_op, asm_op) \ argument 102 ATOMIC_OP(op, c_op, asm_op) \ [all …]
|
/arch/powerpc/include/asm/ |
D | atomic.h | 40 #define ATOMIC_OP(op, asm_op) \ argument 47 #asm_op " %0,%2,%0\n" \ 55 #define ATOMIC_OP_RETURN_RELAXED(op, asm_op) \ argument 62 #asm_op " %0,%2,%0\n" \ 72 #define ATOMIC_FETCH_OP_RELAXED(op, asm_op) \ argument 79 #asm_op " %1,%3,%0\n" \ 89 #define ATOMIC_OPS(op, asm_op) \ argument 90 ATOMIC_OP(op, asm_op) \ 91 ATOMIC_OP_RETURN_RELAXED(op, asm_op) \ 92 ATOMIC_FETCH_OP_RELAXED(op, asm_op) [all …]
|
/arch/riscv/include/asm/ |
D | atomic.h | 54 #define ATOMIC_OP(op, asm_op, I, asm_type, c_type, prefix) \ argument 59 " amo" #asm_op "." #asm_type " zero, %1, %0" \ 66 #define ATOMIC_OPS(op, asm_op, I) \ argument 67 ATOMIC_OP (op, asm_op, I, w, int, ) 69 #define ATOMIC_OPS(op, asm_op, I) \ argument 70 ATOMIC_OP (op, asm_op, I, w, int, ) \ 71 ATOMIC_OP (op, asm_op, I, d, s64, 64) 88 #define ATOMIC_FETCH_OP(op, asm_op, I, asm_type, c_type, prefix) \ in ATOMIC_OPS() argument 95 " amo" #asm_op "." #asm_type " %1, %2, %0" \ in ATOMIC_OPS() 106 " amo" #asm_op "." #asm_type ".aqrl %1, %2, %0" \ [all …]
|
/arch/alpha/include/asm/ |
D | atomic.h | 41 #define ATOMIC_OP(op, asm_op) \ argument 47 " " #asm_op " %0,%2,%0\n" \ 57 #define ATOMIC_OP_RETURN(op, asm_op) \ argument 63 " " #asm_op " %0,%3,%2\n" \ 64 " " #asm_op " %0,%3,%0\n" \ 76 #define ATOMIC_FETCH_OP(op, asm_op) \ argument 82 " " #asm_op " %2,%3,%0\n" \ 94 #define ATOMIC64_OP(op, asm_op) \ argument 100 " " #asm_op " %0,%2,%0\n" \ 110 #define ATOMIC64_OP_RETURN(op, asm_op) \ argument [all …]
|
/arch/mips/include/asm/ |
D | atomic.h | 56 #define ATOMIC_OP(pfx, op, type, c_op, asm_op, ll, sc) \ argument 75 " " #asm_op " %0, %2 \n" \ 83 #define ATOMIC_OP_RETURN(pfx, op, type, c_op, asm_op, ll, sc) \ argument 105 " " #asm_op " %0, %1, %3 \n" \ 108 " " #asm_op " %0, %1, %3 \n" \ 117 #define ATOMIC_FETCH_OP(pfx, op, type, c_op, asm_op, ll, sc) \ argument 138 " " #asm_op " %0, %1, %3 \n" \ 151 #define ATOMIC_OPS(pfx, op, type, c_op, asm_op, ll, sc) \ argument 152 ATOMIC_OP(pfx, op, type, c_op, asm_op, ll, sc) \ 153 ATOMIC_OP_RETURN(pfx, op, type, c_op, asm_op, ll, sc) \ [all …]
|
/arch/arm64/include/asm/ |
D | atomic_lse.h | 13 #define ATOMIC_OP(op, asm_op) \ argument 18 " " #asm_op " %w[i], %[v]\n" \ 30 #define ATOMIC_FETCH_OP(name, mb, op, asm_op, cl...) \ in ATOMIC_OP() argument 35 " " #asm_op #mb " %w[i], %w[i], %[v]" \ in ATOMIC_OP() 43 #define ATOMIC_FETCH_OPS(op, asm_op) \ argument 44 ATOMIC_FETCH_OP(_relaxed, , op, asm_op) \ 45 ATOMIC_FETCH_OP(_acquire, a, op, asm_op, "memory") \ 46 ATOMIC_FETCH_OP(_release, l, op, asm_op, "memory") \ 47 ATOMIC_FETCH_OP( , al, op, asm_op, "memory") 166 #define ATOMIC64_OP(op, asm_op) \ argument [all …]
|
D | atomic_ll_sc.h | 25 #define ATOMIC_OP(op, asm_op, constraint) \ argument 35 " " #asm_op " %w0, %w0, %w3\n" \ 42 #define ATOMIC_OP_RETURN(name, mb, acq, rel, cl, op, asm_op, constraint)\ argument 52 " " #asm_op " %w0, %w0, %w3\n" \ 63 #define ATOMIC_FETCH_OP(name, mb, acq, rel, cl, op, asm_op, constraint) \ argument 73 " " #asm_op " %w1, %w0, %w4\n" \ 121 #define ATOMIC64_OP(op, asm_op, constraint) \ in ATOMIC_OPS() argument 131 " " #asm_op " %0, %0, %3\n" \ in ATOMIC_OPS() 138 #define ATOMIC64_OP_RETURN(name, mb, acq, rel, cl, op, asm_op, constraint)\ argument 148 " " #asm_op " %0, %0, %3\n" \ [all …]
|
/arch/arm/include/asm/ |
D | atomic.h | 36 #define ATOMIC_OP(op, c_op, asm_op) \ argument 45 " " #asm_op " %0, %0, %4\n" \ 54 #define ATOMIC_OP_RETURN(op, c_op, asm_op) \ argument 64 " " #asm_op " %0, %0, %4\n" \ 75 #define ATOMIC_FETCH_OP(op, c_op, asm_op) \ argument 85 " " #asm_op " %1, %0, %5\n" \ 162 #define ATOMIC_OP(op, c_op, asm_op) \ argument 172 #define ATOMIC_OP_RETURN(op, c_op, asm_op) \ argument 186 #define ATOMIC_FETCH_OP(op, c_op, asm_op) \ argument 218 #define ATOMIC_OPS(op, c_op, asm_op) \ argument [all …]
|