Home
last modified time | relevance | path

Searched refs:align (Results 1 – 25 of 54) sorted by relevance

123

/xen/xen/common/
A Dxmalloc_tlsf.c602 ASSERT((align & (align - 1)) == 0); in _xmalloc()
603 if ( align < MEM_ALIGN ) in _xmalloc()
604 align = MEM_ALIGN; in _xmalloc()
605 size += align - MEM_ALIGN; in _xmalloc()
608 if ( size < align - MEM_ALIGN ) in _xmalloc()
617 return xmalloc_whole_pages(size - align + MEM_ALIGN, align); in _xmalloc()
620 p = add_padding(p, align); in _xmalloc()
647 ASSERT(!(align & (align - 1))); in _xrealloc()
648 if ( align < MEM_ALIGN ) in _xrealloc()
649 align = MEM_ALIGN; in _xrealloc()
[all …]
A Dvmap.c48 static void *vm_alloc(unsigned int nr, unsigned int align, in vm_alloc() argument
53 if ( !align ) in vm_alloc()
54 align = 1; in vm_alloc()
55 else if ( align & (align - 1) ) in vm_alloc()
56 align &= -align; in vm_alloc()
77 start = (start + align) & ~(align - 1); in vm_alloc()
203 unsigned int nr, unsigned int align, unsigned int flags, in __vmap() argument
206 void *va = vm_alloc(nr * granularity, align, type); in __vmap()
/xen/xen/include/xen/
A Dxmalloc.h75 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
85 return _xmalloc(size * num, align); in _xmalloc_array()
89 unsigned long size, unsigned long align, unsigned long num) in _xzalloc_array() argument
94 return _xzalloc(size * num, align); in _xzalloc_array()
A Dconfig.h85 #define IS_ALIGNED(val, align) (((val) & ((align) - 1)) == 0) argument
A Dvmap.h16 unsigned int align, unsigned int flags, enum vmap_region);
/xen/tools/libfsimage/zfs/
A Dfsys_zfs.h95 #define P2ROUNDUP(x, align) (-(-(x) & -(align))) argument
120 #define P2PHASE(x, align) ((x) & ((align) - 1)) argument
131 #define P2ALIGN(x, align) ((x) & -(align)) argument
/xen/xen/tools/
A Dbinfile7 align=0
16 align=$OPTARG
32 .p2align $align
/xen/xen/arch/x86/boot/
A Ddefs.h31 #define ALIGN_UP(arg, align) \ argument
32 (((arg) + (align) - 1) & ~((typeof(arg))(align) - 1))
A Dx86_64.S71 .align 8
79 .align PAGE_SIZE, 0
190 .align PAGE_SIZE, 0
/xen/tools/firmware/hvmloader/
A Dutil.c454 void *mem_alloc(uint32_t size, uint32_t align) in mem_alloc() argument
459 if ( align < 16 ) in mem_alloc()
460 align = 16; in mem_alloc()
462 s = (alloc_up + align) & ~(align - 1); in mem_alloc()
478 void *scratch_alloc(uint32_t size, uint32_t align) in scratch_alloc() argument
483 if ( align < 16 ) in scratch_alloc()
484 align = 16; in scratch_alloc()
486 s = (scratch_start + align) & ~(align - 1); in scratch_alloc()
888 if ( align < 16 ) in acpi_mem_alloc()
889 align = 16; in acpi_mem_alloc()
[all …]
/xen/misc/coverity/
A Dmodel.c57 void *_xmalloc(unsigned long size, unsigned long align) in _xmalloc() argument
62 __coverity_negative_sink__(align); in _xmalloc()
/xen/tools/libxl/
A Dlibxl_x86_acpi.c53 uint32_t size, uint32_t align) in mem_alloc() argument
60 if (align < 16) in mem_alloc()
61 align = 16; in mem_alloc()
63 s = (libxl_ctxt->alloc_currp + align) & ~((unsigned long)align - 1); in mem_alloc()
/xen/stubdom/
A Dvtpm-cmake-Wextra.patch13 -add_definitions(-Wall -Werror -Wno-unused-parameter -Wpointer-arith -Wcast-align -Wwrite-strings)
18 +add_definitions(-Wno-unused-parameter -Wpointer-arith -Wcast-align -Wwrite-strings)
/xen/docs/
A Dsupport-matrix-generate128 <td align="center">$current_version</td>
176 <th align="left">Commit date</th>
177 <th align="left">Git commit</th>
/xen/xen/arch/x86/x86_64/
A Dkexec_reloc.S24 .align PAGE_SIZE
173 .align 4
182 .align 8
/xen/xen/arch/arm/
A Dsetup.c427 uint32_t size, paddr_t align, in consider_modules() argument
434 s = (s+align-1) & ~(align-1); in consider_modules()
435 e = e & ~(align-1); in consider_modules()
448 mod_e = consider_modules(mod_e, e, size, align, i+1); in consider_modules()
452 return consider_modules(s, mod_s, size, align, i+1); in consider_modules()
475 mod_e = consider_modules(mod_e, e, size, align, i+1); in consider_modules()
479 return consider_modules(s, mod_s, size, align, i+1); in consider_modules()
500 r_e = consider_modules(r_e, e, size, align, i + 1); in consider_modules()
504 return consider_modules(s, r_s, size, align, i + 1); in consider_modules()
/xen/xen/arch/arm/arm32/lib/
A Dfindbit.S56 add r2, r2, #1 @ align bit pointer
96 add r2, r2, #1 @ align bit pointer
132 add r2, r2, #1 @ align bit pointer
165 add r2, r2, #1 @ align bit pointer
A Dmemchr.S15 .align 5
A Dstrrchr.S15 .align 5
A Dstrchr.S17 .align 5
A Dassembler.h166 .align 3; \
260 .align 3
301 .align 3
A Dmemset.S15 .align 5
115 blt 5b @ 1 bytes to align with?
A Dmemzero.S13 .align 5
21 blt 5f @ 1 bytes to align with?
/xen/tools/firmware/rombios/32bit/
A Dpmm.c313 int32_t align = 0; in first_fit() local
316 align = ((size ^ (size - 1)) >> 1) + 1; in first_fit()
324 if ( align ) in first_fit()
327 uint32_t offset = ALIGN_UP(addr, align) - addr; in first_fit()
/xen/xen/arch/x86/hvm/
A Ddom0_build.c108 unsigned long align; in pvh_populate_memory_range() member
112 { .align = PFN_DOWN(GB(1)), .order = PAGE_ORDER_1G }, in pvh_populate_memory_range()
113 { .align = PFN_DOWN(MB(2)), .order = PAGE_ORDER_2M }, in pvh_populate_memory_range()
114 { .align = PFN_DOWN(KB(4)), .order = PAGE_ORDER_4K }, in pvh_populate_memory_range()
128 if ( IS_ALIGNED(start, orders[j].align) && in pvh_populate_memory_range()
141 end = (start + nr_pages) & ~(orders[0].align - 1); in pvh_populate_memory_range()
149 end = min(ROUNDUP(start + 1, orders[j - 1].align), in pvh_populate_memory_range()
198 unsigned long align, paddr_t limit, in pvh_steal_ram() argument
207 align = align ? : 1; in pvh_steal_ram()
215 *addr = (entry->addr + entry->size - size) & ~(align - 1); in pvh_steal_ram()

Completed in 25 milliseconds

123