Home
last modified time | relevance | path

Searched refs:code (Results 1 – 25 of 33) sorted by relevance

12

/kvm-unit-tests/arm/
H A Dcache.c29 static inline void prime_icache(u32 *code, u32 insn) in prime_icache() argument
31 *code = insn; in prime_icache()
33 clean_dcache_pou(code); in prime_icache()
35 inval_icache_pou(code); in prime_icache()
39 ((fn_t)code)(); in prime_icache()
45 u32 *code = alloc_page(); in check_code_generation() local
51 mmu_clear_user(current_thread_info()->pgtable, (unsigned long)code); in check_code_generation()
63 *(code + i) = fn[i]; in check_code_generation()
64 clean_dcache_pou(code + i); in check_code_generation()
66 inval_icache_pou(code + i); in check_code_generation()
[all …]
/kvm-unit-tests/lib/s390x/
H A Dsie-icpt.c28 uint64_t code; in sie_is_diag_icpt() local
57 code = instr.r_base ? vm->save_area.guest.grs[instr.r_base] : 0; in sie_is_diag_icpt()
58 code = (code + instr.displace) & 0xffff; in sie_is_diag_icpt()
59 return code == diag; in sie_is_diag_icpt()
H A Dinterrupt.c53 uint16_t code; in clear_pgm_int() local
56 code = lowcore.pgm_int_code; in clear_pgm_int()
60 return code; in clear_pgm_int()
70 void check_pgm_int_code(uint16_t code) in check_pgm_int_code() argument
73 report(code == lowcore.pgm_int_code, in check_pgm_int_code()
74 "Program interrupt: expected(%d) == received(%d)", code, in check_pgm_int_code()
384 uint16_t code = lowcore.svc_int_code; in handle_svc_int() local
386 switch (code) { in handle_svc_int()
392 code, stap(), lowcore.svc_old_psw.addr); in handle_svc_int()
H A Dcss_lib.c44 if (h->code == CHSC_RSP_OK) in check_response()
47 if (h->code > CHSC_RSP_MAX) in check_response()
48 h->code = 0; in check_response()
50 report_abort("Response code %04x: %s", h->code, in check_response()
51 chsc_rsp_description[h->code]); in check_response()
55 bool chsc(void *p, uint16_t code, uint16_t len) in chsc() argument
59 h->code = code; in chsc()
404 struct ccw1 *ccw_alloc(int code, void *data, int count, unsigned char flags) in ccw_alloc() argument
412 ccw->code = code; in ccw_alloc()
H A Dio.c56 void exit(int code) in exit() argument
59 printf("\nEXIT: STATUS=%d\n", ((code) << 1) | 1); in exit()
H A Dcss.h28 uint8_t code; member
310 struct ccw1 *ccw_alloc(int code, void *data, int count, unsigned char flags);
325 uint16_t code; member
381 bool chsc(void *p, uint16_t code, uint16_t len);
H A Dcss_dump.c131 printf("CCW: code: %02x flags: %02x count: %04x data: %08x\n", cp->code, in dump_ccw()
134 if (cp->code == CCW_C_TIC) in dump_ccw()
/kvm-unit-tests/s390x/
H A Diep.c19 uint16_t *code; in test_iep() local
31 code = (uint16_t *)iepbuf; in test_iep()
32 *code = 0x07fe; in test_iep()
33 fn = (void *)code; in test_iep()
H A Ddiag288.c21 static inline void diag288(unsigned long code, unsigned long time, in diag288() argument
24 register unsigned long fc asm("0") = code; in diag288()
H A Dsthyi.c25 register uint64_t code asm("0") = fcode; in sthyi()
35 : [code] "d" (code), [addr] "a" (addr), [r1] "i" (r1), [r2] "i" (r2) in sthyi()
/kvm-unit-tests/lib/powerpc/
H A Dio.c62 extern void halt(int code);
64 void exit(int code) in exit() argument
71 printf("\nEXIT: STATUS=%d\n", ((code) << 1) | 1); in exit()
77 halt(code); in exit()
/kvm-unit-tests/lib/arm/
H A Dio.c142 extern void halt(int code);
144 void exit(int code) in exit() argument
151 printf("\nEXIT: STATUS=%d\n", ((code) << 1) | 1); in exit()
153 chr_testdev_exit(code); in exit()
155 halt(code); in exit()
H A Dsetup.c120 struct mem_region *code, *data; in arm_memregions_add_assumed() local
123 memregions_split((unsigned long)&_etext, &code, &data); in arm_memregions_add_assumed()
124 assert(code); in arm_memregions_add_assumed()
125 code->flags |= MR_F_CODE; in arm_memregions_add_assumed()
307 struct mem_region *freemem_mr = NULL, *code, *data; in efi_mem_init() local
315 memregions_split((unsigned long)&_etext, &code, &data); in efi_mem_init()
316 assert(code && (code->flags & MR_F_CODE)); in efi_mem_init()
321 if (m != code) in efi_mem_init()
/kvm-unit-tests/lib/s390x/asm/
H A Dinterrupt.h61 int code = (teid.esop2_prot_code_0 << 2 | in teid_esop2_prot_code() local
65 assert(code < PROT_NUM_CODES); in teid_esop2_prot_code()
66 return (enum prot_code)code; in teid_esop2_prot_code()
79 void check_pgm_int_code(uint16_t code);
/kvm-unit-tests/lib/riscv/
H A Dsetup.c131 struct mem_region *freemem, *code, *data; in mem_init() local
137 memregions_split((unsigned long)&_etext, &code, &data); in mem_init()
138 assert(code); in mem_init()
139 code->flags |= MR_F_CODE; in mem_init()
235 struct mem_region *freemem_mr = NULL, *code, *data; in efi_mem_init() local
244 memregions_split((unsigned long)&_etext, &code, &data); in efi_mem_init()
245 assert(code && (code->flags & MR_F_CODE)); in efi_mem_init()
250 assert(m == code || !(m->flags & MR_F_CODE)); in efi_mem_init()
H A Dio.c148 void halt(int code);
150 void exit(int code) in exit() argument
152 printf("\nEXIT: STATUS=%d\n", ((code) << 1) | 1); in exit()
154 halt(code); in exit()
/kvm-unit-tests/lib/x86/
H A Dio.c87 void exit(int code) in exit() argument
94 outl(code, 0xf4); in exit()
101 asm volatile("out %0, %1" : : "a"(code), "d"((short)0xf4)); in exit()
104 printf("--- DONE: %d ---\n", code); in exit()
/kvm-unit-tests/x86/efi/
H A DREADME.md5 This dir provides code to build kvm-unit-tests test cases and run them under
37 This dir contains source code and linker script copied from
39 - crt0-efi-x86_64.S: startup code of an EFI application
51 3. link the entry point code `crt0-efi-x86_64.S` that invokes self-relocator
60 ### Startup code for kvm-unit-tests in UEFI
62 This dir also contains kvm-unit-tests startup code in UEFI:
63 - efistart64.S: startup code for kvm-unit-tests in UEFI
/kvm-unit-tests/lib/
H A Dchr-testdev.c32 void chr_testdev_exit(int code) in chr_testdev_exit() argument
41 snprintf(buf, sizeof(buf), "%dq", code); in chr_testdev_exit()
H A Dchr-testdev.h13 extern void chr_testdev_exit(int code);
H A Defi.c121 static void efi_exit(efi_status_t code) in efi_exit() argument
123 exit(code); in efi_exit()
129 efi_rs_call(reset_system, EFI_RESET_SHUTDOWN, code, 0, NULL); in efi_exit()
/kvm-unit-tests/lib/libfdt/
H A DREADME2 The code in this directory has been imported from the libfdt
/kvm-unit-tests/
H A DLICENSE24 this service if you wish), that you receive source code or can get it
36 source code. And you must show them these terms so they know their
80 source code as you receive it, in any medium, provided that you
135 under Section 2) in object code or executable form under the terms of
139 source code, which must be distributed under the terms of Sections
145 machine-readable copy of the corresponding source code, to be
150 to distribute corresponding source code. (This alternative is
152 received the program in object code or executable form with such
155 The source code for a work means the preferred form of the work for
157 code means all the source code for all modules it contains, plus any
[all …]
H A DMAINTAINERS5 code base, but to provide a set of names that developers can consult when they
28 role as you write your new code].
29 Obsolete: Old code. Something tagged obsolete generally means
H A DREADME138 2) Making the test conditional on errata in the code,
211 the code files. We also start with common code and finish with unit test
212 code. git-diff's orderFile feature allows us to specify the order in a

12