/xen/xen/test/livepatch/ |
A D | xen_hello_world.c | 17 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 D | conf.c | 261 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 D | confdata.c | 1175 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 D | symbol.c | 952 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 D | usercopy.c | 43 : [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 D | hpet.c | 101 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 D | vioapic.h | 59 #define hvm_vioapic_size(cnt) offsetof(struct hvm_vioapic, redirtbl[cnt]) argument
|
A D | irq.h | 101 #define hvm_irq_size(cnt) offsetof(struct hvm_irq, gsi_assert_count[cnt]) argument
|
/xen/xen/drivers/char/ |
A D | omap-uart.c | 259 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 D | scif-uart.c | 200 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 D | gx_comm.c | 277 int cnt = strlen (buf); in gx_putpkt() local 288 for (i = 0; i < cnt; i++) { in gx_putpkt()
|
/xen/xen/arch/x86/cpu/ |
A D | vpmu_intel.c | 129 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 D | vsmc.c | 77 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 D | xenstored_domain.c | 885 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 D | xenstored_transaction.c | 494 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 D | dmar.c | 317 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 D | save.h | 386 #define XEN_HVM_VIOAPIC(name, cnt) \ argument 391 union vioapic_redir_entry redirtbl[cnt]; \
|
/xen/xen/common/sched/ |
A D | core.c | 407 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 D | tpm2_marshal.h | 684 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 D | page_alloc.c | 1261 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 D | pciutils.patch | 227 else if (i >= cnt-1)
|
/xen/xen/crypto/ |
A D | vmac.c | 1059 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 D | pci.c | 1046 int cnt = 0; in find_upstream_bridge() local 1064 if ( cnt++ >= MAX_BUSES ) in find_upstream_bridge()
|
/xen/xen/arch/x86/hvm/ |
A D | hvm.c | 1359 #define HVM_CPU_MSR_SIZE(cnt) offsetof(struct hvm_msr, msr[cnt]) argument
|
/xen/tools/tests/x86_emulator/ |
A D | test_x86_emulator.c | 2107 : [addr] "=S" (regs.esi), [cnt] "=c" (regs.ecx), in main()
|