Home
last modified time | relevance | path

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

12345

/xen/tools/xenstore/
A Dxenstored_control.c38 if (num) in do_control_check()
50 if (num != 1) in do_control_log()
68 if (num) in do_control_memreport()
80 if (num != 1) in do_control_logfile()
98 if (num > 1) in do_control_memreport()
101 if (num == 0) { in do_control_memreport()
135 if (num != 1) in do_control_print()
165 if (num) in do_control_help()
197 int num; in do_control() local
205 if (num < 1) in do_control()
[all …]
A Dxs_lib.c114 bool xs_strings_to_perms(struct xs_permissions *perms, unsigned int num, in xs_strings_to_perms() argument
121 for (p = strings, i = 0; i < num; i++) { in xs_strings_to_perms()
179 unsigned int num; in xs_count_strings() local
182 for (p = strings, num = 0; p < strings + len; p++) in xs_count_strings()
184 num++; in xs_count_strings()
186 return num; in xs_count_strings()
/xen/tools/libxc/
A Dxc_foreign_memory.c24 const xen_pfn_t *arr, int num) in xc_map_foreign_pages() argument
26 if (num < 0) { in xc_map_foreign_pages()
39 int num; in xc_map_foreign_range() local
43 num = (size + XC_PAGE_SIZE - 1) >> XC_PAGE_SHIFT; in xc_map_foreign_range()
44 arr = calloc(num, sizeof(xen_pfn_t)); in xc_map_foreign_range()
48 for ( i = 0; i < num; i++ ) in xc_map_foreign_range()
51 ret = xc_map_foreign_pages(xch, dom, prot, arr, num); in xc_map_foreign_range()
64 int num; in xc_map_foreign_ranges() local
70 num = num_per_entry * nentries; in xc_map_foreign_ranges()
71 arr = calloc(num, sizeof(xen_pfn_t)); in xc_map_foreign_ranges()
[all …]
/xen/tools/libs/foreignmemory/
A Dlinux.c92 ioctlx.num = 1; in map_foreign_batch_single()
136 ioctlx.num = 1; in retry_paged()
143 while ( ++i < num ) in retry_paged()
147 ioctlx.num++; in retry_paged()
155 } while ( i < num ); in retry_paged()
180 ioctlx.num = num; in osdep_xenforeignmemory_map()
223 ioctlx.num = num; in osdep_xenforeignmemory_map()
232 for ( i = 0; i < num; ++i ) in osdep_xenforeignmemory_map()
264 if ( rc == -ENOENT && i == num ) in osdep_xenforeignmemory_map()
289 return munmap(addr, num << PAGE_SHIFT); in osdep_xenforeignmemory_unmap()
[all …]
A Dcompat.c25 void *addr, int prot, int flags, size_t num, in osdep_xenforeignmemory_map() argument
32 if ((int)num <= 0) { in osdep_xenforeignmemory_map()
37 pfn = malloc(num * sizeof(*pfn)); in osdep_xenforeignmemory_map()
43 memcpy(pfn, arr, num * sizeof(*arr)); in osdep_xenforeignmemory_map()
44 ret = osdep_map_foreign_batch(fmem, dom, addr, prot, flags, pfn, num); in osdep_xenforeignmemory_map()
47 for (i = 0; i < num; ++i) in osdep_xenforeignmemory_map()
57 memset(err, 0, num * sizeof(*err)); in osdep_xenforeignmemory_map()
A Dfreebsd.c59 int prot, int flags, size_t num, in osdep_xenforeignmemory_map() argument
66 addr = mmap(addr, num << PAGE_SHIFT, prot, flags | MAP_SHARED, fd, 0); in osdep_xenforeignmemory_map()
73 ioctlx.num = num; in osdep_xenforeignmemory_map()
84 (void)munmap(addr, num << PAGE_SHIFT); in osdep_xenforeignmemory_map()
93 void *addr, size_t num) in osdep_xenforeignmemory_unmap() argument
95 return munmap(addr, num << PAGE_SHIFT); in osdep_xenforeignmemory_unmap()
A Dnetbsd.c71 xen_pfn_t *arr, int num) in osdep_map_foreign_batch() argument
75 addr = mmap(addr, num*XC_PAGE_SIZE, prot, flags | MAP_ANON | MAP_SHARED, -1, 0); in osdep_map_foreign_batch()
81 ioctlx.num=num; in osdep_map_foreign_batch()
89 (void)munmap(addr, num*XC_PAGE_SIZE); in osdep_map_foreign_batch()
98 void *addr, size_t num) in osdep_xenforeignmemory_unmap() argument
100 return munmap(addr, num*XC_PAGE_SIZE); in osdep_xenforeignmemory_unmap()
A Dsolaris.c71 void *addr, int prot, int flags, xen_pfn_t *arr, int num) in osdep_map_foreign_batch() argument
75 addr = mmap(addr, num*XC_PAGE_SIZE, prot, flags | MAP_SHARED, fd, 0); in osdep_map_foreign_batch()
79 ioctlx.num=num; in osdep_map_foreign_batch()
87 (void)munmap(addr, num*XC_PAGE_SIZE); in osdep_map_foreign_batch()
95 void *addr, size_t num) in osdep_xenforeignmemory_unmap() argument
97 return munmap(addr, num*XC_PAGE_SIZE); in osdep_xenforeignmemory_unmap()
A Dcore.c85 int prot, int flags, size_t num, in xenforeignmemory_map2() argument
92 err = err_to_free = malloc(num * sizeof(int)); in xenforeignmemory_map2()
97 ret = osdep_xenforeignmemory_map(fmem, dom, addr, prot, flags, num, arr, err); in xenforeignmemory_map2()
103 for ( i = 0 ; i < num ; i++ ) in xenforeignmemory_map2()
108 (void)osdep_xenforeignmemory_unmap(fmem, ret, num); in xenforeignmemory_map2()
122 size_t num, in xenforeignmemory_map() argument
125 return xenforeignmemory_map2(fmem, dom, NULL, prot, 0, num, arr, err); in xenforeignmemory_map()
129 void *addr, size_t num) in xenforeignmemory_unmap() argument
131 return osdep_xenforeignmemory_unmap(fmem, addr, num); in xenforeignmemory_unmap()
A Dminios.c44 int prot, int flags, size_t num, in osdep_xenforeignmemory_map() argument
52 return map_frames_ex(arr, num, 1, 0, 1, dom, err, pt_prot); in osdep_xenforeignmemory_map()
56 void *addr, size_t num) in osdep_xenforeignmemory_unmap() argument
58 return munmap(addr, num << PAGE_SHIFT); in osdep_xenforeignmemory_unmap()
A Dprivate.h34 int prot, int flags, size_t num,
35 const xen_pfn_t arr[num], int err[num]);
37 void *addr, size_t num);
43 xen_pfn_t *arr, int num);
/xen/stubdom/vtpmmgr/
A Dlog.h63 #define GETBIT(num,idx) ( ((num) & BITMASK(idx)) >> idx ) argument
64 #define SETBIT(num,idx) (num) |= BITMASK(idx) argument
65 #define CLEARBIT(num,idx) (num) &= ( ~ BITMASK(idx) ) argument
/xen/tools/xenpaging/
A Dpagein.c23 int i, num; in page_in() local
31 num = 0; in page_in()
36 gfns[num] = pia->pagein_queue[i]; in page_in()
38 num++; in page_in()
44 page = xc_map_foreign_pages(pia->xch, pia->dom, PROT_READ, gfns, num); in page_in()
46 munmap(page, PAGE_SIZE * num); in page_in()
A Dxenpaging.c77 unsigned int num; in xenpaging_wait_for_event_or_timeout() local
739 int i, num = 0; in resume_pages() local
746 num++; in resume_pages()
752 if ( num ) in resume_pages()
826 num = rc < 0 ? -1 : num; in evict_pages()
827 return num; in evict_pages()
829 num++; in evict_pages()
842 num = rc < 0 ? -1 : num; in evict_pages()
846 num++; in evict_pages()
848 return num; in evict_pages()
[all …]
/xen/xen/include/asm-arm/
A Dcpufeature.h59 static inline bool cpus_have_cap(unsigned int num) in cpus_have_cap() argument
61 if ( num >= ARM_NCAPS ) in cpus_have_cap()
64 return test_bit(num, cpu_hwcaps); in cpus_have_cap()
73 #define cpus_have_const_cap(num) ({ \ argument
78 num) \
84 static inline void cpus_set_cap(unsigned int num) in cpus_set_cap() argument
86 if (num >= ARM_NCAPS) in cpus_set_cap()
88 num, ARM_NCAPS); in cpus_set_cap()
90 __set_bit(num, cpu_hwcaps); in cpus_set_cap()
/xen/xen/common/
A Dvsprintf.c164 if ((signed long long) num < 0) { in number()
166 num = - (signed long long) num; in number()
177 if (num == 0) in number()
187 if (num == 0) in number()
189 else while (num != 0) in number()
556 unsigned long long num; in vsnprintf() local
734 num = (signed long) num; in vsnprintf()
736 num = va_arg(args, size_t); in vsnprintf()
740 num = (signed short) num; in vsnprintf()
744 num = (signed int) num; in vsnprintf()
[all …]
/xen/tools/include/xen-sys/Linux/
A Dprivcmd.h55 int num; member
61 int num; /* number of pages to populate */ member
71 unsigned int num; /* number of pages to populate */ member
85 __u16 num; member
94 __u64 num; member
/xen/automation/scripts/
A Dbuild-test.sh42 while read num rev; do
43 echo "Testing $num $rev"
48 echo "Failed to checkout $num $rev with $ret"
59 echo "Failed at $num $rev with $ret"
/xen/xen/include/xen/
A Dxmalloc.h80 unsigned long size, unsigned long align, unsigned long num) in _xmalloc_array() argument
83 if ( size && num > UINT_MAX / size ) in _xmalloc_array()
85 return _xmalloc(size * num, align); in _xmalloc_array()
89 unsigned long size, unsigned long align, unsigned long num) in _xzalloc_array() argument
92 if ( size && num > UINT_MAX / size ) in _xzalloc_array()
94 return _xzalloc(size * num, align); in _xzalloc_array()
/xen/xen/include/public/arch-x86/
A Dxen-x86_64.h155 #define __DECL_REG_HI(num) union { \ argument
156 uint64_t r ## num; \
157 uint32_t r ## num ## d; \
158 uint16_t r ## num ## w; \
159 uint8_t r ## num ## b; \
176 #define __DECL_REG_HI(num) uint64_t r ## num argument
/xen/xen/include/asm-x86/
A Dalternative.h34 #define alt_repl_s(num) ".LXEN%=_repl_s"#num argument
35 #define alt_repl_e(num) ".LXEN%=_repl_e"#num argument
36 #define alt_repl_len(num) "(" alt_repl_e(num) " - " alt_repl_s(num) ")" argument
61 #define ALTINSTR_ENTRY(feature, num) \ argument
63 " .long " alt_repl_s(num)" - .\n" /* new instruction */ \
66 " .byte " alt_repl_len(num) "\n" /* replacement len */ \
70 #define DISCARD_ENTRY(num) /* repl <= total */ \ argument
71 " .byte 0xff + (" alt_repl_len(num) ") - (" alt_total_len ")\n"
73 #define ALTINSTR_REPLACEMENT(newinstr, num) /* replacement */ \ argument
74 alt_repl_s(num)":\n\t" newinstr "\n" alt_repl_e(num) ":\n\t"
/xen/xen/arch/x86/cpu/mcheck/
A Dx86_mca.h103 int num; member
109 if (!banks || !banks->bank_map || bit >= banks->num) in mcabanks_clear()
116 if (!banks || !banks->bank_map || bit >= banks->num) in mcabanks_set()
123 if (!banks || !banks->bank_map || bit >= banks->num) in mcabanks_test()
/xen/tools/xl/
A Dxl_pci.c28 int num, i; in pcilist() local
30 pcidevs = libxl_device_pci_list(ctx, domid, &num); in pcilist()
34 for (i = 0; i < num; i++) { in pcilist()
159 int num, i; in pciassignable_list() local
161 pcidevs = libxl_device_pci_assignable_list(ctx, &num); in pciassignable_list()
165 for (i = 0; i < num; i++) { in pciassignable_list()
/xen/xen/arch/arm/platforms/
A Domap5.c51 unsigned int num, den, frac1, frac2; in omap5_init_time() local
73 num = frac1 & ~NUMERATOR_DENUMERATOR_MASK; in omap5_init_time()
74 if ( num_den[sys_clksel][0] != num ) in omap5_init_time()
82 if ( num_den[sys_clksel][1] != num ) in omap5_init_time()
/xen/xen/common/coverage/
A Dgcc_4_7.c45 unsigned int num; member
130 memset(ci_ptr->values, 0, sizeof(gcov_type) * ci_ptr->num); in gcov_info_reset()
184 pos += gcov_store_uint32(buffer, pos, ci_ptr->num * 2); in gcov_info_to_gcda()
186 for ( cv_idx = 0; cv_idx < ci_ptr->num; cv_idx++ ) in gcov_info_to_gcda()

Completed in 39 milliseconds

12345