/openbmc/linux/arch/loongarch/include/asm/ |
H A D | atomic.h | 35 #define ATOMIC_OP(op, I, asm_op) \ argument 39 "am"#asm_op"_db.w" " $zero, %1, %0 \n" \ 51 "am"#asm_op"_db.w" " %1, %2, %0 \n" \ 65 "am"#asm_op"_db.w" " %1, %2, %0 \n" \ 74 ATOMIC_OP(op, I, asm_op) \ 76 ATOMIC_FETCH_OP(op, I, asm_op) 88 #define ATOMIC_OPS(op, I, asm_op) \ argument 89 ATOMIC_OP(op, I, asm_op) \ 90 ATOMIC_FETCH_OP(op, I, asm_op) 211 ATOMIC64_FETCH_OP(op, I, asm_op) [all …]
|
H A D | percpu.h | 39 #define PERCPU_OP(op, asm_op, c_op) \ argument 48 "am"#asm_op".w" " %[ret], %[val], %[ptr] \n" \ 54 "am"#asm_op".d" " %[ret], %[val], %[ptr] \n" \
|
/openbmc/linux/arch/arc/include/asm/ |
H A D | atomic-llsc.h | 8 #define ATOMIC_OP(op, asm_op) \ argument 15 " " #asm_op " %[val], %[val], %[i] \n" \ 24 #define ATOMIC_OP_RETURN(op, asm_op) \ argument 45 #define ATOMIC_FETCH_OP(op, asm_op) \ argument 72 #define ATOMIC_OPS(op, asm_op) \ argument 73 ATOMIC_OP(op, asm_op) \ 74 ATOMIC_OP_RETURN(op, asm_op) \ 75 ATOMIC_FETCH_OP(op, asm_op) 81 #define ATOMIC_OPS(op, asm_op) \ argument 82 ATOMIC_OP(op, asm_op) \ [all …]
|
H A 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) 90 #define ATOMIC_OPS(op, c_op, asm_op) \ argument 91 ATOMIC_OP(op, c_op, asm_op) \ 92 ATOMIC_FETCH_OP(op, c_op, asm_op)
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | atomic.h | 56 #asm_op "%I2" suffix " %0,%0,%2\n" \ 71 #asm_op "%I2" suffix " %0,%0,%2\n" \ 88 #asm_op "%I3" suffix " %1,%0,%3\n" \ 215 #define ATOMIC64_OP(op, asm_op) \ argument 222 #asm_op " %0,%2,%0\n" \ 238 #asm_op " %0,%2,%0\n" \ 256 #asm_op " %1,%3,%0\n" \ 266 #define ATOMIC64_OPS(op, asm_op) \ argument 267 ATOMIC64_OP(op, asm_op) \ 269 ATOMIC64_FETCH_OP_RELAXED(op, asm_op) [all …]
|
/openbmc/linux/arch/riscv/include/asm/ |
H A D | atomic.h | 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) 95 " amo" #asm_op "." #asm_type " %1, %2, %0" \ in ATOMIC_OPS() 127 #define ATOMIC_OPS(op, asm_op, c_op, I) \ argument 131 #define ATOMIC_OPS(op, asm_op, c_op, I) \ 166 #define ATOMIC_OPS(op, asm_op, I) \ argument [all …]
|
/openbmc/linux/arch/m68k/include/asm/ |
H A D | atomic.h | 32 #define ATOMIC_OP(op, c_op, asm_op) \ argument 40 #define ATOMIC_OP_RETURN(op, c_op, asm_op) \ argument 47 " " #asm_op "l %3,%1\n" \ 62 " " #asm_op "l %3,%1\n" \ 101 #define ATOMIC_OPS(op, c_op, asm_op) \ argument 102 ATOMIC_OP(op, c_op, asm_op) \ 103 ATOMIC_OP_RETURN(op, c_op, asm_op) \ 104 ATOMIC_FETCH_OP(op, c_op, asm_op) 115 #define ATOMIC_OPS(op, c_op, asm_op) \ argument 116 ATOMIC_OP(op, c_op, asm_op) \ [all …]
|
/openbmc/linux/arch/alpha/include/asm/ |
H A D | atomic.h | 41 #define ATOMIC_OP(op, asm_op) \ argument 47 " " #asm_op " %0,%2,%0\n" \ 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" \ 117 " " #asm_op " %0,%3,%2\n" \ 118 " " #asm_op " %0,%3,%0\n" \ [all …]
|
/openbmc/linux/arch/arm64/include/asm/ |
H A D | atomic_lse.h | 13 #define ATOMIC_OP(op, asm_op) \ argument 19 " " #asm_op " %w[i], %[v]\n" \ 44 " " #asm_op #mb " %w[i], %w[old], %[v]" \ 53 #define ATOMIC_FETCH_OPS(op, asm_op) \ argument 54 ATOMIC_FETCH_OP(_relaxed, , op, asm_op) \ 57 ATOMIC_FETCH_OP( , al, op, asm_op, "memory") 120 #define ATOMIC64_OP(op, asm_op) \ argument 126 " " #asm_op " %[i], %[v]\n" \ 151 " " #asm_op #mb " %[i], %[old], %[v]" \ 160 #define ATOMIC64_FETCH_OPS(op, asm_op) \ argument [all …]
|
H A 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() 148 " " #asm_op " %0, %0, %3\n" \ 159 #define ATOMIC64_FETCH_OP(name, mb, acq, rel, cl, op, asm_op, constraint)\ argument [all …]
|
/openbmc/linux/arch/mips/include/asm/ |
H A D | atomic.h | 44 #define ATOMIC_OP(pfx, op, type, c_op, asm_op, ll, sc) \ argument 63 " " #asm_op " %0, %2 \n" \ 93 " " #asm_op " %0, %1, %3 \n" \ 96 " " #asm_op " %0, %1, %3 \n" \ 126 " " #asm_op " %0, %1, %3 \n" \ 139 #define ATOMIC_OPS(pfx, op, type, c_op, asm_op, ll, sc) \ argument 140 ATOMIC_OP(pfx, op, type, c_op, asm_op, ll, sc) \ 141 ATOMIC_OP_RETURN(pfx, op, type, c_op, asm_op, ll, sc) \ 142 ATOMIC_FETCH_OP(pfx, op, type, c_op, asm_op, ll, sc) 163 ATOMIC_OP(pfx, op, type, c_op, asm_op, ll, sc) \ [all …]
|
/openbmc/linux/arch/arm/include/asm/ |
H A D | atomic.h | 36 #define ATOMIC_OP(op, c_op, asm_op) \ argument 45 " " #asm_op " %0, %0, %4\n" \ 64 " " #asm_op " %0, %0, %4\n" \ 85 " " #asm_op " %1, %0, %5\n" \ 162 #define ATOMIC_OP(op, c_op, asm_op) \ argument 227 #define ATOMIC_OPS(op, c_op, asm_op) \ argument 228 ATOMIC_OP(op, c_op, asm_op) \ 229 ATOMIC_OP_RETURN(op, c_op, asm_op) \ 230 ATOMIC_FETCH_OP(op, c_op, asm_op) 239 ATOMIC_OP(op, c_op, asm_op) \ [all …]
|