/qemu/include/fpu/ |
H A D | softfloat-macros.h | 136 z = ( a>>count ) | ( ( a<<( ( - count ) & 31 ) ) != 0 ); in shift32RightJamming() 162 z = ( a>>count ) | ( ( a<<( ( - count ) & 63 ) ) != 0 ); in shift64RightJamming() 241 z1 = (count < 128) ? (a0 >> (count & 63)) : 0; in shift128Right() 316 int count, in shift128ExtraRightJamming() argument 373 *z0Ptr = count == 0 ? a0 : (a0 << count) | (a1 >> (-count & 63)); in shortShift128Left() 386 if (count < 64) { in shift128Left() 388 *z0Ptr = count == 0 ? a0 : (a0 << count) | (a1 >> (-count & 63)); in shift128Left() 408 int count, in shortShift192Left() argument 417 z2 = a2<<count; in shortShift192Left() 418 z1 = a1<<count; in shortShift192Left() [all …]
|
/qemu/hw/hyperv/ |
H A D | hv-balloon-page_range_tree.c | 43 assert(count > 0); in page_range_tree_insert_new() 46 range->count = count; in page_range_tree_insert_new() 61 if (count == 0) { in hvb_page_range_tree_insert() 102 range->count = MAX(range->count, count); in hvb_page_range_tree_insert() 125 count = rangecur->count + (rangecur->start - range->start); in hvb_page_range_tree_insert() 126 range->count = MAX(range->count, count); in hvb_page_range_tree_insert() 153 if (range->count > maxcount) { in hvb_page_range_tree_pop() 155 out->count = maxcount; in hvb_page_range_tree_pop() 156 range->count -= maxcount; in hvb_page_range_tree_pop() 158 out->count = range->count; in hvb_page_range_tree_pop() [all …]
|
H A D | hv-balloon-page_range_tree.h | 17 uint64_t count; member 24 uint64_t endr = range->start + range->count; in page_range_part_before() 29 out->count = end - out->start; in page_range_part_before() 31 out->count = 0; in page_range_part_before() 40 uint64_t end = range->start + range->count; in page_range_part_after() 41 uint64_t ends = start + count; in page_range_part_after() 45 out->count = end - out->start; in page_range_part_after() 47 out->count = 0; in page_range_part_after() 56 uint64_t end2 = start + count; in page_range_intersect() 69 return trange.count; in page_range_intersection_size() [all …]
|
H A D | hv-balloon-our_range_memslots.c | 18 assert(count <= UINT64_MAX - start); in our_range_init() 20 our_range->range.count = count; in our_range_init() 52 our_range->range.count); in hvb_our_range_mark_added() 64 assert(memslots->count > 0); in our_range_memslots_init_slots() 65 memslots->slots = g_new0(MemoryRegion, memslots->count); in our_range_memslots_init_slots() 69 for (idx = 0, memslot_offset = 0; idx < memslots->count; in our_range_memslots_init_slots() 75 if (idx == memslots->count - 1) { in our_range_memslots_init_slots() 113 our_range->slots.count = memslot_count; in hvb_our_range_memslots_new() 135 for (idx = 0; idx < memslots->count; idx++) { in our_range_memslots_free_memslots() 148 assert(our_range->slots.count > 0); in hvb_our_range_memslots_free() [all …]
|
H A D | hv-balloon.c | 401 *dctr -= range.count; in hv_balloon_unballoon_posting() 498 hot_add_range->count = QEMU_ALIGN_DOWN(hot_add_range->count, align); in hv_balloon_hot_add_setup() 795 if (range->count > 0) { in hv_balloon_remove_response_handle_range() 800 range->count = 0; in hv_balloon_remove_response_handle_range() 811 assert(count > 0); in hv_balloon_remove_response_handle_pages() 817 if (range->count > 0 && !page_range_joinable(range, start, count)) { in hv_balloon_remove_response_handle_pages() 824 range->count = count; in hv_balloon_remove_response_handle_pages() 827 range->count += count; in hv_balloon_remove_response_handle_pages() 829 range->count += count; in hv_balloon_remove_response_handle_pages() 890 assert(count > 0); in hv_balloon_handle_remove_section() [all …]
|
/qemu/util/ |
H A D | lockcnt.c | 33 lockcnt->count = 0; in qemu_lockcnt_init() 108 qemu_futex_wake(&lockcnt->count, 1); in lockcnt_wake() 113 int val = qatomic_read(&lockcnt->count); in qemu_lockcnt_inc() 155 int val = qatomic_read(&lockcnt->count); in qemu_lockcnt_dec_and_lock() 204 int val = qatomic_read(&lockcnt->count); in qemu_lockcnt_dec_if_lock() 260 val = qatomic_read(&lockcnt->count); in qemu_lockcnt_inc_and_unlock() 278 val = qatomic_read(&lockcnt->count); in qemu_lockcnt_unlock() 300 lockcnt->count = 0; in qemu_lockcnt_init() 327 qatomic_dec(&lockcnt->count); in qemu_lockcnt_dec() 386 qatomic_inc(&lockcnt->count); in qemu_lockcnt_inc_and_unlock() [all …]
|
H A D | hbitmap.c | 65 uint64_t count; member 208 end = count > hb->orig_size - start ? hb->orig_size : start + count; in hbitmap_next_dirty() 408 return count; in hb_count_between() 470 if (count == 0) { in hbitmap_set() 596 hb->count = 0; in hbitmap_reset_all() 665 if (!count) { in hbitmap_serialization_size() 679 if (!count) { in hbitmap_serialize_part() 702 if (!count) { in hbitmap_deserialize_part() 731 if (!count) { in hbitmap_deserialize_zeroes() 748 if (!count) { in hbitmap_deserialize_ones() [all …]
|
H A D | qdist.c | 61 entry->count += count; in qdist_add() 72 entry->count = count; in qdist_add() 128 if (e->count < min) { in qdist_pr_internal() 129 min = e->count; in qdist_pr_internal() 132 max = e->count; in qdist_pr_internal() 141 if (e->count) { in qdist_pr_internal() 361 count += e->count; in qdist_sample_count() 363 return count; in qdist_sample_count() 377 ret += e->x * e->count / count; in qdist_pairwise_avg() 390 unsigned long count; in qdist_avg() local [all …]
|
/qemu/target/i386/tcg/ |
H A D | shift_helper_template.h.inc | 47 int count, eflags; 53 count = rclw_table[count]; 55 count = rclb_table[count]; 57 if (count) { 61 res = (t0 << count) | ((target_ulong)(eflags & CC_C) << (count - 1)); 62 if (count > 1) { 76 int count, eflags; 82 count = rclw_table[count]; 84 count = rclb_table[count]; 86 if (count) { [all …]
|
/qemu/tests/qtest/ |
H A D | npcm7xx_timer-test.c | 240 unsigned int count = 256; in test_oneshot_ps5() local 245 tim_write_ticr(td, count); in test_oneshot_ps5() 278 unsigned int count = 1; in test_oneshot_ps0() local 283 tim_write_ticr(td, count); in test_oneshot_ps0() 311 tim_write_ticr(td, count); in test_oneshot_ps255() 334 unsigned int count = 256; in test_oneshot_interrupt() local 339 tim_write_ticr(td, count); in test_oneshot_interrupt() 355 unsigned int count = 256; in test_pause_resume() local 391 unsigned int count = 256; in test_prescaler_change() local 437 unsigned int count = 2; in test_periodic_no_interrupt() local [all …]
|
/qemu/tests/qtest/libqos/ |
H A D | sdhci-cmd.c | 27 while (index < count) { in read_fifo() 28 size = count - index; in read_fifo() 46 size_t count) in write_fifo() argument 52 while (index < count) { in write_fifo() 53 size = count - index; in write_fifo() 67 static void fill_block(QTestState *qts, uint64_t reg, int count) in fill_block() argument 69 while (--count >= 0) { in fill_block() 86 size_t count) in sdhci_read_cmd() argument 88 sdhci_cmd_regs(qts, base_addr, count, 1, 0, in sdhci_read_cmd() 103 size_t count, size_t blksize) in sdhci_write_cmd() argument [all …]
|
/qemu/hw/timer/ |
H A D | i8254_common.c | 56 out = (d >= s->count); in pit_get_out() 66 out = (d % s->count) < ((s->count + 1) >> 1); in pit_get_out() 70 out = (d == s->count); in pit_get_out() 88 if (d < s->count) { in pit_get_next_transition_time() 89 next_time = s->count; in pit_get_next_transition_time() 113 if (d < s->count) { in pit_get_next_transition_time() 114 next_time = s->count; in pit_get_next_transition_time() 115 } else if (d == s->count) { in pit_get_next_transition_time() 116 next_time = s->count + 1; in pit_get_next_transition_time() 138 info->initial_count = sc->count; in pit_get_channel_info_common() [all …]
|
H A D | slavio_timer.c | 56 uint32_t count, counthigh, reached; member 109 uint64_t count, limit; in slavio_timer_get_out() local 119 t->count = count & TIMER_COUNT_MASK32; in slavio_timer_get_out() 120 t->counthigh = count >> 32; in slavio_timer_get_out() 173 ret = t->count & TIMER_MAX_COUNT64; in slavio_timer_mem_readl() 217 uint64_t count; in slavio_timer_mem_writel() local 223 count = ((uint64_t)t->counthigh << 32) | t->count; in slavio_timer_mem_writel() 241 uint64_t count; in slavio_timer_mem_writel() local 247 count = ((uint64_t)t->counthigh) << 32 | t->count; in slavio_timer_mem_writel() 349 VMSTATE_UINT32(count, CPUTimerState), [all …]
|
H A D | i8254.c | 68 counter = s->count - ((2 * d) % s->count); in pit_get_count() 71 counter = s->count - (d % s->count); in pit_get_count() 113 s->count = val; in pit_load_count() 198 int ret, count; in pit_ioport_read() local 232 count = pit_get_count(s); in pit_ioport_read() 233 ret = count & 0xff; in pit_ioport_read() 236 count = pit_get_count(s); in pit_ioport_read() 237 ret = (count >> 8) & 0xff; in pit_ioport_read() 240 count = pit_get_count(s); in pit_ioport_read() 241 ret = count & 0xff; in pit_ioport_read() [all …]
|
/qemu/tests/qemu-iotests/ |
H A D | 246.out | 23 "count": 0, 31 "count": 0, 39 "count": 0, 47 "count": 0, 63 "count": 0, 71 "count": 0, 79 "count": 0, 100 "count": 0, 108 "count": 0, 116 "count": 0, [all …]
|
/qemu/target/i386/hvf/ |
H A D | x86_emu.c | 938 uint8_t count; in exec_shl() local 945 if (!count) { in exec_shl() 1025 uint8_t count; in exec_ror() local 1103 uint8_t count; in exec_rol() local 1185 uint8_t count; in exec_rcl() local 1196 count %= 9; in exec_rcl() 1204 res = (op1_8 << count) | (get_CF(env) << (count - 1)) | in exec_rcl() 1230 res = (op1_16 << count) | (get_CF(env) << (count - 1)) | in exec_rcl() 1270 uint8_t count; in exec_rcr() local 1286 res = (op1_8 >> count) | (get_CF(env) << (8 - count)) | in exec_rcr() [all …]
|
/qemu/tests/plugin/ |
H A D | bb.c | 32 static void gen_one_cpu_report(CPUCount *count, GString *report, in gen_one_cpu_report() argument 35 if (count->bb_count) { in gen_one_cpu_report() 39 count->bb_count, count->insn_count); in gen_one_cpu_report() 48 CPUCount *count = qemu_plugin_scoreboard_find(counts, i); in plugin_exit() local 49 gen_one_cpu_report(count, report, i); in plugin_exit() 61 CPUCount *count = qemu_plugin_scoreboard_find(counts, cpu_index); in vcpu_idle() local 63 gen_one_cpu_report(count, report, cpu_index); in vcpu_idle() 73 CPUCount *count = qemu_plugin_scoreboard_find(counts, cpu_index); in vcpu_tb_exec() local 76 count->insn_count += n_insns; in vcpu_tb_exec() 77 count->bb_count++; in vcpu_tb_exec()
|
/qemu/hw/ppc/ |
H A D | fdt.c | 21 int i, j, count; in ppc_create_page_sizes_prop() local 30 for (count = 0; count < PPC_PAGE_SIZES_MAX_SZ; count++) { in ppc_create_page_sizes_prop() 31 if (sps->enc[count].page_shift == 0) { in ppc_create_page_sizes_prop() 35 if ((p - prop) >= (maxcells - 3 - count * 2)) { in ppc_create_page_sizes_prop() 40 *(p++) = cpu_to_be32(count); in ppc_create_page_sizes_prop() 41 for (j = 0; j < count; j++) { in ppc_create_page_sizes_prop()
|
/qemu/hw/s390x/ |
H A D | s390-stattrib-kvm.c | 40 uint32_t count, in kvm_s390_stattrib_read_helper() argument 49 .count = count, in kvm_s390_stattrib_read_helper() 61 return clog.count; in kvm_s390_stattrib_read_helper() 66 uint32_t count, in kvm_s390_stattrib_get_stattr() argument 74 uint32_t count, in kvm_s390_stattrib_peek_stattr() argument 77 return kvm_s390_stattrib_read_helper(sa, &start_gfn, count, values, in kvm_s390_stattrib_peek_stattr() 83 uint32_t count, in kvm_s390_stattrib_set_stattr() argument 90 if (start_gfn + count > max) { in kvm_s390_stattrib_set_stattr() 98 memcpy(sas->incoming_buffer + start_gfn, values, count); in kvm_s390_stattrib_set_stattr() 119 clog.count = len; in kvm_s390_stattrib_synchronize() [all …]
|
/qemu/include/qemu/ |
H A D | hbitmap.h | 115 void hbitmap_set(HBitmap *hb, uint64_t start, uint64_t count); 130 void hbitmap_reset(HBitmap *hb, uint64_t start, uint64_t count); 183 uint64_t start, uint64_t count); 197 uint64_t start, uint64_t count); 214 uint64_t start, uint64_t count, 229 void hbitmap_deserialize_zeroes(HBitmap *hb, uint64_t start, uint64_t count, 244 void hbitmap_deserialize_ones(HBitmap *hb, uint64_t start, uint64_t count, 300 int64_t hbitmap_next_dirty(const HBitmap *hb, int64_t start, int64_t count); 312 int64_t hbitmap_next_zero(const HBitmap *hb, int64_t start, int64_t count); 341 bool hbitmap_status(const HBitmap *hb, int64_t start, int64_t count,
|
/qemu/tests/bench/ |
H A D | benchmark-crypto-akcipher.c | 49 size_t count; in test_rsa_speed() local 59 for (count = 0; count < SIGN_TIMES; ++count) { in test_rsa_speed() 69 count, g_test_timer_last(), in test_rsa_speed() 70 (double)count / g_test_timer_last()); in test_rsa_speed() 76 for (count = 0; count < VERIFY_TIMES; ++count) { in test_rsa_speed() 86 count, g_test_timer_last(), in test_rsa_speed() 87 (double)count / g_test_timer_last()); in test_rsa_speed()
|
/qemu/ui/ |
H A D | input-keymap.c | 68 int count = 0; in qemu_input_key_value_to_scancode() local 74 codes[count++] = 0xe1; in qemu_input_key_value_to_scancode() 75 codes[count++] = 0x1d | v; in qemu_input_key_value_to_scancode() 76 codes[count++] = 0x45 | v; in qemu_input_key_value_to_scancode() 77 return count; in qemu_input_key_value_to_scancode() 80 codes[count++] = SCANCODE_EMUL0; in qemu_input_key_value_to_scancode() 86 codes[count++] = keycode; in qemu_input_key_value_to_scancode() 88 return count; in qemu_input_key_value_to_scancode()
|
/qemu/target/s390x/tcg/ |
H A D | vec_int_helper.c | 41 g_assert(count < 128); in s390_vec_shl() 42 if (count == 0) { in s390_vec_shl() 45 } else if (count == 64) { in s390_vec_shl() 48 } else if (count < 64) { in s390_vec_shl() 49 tmp = extract64(a->doubleword[1], 64 - count, count); in s390_vec_shl() 62 if (count == 0) { in s390_vec_sar() 69 } else if (count < 64) { in s390_vec_sar() 71 d->doubleword[1] = deposit64(tmp, 64 - count, count, a->doubleword[0]); in s390_vec_sar() 84 g_assert(count < 128); in s390_vec_shr() 85 if (count == 0) { in s390_vec_shr() [all …]
|
/qemu/tests/tcg/multiarch/system/ |
H A D | memory.c | 35 static void pdot(int count) in pdot() argument 115 uint8_t count = 0; in init_test_data_u16() local 125 uint16_t low = BYTE_NEXT(count), high = BYTE_NEXT(count); in init_test_data_u16() 135 uint8_t count = 0; in init_test_data_u32() local 145 uint32_t b4 = BYTE_NEXT(count), b3 = BYTE_NEXT(count); in init_test_data_u32() 146 uint32_t b2 = BYTE_NEXT(count), b1 = BYTE_NEXT(count); in init_test_data_u32() 157 uint8_t count = 0; in init_test_data_u64() local 167 uint64_t b8 = BYTE_NEXT(count), b7 = BYTE_NEXT(count); in init_test_data_u64() 168 uint64_t b6 = BYTE_NEXT(count), b5 = BYTE_NEXT(count); in init_test_data_u64() 169 uint64_t b4 = BYTE_NEXT(count), b3 = BYTE_NEXT(count); in init_test_data_u64() [all …]
|
/qemu/hw/core/ |
H A D | trace-events | 14 …phase_enter_begin(void *obj, const char *objtype, unsigned count, int type) "obj=%p(%s) count=%d t… 16 resettable_phase_enter_end(void *obj, const char *objtype, unsigned count) "obj=%p(%s) count=%d" 17 …_phase_hold_begin(void *obj, const char *objtype, unsigned count, int type) "obj=%p(%s) count=%d t… 19 resettable_phase_hold_end(void *obj, const char *objtype, unsigned count) "obj=%p(%s) count=%d" 20 …_phase_exit_begin(void *obj, const char *objtype, unsigned count, int type) "obj=%p(%s) count=%d t… 22 resettable_phase_exit_end(void *obj, const char *objtype, unsigned count) "obj=%p(%s) count=%d"
|