Home
last modified time | relevance | path

Searched full:count (Results 1 – 25 of 894) sorted by relevance

12345678910>>...36

/qemu/hw/hyperv/
H A Dhv-balloon-page_range_tree.h17 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()
35 /* return just the part of range after (start, count) */
37 uint64_t start, uint64_t count, in page_range_part_after() argument
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()
[all …]
H A Dhv-balloon-page_range_tree.c38 uint64_t start, uint64_t count) in page_range_tree_insert_new() argument
43 assert(count > 0); in page_range_tree_insert_new()
46 range->count = count; in page_range_tree_insert_new()
52 uint64_t start, uint64_t count, in hvb_page_range_tree_insert() argument
60 assert(!SUM_OVERFLOW_U64(start, count)); in hvb_page_range_tree_insert()
61 if (count == 0) { in hvb_page_range_tree_insert()
75 intersection = page_range_intersection_size(range, start, count); in hvb_page_range_tree_insert()
76 joinable = page_range_joinable_right(range, start, count); in hvb_page_range_tree_insert()
88 node = page_range_tree_insert_new(tree, start, count); in hvb_page_range_tree_insert()
101 count += start - range->start; in hvb_page_range_tree_insert()
[all …]
H A Dhv-balloon-our_range_memslots.c16 static void our_range_init(OurRange *our_range, uint64_t start, uint64_t count) in our_range_init() argument
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()
129 trace_hv_balloon_unmap_slot(idx, memslots->count, offset); in our_range_memslots_free_memslots()
[all …]
/qemu/tests/qtest/
H A Dpnv-xive2-nvpg_bar.c39 uint32_t count = 0; in nvpg_backlog_op() local
61 count = qtest_readw(qts, addr + offset); in nvpg_backlog_op()
63 return count; in nvpg_backlog_op()
77 uint32_t count, delta; in test_nvpg_bar() local
108 count = nvpg_backlog_op(qts, READ_x, NVP, nvp_target, i, 0); in test_nvpg_bar()
109 g_assert_cmpuint(count, ==, vp_count[i]); in test_nvpg_bar()
111 count = nvpg_backlog_op(qts, READ_y, NVG, group_target, i, 0); in test_nvpg_bar()
112 g_assert_cmpuint(count, ==, group_count[i]); in test_nvpg_bar()
120 count = nvpg_backlog_op(qts, INCR_LOAD, NVP, nvp_target, vp_priority, 0); in test_nvpg_bar()
121 g_assert_cmpuint(count, ==, vp_count[vp_priority]); in test_nvpg_bar()
[all …]
H A Dnpcm7xx_timer-test.c162 /* Returns the number of nanoseconds to count the given number of cycles. */
163 static int64_t tim_calculate_step(uint32_t count, uint32_t prescale) in tim_calculate_step() argument
165 return (1000000000LL / TIM_REF_HZ) * count * (prescale + 1); in tim_calculate_step()
225 /* Enable the timer with zero initial count, then disable it again. */ in test_oneshot_enable_then_disable()
240 unsigned int count = 256; in test_oneshot_ps5() local
245 tim_write_ticr(td, count); in test_oneshot_ps5()
248 g_assert_cmpuint(tim_read_tdr(td), ==, count); in test_oneshot_ps5()
250 clock_step(tim_calculate_step(count, ps) - 1); in test_oneshot_ps5()
253 g_assert_cmpuint(tim_read_tdr(td), <, count); in test_oneshot_ps5()
259 g_assert_cmpuint(tim_read_tdr(td), ==, count); in test_oneshot_ps5()
[all …]
/qemu/tests/unit/
H A Dtest-fifo.c27 uint32_t count; in test_fifo8_pop_bufptr_wrap() local
40 buf = fifo8_pop_bufptr(&fifo, 2, &count); in test_fifo8_pop_bufptr_wrap()
44 * buf --^ count = 2 in test_fifo8_pop_bufptr_wrap()
46 g_assert(count == 2); in test_fifo8_pop_bufptr_wrap()
54 buf = fifo8_pop_bufptr(&fifo, 8, &count); in test_fifo8_pop_bufptr_wrap()
58 * buf --^ count = 6 in test_fifo8_pop_bufptr_wrap()
60 g_assert(count == 6); in test_fifo8_pop_bufptr_wrap()
73 uint32_t count; in test_fifo8_pop_bufptr() local
86 buf = fifo8_pop_bufptr(&fifo, 2, &count); in test_fifo8_pop_bufptr()
90 * buf --^ count = 2 in test_fifo8_pop_bufptr()
[all …]
/qemu/util/
H A Dlockcnt.c35 lockcnt->count = 0; in qemu_lockcnt_init()
42 /* *val is the current value of lockcnt->count.
46 * lockcnt->count.
50 * new value of lockcnt->count.
66 *val = qatomic_cmpxchg(&lockcnt->count, expected, new_if_free); in qemu_lockcnt_cmpxchg_or_wait()
86 *val = qatomic_cmpxchg(&lockcnt->count, expected, new); in qemu_lockcnt_cmpxchg_or_wait()
96 qemu_futex_wait(&lockcnt->count, *val); in qemu_lockcnt_cmpxchg_or_wait()
97 *val = qatomic_read(&lockcnt->count); in qemu_lockcnt_cmpxchg_or_wait()
110 qemu_futex_wake_single(&lockcnt->count); in lockcnt_wake()
115 int val = qatomic_read(&lockcnt->count); in qemu_lockcnt_inc()
[all …]
H A Dhbitmap.c65 uint64_t count; member
75 * set(start=0, count=9) 11111000 (iter: 0, 2, 4, 6, 8)
76 * reset(start=1, count=3) 00111000 (iter: 4, 6, 8)
77 * set(start=9, count=2) 00111100 (iter: 4, 6, 8, 10)
78 * reset(start=5, count=5) 00000000
196 int64_t hbitmap_next_dirty(const HBitmap *hb, int64_t start, int64_t count) in hbitmap_next_dirty() argument
202 assert(start >= 0 && count >= 0); in hbitmap_next_dirty()
204 if (start >= hb->orig_size || count == 0) { in hbitmap_next_dirty()
208 end = count > hb->orig_size - start ? hb->orig_size : start + count; in hbitmap_next_dirty()
220 int64_t hbitmap_next_zero(const HBitmap *hb, int64_t start, int64_t count) in hbitmap_next_zero() argument
[all …]
H A Dqdist.c49 void qdist_add(struct qdist *dist, double x, long count) in qdist_add() argument
61 entry->count += count; in qdist_add()
72 entry->count = count; in qdist_add()
114 if (dist->entries[0].count) { in qdist_pr_internal()
123 min = dist->entries[0].count; in qdist_pr_internal()
128 if (e->count < min) { in qdist_pr_internal()
129 min = e->count; in qdist_pr_internal()
131 if (e->count > max) { in qdist_pr_internal()
132 max = e->count; in qdist_pr_internal()
141 if (e->count) { in qdist_pr_internal()
[all …]
/qemu/tests/qemu-iotests/
H A D246.out23 "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 …]
H A D236.out26 "count": 262144,
34 "count": 262144,
90 "count": 262144,
98 "count": 262144,
192 "count": 393216,
200 "count": 262144,
208 "count": 458752,
262 "count": 393216,
270 "count": 262144,
278 "count": 458752,
[all …]
/qemu/target/i386/emulate/
H A Dx86_emu.c762 uint8_t count; in exec_shl() local
767 count = decode->op[1].val; in exec_shl()
768 count &= 0x1f; /* count is masked to 5 bits*/ in exec_shl()
769 if (!count) { in exec_shl()
777 if (count <= 8) { in exec_shl()
778 res = (decode->op[0].val << count); in exec_shl()
779 cf = (decode->op[0].val >> (8 - count)) & 0x1; in exec_shl()
793 if (count <= 16) { in exec_shl()
794 res = (decode->op[0].val << count); in exec_shl()
795 cf = (decode->op[0].val >> (16 - count)) & 0x1; in exec_shl()
[all …]
/qemu/include/fpu/
H A Dsoftfloat-macros.h87 * @c: shift count
105 * @c: shift count
120 | Shifts `a' right by the number of bits given in `count'. If any nonzero
122 | the result by setting the least significant bit to 1. The value of `count'
123 | can be arbitrarily large; in particular, if `count' is greater than 32, the
128 static inline void shift32RightJamming(uint32_t a, int count, uint32_t *zPtr) in shift32RightJamming() argument
132 if ( count == 0 ) { in shift32RightJamming()
135 else if ( count < 32 ) { in shift32RightJamming()
136 z = ( a>>count ) | ( ( a<<( ( - count ) & 31 ) ) != 0 ); in shift32RightJamming()
146 | Shifts `a' right by the number of bits given in `count'. If any nonzero
[all …]
/qemu/include/qemu/
H A Dhbitmap.h111 * @count: Number of bits to set.
115 void hbitmap_set(HBitmap *hb, uint64_t start, uint64_t count);
121 * @count: Number of bits to reset.
124 * @start and @count must be aligned to bitmap granularity. The only exception
125 * is resetting the tail of the bitmap: @count may be equal to hb->orig_size -
126 * @start, in this case @count may be not aligned. The sum of @start + @count is
128 * and @start + @count = ALIGN_UP(hb->orig_size, granularity).
130 void hbitmap_reset(HBitmap *hb, uint64_t start, uint64_t count);
170 * start + count == hb->size)
178 * @count: Number of bits
[all …]
H A Dlockcnt.h23 unsigned count; member
47 * If the lockcnt's count is zero, wait for critical sections
48 * to finish and increment lockcnt's count to 1. If the count
76 * Decrement lockcnt's count. If the new count is zero, lock
86 * If the count is 1, decrement the count to zero, lock
95 * Remember that concurrent visits are not blocked unless the count is
121 * qemu_lockcnt_count: query a LockCnt's count.
124 * Note that the count can change at any time. Still, while the
125 * lockcnt is locked, one can usefully check whether the count
/qemu/tests/qtest/libqos/
H A Dsdhci-cmd.c21 static ssize_t read_fifo(QTestState *qts, uint64_t reg, char *msg, size_t count) in read_fifo() argument
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()
[all …]
/qemu/hw/timer/
H A Di8254_common.c56 out = (d >= s->count); in pit_get_out()
59 if ((d % s->count) == 0 && d != 0) { 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()
95 base = QEMU_ALIGN_DOWN(d, s->count); in pit_get_next_transition_time()
97 next_time = base + s->count; in pit_get_next_transition_time()
99 next_time = base + s->count + 1; in pit_get_next_transition_time()
103 base = QEMU_ALIGN_DOWN(d, s->count); in pit_get_next_transition_time()
[all …]
H A Dslavio_timer.c44 * are zero. Bit 31 is 1 when count has been reached.
56 uint32_t count, counthigh, reached; member
105 // Update count, set irq, update expire_time
109 uint64_t count, limit; in slavio_timer_get_out() local
116 count = limit - PERIODS_TO_LIMIT(ptimer_get_count(t->timer)); in slavio_timer_get_out()
118 trace_slavio_timer_get_out(t->limit, t->counthigh, t->count); in slavio_timer_get_out()
119 t->count = count & TIMER_COUNT_MASK32; in slavio_timer_get_out()
120 t->counthigh = count >> 32; in slavio_timer_get_out()
131 trace_slavio_timer_irq(t->counthigh, t->count); in slavio_timer_irq()
173 ret = t->count & TIMER_MAX_COUNT64; in slavio_timer_mem_readl()
[all …]
/qemu/hw/core/
H A Dtrace-events14 …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"
/qemu/tests/functional/
H A Dtest_aarch64_tcg_plugins.py83 m = re.search(br"insns: (?P<count>\d+)", s)
84 if "count" not in m.groupdict():
85 self.fail("Failed to find instruction count")
87 count = int(m.group("count"))
88 self.log.info(f"Counted: {count} instructions")
110 m = re.search(br"insns: (?P<count>\d+)", s)
111 if "count" not in m.groupdict():
112 self.fail("Failed to find instruction count")
114 count = int(m.group("count"))
115 self.log.info(f"Counted: {count} instructions")
/qemu/gdb-xml/
H A Daarch64-fpu.xml11 <vector id="v2d" type="ieee_double" count="2"/>
12 <vector id="v2u" type="uint64" count="2"/>
13 <vector id="v2i" type="int64" count="2"/>
14 <vector id="v4f" type="ieee_single" count="4"/>
15 <vector id="v4u" type="uint32" count="4"/>
16 <vector id="v4i" type="int32" count="4"/>
17 <vector id="v8u" type="uint16" count="8"/>
18 <vector id="v8i" type="int16" count="8"/>
19 <vector id="v16u" type="uint8" count="16"/>
20 <vector id="v16i" type="int8" count="16"/>
[all …]
/qemu/tests/tcg/plugins/
H A Dbb.c32 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/tests/bench/
H A Dbenchmark-crypto-akcipher.c49 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/hw/ppc/
H A Dfdt.c21 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 Ds390-stattrib-kvm.c41 uint32_t count, in kvm_s390_stattrib_read_helper() argument
50 .count = count, in kvm_s390_stattrib_read_helper()
62 return clog.count; in kvm_s390_stattrib_read_helper()
67 uint32_t count, in kvm_s390_stattrib_get_stattr() argument
70 return kvm_s390_stattrib_read_helper(sa, start_gfn, count, values, 0); in kvm_s390_stattrib_get_stattr()
75 uint32_t count, in kvm_s390_stattrib_peek_stattr() argument
78 return kvm_s390_stattrib_read_helper(sa, &start_gfn, count, values, in kvm_s390_stattrib_peek_stattr()
84 uint32_t count, in kvm_s390_stattrib_set_stattr() argument
91 if (start_gfn + count > max) { in kvm_s390_stattrib_set_stattr()
99 memcpy(sas->incoming_buffer + start_gfn, values, count); in kvm_s390_stattrib_set_stattr()
[all …]

12345678910>>...36