/kvm-unit-tests/lib/arm/asm/ |
H A D | assembler.h | 18 .macro dcache_line_size, reg, tmp 19 mrc p15, 0, \tmp, c0, c0, 1 // read ctr 20 lsr \tmp, \tmp, #16 21 and \tmp, \tmp, #0xf // cache line size encoding 23 mov \reg, \reg, lsl \tmp // actual cache line size
|
/kvm-unit-tests/lib/arm64/asm/ |
H A D | assembler.h | 22 .macro raw_dcache_line_size, reg, tmp 23 mrs \tmp, ctr_el0 // read CTR 24 ubfx \tmp, \tmp, #16, #4 // cache line size encoding 26 lsl \reg, \reg, \tmp // actual cache line size
|
/kvm-unit-tests/s390x/ |
H A D | selftest.c | 44 int *tmp, *tmp2; in test_malloc() local 49 tmp = malloc(sizeof(int)); in test_malloc() 50 report((uintptr_t)tmp & 0xf000000000000000ul, "allocated memory"); in test_malloc() 51 *tmp = 123456789; in test_malloc() 53 report(*tmp == 123456789, "wrote allocated memory"); in test_malloc() 65 report(tmp != tmp2, "allocated memory addresses differ"); in test_malloc() 69 *tmp = 987654321; in test_malloc() 73 free(tmp); in test_malloc()
|
H A D | uv-host.c | 319 unsigned long tmp; in test_cpu_create() local 346 tmp = uvcb_csc.stor_origin; in test_cpu_create() 351 uvcb_csc.stor_origin = tmp; in test_cpu_create() 353 tmp = uvcb_csc.stor_origin; in test_cpu_create() 358 uvcb_csc.stor_origin = tmp; in test_cpu_create() 360 tmp = uvcb_csc.state_origin; in test_cpu_create() 365 uvcb_csc.state_origin = tmp; in test_cpu_create() 375 tmp = uvcb_csc.stor_origin; in test_cpu_create() 379 uvcb_csc.stor_origin = tmp; in test_cpu_create() 422 unsigned long vsize, tmp; in test_config_create() local [all …]
|
H A D | pv-icptcode.c | 42 uint64_t time_exit, time_entry, tmp; in test_validity_timing() local 52 tmp = vm.sblk->cputm; in test_validity_timing() 60 vm.sblk->cputm = tmp; in test_validity_timing() 71 vm.sblk->cputm = tmp; in test_validity_timing()
|
H A D | edat.c | 23 static unsigned int tmp[1024] __attribute__((aligned(PAGE_SIZE))); variable 265 m = VIRT(&tmp); in setup()
|
/kvm-unit-tests/lib/libfdt/ |
H A D | libfdt.h | 1313 fdt32_t tmp = cpu_to_fdt32(val); in fdt_setprop_inplace_u32() local 1314 return fdt_setprop_inplace(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_setprop_inplace_u32() 1348 fdt64_t tmp = cpu_to_fdt64(val); in fdt_setprop_inplace_u64() local 1349 return fdt_setprop_inplace(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_setprop_inplace_u64() 1468 fdt32_t tmp = cpu_to_fdt32(val); in fdt_property_u32() local 1469 return fdt_property(fdt, name, &tmp, sizeof(tmp)); in fdt_property_u32() 1473 fdt64_t tmp = cpu_to_fdt64(val); in fdt_property_u64() local 1474 return fdt_property(fdt, name, &tmp, sizeof(tmp)); in fdt_property_u64() 1680 fdt32_t tmp = cpu_to_fdt32(val); in fdt_setprop_u32() local 1681 return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_setprop_u32() [all …]
|
H A D | fdt_rw.c | 426 char *tmp; in fdt_open_into() local 465 tmp = buf; in fdt_open_into() 467 if (((tmp + newsize) > fdtstart) && (tmp < fdtend)) { in fdt_open_into() 469 tmp = (char *)(uintptr_t)fdtend; in fdt_open_into() 470 if ((tmp + newsize) > ((char *)buf + bufsize)) in fdt_open_into() 474 fdt_packblocks_(fdt, tmp, mem_rsv_size, struct_size, in fdt_open_into() 476 memmove(buf, tmp, newsize); in fdt_open_into()
|
/kvm-unit-tests/lib/ |
H A D | on-cpus.c | 130 cpumask_t tmp; in on_cpumask() local 132 cpumask_copy(&tmp, mask); in on_cpumask() 133 cpumask_clear_cpu(me, &tmp); in on_cpumask() 135 for_each_cpu(cpu, &tmp) in on_cpumask() 140 for_each_cpu(cpu, &tmp) { in on_cpumask() 144 while (!cpumask_subset(&tmp, &cpu_idle_mask)) in on_cpumask() 146 for_each_cpu(cpu, &tmp) in on_cpumask()
|
H A D | printf.c | 182 char tmp; in print_int() local 184 tmp = buf[i]; in print_int() 186 p[-1 - i] = tmp; in print_int() 226 char tmp; in print_unsigned() local 228 tmp = buf[i]; in print_unsigned() 230 p[-1 - i] = tmp; in print_unsigned()
|
/kvm-unit-tests/x86/ |
H A D | emulator64.c | 17 unsigned long tmp; in test_push() local 32 : [tmp]"=&r"(tmp), [new_stack_top]"=r"(new_stack_top) in test_push() 45 unsigned long tmp, tmp3, rsp, rbp; in test_pop() local 63 : [tmp]"=&r"(tmp), [tmp2]"=m"(tmp2) in test_pop() 74 : [tmp]"=&r"(tmp), [tmp2]"=r"(tmp2) in test_pop() 86 : [tmp]"=&r"(tmp) : [stack_top]"r"(stack_top) in test_pop() 99 : [tmp]"=&r"(tmp), [tmp3]"=&r"(tmp3) : [stack_top]"r"(stack_top-1) in test_pop() 101 report(tmp == (ulong)stack_top && tmp3 == 0x778899, "leave"); in test_pop()
|
H A D | idt_test.c | 16 unsigned long tmp; in test_gp() local 22 : "=a"(tmp)); in test_gp()
|
H A D | emulator.c | 46 long rcx, tmp; in test_cmps_one() local 51 : "+S"(rsi), "+D"(rdi), "+c"(rcx), [tmp]"=&r"(tmp) in test_cmps_one() 58 : "+S"(rsi), "+D"(rdi), "+c"(rcx), [tmp]"=&r"(tmp) in test_cmps_one() 66 : "+S"(rsi), "+D"(rdi), "+c"(rcx), [tmp]"=&r"(tmp) in test_cmps_one() 73 : "+S"(rsi), "+D"(rdi), "+c"(rcx), [tmp]"=&r"(tmp) in test_cmps_one() 81 : "+S"(rsi), "+D"(rdi), "+c"(rcx), [tmp]"=&r"(tmp) in test_cmps_one() 89 : "+S"(rsi), "+D"(rdi), "+c"(rcx), [tmp]"=&r"(tmp) in test_cmps_one() 97 : "+S"(rsi), "+D"(rdi), "+c"(rcx), [tmp]"=&r"(tmp) in test_cmps_one() 105 : "+S"(rsi), "+D"(rdi), "+c"(rcx), [tmp]"=&r"(tmp) in test_cmps_one() 114 : "+S"(rsi), "+D"(rdi), "+c"(rcx), [tmp]"=&r"(tmp) in test_cmps_one()
|
H A D | syscall.c | 13 ulong tmp; in test_syscall_lazy_load() local 18 asm volatile("pushf; syscall; syscall_target: popf" : "=c"(tmp) : : "r11"); in test_syscall_lazy_load()
|
H A D | realmode.c | 185 unsigned long tmp; in exec_in_big_real_mode() local 241 : [tmp]"=&r"(tmp), [save]"+m"(save) in exec_in_big_real_mode() 1300 unsigned tmp = test_cases[i]; in test_das() local 1301 inregs.eax = tmp & 0xff; in test_das() 1302 inregs.eflags = (tmp >> 16) & 0xff; in test_das() 1305 || outregs.eax != ((tmp >> 8) & 0xff) in test_das() 1306 || (outregs.eflags & 0xff) != (tmp >> 24)) { in test_das() 1685 u32 cyc, tmp; in test_perf_memory_load() local 1689 init_inregs(&(struct regs){ .edi = (u32)&tmp }); in test_perf_memory_load() 1698 u32 cyc, tmp; in test_perf_memory_store() local [all …]
|
/kvm-unit-tests/lib/riscv/ |
H A D | sbi.c | 169 cpumask_t tmp; in sbi_send_ipi_cpumask() local 174 cpumask_copy(&tmp, mask); in sbi_send_ipi_cpumask() 176 while (!cpumask_empty(&tmp)) { in sbi_send_ipi_cpumask() 181 for_each_cpu(cpu, &tmp) { in sbi_send_ipi_cpumask() 186 for_each_cpu(cpu, &tmp) { in sbi_send_ipi_cpumask() 189 cpumask_clear_cpu(cpu, &tmp); in sbi_send_ipi_cpumask()
|
H A D | setup.c | 162 const char *tmp; in freemem_push_dt_initrd() local 165 ret = dt_get_initrd(&tmp, &initrd_size); in freemem_push_dt_initrd() 169 memmove(initrd, tmp, initrd_size); in freemem_push_dt_initrd()
|
/kvm-unit-tests/powerpc/ |
H A D | interrupts.c | 48 uint8_t tmp; in test_mce() local 80 asm volatile("lbz %0,0(%1)" : "=r"(tmp) : "r"(addr)); in test_mce() 130 uint64_t msr, tmp; in test_dseg_nommu() local 144 : "=r"(msr), "=r"(tmp) : "i"(MSR_DR): "memory"); in test_dseg_nommu() 157 uint64_t tmp, addr; in test_mmu() local 170 asm volatile("lbz %0,0(%1)" : "=r"(tmp) : "r"(addr)); in test_mmu() 181 asm volatile("lbz %0,0(%1)" : "=r"(tmp) : "r"(addr)); in test_mmu()
|
H A D | mmu.c | 38 unsigned long tmp; in tlbie_fn() local 46 asm volatile (".rept 256 ; lbz %0,0(%1) ; tdnei %0,0 ; .endr" : "=&r"(tmp) : "r"(m)); in tlbie_fn()
|
H A D | sprs.c | 36 uint64_t tmp; in __mfspr() local 54 : "=&r"(tmp), in __mfspr() 64 uint64_t tmp; in __mtspr() local 81 : "=&r"(tmp) in __mtspr()
|
/kvm-unit-tests/lib/x86/ |
H A D | isr.c | 101 unsigned long tmp; in handle_external_interrupt() local 118 [sp]"=&r"(tmp) in handle_external_interrupt()
|
/kvm-unit-tests/scripts/ |
H A D | arch-run.bash | 272 tmp=${src_out} 274 dst_out=${tmp} 275 tmp=${src_infifo} 277 dst_infifo=${tmp} 278 tmp=${src_outfifo} 280 dst_outfifo=${tmp} 281 tmp=${src_qmp} 283 dst_qmp=${tmp}
|
/kvm-unit-tests/lib/powerpc/ |
H A D | processor.c | 152 uint64_t tmp; in rfid_msr() local 163 : "=r"(tmp) : "r"(msr) : "lr"); in rfid_msr()
|
H A D | setup.c | 222 const char *bootargs, *tmp; in setup() local 295 ret = dt_get_initrd(&tmp, &initrd_size); in setup() 299 memmove(initrd, tmp, initrd_size); in setup()
|
/kvm-unit-tests/lib/arm/ |
H A D | setup.c | 218 const char *tmp; in freemem_push_dt_initrd() local 221 ret = dt_get_initrd(&tmp, &initrd_size); in freemem_push_dt_initrd() 225 memmove(initrd, tmp, initrd_size); in freemem_push_dt_initrd()
|