/titanic_51/usr/src/lib/libc/port/gen/ |
H A D | memalign.c | 40 * memalign(align, nbytes) 61 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() 108 reqsize = nbytes + align + (MINSIZE + WORDSIZE); in memalign() 134 if (x % align ! in memalign() 193 aligned_alloc(size_t align,size_t size) aligned_alloc() argument [all...] |
/titanic_51/usr/src/uts/common/sys/ |
H A D | sysmacros.h | 231 * Macros for various sorts of alignment and rounding. The "align" must 236 * return x rounded down to an align boundary 237 * eg, P2ALIGN(1200, 1024) == 1024 (1*align) 238 * eg, P2ALIGN(1024, 1024) == 1024 (1*align) 239 * eg, P2ALIGN(0x1234, 0x100) == 0x1200 (0x12*align) 240 * eg, P2ALIGN(0x5600, 0x100) == 0x5600 (0x56*align) 242 #define P2ALIGN(x, align) ((x) & -(align)) argument 245 * return x % (mod) align 246 * eg, P2PHASE(0x1234, 0x100) == 0x34 (x-0x12*align) 249 P2PHASE(x,align) global() argument 257 P2NPHASE(x,align) global() argument 264 P2ROUNDUP(x,align) global() argument 271 P2END(x,align) global() argument 279 P2PHASEUP(x,align,phase) global() argument 287 P2BOUNDARY(off,len,align) global() argument 308 P2ALIGN_TYPED(x,align,type) global() argument 310 P2PHASE_TYPED(x,align,type) global() argument 312 P2NPHASE_TYPED(x,align,type) global() argument 314 P2ROUNDUP_TYPED(x,align,type) global() argument 316 P2END_TYPED(x,align,type) global() argument 318 P2PHASEUP_TYPED(x,align,phase,type) global() argument 320 P2CROSS_TYPED(x,y,align,type) global() argument [all...] |
/titanic_51/usr/src/psm/promif/ieee1275/sun4/ |
H A D | prom_alloc.c | 36 * is chosen. In either case, align is not ignored. 49 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()
|
/titanic_51/usr/src/lib/libbc/libc/gen/common/ |
H A D | memalign.c | 35 * memalign(align,nbytes) 56 memalign(align, nbytes) in memalign() argument 57 uint align; in memalign() 72 if (nbytes == 0 || misaligned(align)) { 84 reqsize = nbytes + align + SMALLEST_BLK; 99 x = roundup((uint)p, align); /* ccom work-around */ 117 frag_size += align; 118 aligned_blk = nextblk(aligned_blk,align);
|
/titanic_51/usr/src/uts/sparc/v9/ml/ |
H A D | ddi_v9_asm.s | 566 .align 32 583 .align 16 589 .align 32 606 .align 16 614 .align 32 631 .align 16 639 .align 32 656 .align 16 664 .align 32 681 .align 1 [all...] |
/titanic_51/usr/src/uts/sun4v/vm/ |
H A D | mach_vm_dep.c | 487 span_alloc_downsize(vmem_t *vmp, size_t *sizep, size_t align, int vmflag) in span_alloc_downsize() argument 503 * power-of-2, any large page >= size && >= align will in span_alloc_downsize() 506 if (*sizep <= page_size && align <= page_size) { in span_alloc_downsize() 521 contig_mem_span_xalloc(vmem_t *vmp, size_t *sizep, size_t align, int vmflag) in contig_mem_span_xalloc() argument 523 return (span_alloc_downsize(vmp, sizep, align, vmflag | VM_NORELOC)); in contig_mem_span_xalloc() 527 contig_mem_reloc_span_xalloc(vmem_t *vmp, size_t *sizep, size_t align, in contig_mem_reloc_span_xalloc() argument 531 return (span_alloc_downsize(vmp, sizep, align, vmflag)); in contig_mem_reloc_span_xalloc() 584 contig_vmem_xalloc_aligned_wrapper(vmem_t *vmp, size_t *sizep, size_t align, in contig_vmem_xalloc_aligned_wrapper() argument 587 ASSERT((align & (align in contig_vmem_xalloc_aligned_wrapper() 625 contig_mem_alloc_align(size_t size,size_t align) contig_mem_alloc_align() argument [all...] |
/titanic_51/usr/src/lib/libumem/common/ |
H A D | malloc.c | 149 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) < in memalign() [all...] |
/titanic_51/usr/src/lib/libsocket/inet/ |
H A D | inet6_opt.c | 72 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()
|
/titanic_51/usr/src/stand/lib/sa/ |
H A D | standalloc.c | 44 size_t bytes, caddr_t virthint, int align); 58 kern_resalloc(caddr_t virthint, size_t size, int align) in kern_resalloc() argument 61 return (resalloc(RES_CHILDVIRT, size, virthint, align)); in kern_resalloc() 78 get_progmemory(caddr_t vaddr, size_t size, int align) in get_progmemory() argument 95 if (resalloc(RES_CHILDVIRT, size, vaddr, align) != vaddr) in get_progmemory()
|
/titanic_51/usr/src/uts/intel/io/pci/ |
H A D | pci_memlist.c | 221 memlist_find(struct memlist **listp, uint64_t size, int align) in memlist_find() argument 230 delta = next->ml_address & ((align != 0) ? (align - 1) : 0); in memlist_find() 232 total_size = size + align - delta; in memlist_find() 246 paddr += align - delta; in memlist_find() 258 uint64_t size, int align) in memlist_find_with_startaddr() argument 272 delta = next->ml_address & ((align != 0) ? (align - 1) : 0); in memlist_find_with_startaddr() 274 total_size = size + align - delta; in memlist_find_with_startaddr() 282 paddr += align in memlist_find_with_startaddr() [all...] |
/titanic_51/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_zfs.h | 103 #define P2ROUNDUP(x, align) (-(-(x) & -(align))) argument 110 #define P2PHASE(x, align) ((x) & ((align) - 1)) argument 115 * return x rounded down to an align boundary 116 * eg, P2ALIGN(1200, 1024) == 1024 (1*align) 117 * eg, P2ALIGN(1024, 1024) == 1024 (1*align) 118 * eg, P2ALIGN(0x1234, 0x100) == 0x1200 (0x12*align) 119 * eg, P2ALIGN(0x5600, 0x100) == 0x5600 (0x56*align) 121 #define P2ALIGN(x, align) (( argument [all...] |
/titanic_51/usr/src/lib/libc/amd64/gen/ |
H A D | wslen.s | 50 .align 8 64 .align 4 70 .align 4 75 .align 4
|
/titanic_51/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_umem.c | 65 mdb_umem_handler(size_t nbytes, size_t align, uint_t flags) in mdb_umem_handler() argument 105 if (align != 0) in mdb_umem_handler() 106 ptr = memalign(align, nbytes); in mdb_umem_handler() 169 mdb_alloc_align(size_t nbytes, size_t align, uint_t flags) in mdb_alloc_align() argument 178 if (align != 0) in mdb_alloc_align() 179 ptr = memalign(align, nbytes); in mdb_alloc_align() 185 ptr = mdb_umem_handler(nbytes, align, flags); in mdb_alloc_align()
|
/titanic_51/usr/src/uts/intel/sys/ |
H A D | bootconf.h | 112 int align); 150 int align, int flags); 156 #define BOP_ALLOC(bop, virthint, size, align) \ argument 157 ((bop)->bsys_alloc)(bop, virthint, size, align) 163 #define BOP_EALLOC(bop, virthint, size, align, flags)\ argument 164 ((bop)->bsys_ealloc)(bop, virthint, size, align, flags)
|
/titanic_51/usr/src/lib/libc/i386/gen/ |
H A D | wslen.s | 51 .align 8 65 .align 4 71 .align 4 76 .align 4
|
/titanic_51/usr/src/uts/sparc/sys/ |
H A D | asm_linkage.h | 157 .align 4; \ 166 .align 4; \ 173 .align 4; \ 183 .align 4; \ 193 .align 4; \ 229 .align algn; \
|
/titanic_51/usr/src/lib/libdtrace/common/ |
H A D | dt_buf.c | 86 const void *buf, size_t len, size_t align) in dt_buf_write() argument 89 size_t adj = roundup(off, align) - off; in dt_buf_write() 127 const dt_buf_t *src, size_t align) in dt_buf_concat() argument 134 (size_t)(src->dbu_ptr - src->dbu_buf), align); in dt_buf_concat() 139 dt_buf_offset(const dt_buf_t *bp, size_t align) in dt_buf_offset() argument 142 return (roundup(off, align)); in dt_buf_offset()
|
/titanic_51/usr/src/common/dtrace/ |
H A D | dtrace_data.c | 67 #pragma align 64(dtrace_data) 82 #pragma align 64(dtrace_data) 96 #pragma align 64(dtrace_data)
|
/titanic_51/usr/src/uts/sparc/os/ |
H A D | bootops.c | 218 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() 315 * 2. align mus in bop_alloc_chunk() [all...] |
/titanic_51/usr/src/uts/intel/ia32/sys/ |
H A D | asm_linkage.h | 205 .align ASM_ENTRY_ALIGN; \ 212 .align ASM_ENTRY_ALIGN; \ 219 .align ASM_ENTRY_ALIGN; \ 229 .align ASM_ENTRY_ALIGN; \ 239 .align ASM_ENTRY_ALIGN; \ 275 .align algn; \
|
/titanic_51/usr/src/uts/sun4/conf/ |
H A D | genalign.s | 43 .align 4 50 .align 4 57 .align 4
|
/titanic_51/usr/src/psm/stand/boot/sparc/sun4/sys/ |
H A D | prom_plat.h | 129 * associated with the align argument and the return value. 132 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, 160 * identified by the arguments of name string "id", "size" and "align". 162 extern int prom_retain(char *id, size_t size, uint_t align,
|
/titanic_51/usr/src/cmd/sendmail/db/db/ |
H A D | db_salloc.c | 70 __db_shalloc(p, len, align, retp) in __db_shalloc() argument 72 size_t len, align; 79 * We never allocate less than the size of a struct __data, align 80 * to less than a size_t boundary, or align to something that's not 85 align = align <= sizeof(size_t) ? 86 sizeof(size_t) : ALIGN(align, sizeof(size_t)); 101 rp = (u_int8_t *)((ALIGNTYPE)rp & ~(align - 1));
|
/titanic_51/usr/src/psm/stand/bootblks/common/ |
H A D | util.fth | 142 : 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 siz [all...] |
/titanic_51/usr/src/boot/sys/amd64/include/ |
H A D | asmacros.h | 120 * ALTENTRY() has to align because it is before a corresponding ENTRY(). 121 * ENTRY() has to align to because there may be no ALTENTRY() before it. 217 .align 4 ; \ 222 2:.align 4 ; \ 224 4:.align 4 ; \ 229 .align 4 ; \ 234 2:.align 4 ; \ 236 4:.align 4 ; \
|