/xen-4.10.0-shim-comet/xen/include/asm-arm/arm32/ |
A D | bitops.h | 40 #define find_first_zero_bit(p,sz) _find_first_zero_bit_le(p,sz) argument 41 #define find_next_zero_bit(p,sz,off) _find_next_zero_bit_le(p,sz,off) argument 42 #define find_first_bit(p,sz) _find_first_bit_le(p,sz) argument 43 #define find_next_bit(p,sz,off) _find_next_bit_le(p,sz,off) argument 49 #define find_first_zero_bit(p,sz) _find_first_zero_bit_be(p,sz) argument 50 #define find_next_zero_bit(p,sz,off) _find_next_zero_bit_be(p,sz,off) argument 51 #define find_first_bit(p,sz) _find_first_bit_be(p,sz) argument 52 #define find_next_bit(p,sz,off) _find_next_bit_be(p,sz,off) argument
|
/xen-4.10.0-shim-comet/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-4.10.0-shim-comet/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 | 137 void *xmalloc(size_t sz); 138 void *xcalloc(size_t n, size_t sz); 139 void *xrealloc(void *ptr, size_t sz);
|
/xen-4.10.0-shim-comet/tools/python/xen/migration/ |
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 | libxc.py | 361 sz = calcsize(TSC_INFO_FORMAT) 363 if len(content) != sz: 364 raise RecordError("Length should be %u bytes" % (sz, )) 386 sz = calcsize(HVM_PARAMS_FORMAT) 388 if len(content) < sz: 389 raise RecordError("Length should be at least %u bytes" % (sz, )) 391 count, rsvd = unpack(HVM_PARAMS_FORMAT, content[:sz]) 399 sz += count * calcsize(HVM_PARAMS_ENTRY_FORMAT) 401 if len(content) != sz: 402 raise RecordError("Length should be %u bytes" % (sz, ))
|
A D | verify.py | 35 sz = calcsize(fmt) 36 return unpack(fmt, self.rdexact(sz))
|
/xen-4.10.0-shim-comet/xen/arch/x86/ |
A D | flushtlb.c | 137 unsigned long i, sz = 0; in flush_area_local() local 140 sz = 1UL << (order + PAGE_SHIFT); in flush_area_local() 144 c->x86_clflush_size && c->x86_cache_size && sz && in flush_area_local() 145 ((sz >> 10) < c->x86_cache_size) ) in flush_area_local() 148 for ( i = 0; i < sz; i += c->x86_clflush_size ) in flush_area_local()
|
A D | numa.c | 209 u64 sz = ((end_pfn - start_pfn)<<PAGE_SHIFT) / numa_fake; in numa_emulation() local 212 if ( hweight64(sz) > 1 ) in numa_emulation() 215 while ( (x << 1) < sz ) in numa_emulation() 217 if ( x < sz/2 ) in numa_emulation() 219 sz = x; in numa_emulation() 225 nodes[i].start = (start_pfn<<PAGE_SHIFT) + i*sz; in numa_emulation() 227 sz = (end_pfn<<PAGE_SHIFT) - nodes[i].start; in numa_emulation() 228 nodes[i].end = nodes[i].start + sz; in numa_emulation()
|
/xen-4.10.0-shim-comet/xen/drivers/acpi/ |
A D | osl.c | 212 void *__init acpi_os_alloc_memory(size_t sz) in acpi_os_alloc_memory() argument 217 return mfn_to_virt(mfn_x(alloc_boot_pages(PFN_UP(sz), 1))); in acpi_os_alloc_memory() 219 ptr = xmalloc_bytes(sz); in acpi_os_alloc_memory() 224 void *__init acpi_os_zalloc_memory(size_t sz) in acpi_os_zalloc_memory() argument 229 ptr = xzalloc_bytes(sz); in acpi_os_zalloc_memory() 233 ptr = acpi_os_alloc_memory(sz); in acpi_os_zalloc_memory() 234 return ptr ? memset(ptr, 0, sz) : NULL; in acpi_os_zalloc_memory()
|
/xen-4.10.0-shim-comet/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-4.10.0-shim-comet/xen/common/ |
A D | virtual_region.c | 104 size_t sz; in setup_virtual_regions() local 122 sz = bug_frames[i] - s; in setup_virtual_regions() 124 core.frame[i - 1].n_bugs = sz; in setup_virtual_regions() 127 core_init.frame[i - 1].n_bugs = sz; in setup_virtual_regions()
|
A D | timer.c | 59 int sz = GET_HEAP_SIZE(heap), nxt; in down_heap() local 97 int sz = GET_HEAP_SIZE(heap); in remove_from_heap() local 100 if ( unlikely(pos == sz) ) in remove_from_heap() 102 SET_HEAP_SIZE(heap, sz-1); in remove_from_heap() 106 heap[pos] = heap[sz]; in remove_from_heap() 109 SET_HEAP_SIZE(heap, --sz); in remove_from_heap() 124 int sz = GET_HEAP_SIZE(heap); in add_to_heap() local 130 SET_HEAP_SIZE(heap, ++sz); in add_to_heap() 131 heap[sz] = t; in add_to_heap() 132 t->heap_offset = sz; in add_to_heap() [all …]
|
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 | unxz.c | 137 #define memeq(p1, p2, sz) (memcmp(p1, p2, sz) == 0) argument 141 #define memzero(p, sz) memset(p, 0, sz) argument
|
A D | kernel.c | 460 unsigned int sz; in DO() local 477 rc = xen_build_id(&p, &sz); in DO() 482 return sz; in DO() 484 if ( sz > build_id.len ) in DO() 487 if ( copy_to_guest_offset(arg, offsetof(xen_build_id_t, buf), p, sz) ) in DO() 490 return sz; in DO()
|
/xen-4.10.0-shim-comet/tools/libxc/ |
A D | xc_private.c | 470 size_t sz; in xc_version() local 476 sz = 0; in xc_version() 479 sz = sizeof(xen_extraversion_t); in xc_version() 482 sz = sizeof(xen_compile_info_t); in xc_version() 488 sz = sizeof(xen_changeset_info_t); in xc_version() 494 sz = sizeof(xen_feature_info_t); in xc_version() 497 sz = 0; in xc_version() 500 sz = sizeof(xen_domain_handle_t); in xc_version() 503 sz = sizeof(xen_commandline_t); in xc_version() 517 HYPERCALL_BOUNCE_SET_SIZE(arg, sz); in xc_version() [all …]
|
A D | xc_sr_common.c | 56 void *buf, size_t sz) in write_split_record() argument 61 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-4.10.0-shim-comet/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-4.10.0-shim-comet/tools/ocaml/libs/xb/ |
A D | xb.ml | 116 let sz = write con s len in 117 let left = String.sub s sz (len - sz) in 133 let sz = if to_read > 0 then read con s to_read else 0 in 139 if sz > 0 then 140 Partial.append partial_pkt s sz; 149 if sz > 0 then 150 String.blit s 0 buf (Partial.header_size () - i) sz; 151 con.partial_in <- if sz = i then 152 HaveHdr (Partial.of_string buf) else NoHdr (i - sz, buf)
|
/xen-4.10.0-shim-comet/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-4.10.0-shim-comet/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-4.10.0-shim-comet/tools/misc/ |
A D | xencov_split | 40 sz, = struct.unpack_from(fmt, content) 43 fmt = bo_prefix + str(sz) + 's' 45 content = content[sz:]
|
/xen-4.10.0-shim-comet/tools/blktap2/drivers/ |
A D | block-log.c | 411 uint32_t sz; in ctl_get_shmpath() local 418 sz = 0xdeadbeef; in ctl_get_shmpath() 419 memcpy(s->shm, &sz, sizeof(sz)); in ctl_get_shmpath() 421 sz = SHMSIZE; in ctl_get_shmpath() 422 memcpy(msg, &sz, sizeof(sz)); in ctl_get_shmpath() 423 snprintf(msg + sizeof(sz), sizeof(msg) - sizeof(sz), "%s", s->shmpath); in ctl_get_shmpath()
|
/xen-4.10.0-shim-comet/tools/python/scripts/ |
A D | convert-legacy-stream | 191 sz = calcsize(fmt) 192 return unpack(fmt, rdexact(sz)) 459 sz, = unpack_exact("I") 460 data = rdexact(sz) 461 info(" Compressed Data: sz 0x%x" % (sz, )) 489 sz, = unpack_exact("I") 491 if sz: 492 data = rdexact(sz) 493 info(" Toolstack Data: sz 0x%x" % (sz, )) 539 sz, = unpack("I", rawsz) [all …]
|