| /qemu/hw/arm/ |
| A D | npcm7xx.c | 431 for (i = 0; i < ARRAY_SIZE(s->tim); i++) { in npcm7xx_init() 447 QEMU_BUILD_BUG_ON(ARRAY_SIZE(npcm7xx_fiu) != ARRAY_SIZE(s->fiu)); in npcm7xx_init() 556 QEMU_BUILD_BUG_ON(ARRAY_SIZE(npcm7xx_tim_addr) != ARRAY_SIZE(s->tim)); in npcm7xx_realize() 597 QEMU_BUILD_BUG_ON(ARRAY_SIZE(npcm7xx_gpio) != ARRAY_SIZE(s->gpio)); in npcm7xx_realize() 616 QEMU_BUILD_BUG_ON(ARRAY_SIZE(npcm7xx_smbus_addr) != ARRAY_SIZE(s->smbus)); in npcm7xx_realize() 643 QEMU_BUILD_BUG_ON(ARRAY_SIZE(npcm7xx_pwm_addr) != ARRAY_SIZE(s->pwm)); in npcm7xx_realize() 655 QEMU_BUILD_BUG_ON(ARRAY_SIZE(npcm7xx_mft_addr) != ARRAY_SIZE(s->mft)); in npcm7xx_realize() 676 QEMU_BUILD_BUG_ON(ARRAY_SIZE(npcm7xx_emc_addr) != ARRAY_SIZE(s->emc)); in npcm7xx_realize() 706 QEMU_BUILD_BUG_ON(ARRAY_SIZE(npcm7xx_gmac_addr) != ARRAY_SIZE(s->gmac)); in npcm7xx_realize() 731 QEMU_BUILD_BUG_ON(ARRAY_SIZE(npcm7xx_fiu) != ARRAY_SIZE(s->fiu)); in npcm7xx_realize() [all …]
|
| A D | xlnx-versal.c | 44 for (i = 0; i < ARRAY_SIZE(s->fpd.apu.cpu); i++) { in versal_create_apu_cpus() 76 int nr_apu_cpus = ARRAY_SIZE(s->fpd.apu.cpu); in versal_create_apu_gic() 95 for (i = 0; i < ARRAY_SIZE(addrs); i++) { in versal_create_apu_gic() 117 for (ti = 0; ti < ARRAY_SIZE(timer_irq); ti++) { in versal_create_apu_gic() 148 for (i = 0; i < ARRAY_SIZE(s->lpd.rpu.cpu); i++) { in versal_create_rpu_cpus() 173 for (i = 0; i < ARRAY_SIZE(s->lpd.iou.uart); i++) { in versal_create_uarts() 255 for (i = 0; i < ARRAY_SIZE(s->lpd.iou.gem); i++) { in versal_create_gems() 322 for (i = 0; i < ARRAY_SIZE(s->pmc.iou.sd); i++) { in versal_create_sds() 405 int nr_xrams = ARRAY_SIZE(s->lpd.xram.ctrl); in versal_create_xrams() 660 if (i < ARRAY_SIZE(cframe_cfg)) { in versal_create_cfu() [all …]
|
| /qemu/tests/unit/ |
| A D | test-int128.c | 51 for (i = 0; i < ARRAY_SIZE(tests); ++i) { in test_and() 52 for (j = 0; j < ARRAY_SIZE(tests); ++j) { in test_and() 67 for (i = 0; i < ARRAY_SIZE(tests); ++i) { in test_add() 68 for (j = 0; j < ARRAY_SIZE(tests); ++j) { in test_add() 83 for (i = 0; i < ARRAY_SIZE(tests); ++i) { in test_sub() 99 for (i = 0; i < ARRAY_SIZE(tests); ++i) { in test_neg() 112 for (i = 0; i < ARRAY_SIZE(tests); ++i) { in test_nz() 124 for (i = 0; i < ARRAY_SIZE(tests); ++i) { in test_le() 138 for (i = 0; i < ARRAY_SIZE(tests); ++i) { in test_lt() 152 for (i = 0; i < ARRAY_SIZE(tests); ++i) { in test_ge() [all …]
|
| A D | test-interval-tree.c | 118 for (i = 1; i < ARRAY_SIZE(nodes) / 2; ++i) { in test_find_one_range_many() 121 for (; i < ARRAY_SIZE(nodes); ++i) { in test_find_one_range_many() 125 for (i = 0; i < ARRAY_SIZE(nodes); ++i) { in test_find_one_range_many() 149 for (i = 1; i < ARRAY_SIZE(nodes); ++i) { in test_find_one_range_many() 159 n = g_test_rand_int_range(ARRAY_SIZE(nodes) / 3, ARRAY_SIZE(nodes) / 2); in test_find_many_range() 168 for (; i < ARRAY_SIZE(nodes) * 2 / 3; ++i) { in test_find_many_range() 171 for (; i < ARRAY_SIZE(nodes); ++i) { in test_find_many_range() 175 for (i = 0; i < ARRAY_SIZE(nodes); ++i) { in test_find_many_range() 191 for (i = 0; i < ARRAY_SIZE(nodes); ++i) { in test_find_many_range()
|
| A D | test-bitops.c | 41 for (i = 0; i < ARRAY_SIZE(test_s32_data); i++) { in test_sextract32() 53 for (i = 0; i < ARRAY_SIZE(test_s32_data); i++) { in test_sextract64() 60 for (i = 0; i < ARRAY_SIZE(test_s64_data); i++) { in test_sextract64() 92 for (i = 0; i < ARRAY_SIZE(test_shuffle32_data); i++) { in test_half_shuffle32() 104 for (i = 0; i < ARRAY_SIZE(test_shuffle64_data); i++) { in test_half_shuffle64() 116 for (i = 0; i < ARRAY_SIZE(test_shuffle32_data); i++) { in test_half_unshuffle32() 128 for (i = 0; i < ARRAY_SIZE(test_shuffle64_data); i++) { in test_half_unshuffle64()
|
| A D | test-qdist.c | 32 #define QDIST_NR_BLOCK_CODES ARRAY_SIZE(qdist_blocks) 141 n = ARRAY_SIZE(desc); in do_test_pr() 242 return do_test_bin(a, ARRAY_SIZE(a), b, ARRAY_SIZE(b)); in test_bin_shrink() 270 return do_test_bin(a, ARRAY_SIZE(a), b, ARRAY_SIZE(b)); in test_bin_expand() 284 return do_test_bin(a, ARRAY_SIZE(a), b, ARRAY_SIZE(b)); in test_bin_precision() 302 return do_test_bin(a, ARRAY_SIZE(a), b, ARRAY_SIZE(b)); in test_bin_simple()
|
| A D | test-string-input-visitor.c | 122 check_ilist(v, expect1, ARRAY_SIZE(expect1)); in test_visitor_in_intList() 125 check_ilist(v, expect2, ARRAY_SIZE(expect2)); in test_visitor_in_intList() 129 check_ilist(v, expect3, ARRAY_SIZE(expect3)); in test_visitor_in_intList() 132 check_ilist(v, expect4, ARRAY_SIZE(expect4)); in test_visitor_in_intList() 136 check_ilist(v, expect5, ARRAY_SIZE(expect5)); in test_visitor_in_intList() 231 check_ulist(v, expect1, ARRAY_SIZE(expect1)); in test_visitor_in_uintList() 234 check_ulist(v, expect2, ARRAY_SIZE(expect2)); in test_visitor_in_uintList() 238 check_ulist(v, expect3, ARRAY_SIZE(expect3)); in test_visitor_in_uintList() 241 check_ulist(v, expect4, ARRAY_SIZE(expect4)); in test_visitor_in_uintList() 244 check_ulist(v, expect5, ARRAY_SIZE(expect5)); in test_visitor_in_uintList() [all …]
|
| A D | test-bitcnt.c | 44 for (i = 0; i < ARRAY_SIZE(eight_bit_data); i++) { in test_ctpop8() 69 for (i = 0; i < ARRAY_SIZE(sixteen_bit_data); i++) { in test_ctpop16() 97 for (i = 0; i < ARRAY_SIZE(thirtytwo_bit_data); i++) { in test_ctpop32() 126 for (i = 0; i < ARRAY_SIZE(sixtyfour_bit_data); i++) { in test_ctpop64()
|
| A D | test-smp-parse.c | 1017 for (i = 0; i < ARRAY_SIZE(data_generic_valid); i++) { in test_generic_valid() 1036 for (i = 0; i < ARRAY_SIZE(data_generic_invalid); i++) { in test_generic_invalid() 1056 for (i = 0; i < ARRAY_SIZE(data_generic_valid); i++) { in test_with_modules() 1106 for (i = 0; i < ARRAY_SIZE(data_generic_valid); i++) { in test_with_dies() 1136 for (i = 0; i < ARRAY_SIZE(data_with_dies_invalid); i++) { in test_with_dies() 1156 for (i = 0; i < ARRAY_SIZE(data_generic_valid); i++) { in test_with_modules_dies() 1217 for (i = 0; i < ARRAY_SIZE(data_generic_valid); i++) { in test_with_clusters() 1267 for (i = 0; i < ARRAY_SIZE(data_generic_valid); i++) { in test_with_books() 1317 for (i = 0; i < ARRAY_SIZE(data_generic_valid); i++) { in test_with_drawers() 1367 for (i = 0; i < ARRAY_SIZE(data_generic_valid); i++) { in test_with_drawers_books() [all …]
|
| /qemu/hw/audio/ |
| A D | hda-codec-common.h | 194 .nparams = ARRAY_SIZE(glue(output_params_root_, PARAM)), 199 .nparams = ARRAY_SIZE(glue(output_params_audio_func_, PARAM)), 204 .nparams = ARRAY_SIZE(glue(common_params_audio_dac_, PARAM)), 226 .nnodes = ARRAY_SIZE(glue(output_nodes_, PARAM)), 287 .nparams = ARRAY_SIZE(glue(duplex_params_root_, PARAM)), 297 .nparams = ARRAY_SIZE(glue(common_params_audio_dac_, PARAM)), 315 .nparams = ARRAY_SIZE(glue(common_params_audio_adc_, PARAM)), 337 .nnodes = ARRAY_SIZE(glue(duplex_nodes_, PARAM)), 398 .nparams = ARRAY_SIZE(glue(micro_params_root_, PARAM)), 403 .nparams = ARRAY_SIZE(glue(micro_params_audio_func_, PARAM)), [all …]
|
| /qemu/tests/bench/ |
| A D | qtree-bench.c | 228 double res[ARRAY_SIZE(benchmarks)][ARRAY_SIZE(impls)][ARRAY_SIZE(sizes)]; in main() 229 for (int i = 0; i < ARRAY_SIZE(sizes); i++) { in main() 231 for (int j = 0; j < ARRAY_SIZE(impls); j++) { in main() 233 for (int k = 0; k < ARRAY_SIZE(benchmarks); k++) { in main() 255 for (int i = 0; i < ARRAY_SIZE(sizes); i++) { in main() 260 for (int i = 0; i < ARRAY_SIZE(separator) - 1; i++) { in main() 263 separator[ARRAY_SIZE(separator) - 1] = '\0'; in main() 265 for (int i = 0; i < ARRAY_SIZE(benchmarks); i++) { in main() 266 for (int j = 0; j < ARRAY_SIZE(impls); j++) { in main() 268 for (int k = 0; k < ARRAY_SIZE(sizes); k++) { in main()
|
| /qemu/tests/tcg/arm/ |
| A D | fcvt.c | 15 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) macro 118 for (i = 0; i < ARRAY_SIZE(single_numbers); ++i) { in convert_single_to_half() 141 for (i = 0; i < ARRAY_SIZE(single_numbers); ++i) { in convert_single_to_double() 164 for (i = 0; i < ARRAY_SIZE(single_numbers); ++i) { in convert_single_to_integer() 234 for (i = 0; i < ARRAY_SIZE(double_numbers); ++i) { in convert_double_to_half() 259 for (i = 0; i < ARRAY_SIZE(double_numbers); ++i) { in convert_double_to_single() 327 for (i = 0; i < ARRAY_SIZE(half_numbers); ++i) { in convert_half_to_double() 350 for (i = 0; i < ARRAY_SIZE(half_numbers); ++i) { in convert_half_to_single() 377 for (i = 0; i < ARRAY_SIZE(half_numbers); ++i) { in convert_half_to_integer() 412 for (i = 0; i < ARRAY_SIZE(round_flags); ++i) { in main() [all …]
|
| /qemu/target/s390x/ |
| A D | gen-features.c | 19 #define ARRAY_SIZE(array) (sizeof(array) / sizeof(array[0])) macro 913 for (i = 0; i < ARRAY_SIZE(CpuFeatDef); i++) { in print_feature_defs() 931 if (j < ARRAY_SIZE(base_feat) - 1) { in print_feature_defs() 940 if (j < ARRAY_SIZE(default_feat) - 1) { in print_feature_defs() 949 if (j < ARRAY_SIZE(full_feat) - 1) { in print_feature_defs() 966 for (i = 0; i < ARRAY_SIZE(QemuFeatDef); i++) { in print_qemu_feature_defs() 970 for (j = 0; j < ARRAY_SIZE(feat); j++) { in print_qemu_feature_defs() 972 if (j < ARRAY_SIZE(feat) - 1) { in print_qemu_feature_defs() 987 for (i = 0; i < ARRAY_SIZE(FeatGroupDef); i++) { in print_feature_group_defs() 992 for (j = 0; j < ARRAY_SIZE(feat); j++) { in print_feature_group_defs() [all …]
|
| /qemu/tests/qtest/ |
| A D | npcm7xx_pwm-test.c | 206 g_assert(diff >= 0 && diff < ARRAY_SIZE(pwm_module_list)); in pwm_module_index() 216 g_assert(diff >= 0 && diff < ARRAY_SIZE(pwm_list)); in pwm_index() 452 ARRAY_SIZE(pwm_module_list) * ARRAY_SIZE(pwm_list)); in mft_compute_index() 579 for (i = 0; i < ARRAY_SIZE(ppr_list); ++i) { in test_oneshot() 583 for (j = 0; j < ARRAY_SIZE(csr_list); ++j) { in test_oneshot() 614 for (i = 0; i < ARRAY_SIZE(ppr_list); ++i) { in test_toggle() 618 for (j = 0; j < ARRAY_SIZE(csr_list); ++j) { in test_toggle() 626 for (l = 0; l < ARRAY_SIZE(cmr_list); ++l) { in test_toggle() 681 TestData test_data_list[ARRAY_SIZE(pwm_module_list) * ARRAY_SIZE(pwm_list)]; in main() 693 pwm_module_list_cnt = ARRAY_SIZE(pwm_module_list); in main() [all …]
|
| A D | npcm7xx_timer-test.c | 103 g_assert(diff >= 0 && diff < ARRAY_SIZE(timer_block)); in tim_index() 113 g_assert(diff >= 0 && diff < ARRAY_SIZE(timer)); in timer_index() 180 for (i = 0; i < ARRAY_SIZE(timer_block); i++) { in tim_reset() 181 for (j = 0; j < ARRAY_SIZE(timer); j++) { in tim_reset() 527 TestData testdata[ARRAY_SIZE(timer_block) * ARRAY_SIZE(timer)]; in main() 534 for (i = 0; i < ARRAY_SIZE(timer_block); i++) { in main() 535 for (j = 0; j < ARRAY_SIZE(timer); j++) { in main() 536 TestData *td = &testdata[i * ARRAY_SIZE(timer) + j]; in main()
|
| /qemu/hw/watchdog/ |
| A D | spapr_watchdog.c | 92 for (i = 1; i <= ARRAY_SIZE(spapr->wds); ++i) { in watchdog_stop_all() 110 g_assert(num < ARRAY_SIZE(spapr->wds)); in watchdog_expired() 148 if (watchdogNumber > ARRAY_SIZE(spapr->wds)) { in h_watchdog() 173 } else if (watchdogNumber <= ARRAY_SIZE(spapr->wds)) { in h_watchdog() 183 ARRAY_SIZE(spapr->wds)); in h_watchdog() 187 if (watchdogNumber > ARRAY_SIZE(spapr->wds)) { in h_watchdog() 204 for (i = 0; i < ARRAY_SIZE(spapr->wds); ++i) { in spapr_watchdog_init()
|
| /qemu/target/ppc/ |
| A D | int_helper.c | 687 for (i = 0; i < ARRAY_SIZE(r->f32); i++) { 884 for (i = 0; i < ARRAY_SIZE(r->u8); i++) { in helper_vclzlsbb() 979 for (i = 0; i < ARRAY_SIZE(r->s8); i++) { in VMRG() 1030 for (i = 0; i < ARRAY_SIZE(r->u8); i++) { in helper_VMSUMUBM() 1117 for (i = 0; i < ARRAY_SIZE(t->u8); i++) { in VMUL() 1120 if (idx < ARRAY_SIZE(t->u8)) { in VMUL() 1242 for (i = 0; i < ARRAY_SIZE(r->u8); i++) { in helper_VPERM() 1260 for (i = 0; i < ARRAY_SIZE(r->u8); i++) { in helper_VPERMR() 1633 size = ARRAY_SIZE(r->u8); in helper_vslv() 1917 upper = ARRAY_SIZE(r->s32) - 1; in helper_vsumsws() [all …]
|
| /qemu/tests/tcg/multiarch/libs/ |
| A D | float_helpers.c | 27 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) macro 56 static const int num_f16 = ARRAY_SIZE(f16_numbers); 120 static const int num_f32 = ARRAY_SIZE(f32_numbers); 188 static const int num_f64 = ARRAY_SIZE(f64_numbers);
|
| /qemu/contrib/plugins/ |
| A D | howvec.c | 25 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) macro 149 { "aarch64", aarch64_insn_classes, ARRAY_SIZE(aarch64_insn_classes) }, 150 { "sparc", sparc32_insn_classes, ARRAY_SIZE(sparc32_insn_classes) }, 151 { "sparc64", sparc64_insn_classes, ARRAY_SIZE(sparc64_insn_classes) }, 152 { NULL, default_insn_classes, ARRAY_SIZE(default_insn_classes) }, 229 for (i = 0; i < ARRAY_SIZE(class_tables); i++) { in plugin_exit() 340 for (i = 0; i < ARRAY_SIZE(class_tables); i++) { in qemu_plugin_install() 349 for (i = 0; i < ARRAY_SIZE(class_tables); i++) { in qemu_plugin_install()
|
| /qemu/tests/tcg/riscv64/ |
| A D | test-div.c | 27 #define ARRAY_SIZE(X) (sizeof(X) / sizeof(*(X))) macro 33 for (i = 0; i < ARRAY_SIZE(test_s); i++) { in main() 45 for (i = 0; i < ARRAY_SIZE(test_u); i++) { in main()
|
| /qemu/hw/net/ |
| A D | stellaris_enet.c | 106 if (s->next_packet >= ARRAY_SIZE(s->rx)) { in stellaris_enet_post_load() 110 if (s->np > ARRAY_SIZE(s->rx)) { in stellaris_enet_post_load() 114 for (i = 0; i < ARRAY_SIZE(s->rx); i++) { in stellaris_enet_post_load() 115 if (s->rx[i].len > ARRAY_SIZE(s->rx[i].data)) { in stellaris_enet_post_load() 120 if (s->rx_fifo_offset > ARRAY_SIZE(s->rx[0].data) - 4) { in stellaris_enet_post_load() 124 if (s->tx_fifo_len > ARRAY_SIZE(s->tx_fifo)) { in stellaris_enet_post_load() 186 framelen = MIN(framelen, ARRAY_SIZE(s->tx_fifo)); in stellaris_txpacket_complete() 219 framelen = MIN(framelen, ARRAY_SIZE(s->tx_fifo) - 2); in stellaris_enet_send() 402 if (s->tx_fifo_len + 4 <= ARRAY_SIZE(s->tx_fifo)) { in stellaris_enet_write()
|
| /qemu/hw/i386/ |
| A D | pc_sysfw.c | 117 for (i = 0; i < ARRAY_SIZE(pcms->flash); i++) { in pc_system_flash_cleanup_unused() 157 for (i = 0; i < ARRAY_SIZE(pcms->flash); i++) { in pc_system_flash_map() 219 BlockBackend *pflash_blk[ARRAY_SIZE(pcms->flash)]; in pc_system_firmware_init() 227 for (i = 0; i < ARRAY_SIZE(pcms->flash); i++) { in pc_system_firmware_init() 234 for (i = 1; i < ARRAY_SIZE(pcms->flash); i++) { in pc_system_firmware_init()
|
| /qemu/bsd-user/ |
| A D | strace.c | 223 print_syscall(num, freebsd_scnames, ARRAY_SIZE(freebsd_scnames), arg1, arg2, in print_freebsd_syscall() 230 print_syscall_ret(num, ret, freebsd_scnames, ARRAY_SIZE(freebsd_scnames)); in print_freebsd_syscall_ret() 237 print_syscall(num, netbsd_scnames, ARRAY_SIZE(netbsd_scnames), in print_netbsd_syscall() 244 print_syscall_ret(num, ret, netbsd_scnames, ARRAY_SIZE(netbsd_scnames)); in print_netbsd_syscall_ret() 251 print_syscall(num, openbsd_scnames, ARRAY_SIZE(openbsd_scnames), arg1, arg2, in print_openbsd_syscall() 258 print_syscall_ret(num, ret, openbsd_scnames, ARRAY_SIZE(openbsd_scnames)); in print_openbsd_syscall_ret()
|
| /qemu/target/hexagon/ |
| A D | gdbstub.c | 83 for (i = 0; i < ARRAY_SIZE(env->VRegs[n].uw); i++) { in gdb_get_vreg() 93 for (i = 0; i < ARRAY_SIZE(env->QRegs[n].uw); i++) { in gdb_get_qreg() 119 for (i = 0; i < ARRAY_SIZE(env->VRegs[n].uw); i++) { in gdb_put_vreg() 129 for (i = 0; i < ARRAY_SIZE(env->QRegs[n].uw); i++) { in gdb_put_qreg()
|
| /qemu/hw/misc/ |
| A D | aspeed_sli.c | 26 if (reg >= ARRAY_SIZE(s->regs)) { in aspeed_sli_read() 43 if (reg >= ARRAY_SIZE(s->regs)) { in aspeed_sli_write() 59 if (reg >= ARRAY_SIZE(s->regs)) { in aspeed_sliio_read() 76 if (reg >= ARRAY_SIZE(s->regs)) { in aspeed_sliio_write()
|