/openbmc/linux/tools/testing/selftests/rseq/ |
H A D | rseq.h | 243 intptr_t newv, int cpu) in rseq_cmpeqv_storev() argument 249 return rseq_cmpeqv_storev_relaxed_cpu_id(v, expect, newv, cpu); in rseq_cmpeqv_storev() 251 return rseq_cmpeqv_storev_relaxed_mm_cid(v, expect, newv, cpu); in rseq_cmpeqv_storev() 316 intptr_t newv, int cpu) in rseq_cmpeqv_trystorev_storev() argument 322 return rseq_cmpeqv_trystorev_storev_relaxed_cpu_id(v, expect, v2, newv2, newv, cpu); in rseq_cmpeqv_trystorev_storev() 324 return rseq_cmpeqv_trystorev_storev_relaxed_mm_cid(v, expect, v2, newv2, newv, cpu); in rseq_cmpeqv_trystorev_storev() 330 return rseq_cmpeqv_trystorev_storev_release_cpu_id(v, expect, v2, newv2, newv, cpu); in rseq_cmpeqv_trystorev_storev() 332 return rseq_cmpeqv_trystorev_storev_release_mm_cid(v, expect, v2, newv2, newv, cpu); in rseq_cmpeqv_trystorev_storev() 344 intptr_t newv, int cpu) in rseq_cmpeqv_cmpeqv_storev() argument 350 return rseq_cmpeqv_cmpeqv_storev_relaxed_cpu_id(v, expect, v2, expect2, newv, cpu); in rseq_cmpeqv_cmpeqv_storev() [all …]
|
H A D | rseq-arm64-bits.h | 15 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_storev)(intptr_t *v, intptr_t expect, intptr_t newv, int c… in RSEQ_TEMPLATE_IDENTIFIER() 35 RSEQ_ASM_OP_FINAL_STORE(newv, v, 3) in RSEQ_TEMPLATE_IDENTIFIER() 44 [newv] "r" (newv) in RSEQ_TEMPLATE_IDENTIFIER() 183 intptr_t newv, int cpu) in RSEQ_TEMPLATE_IDENTIFIER() 207 RSEQ_ASM_OP_FINAL_STORE(newv, v, 3) in RSEQ_TEMPLATE_IDENTIFIER() 218 [newv] "r" (newv) in RSEQ_TEMPLATE_IDENTIFIER() 257 intptr_t newv, int cpu) in RSEQ_TEMPLATE_IDENTIFIER() 280 RSEQ_ASM_OP_FINAL_STORE_RELEASE(newv, v, 3) in RSEQ_TEMPLATE_IDENTIFIER() 282 RSEQ_ASM_OP_FINAL_STORE(newv, v, 3) in RSEQ_TEMPLATE_IDENTIFIER() 292 [newv] "r" (newv), in RSEQ_TEMPLATE_IDENTIFIER() [all …]
|
H A D | rseq-riscv-bits.h | 9 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_storev)(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) in RSEQ_TEMPLATE_IDENTIFIER() 28 RSEQ_ASM_OP_FINAL_STORE(newv, v, 3) in RSEQ_TEMPLATE_IDENTIFIER() 37 [newv] "r" (newv) in RSEQ_TEMPLATE_IDENTIFIER() 165 intptr_t newv, int cpu) in RSEQ_TEMPLATE_IDENTIFIER() 188 RSEQ_ASM_OP_FINAL_STORE(newv, v, 3) in RSEQ_TEMPLATE_IDENTIFIER() 199 [newv] "r" (newv) in RSEQ_TEMPLATE_IDENTIFIER() 283 intptr_t newv, int cpu) in RSEQ_TEMPLATE_IDENTIFIER() 305 RSEQ_ASM_OP_FINAL_STORE_RELEASE(newv, in RSEQ_TEMPLATE_IDENTIFIER() [all...] |
H A D | rseq-ppc-bits.h | 15 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_storev)(intptr_t *v, intptr_t expect, intptr_t newv, int c… in RSEQ_TEMPLATE_IDENTIFIER() 41 RSEQ_ASM_OP_FINAL_STORE(newv, v, 2) in RSEQ_TEMPLATE_IDENTIFIER() 50 [newv] "r" (newv) in RSEQ_TEMPLATE_IDENTIFIER() 209 intptr_t newv, int cpu) in RSEQ_TEMPLATE_IDENTIFIER() 241 RSEQ_ASM_OP_FINAL_STORE(newv, v, 2) in RSEQ_TEMPLATE_IDENTIFIER() 254 [newv] "r" (newv) in RSEQ_TEMPLATE_IDENTIFIER() 294 intptr_t newv, int cpu) in RSEQ_TEMPLATE_IDENTIFIER() 327 RSEQ_ASM_OP_FINAL_STORE(newv, v, 2) in RSEQ_TEMPLATE_IDENTIFIER() 340 [newv] "r" (newv) in RSEQ_TEMPLATE_IDENTIFIER() 371 intptr_t newv, int cpu) in RSEQ_TEMPLATE_IDENTIFIER() [all …]
|
H A D | rseq-x86-bits.h | 16 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_storev)(intptr_t *v, intptr_t expect, intptr_t newv, int c… in RSEQ_TEMPLATE_IDENTIFIER() 49 [newv] "r" (newv) in RSEQ_TEMPLATE_IDENTIFIER() 257 intptr_t newv, int cpu) in RSEQ_TEMPLATE_IDENTIFIER() 300 [newv] "r" (newv) in RSEQ_TEMPLATE_IDENTIFIER() 339 intptr_t newv, int cpu) in RSEQ_TEMPLATE_IDENTIFIER() 379 [newv] "r" (newv) in RSEQ_TEMPLATE_IDENTIFIER() 409 intptr_t newv, int cpu) in RSEQ_TEMPLATE_IDENTIFIER() 485 [newv] "r" (newv), in RSEQ_TEMPLATE_IDENTIFIER() 528 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_storev)(intptr_t *v, intptr_t expect, intptr_t newv, int c… in RSEQ_TEMPLATE_IDENTIFIER() 561 [newv] "r" (newv) in RSEQ_TEMPLATE_IDENTIFIER() [all …]
|
H A D | rseq-mips-bits.h | 14 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_storev)(intptr_t *v, intptr_t expect, intptr_t newv, int c… in RSEQ_TEMPLATE_IDENTIFIER() 50 [newv] "r" (newv) in RSEQ_TEMPLATE_IDENTIFIER() 192 intptr_t newv, int cpu) in RSEQ_TEMPLATE_IDENTIFIER() 238 [newv] "r" (newv) in RSEQ_TEMPLATE_IDENTIFIER() 272 intptr_t newv, int cpu) in RSEQ_TEMPLATE_IDENTIFIER() 318 [newv] "r" (newv) in RSEQ_TEMPLATE_IDENTIFIER() 344 intptr_t newv, int cpu) in RSEQ_TEMPLATE_IDENTIFIER() 429 [newv] "r" (newv), in RSEQ_TEMPLATE_IDENTIFIER()
|
H A D | rseq-s390-bits.h | 9 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_storev)(intptr_t *v, intptr_t expect, intptr_t newv, int c… in RSEQ_TEMPLATE_IDENTIFIER() 43 [newv] "r" (newv) in RSEQ_TEMPLATE_IDENTIFIER() 201 intptr_t newv, int cpu) in RSEQ_TEMPLATE_IDENTIFIER() 245 [newv] "r" (newv) in RSEQ_TEMPLATE_IDENTIFIER() 286 intptr_t newv, int cpu) in RSEQ_TEMPLATE_IDENTIFIER() 327 [newv] "r" (newv) in RSEQ_TEMPLATE_IDENTIFIER() 359 intptr_t newv, int cpu) in RSEQ_TEMPLATE_IDENTIFIER() 436 [newv] "r" (newv), in RSEQ_TEMPLATE_IDENTIFIER()
|
H A D | rseq-arm-bits.h | 14 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_storev)(intptr_t *v, intptr_t expect, intptr_t newv, int c… in RSEQ_TEMPLATE_IDENTIFIER() 52 [newv] "r" (newv) in RSEQ_TEMPLATE_IDENTIFIER() 209 intptr_t newv, int cpu) in RSEQ_TEMPLATE_IDENTIFIER() 259 [newv] "r" (newv) in RSEQ_TEMPLATE_IDENTIFIER() 299 intptr_t newv, int cpu) in RSEQ_TEMPLATE_IDENTIFIER() 347 [newv] "r" (newv) in RSEQ_TEMPLATE_IDENTIFIER() 379 intptr_t newv, int cpu) in RSEQ_TEMPLATE_IDENTIFIER() 467 [newv] "r" (newv), in RSEQ_TEMPLATE_IDENTIFIER()
|
/openbmc/qemu/accel/tcg/ |
H A D | atomic_template.h | 81 ABI_TYPE cmpv, ABI_TYPE newv, in ATOMIC_NAME() 89 ret = atomic16_cmpxchg(haddr, cmpv, newv); in ATOMIC_NAME() 91 ret = qatomic_cmpxchg__nocheck(haddr, cmpv, newv); in ATOMIC_NAME() 97 VALUE_LOW(newv), in ATOMIC_NAME() 98 VALUE_HIGH(newv), in ATOMIC_NAME() 206 ABI_TYPE cmpv, ABI_TYPE newv, 214 ret = atomic16_cmpxchg(haddr, BSWAP(cmpv), BSWAP(newv)); 216 ret = qatomic_cmpxchg__nocheck(haddr, BSWAP(cmpv), BSWAP(newv)); 222 VALUE_LOW(newv), 223 VALUE_HIGH(newv),
|
H A D | atomic_common.c.inc | 41 TYPE oldv, TYPE newv, uint32_t oi) \ 42 { return cpu_atomic_##OP##_mmu(env, addr, oldv, newv, oi, GETPC()); } 63 Int128 cmpv, Int128 newv, uint32_t oi) 71 cpu_st16_mmu(env, addr, newv, oi, ra);
|
/openbmc/qemu/tcg/ |
H A D | tcg-op-ldst.c | 878 TCGv_i32 cmpv, TCGv_i32 newv, in tcg_gen_nonatomic_cmpxchg_i32_int() argument 887 tcg_gen_movcond_i32(TCG_COND_EQ, t2, t1, t2, newv, t1); in tcg_gen_nonatomic_cmpxchg_i32_int() 900 TCGv_i32 cmpv, TCGv_i32 newv, in tcg_gen_nonatomic_cmpxchg_i32_chk() argument 906 tcg_gen_nonatomic_cmpxchg_i32_int(retv, addr, cmpv, newv, idx, memop); in tcg_gen_nonatomic_cmpxchg_i32_chk() 910 TCGv_i32 cmpv, TCGv_i32 newv, in tcg_gen_atomic_cmpxchg_i32_int() argument 918 tcg_gen_nonatomic_cmpxchg_i32_int(retv, addr, cmpv, newv, idx, memop); in tcg_gen_atomic_cmpxchg_i32_int() 928 gen(retv, tcg_env, a64, cmpv, newv, tcg_constant_i32(oi)); in tcg_gen_atomic_cmpxchg_i32_int() 937 TCGv_i32 cmpv, TCGv_i32 newv, in tcg_gen_atomic_cmpxchg_i32_chk() argument 943 tcg_gen_atomic_cmpxchg_i32_int(retv, addr, cmpv, newv, idx, memop); in tcg_gen_atomic_cmpxchg_i32_chk() 947 TCGv_i64 cmpv, TCGv_i64 newv, in tcg_gen_nonatomic_cmpxchg_i64_int() argument [all …]
|
/openbmc/qemu/hw/xtensa/ |
H A D | mx_pic.c | 189 uint32_t oldv, newv; in xtensa_mx_pic_ext_reg_write() local 197 newv = mx->mieng; in xtensa_mx_pic_ext_reg_write() 205 newv = mx->mieng; in xtensa_mx_pic_ext_reg_write() 213 newv = mx->miasg; in xtensa_mx_pic_ext_reg_write() 221 newv = mx->miasg; in xtensa_mx_pic_ext_reg_write() 229 newv = mx->mipipart; in xtensa_mx_pic_ext_reg_write() 237 newv = mx->runstall; in xtensa_mx_pic_ext_reg_write() 260 oldv, newv); in xtensa_mx_pic_ext_reg_write()
|
/openbmc/linux/arch/sh/include/asm/ |
H A D | cmpxchg-xchg.h | 28 u32 oldv, newv; in __xchg_cmpxchg() local 34 newv = (oldv & ~bitmask) | (x << bitoff); in __xchg_cmpxchg() 35 } while (__cmpxchg_u32(p, oldv, newv) != oldv); in __xchg_cmpxchg()
|
/openbmc/qemu/include/exec/ |
H A D | cpu_ldst.h | 222 uint32_t cmpv, uint32_t newv, 225 uint32_t cmpv, uint32_t newv, 228 uint32_t cmpv, uint32_t newv, 231 uint64_t cmpv, uint64_t newv, 234 uint32_t cmpv, uint32_t newv, 237 uint32_t cmpv, uint32_t newv, 240 uint64_t cmpv, uint64_t newv, 292 Int128 cmpv, Int128 newv, 295 Int128 cmpv, Int128 newv,
|
/openbmc/linux/arch/openrisc/include/asm/ |
H A D | cmpxchg.h | 102 u32 oldv, newv; in xchg_small() local 108 newv = (oldv & ~bitmask) | (x << bitoff); in xchg_small() 109 } while (cmpxchg_u32(p, oldv, newv) != oldv); in xchg_small()
|
/openbmc/linux/arch/xtensa/include/asm/ |
H A D | cmpxchg.h | 185 u32 oldv, newv; in xchg_small() local 191 newv = (oldv & ~bitmask) | (x << bitoff); in xchg_small() 192 } while (__cmpxchg_u32(p, oldv, newv) != oldv); in xchg_small()
|
/openbmc/qemu/target/loongarch/tcg/insn_trans/ |
H A D | trans_privileged.c.inc | 248 TCGv src1, mask, oldv, newv, temp; 272 newv = tcg_temp_new(); 276 tcg_gen_and_tl(newv, src1, mask); 278 tcg_gen_or_tl(newv, newv, temp); 281 csr->writefn(oldv, tcg_env, newv); 283 tcg_gen_st_tl(newv, tcg_env, csr->offset);
|
/openbmc/qemu/target/hexagon/ |
H A D | hex_common.py | 733 newv = hvx_newv(tag) 803 newv = hvx_newv(tag) 838 newv = hvx_newv(tag) 864 newv = hvx_newv(tag) 930 newv = hvx_newv(tag)
|
/openbmc/qemu/target/i386/tcg/ |
H A D | emit.c.inc | 1624 TCGv newv = tcg_temp_new(); 1678 /* (src1 ^ src2) & (src1 ^ dst). newv is only used here for a moment */ 1679 tcg_gen_xor_tl(newv, s->cc_srcT, s->T0); 1681 tcg_gen_and_tl(s->tmp0, s->tmp0, newv); 1703 tcg_gen_add_tl(newv, s->cc_srcT, s->T1); 1704 tcg_gen_movcond_tl(cond, newv, cmp_lhs, cmp_rhs, newv, s->cc_srcT); 1705 tcg_gen_atomic_cmpxchg_tl(oldv, s->A0, s->cc_srcT, newv, s->mem_index, ot_full); 1737 TCGv newv = tcg_temp_new(); 1741 tcg_gen_ext_tl(newv, s->T1, ot); 1743 tcg_gen_atomic_cmpxchg_tl(oldv, s->A0, cmpv, newv, [all …]
|
/openbmc/qemu/target/sparc/ |
H A D | translate.c | 1929 TCGv oldv, TCGv newv, TCGv cmpv, TCGv addr) in gen_cas_asi() argument 1935 tcg_gen_atomic_cmpxchg_tl(oldv, addr, cmpv, newv, in gen_cas_asi()
|