Searched defs:align (Results 1 - 25 of 118) sorted by relevance

12345

/illumos-gate/usr/src/lib/libmapmalloc/common/
H A Dvalloc.c45 * memalign(align,nbytes) - do nothing
50 memalign(size_t align, size_t nbytes) argument
H A Dtextmem.c93 static size_t align(size_t, int);
115 size = align(size, MINSZ);
133 size_t totpage = align(totsize, pagesize);
170 size = align(size, MINSZ);
216 align(size_t size, int bound) function
/illumos-gate/usr/src/uts/intel/os/
H A Ddoor_support.c57 door_final_sp(uintptr_t resultsp, size_t align, int datamodel) argument
/illumos-gate/usr/src/psm/promif/ieee1275/sun4/
H A Dprom_alloc.c36 * is chosen. In either case, align is not ignored.
49 prom_alloc(caddr_t virthint, size_t size, u_int align) argument
55 if (align == 0)
56 align = (u_int)1;
63 virt = prom_allocate_virt(align, size);
76 if (prom_allocate_phys(size, align, &physaddr) == -1) {
109 prom_malloc(caddr_t virt, size_t size, u_int align) argument
119 ci[5] = p1275_uint2cell(align); /* Arg3: align */
H A Dprom_retain.c38 prom_retain(char *id, size_t size, u_int align, unsigned long long *physaddr) argument
52 ci[5] = p1275_uint2cell(align); /* Arg2: SA1: align */
H A Dprom_mem.c64 prom_allocate_phys(size_t size, uint_t align, unsigned long long *physaddr) argument
73 if (align == 0)
74 align = (uint_t)1;
81 ci[5] = p1275_uint2cell(align); /* Arg3: SA1: align */
120 ci[5] = 0; /* Arg3: SA1: align */
H A Dprom_mmu.c105 prom_allocate_virt(uint_t align, size_t size) argument
114 if (align == 0)
115 align = 1;
122 ci[5] = p1275_uint2cell(align); /* Arg3: SA1: align */
154 ci[5] = (cell_t)0; /* Arg3: align */
/illumos-gate/usr/src/uts/sparc/os/
H A Ddoor_support.c85 door_final_sp(uintptr_t resultsp, size_t align, int datamodel) argument
89 return (P2ALIGN(resultsp - minframe, align));
/illumos-gate/usr/src/lib/efcode/packages/
H A Dmemalloc.c46 int align; local
53 align = POP(DS);
55 fc_int2cell(align), fc_size2cell(size), fc_ptr2cell(hint), &vaddr);
/illumos-gate/usr/src/stand/lib/sa/
H A Dstandalloc.c44 size_t bytes, caddr_t virthint, int align);
58 kern_resalloc(caddr_t virthint, size_t size, int align) argument
61 return (resalloc(RES_CHILDVIRT, size, virthint, align));
78 get_progmemory(caddr_t vaddr, size_t size, int align) argument
95 if (resalloc(RES_CHILDVIRT, size, vaddr, align) != vaddr)
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dmemalign.c40 * memalign(align, nbytes)
61 memalign(size_t align, size_t nbytes) argument
81 if (nbytes == 0 || _misaligned(align) || align == 0 ||
82 align > MAX_ALIGN) {
105 ROUND(align);
106 while (align < MINSIZE + WORDSIZE)
107 align <<= 1;
108 reqsize = nbytes + align + (MINSIZE + WORDSIZE);
134 if (x % align !
193 aligned_alloc(size_t align, size_t size) argument
[all...]
/illumos-gate/usr/src/cmd/cdrw/
H A Daudio.h52 uint16_t align; member in struct:__anon67
/illumos-gate/usr/src/lib/libtnfprobe/
H A Dtnf_args.c70 size_t align; local
89 align = tag_p->tag_align - 1;
90 assert(align != 0);
91 offset = ALIGN_ROUNDUP(offset, align);
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dinet6_opt.c72 socklen_t len, uint_t align, void **databufp)
78 if (align > len ||
79 (align != 1 && align != 2 && align != 4 && align != 8) ||
94 remainder = (offset + 2 + len) % align;
98 padbytes = align - remainder;
71 inet6_opt_append(void *extbuf, socklen_t extlen, int offset, uint8_t type, socklen_t len, uint_t align, void **databufp) argument
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_buf.c86 const void *buf, size_t len, size_t align)
89 size_t adj = roundup(off, align) - off;
127 const dt_buf_t *src, size_t align)
134 (size_t)(src->dbu_ptr - src->dbu_buf), align);
139 dt_buf_offset(const dt_buf_t *bp, size_t align) argument
142 return (roundup(off, align));
85 dt_buf_write(dtrace_hdl_t *dtp, dt_buf_t *bp, const void *buf, size_t len, size_t align) argument
126 dt_buf_concat(dtrace_hdl_t *dtp, dt_buf_t *dst, const dt_buf_t *src, size_t align) argument
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Drpool.c34 char align[SM_ALIGN_SIZE]; member in union:__anon1421
/illumos-gate/usr/src/lib/libast/common/vmalloc/
H A Dvmlast.c392 static Void_t* lastalign(Vmalloc_t* vm, size_t size, size_t align) argument
394 static Void_t* lastalign(vm, size, align)
397 size_t align;
407 if(size <= 0 || align <= 0)
419 orgalign = align;
423 align = MULTIPLE(align,ALIGN);
425 s = size + align;
436 if((s = (size_t)(VLONG(data)%align)) != 0)
437 data += align
[all...]
H A Dvmpool.c337 static Void_t* poolalign(Vmalloc_t* vm, size_t size, size_t align) argument
339 static Void_t* poolalign(vm, size, align)
342 size_t align;
347 NOTUSED(align);
/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) argument
103 if (align != 0)
104 ptr = memalign(align, nbytes);
167 mdb_alloc_align(size_t nbytes, size_t align, uint_t flags) argument
179 if (align != 0)
180 ptr = memalign(align, nbytes);
186 ptr = mdb_umem_handler(nbytes, align, flags);
/illumos-gate/usr/src/boot/lib/libstand/
H A Dzalloc.c89 znalloc(MemPool *mp, uintptr_t bytes, size_t align) argument
95 * align according to pool object size (can be 0). This is
119 aligned = (char *)(roundup2(dptr, align) - MALLOCALIGN);
179 * align according to pool object size (can be 0). This is
/illumos-gate/usr/src/lib/libtnf/
H A Dinfo.c184 info->align = _tnf_get_align(tnf, tag);
370 size_t ref_size, align; local
388 align = INFO_ALIGN(elt_info); /* XXX */
391 offset = ALIGN(offset, align);
H A Dabi.c453 size_t ref_size, align; local
472 align = (ref_size == 4)? 4: _tnf_get_align(tnf, type_elt);
475 offset = ALIGN(offset, align);
531 size_t ref_size, align; local
550 align = (ref_size == 4)? 4: _tnf_get_align(tnf, type_elt);
553 offset = ALIGN(offset, align);
/illumos-gate/usr/src/lib/libumem/common/
H A Dmalloc.c149 memalign(size_t align, size_t size_arg) argument
159 if (size_arg == 0 || align == 0 || (align & (align - 1)) != 0) {
167 if (align <= UMEM_ALIGN ||
168 (align <= UMEM_SECOND_ALIGN && size_arg >= UMEM_SECOND_ALIGN))
177 ASSERT(overhead <= align);
180 phase = align - overhead;
192 buf = vmem_xalloc(umem_memalign_arena, size, align, phase,
196 if ((size_arg + align) <
[all...]
/illumos-gate/usr/src/lib/libfakekernel/common/
H A Dkmem.c82 size_t align, /* required object alignment */
101 uc = umem_cache_create(name, bufsize, align,
79 kmem_cache_create( char *name, size_t bufsize, size_t align, int (*constructor)(void *, void *, int), void (*destructor)(void *, void *), void (*reclaim)(void *), void *private, vmem_t *vmp, int kcflags) argument
/illumos-gate/usr/src/lib/nsswitch/dns/common/
H A Dgethostent.c68 } align; typedef in typeref:union:__anon4495

Completed in 189 milliseconds

12345