/xen/xen/arch/arm/arm64/lib/ |
A D | find_next_bit.c | 27 return size; in find_next_bit() 28 size -= result; in find_next_bit() 46 if (!size) in find_next_bit() 73 return size; in find_next_zero_bit() 74 size -= result; in find_next_zero_bit() 92 if (!size) in find_next_zero_bit() 122 if (!size) in find_first_bit() 150 if (!size) in find_first_zero_bit() 197 return size; in find_next_zero_bit_le() 218 if (!size) in find_next_zero_bit_le() [all …]
|
/xen/tools/libvchan/ |
A D | node.c | 52 return size; in libxenvchan_write_all() 67 return size; in write_all() 81 int size; in reader() local 84 size = libxenvchan_read(ctrl, buf, size); in reader() 86 if (size < 0) { in reader() 91 size = write_all(1, buf, size); in reader() 92 if (size < 0) { in reader() 105 int size; in writer() local 108 size = read(0, buf, size); in writer() 114 if (size == 0) in writer() [all …]
|
A D | io.c | 216 avail_contig = size; in do_send() 228 return size; in do_send() 241 if (size <= avail) in libxenvchan_send() 265 if (pos == size) in libxenvchan_write() 274 if (size > avail) in libxenvchan_write() 275 size = avail; in libxenvchan_write() 276 if (size == 0) in libxenvchan_write() 292 avail_contig = size; in do_recv() 304 return size; in do_recv() 315 if (size <= avail) in libxenvchan_recv() [all …]
|
/xen/xen/common/ |
A D | sort.c | 24 } while ( --size > 0 ); in generic_swap() 49 int i = (num/2 - 1) * size, n = num * size, c, r; in sort() 55 for ( ; i >= 0; i -= size ) in sort() 59 c = r * 2 + size; in sort() 60 if ( (c < n - size) && (cmp(base + c, base + c + size) < 0) ) in sort() 61 c += size; in sort() 69 for ( i = n - size; i >= 0; i -= size ) in sort() 71 swap(base, base + i, size); in sort() 74 c = r * 2 + size; in sort() 75 if ( (c < i - size) && (cmp(base + c, base + c + size) < 0) ) in sort() [all …]
|
A D | xmalloc_tlsf.c | 84 u32 size; member 389 size = tmp_size; in xmem_pool_alloc() 419 tmp_size = (b->size & BLOCK_SIZE_MASK) - size; in xmem_pool_alloc() 433 b->size = size | (b->size & PREV_STATE); in xmem_pool_alloc() 465 b->size |= FREE_BLOCK; in xmem_pool_free() 473 b->size += (tmp_b->size & BLOCK_SIZE_MASK) + BHDR_OVERHEAD; in xmem_pool_free() 480 tmp_b->size += (b->size & BLOCK_SIZE_MASK) + BHDR_OVERHEAD; in xmem_pool_free() 599 if ( !size ) in _xmalloc() 614 if ( size < PAGE_SIZE ) in _xmalloc() 638 if ( !size ) in _xrealloc() [all …]
|
/xen/xen/drivers/vpci/ |
A D | vpci.c | 27 unsigned int size; member 134 if ( (size != 1 && size != 2 && size != 4) || in vpci_add_register() 145 r->size = size; in vpci_add_register() 189 if ( !cmp && rm->offset == offset && rm->size == size ) in vpci_remove_register() 210 switch ( size ) in vpci_read_hw() 313 if ( !size ) in vpci_read() 331 .size = size - data_offset in vpci_read() 393 ASSERT(size <= r->size); in vpci_write_helper() 395 if ( size != r->size ) in vpci_write_helper() 416 if ( !size ) in vpci_write() [all …]
|
/xen/xen/include/asm-x86/x86_64/ |
A D | uaccess.h | 40 #define access_ok(addr, size) \ argument 43 #define array_access_ok(addr, count, size) \ argument 45 access_ok(addr, (count) * (size))) 50 #define __compat_access_ok(d, addr, size) \ argument 51 __compat_addr_ok(d, (unsigned long)(addr) + ((size) ? (size) - 1 : 0)) 53 #define compat_access_ok(addr, size) \ argument 56 #define compat_array_access_ok(addr,count,size) \ argument 57 (likely((count) < (~0U / (size))) && \ 58 compat_access_ok(addr, 0 + (count) * (size))) 63 switch (size) { \ [all …]
|
/xen/tools/firmware/hvmloader/ |
A D | cacheattr.c | 103 size = PAGE_SIZE; in cacheattr_init() 104 while ( !(base & size) ) in cacheattr_init() 105 size <<= 1; in cacheattr_init() 106 while ( ((base + size) < base) || ((base + size - 1) >> 32) ) in cacheattr_init() 107 size >>= 1; in cacheattr_init() 112 base += size; in cacheattr_init() 118 size = PAGE_SIZE; in cacheattr_init() 120 size <<= 1; in cacheattr_init() 121 while ( (base + size < base) || (base + size > pci_hi_mem_end) ) in cacheattr_init() 122 size >>= 1; in cacheattr_init() [all …]
|
/xen/stubdom/vtpm/ |
A D | vtpm_cmd.c | 103 UINT32 size; in VTPM_GetRandom() local 108 bptr = cmdbuf = malloc(size); in VTPM_GetRandom() 124 *numbytes = size; in VTPM_GetRandom() 146 UINT32 size; in VTPM_LoadHashKey() local 151 bptr = cmdbuf = malloc(size); in VTPM_LoadHashKey() 190 UINT32 size; in VTPM_SaveHashKey() local 195 bptr = cmdbuf = malloc(size); in VTPM_SaveHashKey() 231 UINT32 size; in VTPM_GetParentQuote() local 236 bptr = cmdbuf = malloc(size); in VTPM_GetParentQuote() 275 UINT32 size; in VTPM_PCRRead() local [all …]
|
/xen/xen/arch/x86/ |
A D | bitops.c | 6 const unsigned long *addr, unsigned int size) in __find_first_bit() argument 21 : "1" (BITS_TO_LONGS(size)), "2" (addr), "b" ((int)(long)addr) in __find_first_bit() 33 ASSERT(offset <= size); in __find_next_bit() 45 if ( offset >= size ) in __find_next_bit() 46 return size; in __find_next_bit() 49 set = __find_first_bit(p, size - offset); in __find_next_bit() 54 const unsigned long *addr, unsigned int size) in __find_first_zero_bit() argument 83 ASSERT(offset <= size); in __find_next_zero_bit() 95 if ( offset >= size ) in __find_next_zero_bit() 96 return size; in __find_next_zero_bit() [all …]
|
A D | e820.c | 64 start = ei->addr + ei->size; in e820_all_mapped() 86 e820.map[x].size = size; in add_memory_region() 202 if (biosmap[i].size != 0) { in sanitize_e820_map() 313 unsigned long long size = biosmap->size; in copy_e820_map() local 508 uint64_t top_of_ram, size; in machine_specific_memory_setup() local 519 for ( i = size = 0; (i < e820.nr_map) && (size <= opt_availmem); i++ ) in machine_specific_memory_setup() 521 size += e820.map[i].size; in machine_specific_memory_setup() 522 if ( size > opt_availmem ) in machine_specific_memory_setup() 524 e820.map[i-1].addr + e820.map[i-1].size - (size-opt_availmem), in machine_specific_memory_setup() 588 e820->map[i].size = e - s; in e820_add_range() [all …]
|
/xen/tools/libxc/ |
A D | xc_dom_decompress_lz4.c | 43 ssize_t size = *psize - 4; in xc_try_lz4_decode() local 47 if (size < 4) { in xc_try_lz4_decode() 52 out_len = get_unaligned_le32(inp + size); in xc_try_lz4_decode() 68 size -= 4; in xc_try_lz4_decode() 75 if (size < 4) { in xc_try_lz4_decode() 82 size -= 4; in xc_try_lz4_decode() 86 size -= 4; in xc_try_lz4_decode() 87 if (chunksize > size) { in xc_try_lz4_decode() 102 size -= chunksize; in xc_try_lz4_decode() 104 if (size == 0) in xc_try_lz4_decode() [all …]
|
/xen/xen/common/xz/ |
A D | dec_bcj.c | 60 size_t size; member 103 if (size <= 4) in bcj_x86() 106 size -= 4; in bcj_x86() 107 for (i = 0; i < size; ++i) { in bcj_x86() 351 size -= *pos; in bcj_apply() 408 s->temp.size -= copy_size; in bcj_flush() 449 if (s->temp.size < b->out_size - b->out_pos || s->temp.size == 0) { in xz_dec_bcj_run() 452 b->out_pos += s->temp.size; in xz_dec_bcj_run() 496 b->out_pos = s->temp.size; in xz_dec_bcj_run() 501 s->temp.size = b->out_pos; in xz_dec_bcj_run() [all …]
|
/xen/xen/include/asm-arm/arm32/ |
A D | cmpxchg.h | 16 switch (size) { in __xchg() 38 __bad_xchg(ptr, size), ret = 0; in __xchg() 55 extern unsigned long __bad_cmpxchg(volatile void *ptr, int size); 91 unsigned long new, int size, in __int_cmpxchg() argument 96 switch (size) { in __int_cmpxchg() 104 return __bad_cmpxchg(ptr, size); in __int_cmpxchg() 113 int size) in __cmpxchg() argument 115 if (!__int_cmpxchg(ptr, &old, new, size, false, 0)) in __cmpxchg() 128 ret = __cmpxchg(ptr, old, new, size); in __cmpxchg_mb() 147 int size, in __cmpxchg_mb_timeout() argument [all …]
|
/xen/tools/xenstore/ |
A D | talloc.h | 46 #define talloc_size(ctx, size) talloc_named_const(ctx, size, __location__) argument 51 #define talloc_zero_size(ctx, size) _talloc_zero(ctx, size, __location__) argument 55 #define talloc_array_size(ctx, size, count) _talloc_array(ctx, size, count, __location__) argument 58 #define talloc_realloc_size(ctx, ptr, size) _talloc_realloc(ctx, ptr, size, __location__) argument 60 #define talloc_memdup(t, p, size) _talloc_memdup(t, p, size, __location__) argument 68 #define data_blob(ptr, size) data_blob_named(ptr, size, "DATA_BLOB: "__location__) 69 #define data_blob_talloc(ctx, ptr, size) data_blob_talloc_named(ctx, ptr, size, "DATA_BLOB: "__loca… 101 void *_talloc(const void *context, size_t size); 108 void *talloc_named(const void *context, size_t size, 126 void *_talloc_zero(const void *ctx, size_t size, const char *name); [all …]
|
/xen/xen/arch/x86/cpu/mtrr/ |
A D | main.c | 63 unsigned long size, mtrr_type type); 212 unsigned long size, mtrr_type type) in set_mtrr() argument 225 data.smp_size = size; in set_mtrr() 256 mtrr_if->set(reg,base,size,type); in set_mtrr() 337 if (!size) { in mtrr_add_page() 378 base, size, mtrr_attrib_to_str(ltype), in mtrr_add_page() 390 set_mtrr(i, base, size, type); in mtrr_add_page() 461 if (mtrr_check(base, size)) in mtrr_add() 498 if (lbase == base && lsize == size) { in mtrr_del_page() 505 size); in mtrr_del_page() [all …]
|
/xen/xen/arch/arm/ |
A D | kernel.c | 211 if ( size < sizeof(uimage) ) in kernel_uimage_probe() 219 len = be32_to_cpu(uimage.size); in kernel_uimage_probe() 264 paddr_t size = mod->size; in kernel_decompress() local 266 if ( size < 2 ) in kernel_decompress() 272 if ( !gzip_check(magic, size) ) in kernel_decompress() 296 mod->size = output_size; in kernel_decompress() 338 if ( size < sizeof(zimage) ) in kernel_zimage64_probe() 349 end = size; in kernel_zimage64_probe() 355 if ( (end - start) > size ) in kernel_zimage64_probe() 391 if ( (end - start) > size ) in kernel_zimage32_probe() [all …]
|
/xen/xen/include/asm-arm/arm64/ |
A D | bitops.h | 47 size, unsigned long offset); 58 long size, unsigned long offset); 71 unsigned long size); 81 unsigned long size); 84 #define find_first_bit(addr, size) find_next_bit((addr), (size), 0) argument 85 #define find_first_zero_bit(addr, size) find_next_zero_bit((addr), (size), 0) argument
|
A D | cmpxchg.h | 10 switch (size) { in __xchg() 48 __bad_xchg(ptr, size), ret = 0; in __xchg() 104 unsigned long new, int size, in __int_cmpxchg() argument 107 switch (size) { in __int_cmpxchg() 117 return __bad_cmpxchg(ptr, size); in __int_cmpxchg() 126 int size) in __cmpxchg() argument 128 if (!__int_cmpxchg(ptr, &old, new, size, false, 0)) in __cmpxchg() 136 unsigned long new, int size) in __cmpxchg_mb() argument 141 ret = __cmpxchg(ptr, old, new, size); in __cmpxchg_mb() 160 int size, in __cmpxchg_mb_timeout() argument [all …]
|
/xen/xen/arch/arm/platforms/ |
A D | exynos5.c | 46 u64 size; in exynos5_init_time() local 63 mct_base_addr, size); in exynos5_init_time() 65 mct = ioremap_nocache(mct_base_addr, size); in exynos5_init_time() 101 u64 size; in exynos5_smp_init() local 135 sysram_addr, size, sysram_offset); in exynos5_smp_init() 137 sysram = ioremap_nocache(sysram_addr, size); in exynos5_smp_init() 219 *power_base_addr, *size); in exynos5_get_pmu_baseandsize() 227 u64 size; in exynos5_cpu_up() local 235 power = ioremap_nocache(power_base_addr, size); in exynos5_cpu_up() 260 u64 size; in exynos5_reset() local [all …]
|
/xen/tools/xentrace/ |
A D | setsize.c | 8 unsigned long size; in main() local 11 if ( xc_tbuf_get_size(xc_handle, &size) != 0 ) in main() 18 printf("Current tbuf size: 0x%lx\n", size); in main() 24 size = atol(argv[1]); in main() 26 if ( xc_tbuf_set_size(xc_handle, size) != 0 ) in main() 33 if (xc_tbuf_get_size(xc_handle, &size) != 0) in main() 37 printf("New tbuf size: 0x%lx\n", size); in main()
|
/xen/tools/libxl/ |
A D | libxl_arm_acpi.c | 67 size_t size; member 78 *size = sizeof(struct acpi_table_madt) + in libxl__estimate_madt_size() 83 *size = sizeof(struct acpi_table_madt) + in libxl__estimate_madt_size() 90 *size = 0; in libxl__estimate_madt_size() 102 uint64_t size; in libxl__get_acpi_size() local 110 *out = ROUNDUP(size, 3) + in libxl__get_acpi_size() 127 size_t size; in libxl__allocate_acpi_tables() local 152 acpitables[MADT].size = size; in libxl__allocate_acpi_tables() 195 rsdp->length = acpitables[RSDP].size; in make_acpi_rsdp() 200 acpitables[RSDP].size); in make_acpi_rsdp() [all …]
|
A D | flexarray.c | 27 flexarray_t *flexarray_make(libxl__gc *gc, int size, int autogrow) in flexarray_make() argument 32 array->size = size; in flexarray_make() 36 GCNEW_ARRAY(array->data, size); in flexarray_make() 53 newsize = array->size + extents; in flexarray_grow() 55 array->size += extents; in flexarray_grow() 60 if (idx >= array->size) { in flexarray_set() 64 newsize = (array->size * 2 < idx) ? idx + 1 : array->size * 2; in flexarray_set() 65 flexarray_grow(array, newsize - array->size); in flexarray_set() 103 if (idx >= array->size) in flexarray_get()
|
/xen/xen/arch/x86/hvm/ |
A D | intercept.c | 58 return handler->mmio.ops->read(current, addr, size, data); in hvm_mmio_read() 79 unsigned int end = start + handler->portio.size; in hvm_portio_accept() 83 return (p->addr >= start) && ((p->addr + p->size) <= end); in hvm_portio_accept() 94 rc = handler->portio.action(IOREQ_READ, addr, size, &val); in hvm_portio_read() 120 int rc = X86EMUL_OKAY, i, step = p->df ? -p->size : p->size; in hvm_process_io_intercept() 132 rc = ops->read(handler, addr, p->size, &data); in hvm_process_io_intercept() 172 p->size) ) in hvm_process_io_intercept() 198 rc = ops->write(handler, addr, p->size, data); in hvm_process_io_intercept() 305 handler->portio.size = size; in register_portio_handler() 323 (handler->portio.size = size) ) in relocate_portio_handler() [all …]
|
/xen/xen/include/xen/ |
A D | xmalloc.h | 75 extern void *_xmalloc(unsigned long size, unsigned long align); 76 extern void *_xzalloc(unsigned long size, unsigned long align); 77 extern void *_xrealloc(void *ptr, unsigned long size, unsigned long align); 80 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() 138 void *xmem_pool_alloc(unsigned long size, struct xmem_pool *pool);
|