Home
last modified time | relevance | path

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

12345678910>>...27

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dmemalign.c61 memalign(size_t align, size_t nbytes) in memalign() argument
81 if (nbytes == 0 || _misaligned(align) || align == 0 || in memalign()
82 align > MAX_ALIGN) { in memalign()
105 ROUND(align); in memalign()
106 while (align < MINSIZE + WORDSIZE) in memalign()
107 align <<= 1; in memalign()
134 if (x % align != 0) in memalign()
135 x += align - (x % align); in memalign()
155 frag_size += align; in memalign()
193 aligned_alloc(size_t align, size_t size) in aligned_alloc() argument
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dsysmacros.h246 #define P2ALIGN(x, align) ((x) & -(align)) argument
253 #define P2PHASE(x, align) ((x) & ((align) - 1)) argument
261 #define P2NPHASE(x, align) (-(x) & ((align) - 1)) argument
268 #define P2ROUNDUP(x, align) (-(-(x) & -(align))) argument
275 #define P2END(x, align) (-(~(x) & -(align))) argument
283 #define P2PHASEUP(x, align, phase) ((phase) - (((phase) - (x)) & -(align))) argument
313 ((type)(x) & -(type)(align))
315 ((type)(x) & ((type)(align) - 1))
317 (-(type)(x) & ((type)(align) - 1))
319 (-(-(type)(x) & -(type)(align)))
[all …]
/illumos-gate/usr/src/uts/sparc/v9/ml/
H A Dddi_v9_asm.s69 .align 32
80 .align 16
86 .align 32
97 .align 16
105 .align 32
116 .align 16
124 .align 32
135 .align 16
143 .align 32
154 .align 16
[all …]
/illumos-gate/usr/src/psm/promif/ieee1275/sun4/
H A Dprom_alloc.c49 prom_alloc(caddr_t virthint, size_t size, u_int align) in prom_alloc() argument
55 if (align == 0) in prom_alloc()
56 align = (u_int)1; in prom_alloc()
63 virt = prom_allocate_virt(align, size); in prom_alloc()
76 if (prom_allocate_phys(size, align, &physaddr) == -1) { in prom_alloc()
109 prom_malloc(caddr_t virt, size_t size, u_int align) in prom_malloc() argument
119 ci[5] = p1275_uint2cell(align); /* Arg3: align */ in prom_malloc()
/illumos-gate/usr/src/lib/libumem/common/
H A Dmalloc.c149 memalign(size_t align, size_t size_arg) in memalign() argument
159 if (size_arg == 0 || align == 0 || (align & (align - 1)) != 0) { in memalign()
167 if (align <= UMEM_ALIGN || in memalign()
168 (align <= UMEM_SECOND_ALIGN && size_arg >= UMEM_SECOND_ALIGN)) in memalign()
177 ASSERT(overhead <= align); in memalign()
180 phase = align - overhead; in memalign()
192 buf = vmem_xalloc(umem_memalign_arena, size, align, phase, in memalign()
196 if ((size_arg + align) <= UMEM_MAXBUF) in memalign()
222 ASSERT(P2PHASE((uintptr_t)ret, align) == 0); in memalign()
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dinet6_opt.c72 socklen_t len, uint_t align, void **databufp) in inet6_opt_append() argument
78 if (align > len || in inet6_opt_append()
79 (align != 1 && align != 2 && align != 4 && align != 8) || in inet6_opt_append()
94 remainder = (offset + 2 + len) % align; in inet6_opt_append()
98 padbytes = align - remainder; in inet6_opt_append()
/illumos-gate/usr/src/uts/sun4v/vm/
H A Dmach_vm_dep.c528 if (*sizep <= page_size && align <= page_size) { in span_alloc_downsize()
553 return (span_alloc_downsize(vmp, sizep, align, vmflag)); in contig_mem_reloc_span_xalloc()
609 ASSERT((align & (align - 1)) == 0); in contig_vmem_xalloc_aligned_wrapper()
647 contig_mem_alloc_align(size_t size, size_t align) in contig_mem_alloc_align() argument
652 ASSERT(align <= contig_mem_import_size_max); in contig_mem_alloc_align()
653 ASSERT((align & (align - 1)) == 0); in contig_mem_alloc_align()
655 if (align < CONTIG_MEM_ARENA_QUANTUM) in contig_mem_alloc_align()
656 align = CONTIG_MEM_ARENA_QUANTUM; in contig_mem_alloc_align()
668 buf = vmem_xalloc(contig_mem_arena, size, align, 0, 0, in contig_mem_alloc_align()
673 return (vmem_xalloc(static_alloc_arena, size, align, 0, 0, in contig_mem_alloc_align()
[all …]
/illumos-gate/usr/src/stand/lib/sa/
H A Dstandalloc.c42 size_t bytes, caddr_t virthint, int align);
55 kern_resalloc(caddr_t virthint, size_t size, int align) in kern_resalloc() argument
58 return (resalloc(RES_CHILDVIRT, size, virthint, align)); in kern_resalloc()
75 get_progmemory(caddr_t vaddr, size_t size, int align) in get_progmemory() argument
92 if (resalloc(RES_CHILDVIRT, size, vaddr, align) != vaddr) in get_progmemory()
/illumos-gate/usr/src/uts/intel/io/pci/
H A Dpci_memlist.c224 memlist_find(struct memlist **listp, uint64_t size, int align) in memlist_find() argument
233 delta = next->ml_address & ((align != 0) ? (align - 1) : 0); in memlist_find()
235 total_size = size + align - delta; in memlist_find()
249 paddr += align - delta; in memlist_find()
261 uint64_t size, int align) in memlist_find_with_startaddr() argument
275 delta = next->ml_address & ((align != 0) ? (align - 1) : 0); in memlist_find_with_startaddr()
277 total_size = size + align - delta; in memlist_find_with_startaddr()
285 paddr += align - delta; in memlist_find_with_startaddr()
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_zfs.h103 #define P2ROUNDUP(x, align) (-(-(x) & -(align))) argument
110 #define P2PHASE(x, align) ((x) & ((align) - 1)) argument
121 #define P2ALIGN(x, align) ((x) & -(align)) argument
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_umem.c63 mdb_umem_handler(size_t nbytes, size_t align, uint_t flags) in mdb_umem_handler() argument
103 if (align != 0) in mdb_umem_handler()
104 ptr = memalign(align, nbytes); in mdb_umem_handler()
167 mdb_alloc_align(size_t nbytes, size_t align, uint_t flags) in mdb_alloc_align() argument
179 if (align != 0) in mdb_alloc_align()
180 ptr = memalign(align, nbytes); in mdb_alloc_align()
186 ptr = mdb_umem_handler(nbytes, align, flags); in mdb_alloc_align()
/illumos-gate/usr/src/lib/libc/amd64/gen/
H A Dwslen.s50 .align 8
64 .align 4
70 .align 4
75 .align 4
/illumos-gate/usr/src/uts/intel/sys/
H A Dbootconf.h116 int align);
154 int align, int flags);
160 #define BOP_ALLOC(bop, virthint, size, align) \ argument
161 ((bop)->bsys_alloc)(bop, virthint, size, align)
167 #define BOP_EALLOC(bop, virthint, size, align, flags)\ argument
168 ((bop)->bsys_ealloc)(bop, virthint, size, align, flags)
H A Dasm_linkage.h207 .align ASM_ENTRY_ALIGN; \
214 .align ASM_ENTRY_ALIGN; \
221 .align ASM_ENTRY_ALIGN; \
231 .align ASM_ENTRY_ALIGN; \
241 .align ASM_ENTRY_ALIGN; \
277 .align algn; \
/illumos-gate/usr/src/lib/libc/i386/gen/
H A Dwslen.s51 .align 8
65 .align 4
71 .align 4
76 .align 4
/illumos-gate/usr/src/uts/sparc/sys/
H A Dasm_linkage.h157 .align 4; \
166 .align 4; \
173 .align 4; \
183 .align 4; \
193 .align 4; \
229 .align algn; \
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_buf.c84 const void *buf, size_t len, size_t align) in dt_buf_write() argument
87 size_t adj = roundup(off, align) - off; in dt_buf_write()
125 const dt_buf_t *src, size_t align) in dt_buf_concat() argument
132 (size_t)(src->dbu_ptr - src->dbu_buf), align); in dt_buf_concat()
137 dt_buf_offset(const dt_buf_t *bp, size_t align) in dt_buf_offset() argument
140 return (roundup(off, align)); in dt_buf_offset()
/illumos-gate/usr/src/uts/sparc/os/
H A Dbootops.c218 bop_temp_alloc(size_t size, int align) in bop_temp_alloc() argument
232 size = roundup(size, MAX(align, 8)); in bop_temp_alloc()
241 ret = prom_alloc(bighand, size, align); in bop_temp_alloc()
280 bop_alloc(caddr_t virthint, size_t size, int align) in bop_alloc() argument
283 return (bop_temp_alloc(size, align)); in bop_alloc()
284 return (prom_alloc(virthint, size, align)); in bop_alloc()
296 bop_alloc_chunk(caddr_t virthint, size_t size, int align) in bop_alloc_chunk() argument
302 return (bop_temp_alloc(size, align)); in bop_alloc_chunk()
304 if ((ret = prom_alloc(virthint, size, align))) in bop_alloc_chunk()
321 align > PAGESIZE || size < PAGESIZE) in bop_alloc_chunk()
/illumos-gate/usr/src/common/dtrace/
H A Ddtrace_data.c67 #pragma align 64(dtrace_data)
82 #pragma align 64(dtrace_data)
96 #pragma align 64(dtrace_data)
/illumos-gate/usr/src/uts/i86pc/ml/
H A Dnotes.s37 .align 4
44 .align 4
48 .align 4
/illumos-gate/usr/src/psm/stand/bootblks/common/
H A Dutil.fth142 : mmu-claim ( [ virt ] size align -- base )
150 : mem-claim ( size align -- phys.lo phys.hi )
154 : (mem-alloc) ( size virt align -- virt )
156 rot 2dup swap mem-claim ( virt align size phys.lo phys.hi )
157 >r >r rot ?dup if ( align size virt r: phys.lo phys.hi )
159 over 0 mmu-claim ( align size virt r: phys.lo phys.hi )
160 else ( align size r: phys.lo phys.hi )
162 2dup swap mmu-claim ( align size virt r: phys.lo phys.hi )
163 then ( align size virt r: phys.lo phys.hi )
164 r> r> 2over swap mmu-map ( align size virt )
/illumos-gate/usr/src/psm/stand/boot/sparc/sun4/sys/
H A Dprom_plat.h132 extern caddr_t prom_malloc(caddr_t virt, size_t size, uint_t align);
134 extern caddr_t prom_allocate_virt(uint_t align, size_t size);
138 extern int prom_allocate_phys(size_t size, uint_t align,
162 extern int prom_retain(char *id, size_t size, uint_t align,
/illumos-gate/usr/src/cmd/sendmail/db/db/
H A Ddb_salloc.c70 __db_shalloc(p, len, align, retp) in __db_shalloc() argument
72 size_t len, align;
85 align = align <= sizeof(size_t) ?
86 sizeof(size_t) : ALIGN(align, sizeof(size_t));
101 rp = (u_int8_t *)((ALIGNTYPE)rp & ~(align - 1));
/illumos-gate/usr/src/uts/sun4/conf/
H A Dgenalign.s35 .align 4
42 .align 4
49 .align 4
/illumos-gate/usr/src/boot/sys/amd64/include/
H A Dasmacros.h217 .align 4 ; \
222 2:.align 4 ; \
224 4:.align 4 ; \
229 .align 4 ; \
234 2:.align 4 ; \
236 4:.align 4 ; \

12345678910>>...27