Home
last modified time | relevance | path

Searched full:old (Results 1 – 25 of 37) sorted by relevance

12

/kvm-unit-tests/lib/arm/
H A Dbitops.c50 unsigned long old; in test_and_set_bit() local
55 ATOMIC_TESTOP("orr", mask, word, old); in test_and_set_bit()
57 old = *word; in test_and_set_bit()
58 *word = old | mask; in test_and_set_bit()
62 return (old & mask) != 0; in test_and_set_bit()
69 unsigned long old; in test_and_clear_bit() local
74 ATOMIC_TESTOP("bic", mask, word, old); in test_and_clear_bit()
76 old = *word; in test_and_clear_bit()
77 *word = old & ~mask; in test_and_clear_bit()
81 return (old & mask) != 0; in test_and_clear_bit()
/kvm-unit-tests/lib/x86/
H A Datomic.c6 u64 atomic64_cmpxchg(atomic64_t *v, u64 old, u64 new) in atomic64_cmpxchg() argument
12 : "+A" (old), in atomic64_cmpxchg()
18 return old; in atomic64_cmpxchg()
23 u64 atomic64_cmpxchg(atomic64_t *v, u64 old, u64 new) in atomic64_cmpxchg() argument
26 u64 _old = old; in atomic64_cmpxchg()
H A Dfault_test.c22 handler old; in fault_test() local
29 old = handle_exception(arg->fault_vector, fault_test_fault); in fault_test()
35 handle_exception(arg->fault_vector, old); in fault_test()
H A Datomic.h93 u64 atomic64_cmpxchg(atomic64_t *v, u64 old, u64 new);
164 u64 atomic64_cmpxchg(atomic64_t *v, u64 old, u64 new);
H A Ddesc.c199 handler old; in handle_exception() local
201 old = exception_handlers[v]; in handle_exception()
204 return old; in handle_exception()
483 handler old; in test_for_exception() local
487 old = handle_exception(ex, exception_handler); in test_for_exception()
491 handle_exception(ex, old); in test_for_exception()
/kvm-unit-tests/lib/s390x/
H A Dmmu.c188 * return the pointer to the entry and, if requested, its old value.
192 * @old if not NULL, will be written with the old value of the DAT table
195 …void *dat_get_and_invalidate(pgd_t *pgtable, void *vaddr, enum pgt_level level, unsigned long *old) in dat_get_and_invalidate() argument
201 if (old) in dat_get_and_invalidate()
202 *old = *(unsigned long *)ptr; in dat_get_and_invalidate()
253 unsigned long old, *res; in set_dat_entry() local
255 res = dat_get_and_invalidate(pgtable, vaddr, level, &old); in set_dat_entry()
257 cleanup_pmd((pmd_t *)&old); in set_dat_entry()
259 cleanup_pud((pud_t *)&old); in set_dat_entry()
287 unsigned long old, *ptr; in protect_dat_entry() local
[all …]
H A Dsie.c98 /* restore the old CR 13 */ in sie()
/kvm-unit-tests/lib/riscv/
H A Dbitops.c35 unsigned long old = __sync_fetch_and_or(word, mask); in test_and_set_bit() local
37 return (old & mask) != 0; in test_and_set_bit()
44 unsigned long old = __sync_fetch_and_and(word, ~mask); in test_and_clear_bit() local
46 return (old & mask) != 0; in test_and_clear_bit()
/kvm-unit-tests/powerpc/
H A Datomics.c26 unsigned int old; in spin_lock() local
35 : "=&r"(old) : "r"(1), "r"(lock) : "cr0", "memory"); in spin_lock()
59 unsigned int old; in test_lwarx_stwcx() local
67 : "=&r"(old) : "r"(1), "r"(var) : "cr0", "memory"); in test_lwarx_stwcx()
68 report(old == 0 && *var == 1, "simple update"); in test_lwarx_stwcx()
89 : "=&r"(result), "=&r"(old) in test_lwarx_stwcx()
101 old = 10; in test_lwarx_stwcx()
105 : "+&r"(old) : "r"((char *)var + 1)); in test_lwarx_stwcx()
106 report(old == 10 && got_interrupt && recorded_regs.trap == 0x600, in test_lwarx_stwcx()
121 : "=&r"(old) : "r"(1), "r"(var), "r"((char *)var+1) in test_lwarx_stwcx()
[all …]
H A Dsmp.c142 uint64_t old; in check_and_record_time() local
148 …asm volatile("1: ldarx %0,0,%1 ; cmpd %0,%2 ; bne 2f ; stdcx. %3,0,%1 ; bne- 1b; 2:" : "=&r"(old) … in check_and_record_time()
150 if (old != t) { in check_and_record_time()
151 t = old; in check_and_record_time()
154 if (old > tb) in check_and_record_time()
/kvm-unit-tests/lib/libfdt/
H A Dfdt_rw.c396 static void fdt_packblocks_(const char *old, char *new, in fdt_packblocks_() argument
407 memmove(new + mem_rsv_off, old + fdt_off_mem_rsvmap(old), mem_rsv_size); in fdt_packblocks_()
410 memmove(new + struct_off, old + fdt_off_dt_struct(old), struct_size); in fdt_packblocks_()
414 memmove(new + strings_off, old + fdt_off_dt_strings(old), strings_size); in fdt_packblocks_()
416 fdt_set_size_dt_strings(new, fdt_size_dt_strings(old)); in fdt_packblocks_()
466 /* But if that overlaps with the old tree... */ in fdt_open_into()
468 /* Try right after the old tree instead */ in fdt_open_into()
/kvm-unit-tests/lib/arm/asm/
H A Dbitops.h34 #define ATOMIC_TESTOP(insn, mask, word, old) \ argument
44 : "=&r" (tmp1), "=&r" (old), "=&r" (tmp2) \
/kvm-unit-tests/lib/arm64/asm/
H A Dbitops.h33 #define ATOMIC_TESTOP(insn, mask, word, old) \ argument
42 : "=&r" (tmp1), "=&r" (old), "=&r" (tmp2) \
/kvm-unit-tests/
H A D.gitignore25 /logs.old/
H A Drun_tests.sh182 rm -rf $unittest_log_dir.old
183 [ -d $unittest_log_dir ] && mv $unittest_log_dir $unittest_log_dir.old
H A DMAINTAINERS29 Obsolete: Old code. Something tagged obsolete generally means
H A DMakefile140 $(RM) -r tests logs logs.old efi-tests
/kvm-unit-tests/s390x/
H A Dskrf.c128 * PGM old contains the ext new PSW, we need to clean it up, in ecall_cleanup()
130 * of pgm old. in ecall_cleanup()
H A Dmacros.S17 * we re-load the registers and load the old PSW.
H A Dmvpg.c83 * in the last byte of the instruction, and the Program Old PSW will point
87 * before the one contained in the Program Old PSW with the value of the
H A Dspec_ex.c28 * The standard program exception handler cannot deal with invalid old PSWs,
30 * find the instruction following the faulting one from the old PSW.
/kvm-unit-tests/x86/
H A DREADME45 'old style' qemu-kvm, whose exit status in successful completion is 0.
H A Demulator.c449 handler old; in test_sse_exceptions() local
465 old = handle_exception(GP_VECTOR, unaligned_movaps_handler); in test_sse_exceptions()
468 handle_exception(GP_VECTOR, old); in test_sse_exceptions()
486 old = handle_exception(PF_VECTOR, cross_movups_handler); in test_sse_exceptions()
489 handle_exception(PF_VECTOR, old); in test_sse_exceptions()
H A Dla57.c171 * Restore the old value directly without safety wrapper, to avoid test in test_register_write()
/kvm-unit-tests/arm/
H A Dmte.c141 unsigned long old = (sctlr & SCTLR_EL1_TCF_MASK) >> SCTLR_EL1_TCF_SHIFT; in mte_set_tcf() local
150 return old; in mte_set_tcf()

12