Home
last modified time | relevance | path

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

/xen/xen/test/livepatch/
A Dxen_hello_world.c17 static unsigned int cnt; variable
31 printk(KERN_DEBUG "%s: Hi! (called %u times)\n", __func__, ++cnt); in hi_func()
36 printk(KERN_DEBUG "%s: Hi func called %u times\n", __func__, cnt); in check_fnc()
37 BUG_ON(cnt == 0 || cnt > 2); in check_fnc()
/xen/xen/tools/kconfig/
A Dconf.c261 int cnt, def; in conf_choice() local
265 cnt = def = 0; in conf_choice()
274 cnt++; in conf_choice()
276 def = cnt; in conf_choice()
288 if (cnt == 1) { in conf_choice()
292 printf("[1-%d?]: ", cnt); in conf_choice()
297 cnt = def; in conf_choice()
298 printf("%d\n", cnt); in conf_choice()
311 cnt = def; in conf_choice()
313 cnt = atoi(line); in conf_choice()
[all …]
A Dconfdata.c1175 int cnt, def; in randomize_choice_values() local
1188 cnt = 0; in randomize_choice_values()
1190 cnt++; in randomize_choice_values()
1196 def = (rand() % cnt); in randomize_choice_values()
1198 cnt = 0; in randomize_choice_values()
1200 if (def == cnt++) { in randomize_choice_values()
1241 int i, cnt, pby, pty, ptm; /* pby: probability of bool = y in conf_set_all_new_symbols() local
1310 cnt = rand() % 100; in conf_set_all_new_symbols()
1312 if (cnt < pty) in conf_set_all_new_symbols()
1314 else if (cnt < (pty+ptm)) in conf_set_all_new_symbols()
[all …]
A Dsymbol.c952 int i, cnt, size; in sym_re_search() local
956 cnt = size = 0; in sym_re_search()
968 if (cnt >= size) { in sym_re_search()
980 sym_match_arr[cnt].so = match[0].rm_so; in sym_re_search()
981 sym_match_arr[cnt].eo = match[0].rm_eo; in sym_re_search()
982 sym_match_arr[cnt++].sym = sym; in sym_re_search()
985 qsort(sym_match_arr, cnt, sizeof(struct sym_match), sym_rel_comp); in sym_re_search()
986 sym_arr = malloc((cnt+1) * sizeof(struct symbol *)); in sym_re_search()
989 for (i = 0; i < cnt; i++) in sym_re_search()
991 sym_arr[cnt] = NULL; in sym_re_search()
/xen/xen/arch/x86/
A Dusercopy.c43 : [cnt] "+c" (n), [to] "+D" (to), [from] "+S" (from), in __copy_to_user_ll()
88 : [cnt] "+c" (n), [to] "+D" (to), [from] "+S" (from), in __copy_from_user_ll()
143 : [cnt] "=&c" (n), [to] "+D" (to) in clear_user()
A Dhpet.c101 uint32_t cnt, cmp; in hpet_next_event() local
105 cnt = hpet_read32(HPET_COUNTER); in hpet_next_event()
106 cmp = cnt + delta; in hpet_next_event()
112 return ((cmp + 2 - cnt) > delta) ? -ETIME : 0; in hpet_next_event()
/xen/xen/include/asm-x86/hvm/
A Dvioapic.h59 #define hvm_vioapic_size(cnt) offsetof(struct hvm_vioapic, redirtbl[cnt]) argument
A Dirq.h101 #define hvm_irq_size(cnt) offsetof(struct hvm_irq, gsi_assert_count[cnt]) argument
/xen/xen/drivers/char/
A Domap-uart.c259 uint8_t cnt; in omap_uart_tx_ready() local
269 cnt = omap_read(uart, UART_OMAP_TXFIFO_LVL); in omap_uart_tx_ready()
270 ASSERT( cnt >= 0 && cnt <= uart->fifo_size ); in omap_uart_tx_ready()
272 return (uart->fifo_size - cnt); in omap_uart_tx_ready()
A Dscif-uart.c200 uint16_t cnt; in scif_uart_tx_ready() local
207 cnt = scif_readw(uart, SCIF_SCFDR) >> 8; in scif_uart_tx_ready()
208 ASSERT( cnt <= params->fifo_size ); in scif_uart_tx_ready()
210 return (params->fifo_size - cnt); in scif_uart_tx_ready()
/xen/tools/debugger/gdbsx/gx/
A Dgx_comm.c277 int cnt = strlen (buf); in gx_putpkt() local
288 for (i = 0; i < cnt; i++) { in gx_putpkt()
/xen/xen/arch/x86/cpu/
A Dvpmu_intel.c129 u64 cnt; in handle_pmc_quirk() local
130 rdmsrl(MSR_P6_PERFCTR(i), cnt); in handle_pmc_quirk()
131 if ( cnt == 0 ) in handle_pmc_quirk()
141 u64 cnt; in handle_pmc_quirk() local
142 rdmsrl(MSR_CORE_PERF_FIXED_CTR0 + i, cnt); in handle_pmc_quirk()
143 if ( cnt == 0 ) in handle_pmc_quirk()
/xen/xen/arch/arm/
A Dvsmc.c77 static bool fill_function_call_count(struct cpu_user_regs *regs, uint32_t cnt) in fill_function_call_count() argument
83 set_user_reg(regs, 0, cnt); in fill_function_call_count()
/xen/tools/xenstore/
A Dxenstored_domain.c885 int cnt; in domain_entry_fix() local
891 cnt = d->nbentry + num; in domain_entry_fix()
892 if (cnt < 0) in domain_entry_fix()
893 cnt = 0; in domain_entry_fix()
896 d->nbentry = cnt; in domain_entry_fix()
898 return domid_is_unprivileged(domid) ? cnt : 0; in domain_entry_fix()
A Dxenstored_transaction.c494 int cnt; in transaction_fix_domains() local
497 cnt = domain_entry_fix(d->domid, d->nbentry, update); in transaction_fix_domains()
498 if (!update && cnt >= quota_nb_entry_per_domain) in transaction_fix_domains()
/xen/xen/drivers/passthrough/vtd/
A Ddmar.c317 int depth, cnt, didx = 0, ret; in acpi_parse_dev_scope() local
319 if ( (cnt = scope_device_count(start, end)) < 0 ) in acpi_parse_dev_scope()
320 return cnt; in acpi_parse_dev_scope()
322 if ( cnt > 0 ) in acpi_parse_dev_scope()
324 scope->devices = xzalloc_array(u16, cnt); in acpi_parse_dev_scope()
328 scope->devices_cnt = cnt; in acpi_parse_dev_scope()
/xen/xen/include/public/arch-x86/hvm/
A Dsave.h386 #define XEN_HVM_VIOAPIC(name, cnt) \ argument
391 union vioapic_redir_entry redirtbl[cnt]; \
/xen/xen/common/sched/
A Dcore.c407 unsigned int cnt = 0; in sched_free_unit() local
412 cnt++; in sched_free_unit()
420 if ( !cnt ) in sched_free_unit()
2270 int cnt = atomic_dec_return(&next->rendezvous_out_cnt); in sched_context_switched() local
2275 if ( cnt == 1 ) in sched_context_switched()
/xen/stubdom/vtpmmgr/
A Dtpm2_marshal.h684 const UINT32 cnt) in pack_TPMS_PCR_SELECTION_Array() argument
687 for (i = 0; i < cnt; i++) in pack_TPMS_PCR_SELECTION_Array()
/xen/xen/common/
A Dpage_alloc.c1261 unsigned int cnt = 0; in scrub_free_pages() local
1303 cnt += 100; /* scrubbed pages add heavier weight. */ in scrub_free_pages()
1306 cnt++; in scrub_free_pages()
1329 if ( cnt > 800 && softirq_pending(cpu) ) in scrub_free_pages()
/xen/stubdom/
A Dpciutils.patch227 else if (i >= cnt-1)
/xen/xen/crypto/
A Dvmac.c1059 unsigned cnt=0; in prime() local
1066 cnt++; in prime()
1068 return cnt; /* cnt is millions of iterations per second */ in prime()
/xen/xen/drivers/passthrough/
A Dpci.c1046 int cnt = 0; in find_upstream_bridge() local
1064 if ( cnt++ >= MAX_BUSES ) in find_upstream_bridge()
/xen/xen/arch/x86/hvm/
A Dhvm.c1359 #define HVM_CPU_MSR_SIZE(cnt) offsetof(struct hvm_msr, msr[cnt]) argument
/xen/tools/tests/x86_emulator/
A Dtest_x86_emulator.c2107 : [addr] "=S" (regs.esi), [cnt] "=c" (regs.ecx), in main()

Completed in 71 milliseconds