Home
last modified time | relevance | path

Searched refs:cnt (Results 1 – 25 of 60) sorted by relevance

123

/qemu/tests/qtest/
H A Dxlnx-versal-trng-test.c290 for (i = 0; i < cnt; i++) { in trng_collect()
317 if (n != cnt) { in trng_test_autogen()
326 n = trng_collect(rng, cnt); in trng_test_autogen()
327 if (n != cnt) { in trng_test_autogen()
336 n = trng_collect(rng, cnt); in trng_test_autogen()
337 if (n != cnt) { in trng_test_autogen()
359 n = trng_collect(rng, cnt); in trng_test_oneshot()
360 if (n == cnt) { in trng_test_oneshot()
368 n = trng_collect(rng, cnt); in trng_test_oneshot()
369 if (n == cnt) { in trng_test_oneshot()
[all …]
H A Drtl8139-test.c75 unsigned cnt, diff; in test_timer() local
91 for (cnt = 0; ; ) { in test_timer()
101 if (curr < prev && ++cnt == 3) { in test_timer()
153 for (cnt = 0; ; ) { in test_timer()
161 if (cnt < 3 && curr > next) { in test_timer()
168 if (++cnt == 3) { in test_timer()
172 } else if (cnt >= 3 && curr < prev) { in test_timer()
178 if (++cnt == 5) { in test_timer()
H A Dnpcm7xx_pwm-test.c493 uint64_t cnt; in mft_compute_cnt() local
499 cnt = clk * 60 / ((DEFAULT_PRSC + 1) * rpm * MFT_PULSE_PER_REVOLUTION); in mft_compute_cnt()
500 if (cnt >= MFT_TIMEOUT) { in mft_compute_cnt()
503 return MFT_MAX_CNT - cnt; in mft_compute_cnt()
509 uint16_t cnt, cr; in mft_verify_rpm() local
538 cnt = mft_readw(qts, index, MFT_CNT1); in mft_verify_rpm()
543 g_assert_cmphex(cnt + MAX_ERROR, >=, expected_cnt); in mft_verify_rpm()
544 g_assert_cmphex(cnt, <=, expected_cnt + MAX_ERROR); in mft_verify_rpm()
546 g_assert_cmphex(cnt, ==, cr); in mft_verify_rpm()
/qemu/contrib/plugins/
H A Dhotblocks.c55 ExecCount *cnt = value; in exec_count_free() local
56 qemu_plugin_scoreboard_free(cnt->exec_count); in exec_count_free()
99 ExecCount *cnt = (ExecCount *)udata; in vcpu_tb_exec() local
111 ExecCount *cnt; in vcpu_tb_trans() local
118 if (cnt) { in vcpu_tb_trans()
119 cnt->trans_count++; in vcpu_tb_trans()
121 cnt = g_new0(ExecCount, 1); in vcpu_tb_trans()
122 cnt->start_addr = pc; in vcpu_tb_trans()
123 cnt->trans_count = 1; in vcpu_tb_trans()
124 cnt->insns = insns; in vcpu_tb_trans()
[all …]
H A Dhowvec.c254 uint64_t *cnt = NULL; in find_counter() local
266 for (i = 0; !cnt && i < class_table_sz; i++) { in find_counter()
319 struct qemu_plugin_scoreboard *cnt = find_counter(insn); in vcpu_tb_trans() local
321 if (cnt) { in vcpu_tb_trans()
325 qemu_plugin_scoreboard_u64(cnt), 1); in vcpu_tb_trans()
328 insn, vcpu_insn_exec_before, QEMU_PLUGIN_CB_NO_REGS, cnt); in vcpu_tb_trans()
/qemu/hw/s390x/
H A Ds390-pci-vfio.c62 S390PCIDMACount *cnt; in s390_pci_start_dma_count() local
80 if (cnt->id == id) { in s390_pci_start_dma_count()
81 cnt->users++; in s390_pci_start_dma_count()
82 return cnt; in s390_pci_start_dma_count()
87 cnt->id = id; in s390_pci_start_dma_count()
88 cnt->users = 1; in s390_pci_start_dma_count()
89 cnt->avail = avail; in s390_pci_start_dma_count()
92 return cnt; in s390_pci_start_dma_count()
97 assert(cnt); in s390_pci_end_dma_count()
99 cnt->users--; in s390_pci_end_dma_count()
[all …]
/qemu/hw/acpi/
H A Dcore.c559 if (ar->pm1.cnt.acpi_only) { in acpi_pm1_cnt_update()
564 ar->pm1.cnt.cnt |= ACPI_BITMASK_SCI_ENABLE; in acpi_pm1_cnt_update()
566 ar->pm1.cnt.cnt &= ~ACPI_BITMASK_SCI_ENABLE; in acpi_pm1_cnt_update()
573 return ar->pm1.cnt.cnt >> addr * 8; in acpi_pm_cnt_read()
582 val = val << 8 | (ar->pm1.cnt.cnt & 0xff); in acpi_pm_cnt_write()
584 ar->pm1.cnt.cnt = val & ~(ACPI_BITMASK_SLEEP_ENABLE); in acpi_pm_cnt_write()
621 ar->pm1.cnt.s4_val = s4_val; in acpi_pm1_cnt_init()
622 ar->pm1.cnt.acpi_only = acpi_only; in acpi_pm1_cnt_init()
647 ar->pm1.cnt.cnt = 0; in acpi_pm1_cnt_reset()
648 if (ar->pm1.cnt.acpi_only) { in acpi_pm1_cnt_reset()
[all …]
/qemu/hw/net/
H A Detraxfs_eth.c161 unsigned int cnt; member
208 bus->cnt++; in mdio_cycle()
220 bus->cnt = 0; in mdio_cycle()
231 if (bus->cnt == 1*2) { in mdio_cycle()
232 bus->cnt = 0; in mdio_cycle()
243 bus->cnt = 0; in mdio_cycle()
255 bus->cnt = 0; in mdio_cycle()
266 bus->cnt = 0; in mdio_cycle()
274 bus->cnt = 0; in mdio_cycle()
296 bus->cnt = 0; in mdio_cycle()
[all …]
/qemu/hw/audio/
H A Dasc.c123 assert(fs->cnt); in asc_fifo_get()
130 fs->cnt--; in asc_fifo_get()
132 if (fs->cnt <= 0x1ff) { in asc_fifo_get()
145 if (fs->cnt == 0) { in asc_fifo_get()
176 if (!fs->cnt) { in generate_fifo()
235 if (fs->cnt) { in generate_fifo()
260 if (s->fifos[0].cnt == 0 && s->fifos[1].cnt == 0) { in generate_fifo()
386 fs->cnt++; in asc_fifo_write()
388 if (fs->cnt <= 0x1ff) { in asc_fifo_write()
401 if (fs->cnt == 0x3ff) { in asc_fifo_write()
[all …]
H A Dtrace-events36 asc_fifo_get(const char fifo, int rptr, int cnt, uint64_t value) "fifo %c rptr=0x%x cnt=0x%x value=…
37 …fifo, int reg, unsigned size, int wrptr, int cnt, uint64_t value) "fifo %c reg=0x%03x size=%u wptr…
H A Des1370.c613 int cnt = d->frame_cnt >> 16; in es1370_transfer_audio() local
615 if (size < cnt) { in es1370_transfer_audio()
618 int left = ((size - cnt + 1) << 2) + d->leftover; in es1370_transfer_audio()
623 addr += (cnt << 2) + d->leftover; in es1370_transfer_audio()
670 cnt += (transferred + d->leftover) >> 2; in es1370_transfer_audio()
684 if ((uint32_t) cnt <= d->frame_cnt) { in es1370_transfer_audio()
685 d->frame_cnt |= cnt << 16; in es1370_transfer_audio()
/qemu/hw/timer/
H A Dexynos4210_mct.c191 uint64_t cnt; member
236 uint32_t cnt[L_REG_CNT_AMOUNT]; member
318 VMSTATE_UINT64(cnt, struct gregs),
381 return s->reg.cnt + count; in exynos4210_gfrc_get_count()
570 s->g_timer.reg.cnt += s->g_timer.count; in exynos4210_gfrc_event()
615 if (!s->reg.cnt[L_REG_CNT_FRCCNTB]) { in exynos4210_lfrc_update_count()
968 s->reg.cnt[L_REG_CNT_TCNTB], in exynos4210_ltick_event()
1037 memset(s->l_timer[0].reg.cnt, 0, sizeof(s->l_timer[0].reg.cnt)); in exynos4210_mct_reset()
1038 memset(s->l_timer[1].reg.cnt, 0, sizeof(s->l_timer[1].reg.cnt)); in exynos4210_mct_reset()
1187 new_frc = s->g_timer.reg.cnt; in exynos4210_mct_write()
[all …]
H A Dimx_gpt.c76 VMSTATE_UINT32(cnt, IMXGPTState),
166 s->cnt = s->next_timeout - (uint32_t)ptimer_get_count(s->timer); in imx_gpt_update_count()
168 return s->cnt; in imx_gpt_update_count()
205 count = s->cnt = s->next_timeout = 0; in imx_gpt_compute_next_timeout()
208 count = s->cnt = s->next_timeout = 0; in imx_gpt_compute_next_timeout()
311 reg_value = s->cnt; in imx_gpt_read()
346 s->cnt = 0; in imx_gpt_reset_common()
/qemu/net/
H A Ddump.c64 static ssize_t dump_receive_iov(DumpState *s, const struct iovec *iov, int cnt, in dump_receive_iov() argument
70 size_t size = iov_size(iov, cnt) - offset; in dump_receive_iov()
71 g_autofree struct iovec *dumpiov = g_new(struct iovec, cnt + 1); in dump_receive_iov()
88 cnt = iov_copy(&dumpiov[1], cnt, iov, cnt, offset, caplen); in dump_receive_iov()
90 if (writev(s->fd, dumpiov, cnt + 1) != sizeof(hdr) + caplen) { in dump_receive_iov()
/qemu/target/riscv/
H A Dvector_internals.c23 void vext_set_elems_1s(void *base, uint32_t is_agnostic, uint32_t cnt, in vext_set_elems_1s() argument
30 if (tot - cnt == 0) { in vext_set_elems_1s()
33 memset(base + cnt, -1, tot - cnt); in vext_set_elems_1s()
/qemu/hw/nvram/
H A Dxlnx-efuse.c125 const uint32_t cnt = s->ro_bits_cnt; in efuse_ro_bits_sort() local
127 if (ary && cnt > 1) { in efuse_ro_bits_sort()
128 qsort(ary, cnt, sizeof(ary[0]), efuse_ro_bits_cmp); in efuse_ro_bits_sort()
135 const uint32_t cnt = s->ro_bits_cnt; in efuse_ro_bits_find() local
137 if (!ary || !cnt) { in efuse_ro_bits_find()
141 return bsearch(&k, ary, cnt, sizeof(ary[0]), efuse_ro_bits_cmp) != NULL; in efuse_ro_bits_find()
/qemu/tests/plugin/
H A Dinsn.c125 unsigned long *cnt = &g_array_index(sizes, unsigned long, sz); in vcpu_tb_trans() local
126 (*cnt)++; in vcpu_tb_trans()
160 unsigned long *cnt = &g_array_index(sizes, unsigned long, i); in plugin_exit() local
161 if (*cnt) { in plugin_exit()
163 "len %d bytes: %ld insns\n", i, *cnt); in plugin_exit()
/qemu/hw/misc/
H A Dedu.c73 dma_addr_t cnt; member
152 edu_check_range(dst, edu->dma.cnt, DMA_START, DMA_SIZE); in edu_dma_timer()
155 edu->dma_buf + dst, edu->dma.cnt); in edu_dma_timer()
158 edu_check_range(src, edu->dma.cnt, DMA_START, DMA_SIZE); in edu_dma_timer()
161 edu->dma_buf + src, edu->dma.cnt); in edu_dma_timer()
230 dma_rw(edu, false, &val, &edu->dma.cnt, false); in edu_mmio_read()
292 dma_rw(edu, true, &val, &edu->dma.cnt, false); in edu_mmio_write()
/qemu/hw/nvme/
H A Dsubsys.c22 int i, cnt = 0; in nvme_subsys_reserve_cntlids() local
24 for (i = start; i < ARRAY_SIZE(subsys->ctrls) && cnt < num; i++) { in nvme_subsys_reserve_cntlids()
26 sctrl = &list->sec[cnt]; in nvme_subsys_reserve_cntlids()
29 cnt++; in nvme_subsys_reserve_cntlids()
33 return cnt; in nvme_subsys_reserve_cntlids()
/qemu/include/hw/s390x/
H A Ds390-pci-vfio.h22 void s390_pci_end_dma_count(S390pciState *s, S390PCIDMACount *cnt);
36 S390PCIDMACount *cnt) { } in s390_pci_end_dma_count() argument
/qemu/hw/dma/
H A Dxlnx-zdma.c257 unsigned int cnt; in zdma_src_done() local
258 cnt = ARRAY_FIELD_EX32(s->regs, ZDMA_CH_IRQ_SRC_ACCT, CNT); in zdma_src_done()
259 cnt++; in zdma_src_done()
260 ARRAY_FIELD_DP32(s->regs, ZDMA_CH_IRQ_SRC_ACCT, CNT, cnt); in zdma_src_done()
264 if (cnt != ARRAY_FIELD_EX32(s->regs, ZDMA_CH_IRQ_SRC_ACCT, CNT)) { in zdma_src_done()
272 unsigned int cnt; in zdma_dst_done() local
273 cnt = ARRAY_FIELD_EX32(s->regs, ZDMA_CH_IRQ_DST_ACCT, CNT); in zdma_dst_done()
274 cnt++; in zdma_dst_done()
275 ARRAY_FIELD_DP32(s->regs, ZDMA_CH_IRQ_DST_ACCT, CNT, cnt); in zdma_dst_done()
279 if (cnt != ARRAY_FIELD_EX32(s->regs, ZDMA_CH_IRQ_DST_ACCT, CNT)) { in zdma_dst_done()
/qemu/scripts/
H A Dcheckpatch.pl1004 my ($linenr, $cnt) = @_;
1007 $cnt++;
1010 while ($cnt) {
1013 $cnt--;
1427 my $cnt = $realcnt;
1431 $cnt--;
2603 my $cnt = $realcnt;
2615 $cnt-- if ($lines[$ln - 1] !~ /^-/);
2620 ($dstat, $dcond, $ln, $cnt, $off) =
2632 $cnt--;
[all …]
/qemu/
H A Dqemu-io-cmds.c482 s1, cnt, ts, s2, tdiv((double)cnt, *t)); in print_report()
485 total, cnt, ts, in print_report()
487 tdiv((double)cnt, *t)); in print_report()
713 int c, cnt, ret; in read_f() local
840 cnt = ret; in read_f()
909 int c, cnt, ret; in readv_f() local
975 cnt = ret; in readv_f()
1054 int c, cnt, ret; in write_f() local
1209 cnt = ret; in write_f()
1266 int c, cnt, ret; in writev_f() local
[all …]
/qemu/include/hw/acpi/
H A Dacpi.h131 uint16_t cnt; member
148 ACPIPM1CNT cnt; member
/qemu/block/
H A Dmirror.c1034 int64_t cnt, delta; in mirror_run() local
1049 cnt = bdrv_get_dirty_count(s->dirty_bitmap); in mirror_run()
1068 (cnt == 0 && s->in_flight > 0)) { in mirror_run()
1072 } else if (cnt != 0) { in mirror_run()
1078 if (s->in_flight == 0 && cnt == 0) { in mirror_run()
1098 cnt = bdrv_get_dirty_count(s->dirty_bitmap); in mirror_run()
1101 if (cnt == 0 && should_complete) { in mirror_run()
1112 trace_mirror_before_drain(s, cnt); in mirror_run()
1120 cnt = bdrv_get_dirty_count(s->dirty_bitmap); in mirror_run()
1121 if (cnt > 0 || mirror_flush(s) < 0) { in mirror_run()
[all …]

123