/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | posix_memalign.c | 37 * The value of alignment shall be a power 49 posix_memalign(void **memptr, size_t alignment, size_t size) argument 54 if (alignment == 0 || 55 (alignment & (sizeof (void *) - 1)) != 0 || 56 (alignment & (alignment - 1)) != 0) 59 (ptr = memalign(alignment, size)) == NULL)
|
/illumos-gate/usr/src/lib/libmalloc/common/ |
H A D | llib-lmalloc | 35 void *memalign(size_t alignment, size_t size);
|
H A D | malloc.c | 198 memalign(size_t alignment, size_t size) argument 206 if (size == 0 || alignment == 0 || 207 (alignment & (alignment - 1)) != 0) { 210 if (alignment <= ALIGNSZ) 213 alloc_size = size + alignment; 226 fr = (fr + alignment - 1) / alignment * alignment; 239 alloc_size = size + alignment* [all...] |
/illumos-gate/usr/src/uts/common/avs/ns/sdbc/ |
H A D | sd_pcu.h | 45 int32_t alignment; /* all sections are multiples of this */ member in struct:sdbc_pwf_hdr_s
|
/illumos-gate/usr/src/uts/common/io/i40e/core/ |
H A D | i40e_alloc.h | 57 u64 size, u32 alignment);
|
/illumos-gate/usr/src/uts/common/io/drm/ |
H A D | drm_mm.c | 206 unsigned alignment) 213 if (alignment) 214 tmp = parent->start % alignment; 217 align_splitoff = drm_mm_split_at_start(parent, alignment - tmp); 239 unsigned alignment, 259 if (alignment) { 260 register unsigned tmp = entry->start % alignment; 262 wasted += alignment - tmp; 204 drm_mm_get_block(struct drm_mm_node *parent, unsigned long size, unsigned alignment) argument 237 drm_mm_search_free(const struct drm_mm *mm, unsigned long size, unsigned alignment, int best_match) argument
|
H A D | drm_bufs.c | 135 * handle alignment issue here. 406 int alignment; local 418 alignment = (request->flags & _DRM_PAGE_ALIGN) 445 buf->total = alignment; 465 offset += alignment; 514 int alignment; local 524 alignment = (request->flags & _DRM_PAGE_ALIGN) 545 buf->total = alignment; 566 offset += alignment;
|
/illumos-gate/usr/src/uts/sun4/conf/ |
H A D | genalign.s | 40 ! the booter what alignment we want
|
/illumos-gate/usr/src/lib/libbc/libc/crt/sparc/ |
H A D | misalign.s | 54 andcc %o0,1,%g0 ! test 16-bit alignment 87 andcc %i0,1,%g0 ! test for short alignment 121 andcc %i0,3,%g0 ! test for long alignment 125 andcc %i0,1,%g0 ! test for short alignment 129 ldub [%i0],%o0 ! worst case: byte alignment 177 andcc %o1,1,%g0 ! test for short alignment 208 andcc %i1,1,%g0 ! test for short alignment 245 andcc %i2,3,%g0 ! test for long alignment 249 andcc %i2,1,%g0 ! test for short alignment 300 andcc %o1,1,%g0 ! test for short alignment [all...] |
/illumos-gate/usr/src/uts/intel/io/drm/ |
H A D | radeon_mem.c | 261 alloc.alignment = alloc32.alignment; 279 if (alloc.alignment < 12) 280 alloc.alignment = 12; 282 block = alloc_block(*heap, alloc.size, alloc.alignment, fpriv);
|
H A D | radeon_io32.h | 148 int alignment; member in struct:drm_radeon_mem_alloc_32
|
H A D | i915_mem.c | 308 alloc.alignment = alloc32.alignment; 321 if (alloc.alignment < 12) 322 alloc.alignment = 12; 324 block = alloc_block(*heap, alloc.size, alloc.alignment, fpriv);
|
H A D | i915_drm.h | 334 int alignment; member in struct:drm_i915_mem_alloc 341 int alignment; member in struct:drm_i915_mem_alloc32 608 /** Required alignment in graphics aperture */ 609 uint64_t alignment; member in struct:drm_i915_gem_exec_object 649 /** alignment required within the aperture */ 650 uint64_t alignment; member in struct:drm_i915_gem_pin
|
/illumos-gate/usr/src/lib/libc/i386_hwcap1/gen/ |
H A D | memset.s | 52 cmpl $256, %ecx / smaller areas don't benefit from alignment 63 pushl %esi / for alignment work 75 jz .sse_aligned / skip alignment if not needed 77 movl %esi, %ecx / alignment bytes 102 jmp .sse_nt_loop / branch across alignment nops 152 andl $7, %edi / check alignment
|
/illumos-gate/usr/src/lib/libc/sparc/gen/ |
H A D | strcmp.s | 55 ! alignment of the destination string. If it is possible to 124 nop ! pad for optimal alignment of .cmp2 125 nop ! pad for optimal alignment of .cmp2 160 nop ! pad for optimal alignment of .cmp3 186 nop ! pad for optimal alignment of .cmp4 187 nop ! pad for optimal alignment of .cmp4 188 nop ! pad for optimal alignment of .cmp4
|
/illumos-gate/usr/src/tools/ndrgen/ |
H A D | ndr_anal.c | 131 tdti->alignment, 138 ti->alignment, 374 while (offset & ti->alignment) 421 while (offset & ti->alignment) 475 while (size & ti->alignment) 494 ti->alignment |= mem->type->alignment; 609 /* alignment */ 610 while (*offsetp & type_down->alignment) 774 ti->alignment [all...] |
H A D | ndrgen.h | 138 unsigned int alignment : 3; /* mask */ member in struct:typeinfo
|
/illumos-gate/usr/src/lib/libc/i386/gen/ |
H A D | strchr.s | 42 cmp $3, %ecx / check alignment 49 cmp $2, %ecx / check alignment
|
H A D | wschr.s | 40 .align 8 / accounts for .loop alignment and prolog
|
/illumos-gate/usr/src/lib/libc/amd64/gen/ |
H A D | wschr.s | 40 .align 8 / accounts for .loop alignment and prolog
|
/illumos-gate/usr/src/uts/common/io/i40e/ |
H A D | i40e_osdep.c | 45 enum i40e_memory_type type, u64 size, u32 alignment) 56 * Because we need to honor the specified alignment, we need to 57 * dynamically construct the attributes. We save the alignment for 61 attr.dma_attr_align = alignment; 62 mem->idm_alignment = alignment; 44 i40e_allocate_dma_mem(struct i40e_hw *hw, struct i40e_dma_mem *mem, enum i40e_memory_type type, u64 size, u32 alignment) argument
|
/illumos-gate/usr/src/cmd/lvm/util/ |
H A D | metattach.c | 49 %s [-s setname] [-A alignment] softpart size|all\n"), 68 sp_ext_offset_t alignment = 0; local 79 if (meta_sp_parsesize(optarg, &alignment) == -1) { 96 if (meta_sp_attach(*spp, spnp, argv[0], options, alignment, ep) != 0) {
|
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_sp.c | 153 sp_ext_length_t alignment); 167 sp_ext_offset_t last_off, sp_ext_length_t alignment); 202 mdcmdopts_t options, sp_ext_length_t alignment, md_error_t *ep); 619 * RETURNS: sp_ext_length_t =0: no default alignment 620 * >0: default alignment 621 * PURPOSE: returns the default alignment for soft partitions to 639 * their alignment requirements. 657 * alignment. There's a chance that the least common 727 * If we have arrived here with the alignment still not set, 736 "alignment 3219 sp_ext_length_t alignment; local 3757 sp_ext_length_t alignment = 0LL; local 4242 meta_create_sp( mdsetname_t *sp, md_sp_t *msp, sp_ext_node_t *oblist, mdcmdopts_t options, sp_ext_length_t alignment, md_error_t *ep ) argument 4860 meta_sp_attach( mdsetname_t *sp, mdname_t *np, char *addsize, mdcmdopts_t options, sp_ext_length_t alignment, md_error_t *ep ) argument [all...] |
/illumos-gate/usr/src/uts/common/io/xge/hal/xgehal/ |
H A D | xgehal-channel-fp.c | 242 * xge_hal_check_alignment - Check buffer alignment and calculate the 246 * @alignment: Alignment "granularity" (see below), in bytes. 250 * Check buffer alignment and calculate "misaligned" portion, if exists. 252 * the specified @alignment. If this is the case, 257 * may or may not be equal @alignment. The difference between these two 258 * arguments is that the @alignment is used to make the decision: aligned 262 * @alignment=8 and @copy_size=64 will work okay on AMD Opteron boxes. 264 * Note: @copy_size should be a multiple of @alignment. In many practical 265 * cases @copy_size and @alignment will probably be equal. 270 xge_hal_check_alignment(dma_addr_t dma_pointer, int size, int alignment, argument [all...] |
/illumos-gate/usr/src/uts/sun4/vm/ |
H A D | sfmmu.c | 526 ndata_extra_base(struct memlist *ndata, size_t alignment, caddr_t endaddr) argument 538 * The alignment needs to be a multiple of ecache_alignsize. 540 ASSERT((alignment % ecache_alignsize) == 0); 547 base = roundup(ndata->ml_address, alignment); 580 ndata_select_chunk(struct memlist *ndata, size_t wanted, size_t alignment) argument 609 base = roundup(frlist->ml_address, alignment); 658 ndata_alloc(struct memlist *ndata, size_t wanted, size_t alignment) argument 670 if ((found = ndata_select_chunk(ndata, wanted, alignment)) == NULL) 676 base = roundup(found->ml_address, alignment);
|