/xen/xen/arch/arm/include/asm/arm32/ |
A D | bitops.h | 24 #define find_first_zero_bit(p,sz) _find_first_zero_bit_le(p,sz) argument 25 #define find_next_zero_bit(p,sz,off) _find_next_zero_bit_le(p,sz,off) argument 26 #define find_first_bit(p,sz) _find_first_bit_le(p,sz) argument 27 #define find_next_bit(p,sz,off) _find_next_bit_le(p,sz,off) argument 33 #define find_first_zero_bit(p,sz) _find_first_zero_bit_be(p,sz) argument 34 #define find_next_zero_bit(p,sz,off) _find_next_zero_bit_be(p,sz,off) argument 35 #define find_first_bit(p,sz) _find_first_bit_be(p,sz) argument 36 #define find_next_bit(p,sz,off) _find_next_bit_be(p,sz,off) argument
|
A D | nospec.h | 8 unsigned long sz) in array_index_mask_nospec() argument 16 : "r" (idx), "Ir" (sz) in array_index_mask_nospec()
|
/xen/xen/arch/arm/include/asm/ |
A D | vreg.h | 97 #define VREG_REG_HELPERS(sz, offmask) \ argument 98 static inline register_t vreg_reg##sz##_extract(uint##sz##_t reg, \ 109 static inline void vreg_reg##sz##_update(uint##sz##_t *reg, \ 114 uint##sz##_t mask = VREG_REG_MASK(info->dabt.size); \ 118 *reg |= ((uint##sz##_t)val & mask) << shift; \ 121 static inline void vreg_reg##sz##_setbits(uint##sz##_t *reg, \ 126 uint##sz##_t mask = VREG_REG_MASK(info->dabt.size); \ 129 *reg |= ((uint##sz##_t)bits & mask) << shift; \ 132 static inline void vreg_reg##sz##_clearbits(uint##sz##_t *reg, \ 137 uint##sz##_t mask = VREG_REG_MASK(info->dabt.size); \ [all …]
|
/xen/tools/tests/x86_emulator/ |
A D | wrappers.c | 6 size_t __wrap_fwrite(const void *src, size_t sz, size_t n, FILE *f) in __wrap_fwrite() argument 9 sz = __real_fwrite(src, sz, n, f); in __wrap_fwrite() 12 return sz; in __wrap_fwrite() 15 int __wrap_memcmp(const void *p1, const void *p2, size_t sz) in __wrap_memcmp() argument 20 rc = __real_memcmp(p1, p2, sz); in __wrap_memcmp() 26 void *__wrap_memcpy(void *dst, const void *src, size_t sz) in __wrap_memcpy() argument 29 __real_memcpy(dst, src, sz); in __wrap_memcpy() 35 void *__wrap_memset(void *dst, int c, size_t sz) in __wrap_memset() argument 38 __real_memset(dst, c, sz); in __wrap_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() 219 int sz, path_sz; in xenhypfs_read_raw() local 228 for (sz = BUF_SIZE;; sz = sizeof(*entry) + entry->content_len) { in xenhypfs_read_raw() 433 int sz, path_sz; in xenhypfs_write() local 444 sz = BUF_SIZE; in xenhypfs_write() 479 sz = strlen(val) + 1; in xenhypfs_write() 483 sz = entry->content_len; in xenhypfs_write() 495 sz = entry->content_len; in xenhypfs_write() 500 mask = (sz == 8) ? 0 : ~0ULL << (8 * sz); in xenhypfs_write() [all …]
|
/xen/tools/python/xen/migration/ |
A D | libxc.py | 373 sz = calcsize(X86_TSC_INFO_FORMAT) 375 if len(content) != sz: 398 sz = calcsize(HVM_PARAMS_FORMAT) 400 if len(content) < sz: 413 if len(content) != sz: 457 sz = calcsize(X86_CPUID_POLICY_FORMAT) 460 if contentsz < sz or (contentsz % sz) != 0: 462 (contentsz, sz)) 471 sz = calcsize(X86_MSR_POLICY_FORMAT) 474 if contentsz < sz or (contentsz % sz) != 0: [all …]
|
A D | tests.py | 17 for fmt, sz in ( (libxc.IHDR_FORMAT, 24), 31 self.assertEqual(calcsize(fmt), sz) 38 for fmt, sz in ( (libxl.HDR_FORMAT, 16), 43 self.assertEqual(calcsize(fmt), sz)
|
A D | verify.py | 34 sz = calcsize(fmt) 35 return unpack(fmt, self.rdexact(sz))
|
/xen/tools/xl/ |
A D | xl_utils.c | 67 void *xmalloc(size_t sz) in xmalloc() argument 70 r = malloc(sz); in xmalloc() 73 (unsigned long)sz); in xmalloc() 79 void *xcalloc(size_t n, size_t sz) in xcalloc() argument 81 void *r = calloc(n, sz); in xcalloc() 83 fprintf(stderr,"xl: Unable to calloc %zu bytes.\n", sz*n); in xcalloc() 89 void *xrealloc(void *ptr, size_t sz) in xrealloc() argument 92 if (!sz) { in xrealloc() 99 r = realloc(ptr, sz); in xrealloc() 102 (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 | 219 void *__init acpi_os_alloc_memory(size_t sz) in acpi_os_alloc_memory() argument 225 mfn_t mfn = alloc_boot_pages(PFN_UP(sz), 1); in acpi_os_alloc_memory() 227 return vmap_contig(mfn, PFN_UP(sz)); in acpi_os_alloc_memory() 230 ptr = xmalloc_bytes(sz); in acpi_os_alloc_memory() 235 void *__init acpi_os_zalloc_memory(size_t sz) in acpi_os_zalloc_memory() argument 240 ptr = xzalloc_bytes(sz); in acpi_os_zalloc_memory() 244 ptr = acpi_os_alloc_memory(sz); in acpi_os_zalloc_memory() 245 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/tools/libs/ctrl/ |
A D | xc_private.c | 496 size_t sz; in xc_version() local 502 sz = 0; in xc_version() 505 sz = sizeof(xen_extraversion_t); in xc_version() 508 sz = sizeof(xen_compile_info_t); in xc_version() 514 sz = sizeof(xen_changeset_info_t); in xc_version() 520 sz = sizeof(xen_feature_info_t); in xc_version() 523 sz = 0; in xc_version() 526 sz = sizeof(xen_domain_handle_t); in xc_version() 529 sz = sizeof(xen_commandline_t); in xc_version() 543 HYPERCALL_BOUNCE_SET_SIZE(arg, sz); in xc_version() [all …]
|
/xen/xen/common/ |
A D | version.c | 171 unsigned int sz; in xen_build_init() local 182 sz = (uintptr_t)__note_gnu_build_id_end - (uintptr_t)n; in xen_build_init() 184 rc = xen_build_id_check(n, sz, &build_id_p, &build_id_len); in xen_build_init() 198 if ( sz > sizeof(*dir) + sizeof(struct cv_info_pdb70) && in xen_build_init()
|
A D | timer.c | 71 while ( (nxt = (pos << 1)) <= sz ) in down_heap() 106 unsigned int sz = heap_metadata(heap)->size; in remove_from_heap() local 109 if ( unlikely(pos == sz) ) in remove_from_heap() 111 heap_metadata(heap)->size = sz - 1; in remove_from_heap() 115 heap[pos] = heap[sz]; in remove_from_heap() 118 heap_metadata(heap)->size = --sz; in remove_from_heap() 133 unsigned int sz = heap_metadata(heap)->size; in add_to_heap() local 139 heap_metadata(heap)->size = ++sz; in add_to_heap() 140 heap[sz] = t; in add_to_heap() 141 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/xen/arch/x86/ |
A D | flushtlb.c | 238 unsigned long sz = 0; in flush_area_local() local 241 sz = 1UL << (order + PAGE_SHIFT); in flush_area_local() 245 c->x86_clflush_size && c->x86_cache_size && sz && in flush_area_local() 246 ((sz >> 10) < c->x86_cache_size) ) in flush_area_local() 248 cache_flush(va, sz); in flush_area_local()
|
/xen/xen/arch/arm/include/asm/arm64/ |
A D | nospec.h | 12 unsigned long sz) in array_index_mask_nospec() argument 19 : "r" (idx), "Ir" (sz) in array_index_mask_nospec()
|
/xen/tools/libs/guest/ |
A D | xg_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/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/tools/xs-clients/ |
A D | xenstore_control.c | 107 size_t off, sz; in send_kernel_blob() local 158 sz = BLOB_CHUNK_SZ; in send_kernel_blob() 161 sz = dom->kernel_size - off; in send_kernel_blob() 162 sprintf(buf + 3, "%zu", sz); in send_kernel_blob() 164 memcpy(buf + len, dom->kernel_blob + off, sz); in send_kernel_blob() 165 buf[len + sz] = 0; in send_kernel_blob() 166 len += sz + 1; in send_kernel_blob()
|
/xen/xen/arch/arm/ |
A D | vcpreg.c | 42 #define WRITE_SYSREG_SZ(sz, val, sysreg) \ argument 43 WRITE_SYSREG((uint##sz##_t)(val), sysreg) 49 #define WRITE_SYSREG_SZ(sz, val, sysreg...) WRITE_SYSREG##sz(val, sysreg) argument 61 #define TVM_REG(sz, func, reg...) \ argument 62 static bool func(struct cpu_user_regs *regs, type##sz##_t *r, bool read) \ 68 WRITE_SYSREG_SZ(sz, *(r), reg); \ 158 #define GENERATE_CASE(reg, sz) \ in TVM_REG32() argument 159 case HSR_CPREG##sz(reg): \ in TVM_REG32() 163 res = vreg_emulate_cp##sz(regs, hsr, vreg_emulate_##reg); \ in TVM_REG32()
|
/xen/xen/include/acpi/platform/ |
A D | aclinux.h | 78 void *acpi_os_alloc_memory(size_t sz); 79 void *acpi_os_zalloc_memory(size_t sz);
|
/xen/tools/misc/ |
A D | xencov_split | 43 sz, = struct.unpack_from(fmt, content) 46 fmt = bo_prefix + str(sz) + 's' 48 content = content[sz:]
|
/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()
|