/xen/xen/include/asm-arm/arm32/ |
A D | bitops.h | 26 #define find_first_zero_bit(p,sz) _find_first_zero_bit_le(p,sz) argument 27 #define find_next_zero_bit(p,sz,off) _find_next_zero_bit_le(p,sz,off) argument 28 #define find_first_bit(p,sz) _find_first_bit_le(p,sz) argument 29 #define find_next_bit(p,sz,off) _find_next_bit_le(p,sz,off) argument 35 #define find_first_zero_bit(p,sz) _find_first_zero_bit_be(p,sz) argument 36 #define find_next_zero_bit(p,sz,off) _find_next_zero_bit_be(p,sz,off) argument 37 #define find_first_bit(p,sz) _find_first_bit_be(p,sz) argument 38 #define find_next_bit(p,sz,off) _find_next_bit_be(p,sz,off) argument
|
/xen/tools/tests/x86_emulator/ |
A D | wrappers.c | 6 size_t emul_fwrite(const void *src, size_t sz, size_t n, FILE *f) in emul_fwrite() argument 9 sz = fwrite(src, sz, n, f); in emul_fwrite() 12 return sz; in emul_fwrite() 15 int emul_memcmp(const void *p1, const void *p2, size_t sz) in emul_memcmp() argument 20 rc = memcmp(p1, p2, sz); in emul_memcmp() 26 void *emul_memcpy(void *dst, const void *src, size_t sz) in emul_memcpy() argument 29 memcpy(dst, src, sz); in emul_memcpy() 35 void *emul_memset(void *dst, int c, size_t sz) in emul_memset() argument 38 memset(dst, c, sz); in emul_memset()
|
/xen/tools/libs/hypfs/ |
A D | core.c | 138 z.avail_in = *sz; in xenhypfs_inflate() 141 for (*sz = 0; ret == Z_OK; *sz += out_sz) { in xenhypfs_inflate() 218 int sz, path_sz; in xenhypfs_read_raw() local 227 for (sz = BUF_SIZE;; sz = sizeof(*entry) + entry->content_len) { in xenhypfs_read_raw() 432 int sz, path_sz; in xenhypfs_write() local 443 sz = BUF_SIZE; in xenhypfs_write() 478 sz = strlen(val) + 1; in xenhypfs_write() 482 sz = entry->content_len; in xenhypfs_write() 494 sz = entry->content_len; in xenhypfs_write() 499 mask = (sz == 8) ? 0 : ~0ULL << (8 * sz); in xenhypfs_write() [all …]
|
/xen/tools/python/xen/migration/ |
A D | libxc.py | 374 sz = calcsize(X86_TSC_INFO_FORMAT) 376 if len(content) != sz: 399 sz = calcsize(HVM_PARAMS_FORMAT) 401 if len(content) < sz: 414 if len(content) != sz: 458 sz = calcsize(X86_CPUID_POLICY_FORMAT) 461 if contentsz < sz or (contentsz % sz) != 0: 463 (contentsz, sz)) 472 sz = calcsize(X86_MSR_POLICY_FORMAT) 475 if contentsz < sz or (contentsz % sz) != 0: [all …]
|
A D | tests.py | 18 for fmt, sz in ( (libxc.IHDR_FORMAT, 24), 30 self.assertEqual(calcsize(fmt), sz) 37 for fmt, sz in ( (libxl.HDR_FORMAT, 16), 42 self.assertEqual(calcsize(fmt), sz)
|
A D | verify.py | 35 sz = calcsize(fmt) 36 return unpack(fmt, self.rdexact(sz))
|
/xen/xen/include/asm-arm/ |
A D | vreg.h | 164 #define VREG_REG_HELPERS(sz, offmask) \ argument 165 static inline register_t vreg_reg##sz##_extract(uint##sz##_t reg, \ 172 static inline void vreg_reg##sz##_update(uint##sz##_t *reg, \ 184 static inline void vreg_reg##sz##_setbits(uint##sz##_t *reg, \ 196 static inline void vreg_reg##sz##_clearbits(uint##sz##_t *reg, \
|
/xen/tools/xl/ |
A D | xl_utils.c | 63 void *xmalloc(size_t sz) in xmalloc() argument 66 r = malloc(sz); in xmalloc() 69 (unsigned long)sz); in xmalloc() 75 void *xcalloc(size_t n, size_t sz) in xcalloc() argument 77 void *r = calloc(n, sz); in xcalloc() 79 fprintf(stderr,"xl: Unable to calloc %zu bytes.\n", sz*n); in xcalloc() 85 void *xrealloc(void *ptr, size_t sz) in xrealloc() argument 88 if (!sz) { in xrealloc() 95 r = realloc(ptr, sz); in xrealloc() 98 (unsigned long)sz); in xrealloc()
|
A D | xl_utils.h | 135 void *xmalloc(size_t sz); 136 void *xcalloc(size_t n, size_t sz); 137 void *xrealloc(void *ptr, size_t sz);
|
/xen/xen/drivers/acpi/ |
A D | osl.c | 217 void *__init acpi_os_alloc_memory(size_t sz) in acpi_os_alloc_memory() argument 222 return mfn_to_virt(mfn_x(alloc_boot_pages(PFN_UP(sz), 1))); in acpi_os_alloc_memory() 224 ptr = xmalloc_bytes(sz); in acpi_os_alloc_memory() 229 void *__init acpi_os_zalloc_memory(size_t sz) in acpi_os_zalloc_memory() argument 234 ptr = xzalloc_bytes(sz); in acpi_os_zalloc_memory() 238 ptr = acpi_os_alloc_memory(sz); in acpi_os_zalloc_memory() 239 return ptr ? memset(ptr, 0, sz) : NULL; in acpi_os_zalloc_memory()
|
/xen/tools/firmware/hvmloader/ |
A D | mp_tables.c | 277 int sz; in create_mp_tables() local 279 sz = sizeof(struct mp_floating_pointer_struct); in create_mp_tables() 280 sz += sizeof(struct mp_config_table); in create_mp_tables() 281 sz += sizeof(struct mp_proc_entry) * vcpu_nr; in create_mp_tables() 282 sz += sizeof(struct mp_bus_entry); in create_mp_tables() 283 sz += sizeof(struct mp_ioapic_entry); in create_mp_tables() 284 sz += sizeof(struct mp_io_intr_entry) * 16; in create_mp_tables() 286 _mpfps = mem_alloc(sz, 0); in create_mp_tables()
|
/xen/xen/arch/x86/ |
A D | flushtlb.c | 237 unsigned long i, sz = 0; in flush_area_local() local 240 sz = 1UL << (order + PAGE_SHIFT); in flush_area_local() 244 c->x86_clflush_size && c->x86_cache_size && sz && in flush_area_local() 245 ((sz >> 10) < c->x86_cache_size) ) in flush_area_local() 248 for ( i = 0; i < sz; i += c->x86_clflush_size ) in flush_area_local()
|
A D | numa.c | 208 u64 sz = ((end_pfn - start_pfn)<<PAGE_SHIFT) / numa_fake; in numa_emulation() local 211 if ( hweight64(sz) > 1 ) in numa_emulation() 214 while ( (x << 1) < sz ) in numa_emulation() 216 if ( x < sz/2 ) in numa_emulation() 218 sz = x; in numa_emulation() 224 nodes[i].start = (start_pfn<<PAGE_SHIFT) + i*sz; in numa_emulation() 226 sz = (end_pfn<<PAGE_SHIFT) - nodes[i].start; in numa_emulation() 227 nodes[i].end = nodes[i].start + sz; in numa_emulation()
|
A D | dom0_build.c | 34 static bool __init memsize_gt_zero(const struct memsize *sz) in memsize_gt_zero() argument 36 return !sz->minus && sz->nr_pages; in memsize_gt_zero() 39 static unsigned long __init get_memsize(const struct memsize *sz, in get_memsize() argument 44 pages = sz->nr_pages + sz->percent * avail / 100; in get_memsize() 45 return sz->minus ? avail - pages : pages; in get_memsize() 73 static int __init parse_amt(const char *s, const char **ps, struct memsize *sz) in parse_amt() argument 112 *sz = tmp; in parse_amt()
|
/xen/tools/libxc/ |
A D | xc_private.c | 458 size_t sz; in xc_version() local 464 sz = 0; in xc_version() 467 sz = sizeof(xen_extraversion_t); in xc_version() 470 sz = sizeof(xen_compile_info_t); in xc_version() 476 sz = sizeof(xen_changeset_info_t); in xc_version() 482 sz = sizeof(xen_feature_info_t); in xc_version() 485 sz = 0; in xc_version() 488 sz = sizeof(xen_domain_handle_t); in xc_version() 491 sz = sizeof(xen_commandline_t); in xc_version() 505 HYPERCALL_BOUNCE_SET_SIZE(arg, sz); in xc_version() [all …]
|
A D | xc_sr_common.c | 57 void *buf, size_t sz) in write_split_record() argument 62 typeof(rec->length) combined_length = rec->length + sz; in write_split_record() 68 { buf, sz }, in write_split_record() 81 if ( sz ) in write_split_record()
|
/xen/xen/arch/x86/boot/ |
A D | build32.mk | 20 while read idx name sz rest; do \ 23 test $$sz != 0c || continue; \ 24 echo "Error: non-empty $$name: 0x$$sz" >&2; \
|
/xen/xen/common/ |
A D | version.c | 146 unsigned int sz; in xen_build_init() local 157 sz = (void *)__note_gnu_build_id_end - (void *)n; in xen_build_init() 159 rc = xen_build_id_check(n, sz, &build_id_p, &build_id_len); in xen_build_init() 173 if ( sz > sizeof(*dir) + sizeof(struct cv_info_pdb70) && in xen_build_init()
|
A D | virtual_region.c | 119 size_t sz; in setup_virtual_regions() local 137 sz = bug_frames[i] - s; in setup_virtual_regions() 139 core.frame[i - 1].n_bugs = sz; in setup_virtual_regions() 142 core_init.frame[i - 1].n_bugs = sz; in setup_virtual_regions()
|
A D | timer.c | 72 while ( (nxt = (pos << 1)) <= sz ) in down_heap() 107 unsigned int sz = heap_metadata(heap)->size; in remove_from_heap() local 110 if ( unlikely(pos == sz) ) in remove_from_heap() 112 heap_metadata(heap)->size = sz - 1; in remove_from_heap() 116 heap[pos] = heap[sz]; in remove_from_heap() 119 heap_metadata(heap)->size = --sz; in remove_from_heap() 134 unsigned int sz = heap_metadata(heap)->size; in add_to_heap() local 140 heap_metadata(heap)->size = ++sz; in add_to_heap() 141 heap[sz] = t; in add_to_heap() 142 t->heap_offset = sz; in add_to_heap() [all …]
|
A D | unxz.c | 137 #define memeq(p1, p2, sz) (memcmp(p1, p2, sz) == 0) argument 141 #define memzero(p, sz) memset(p, 0, sz) argument
|
/xen/tools/ocaml/libs/xb/ |
A D | xb.ml | 118 let sz = write con s len in 119 let left = String.sub s sz (len - sz) in 135 let sz = if to_read > 0 then read con b to_read else 0 in 141 if sz > 0 then 142 Partial.append partial_pkt (Bytes.to_string b) sz; 151 if sz > 0 then 152 Bytes.blit b 0 buf (Partial.header_size () - i) sz; 153 con.partial_in <- if sz = i then 154 HaveHdr (Partial.of_string (Bytes.to_string buf)) else NoHdr (i - sz, buf)
|
/xen/tools/debugger/gdbsx/xg/ |
A D | xg_main.c | 168 int sz) /* size of *domctlarg */ in _domctl_hcall() argument 173 if (domctlarg && sz && mlock(domctlarg, sz)) { in _domctl_hcall() 175 domctlarg, sz, errno); in _domctl_hcall() 183 if (domctlarg && sz) in _domctl_hcall() 184 munlock(domctlarg, sz); in _domctl_hcall() 369 int sz = sizeof(anyc); in _change_TF() local 384 memset(&anyc, 0, sz); in _change_TF() 388 if (_domctl_hcall(XEN_DOMCTL_getvcpucontext, &anyc, sz)) { in _change_TF() 678 int sz = sizeof(union vcpu_guest_context_any); in _get_vcpu_ctxt() local 680 memset(anycp, 0, sz); in _get_vcpu_ctxt() [all …]
|
/xen/xen/common/libelf/ |
A D | libelf-loader.c | 192 uint64_t sz; in elf_parse_bsdsyms() local 204 sz = sizeof(uint32_t); in elf_parse_bsdsyms() 207 sz += offsetof(struct elf_sym_header, elf_header.section) + in elf_parse_bsdsyms() 210 sz = elf_round_up(elf, sz); in elf_parse_bsdsyms() 218 sz = elf_round_up(elf, sz + elf_uval(elf, elf->sym_tab, sh_size)); in elf_parse_bsdsyms() 230 sz = elf_round_up(elf, sz + elf_uval(elf, shdr, sh_size)); in elf_parse_bsdsyms() 233 elf->bsd_symtab_pend = pstart + sz; in elf_parse_bsdsyms()
|
/xen/tools/misc/ |
A D | xencov_split | 40 sz, = struct.unpack_from(fmt, content) 43 fmt = bo_prefix + str(sz) + 's' 45 content = content[sz:]
|