Home
last modified time | relevance | path

Searched refs:alignment (Results 1 – 25 of 91) sorted by relevance

1234

/titanic_53/usr/src/lib/libc/port/gen/
H A Dposix_memalign.c49 posix_memalign(void **memptr, size_t alignment, size_t size) in posix_memalign() argument
54 if (alignment == 0 || in posix_memalign()
55 (alignment & (sizeof (void *) - 1)) != 0 || in posix_memalign()
56 (alignment & (alignment - 1)) != 0) in posix_memalign()
59 (ptr = memalign(alignment, size)) == NULL) in posix_memalign()
/titanic_53/usr/src/lib/libbc/libc/crt/sparc/
H A Dmisalign.s54 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 …]
/titanic_53/usr/src/lib/libmalloc/common/
H A Dmalloc.c198 memalign(size_t alignment, size_t size) in memalign() argument
206 if (size == 0 || alignment == 0 || in memalign()
207 (alignment & (alignment - 1)) != 0) { in memalign()
210 if (alignment <= ALIGNSZ) in memalign()
213 alloc_size = size + alignment; in memalign()
226 fr = (fr + alignment - 1) / alignment * alignment; in memalign()
239 alloc_size = size + alignment*2; in memalign()
252 fr = (fr + alignment - 1) / alignment * alignment; in memalign()
256 fr = fr + alignment; in memalign()
/titanic_53/usr/src/tools/ndrgen/
H A Dndr_anal.c131 tdti->alignment, in show_typeinfo_list()
138 ti->alignment, in show_typeinfo_list()
374 while (offset & ti->alignment) in analyze_typeinfo_typedef()
421 while (offset & ti->alignment) in analyze_typeinfo_struct()
475 while (size & ti->alignment) in analyze_typeinfo_union()
494 ti->alignment |= mem->type->alignment; in analyze_typeinfo_aggregate_finish()
610 while (*offsetp & type_down->alignment) in analyze_member()
774 ti->alignment = ti->size_fixed_part - 1; in seed_basic_types()
898 ti->alignment = 3; in bind_typeinfo()
906 ti->alignment = tdti->alignment; in bind_typeinfo()
[all …]
/titanic_53/usr/src/lib/libc/i386_hwcap1/gen/
H A Dmemset.s52 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
/titanic_53/usr/src/uts/common/io/i40e/
H A Di40e_osdep.c45 enum i40e_memory_type type, u64 size, u32 alignment) in i40e_allocate_dma_mem() argument
61 attr.dma_attr_align = alignment; in i40e_allocate_dma_mem()
62 mem->idm_alignment = alignment; in i40e_allocate_dma_mem()
/titanic_53/usr/src/lib/libc/i386/gen/
H A Dstrchr.s42 cmp $3, %ecx / check alignment
49 cmp $2, %ecx / check alignment
/titanic_53/usr/src/uts/sun4/vm/
H A Dsfmmu.c526 ndata_extra_base(struct memlist *ndata, size_t alignment, caddr_t endaddr) in ndata_extra_base() argument
540 ASSERT((alignment % ecache_alignsize) == 0); in ndata_extra_base()
547 base = roundup(ndata->ml_address, alignment); in ndata_extra_base()
580 ndata_select_chunk(struct memlist *ndata, size_t wanted, size_t alignment) in ndata_select_chunk() argument
609 base = roundup(frlist->ml_address, alignment); in ndata_select_chunk()
658 ndata_alloc(struct memlist *ndata, size_t wanted, size_t alignment) in ndata_alloc() argument
670 if ((found = ndata_select_chunk(ndata, wanted, alignment)) == NULL) in ndata_alloc()
676 base = roundup(found->ml_address, alignment); in ndata_alloc()
/titanic_53/usr/src/common/mapfiles/common/
H A Dmap.bssalign24 # the segment at 4Mb. This effectively provides an appropriate alignment for
26 # executables. See ppgsz(1). Users are cautioned that an alignment
/titanic_53/usr/src/uts/sun4u/cpu/
H A Dcheetah_copy.s758 bz,pt %ncc, .kcopy_8 ! check for longword alignment
774 bz,pt %ncc, .kcopy_4 ! check for word alignment
942 bz,pt %ncc, .bcopy_8 ! check for longword alignment
958 bz,pt %ncc, .bcopy_4 ! check for word alignment
1007 or %o0, %o1, %o3 ! prepare alignment check
1008 andcc %o3, 0x3, %g0 ! test for alignment
1045 nop ! instruction alignment
1106 xor %o0, %o1, %o3 ! setup alignment check
1118 bz,pt %ncc, .bc_med_long1 ! word alignment
1177 bz,pt %ncc, .bc_med_word1 ! word alignment
[all …]
H A Dopl_olympus_copy.s713 bz,pt %ncc, .kcopy_8 ! check for longword alignment
729 bz,pt %ncc, .kcopy_4 ! check for word alignment
897 bz,pt %ncc, .bcopy_8 ! check for longword alignment
913 bz,pt %ncc, .bcopy_4 ! check for word alignment
962 or %o0, %o1, %o3 ! prepare alignment check
963 andcc %o3, 0x3, %g0 ! test for alignment
996 nop ! instruction alignment
1057 xor %o0, %o1, %o3 ! setup alignment check
1069 bz,pt %ncc, .bc_med_long1 ! word alignment
1128 bz,pt %ncc, .bc_med_word1 ! word alignment
[all …]
/titanic_53/usr/src/lib/libmtmalloc/common/
H A Dmtmalloc.c460 memalign(size_t alignment, size_t size) in memalign() argument
467 if (size == 0 || alignment == 0 || misaligned(alignment) || in memalign()
468 (alignment & (alignment - 1)) != 0) { in memalign()
474 if (alignment <= MTMALLOC_MIN_ALIGN) in memalign()
477 alloc_size = size + alignment - MTMALLOC_MIN_ALIGN; in memalign()
500 if ((offset = (uintptr_t)alloc_buf & (alignment - 1)) == 0) { in memalign()
534 shift = alignment - offset; in memalign()
/titanic_53/usr/src/lib/libc/capabilities/sun4v/common/
H A Dmemcpy.s244 .cpy_dbwdbc: ! alignment of src is needed
262 srl %g1, 3, %o0 ! retsote %o0 value for alignment
263 add %o5, %o0, %o5 ! restore src alignment
269 .dbcopybc: ! alignment of src is not needed
330 .mv_large_align8_copy: ! Src and dst share 8 byte alignment
354 ! Determine source alignment
778 or %o0, %o1, %o4 ! prepare alignment check
779 andcc %o4, 0x3, %o5 ! test for alignment
1745 ! Move bytes according to source alignment
1747 bnz %ncc, .unalignbyte ! check for byte alignment
[all …]
/titanic_53/usr/src/uts/sun4/conf/
H A Dgenalign.s40 ! the booter what alignment we want
/titanic_53/usr/src/uts/common/io/i40e/core/
H A Di40e_alloc.h57 u64 size, u32 alignment);
/titanic_53/usr/src/uts/common/avs/ns/sdbc/
H A Dsd_pcu.h45 int32_t alignment; /* all sections are multiples of this */ member
/titanic_53/usr/src/uts/sun4u/io/pci/
H A Dpci_asm.s63 ! Assumes alignment is correct.
126 ! Assumes alignment is correct and that on_trap handling has been installed
/titanic_53/usr/src/uts/common/io/xge/hal/xgehal/
H A Dxgehal-channel-fp.c270 xge_hal_check_alignment(dma_addr_t dma_pointer, int size, int alignment, in xge_hal_check_alignment() argument
275 misaligned_size = (int)(dma_pointer & (alignment - 1)); in xge_hal_check_alignment()
/titanic_53/usr/src/uts/sun4u/io/px/
H A Dpx_asm_4u.s67 ! Assumes alignment is correct and that on_trap handling has been installed
130 ! Assumes alignment is correct and that on_trap handling has been installed
/titanic_53/usr/src/uts/sun4v/ml/
H A Dwbuf.s58 ! a user alignment trap.
194 ! a user alignment trap.
395 ! a user alignment trap.
/titanic_53/usr/src/lib/libc/sparc/gen/
H A Dstrcmp.s55 ! alignment of the destination string. If it is possible to
/titanic_53/usr/src/uts/common/io/bnxe/
H A Dbnxe_mm.c561 u32_t alignment, in mm_alloc_phys_mem_align_imp() argument
593 dmaAttrib.dma_attr_align = alignment; in mm_alloc_phys_mem_align_imp()
599 size += (alignment - 1); in mm_alloc_phys_mem_align_imp()
600 size &= ~((u32_t)(alignment - 1)); in mm_alloc_phys_mem_align_imp()
602 MEM_LOG(pUM, "*** DMA: %8u (%4d) - %8u", memSize, alignment, size); in mm_alloc_phys_mem_align_imp()
660 (!((u32_t)pBuf % (u32_t)alignment)) ? 1 : 0, in mm_alloc_phys_mem_align_imp()
661 (!((u32_t)pPhysAddr->as_ptr % (u32_t)alignment) ? 1 : 0)); in mm_alloc_phys_mem_align_imp()
/titanic_53/usr/src/lib/libc/capabilities/sun4u-opl/common/
H A Dmemcpy.s142 ! check for src long word alignment
144 andcc %o1, 7, %g0 ! chk src long word alignment
330 ! adjust instruction alignment
332 nop ! icache alignment and performance
341 or %o0, %o1, %o3 ! prepare alignment check
342 andcc %o3, 0x3, %g0 ! test for alignment
378 nop ! affects loop icache alignment
451 andcc %o1, 0x3, %g0 ! test alignment
464 andcc %o1, 0x7, %g0 ! test word alignment
618 ! Then, if large case, o5 is replaced by count for block alignment.
/titanic_53/usr/src/uts/sun4u/ml/
H A Dwbuf.s57 ! a user alignment trap.
191 ! a user alignment trap.
333 ! a user alignment trap.
/titanic_53/usr/src/lib/libc/capabilities/sun4u-us3/common/
H A Dmemcpy.s135 ! check for src long word alignment
137 andcc %o1, 7, %g0 ! chk src long word alignment
353 ! adjust instruction alignment
355 nop ! icache alignment and performance
362 or %o0, %o1, %o3 ! prepare alignment check
363 andcc %o3, 0x3, %g0 ! test for alignment
399 nop ! affects loop icache alignment
470 andcc %o1, 0x3, %g0 ! test alignment
482 andcc %o1, 0x7, %g0 ! test word alignment
635 ! Then, if large case, o5 is replaced by count for block alignment.

1234