Home
last modified time | relevance | path

Searched refs:ARRAY_SIZE (Results 1 – 25 of 38) sorted by relevance

12

/kvm-unit-tests/riscv/
H A Dsbi-sse.c108 for (i = 0; i < ARRAY_SIZE(sse_event_infos); i++) { in sse_event_get_info()
233 for (i = 0; i < ARRAY_SIZE(ro_attrs); i++) { in sse_test_attrs()
292 for (i = 0; i < ARRAY_SIZE(interrupted_attrs); i++) { in sse_test_attrs()
297 value = ARRAY_SIZE(interrupted_attrs) - i; in sse_test_attrs()
374 for (w = 0; w < ARRAY_SIZE(params); w++) { in test_alias()
383 for (r = 0; r < ARRAY_SIZE(params); r++) { in test_alias()
418 unsigned long interrupted_state[ARRAY_SIZE(interrupted_attrs)]; in sse_simple_handler()
419 unsigned long modified_state[ARRAY_SIZE(interrupted_attrs)] = {4, 3, 2, 1}; in sse_simple_handler()
420 unsigned long tmp_state[ARRAY_SIZE(interrupted_attrs)]; in sse_simple_handler()
429 ARRAY_SIZE(interrupted_attrs), interrupted_state); in sse_simple_handler()
[all …]
/kvm-unit-tests/x86/
H A Dsetjmp.c8 #define NUM_LONGJMPS ARRAY_SIZE(expected)
H A Dhyperv_stimer.c76 for (i = 0; i < ARRAY_SIZE(svcpu->timer); i++) { in synic_enable()
120 if (payload->timer_index >= ARRAY_SIZE(svcpu->timer)) { in process_stimer_msg()
151 for (i = 0; i < ARRAY_SIZE(msg_page->sint_message); i++) { in __stimer_isr()
237 for (i = 0; i < ARRAY_SIZE(svcpu->timer); i++) { in stimers_shutdown()
H A Dpmu.c300 if (idx < ARRAY_SIZE(fixed_events)) in get_counter_event()
480 assert(n <= ARRAY_SIZE(cnt)); in check_counters_many()
999 fixed_counters_num = MIN(pmu.nr_fixed_counters, ARRAY_SIZE(fixed_events)); in main()
1000 if (pmu.nr_fixed_counters > ARRAY_SIZE(fixed_events)) in main()
1003 (unsigned)ARRAY_SIZE(fixed_events)); in main()
H A Dvmx.c322 for (i = 0; i < ARRAY_SIZE(vmcs_fields); i++) in set_all_vmcs_fields()
331 for (i = 0; i < ARRAY_SIZE(vmcs_fields); i++) { in check_all_vmcs_fields()
483 for (i = 0; i < ARRAY_SIZE(vmcs); i++) { in test_vmcs_lifecycle()
489 assert(_i < ARRAY_SIZE(vmcs)); \ in test_vmcs_lifecycle()
495 assert(_i < ARRAY_SIZE(vmcs)); \ in test_vmcs_lifecycle()
531 for (i = 0; i < ARRAY_SIZE(vmcs); i++) { in test_vmcs_lifecycle()
648 if (reason >= ARRAY_SIZE(exit_reason_descriptions)) in exit_reason_description()
730 for (i = 0; i < ARRAY_SIZE(vmcs); i++) { in test_vmclear_flushing()
753 for (i = 0; i < ARRAY_SIZE(vmcs); i++) { in test_vmclear_flushing()
1609 for (n = 0; n < ARRAY_SIZE(vmx_ctl_msr); n++) { in test_vmx_caps()
H A Dpmu_pebs.c393 max_nr_gp_events = MIN(pmu.nr_gp_counters, ARRAY_SIZE(intel_arch_events)); in main()
423 for (i = 0; i < ARRAY_SIZE(counter_start_values); i++) { in main()
H A Dsvm.c222 vmcb->save.rsp = (ulong)(guest_stack + ARRAY_SIZE(guest_stack)); in svm_setup_vmrun()
258 vmcb->save.rsp = (ulong)(guest_stack + ARRAY_SIZE(guest_stack)); in test_run()
/kvm-unit-tests/lib/
H A Drand.c149 sha256_hash(ARRAY_SIZE(seed_arr), &seed_arr, &state.hash); in prng_init()
158 sha256_hash(ARRAY_SIZE(input), &input, &state->hash); in prng_scramble()
164 if (state->next_word < ARRAY_SIZE(state->hash)) in prng32()
H A Dlibcflat.h125 #define ARRAY_SIZE(_a) (sizeof(_a)/sizeof((_a)[0])) macro
/kvm-unit-tests/s390x/
H A Dsmp.c69 for (i = 0; i < ARRAY_SIZE(cases_invalid_cpu_addr); i++) { in test_invalid()
75 for (i = 0; i < ARRAY_SIZE(cases_valid_cpu_addr); i++) { in test_invalid()
322 for (i = 0; i < ARRAY_SIZE(cases_sigp_call); i++) { in test_calls()
383 for (i = 0; i < ARRAY_SIZE(cases_sigp_call); i++) { in test_calls_in_wait()
H A Dmigration-cmm.c49 state_mask = allowed_essa_state_masks[i % ARRAY_SIZE(allowed_essa_state_masks)]; in test_migration()
H A Dcpumodel.c118 for (i = 0; i < ARRAY_SIZE(dep); i++) { in main()
H A Ddiag308.c82 for (idx = 0; idx < ARRAY_SIZE(subcodes); idx++) { in test_unsupported_subcode()
H A Dexittime.c262 for (i = 0; i < ARRAY_SIZE(exittime_tests); i++) { in main()
H A Dtopology.c529 for (level = 0; level < ARRAY_SIZE(levels); level++) { in parse_topology_args()
533 if (level == ARRAY_SIZE(levels)) in parse_topology_args()
/kvm-unit-tests/lib/s390x/
H A Dfault.c43 _Static_assert(ARRAY_SIZE(prot_str) == PROT_NUM_CODES, "ESOP2 prot codes"); in print_decode_pgm_prot()
H A Dsclp.c99 for (i = 0; i < ARRAY_SIZE(commands); i++) { in sclp_read_scp_info()
H A Duv.c65 assert(nr < BITS_PER_LONG * ARRAY_SIZE(uvcb_qui.inst_calls_list)); in uv_query_test_call()
H A Dinterrupt.c134 for (size_t i = 0; i < ARRAY_SIZE(irq_psws); i++) { in irq_set_dat_mode()
/kvm-unit-tests/arm/
H A Dpl031.c57 for (i = 0; i < ARRAY_SIZE(id); i++) in check_id()
78 for (i = 0; i < ARRAY_SIZE(offs); i++) { in check_ro()
H A Dpmu.c482 if (!satisfy_prerequisites(events, ARRAY_SIZE(events)) || in test_basic_event_count()
564 if (!satisfy_prerequisites(events, ARRAY_SIZE(events)) || in test_mem_access()
604 if (!satisfy_prerequisites(events, ARRAY_SIZE(events)) || in test_sw_incr()
666 if (!satisfy_prerequisites(events, ARRAY_SIZE(events))) in test_chained_counters()
709 if (!satisfy_prerequisites(events, ARRAY_SIZE(events))) in test_chained_sw_incr()
774 if (!satisfy_prerequisites(events, ARRAY_SIZE(events)) || in test_mem_access_reliability()
810 if (!satisfy_prerequisites(events, ARRAY_SIZE(events))) in test_chain_promotion()
962 if (!satisfy_prerequisites(events, ARRAY_SIZE(events)) || in test_overflow_interrupt()
H A Dcache.c62 for (i = 0; i < ARRAY_SIZE(fn); i++) { in check_code_generation()
H A Dselftest.c139 for (i = 0; i < ARRAY_SIZE(regs->uregs); ++i) { in check_regs()
283 for (i = 0; i < ARRAY_SIZE(regs->regs); ++i) { in check_regs()
/kvm-unit-tests/lib/arm/
H A Dio.c49 for (i = 0; i < ARRAY_SIZE(compatible); i++) { in uart0_init_fdt()
/kvm-unit-tests/lib/riscv/
H A Dio.c69 for (i = 0; i < ARRAY_SIZE(compatible); i++) { in uart0_init_fdt()

12