Home
last modified time | relevance | path

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

1234567

/hardware/google/gfxstream/guest/mesa/src/util/
Dos_memory_aligned.h54 os_malloc_aligned(size_t size, size_t alignment) in os_malloc_aligned() argument
57 alignment = (alignment + sizeof(void*) - 1) & ~(sizeof(void*) - 1); in os_malloc_aligned()
58 if(posix_memalign(&ptr, alignment, size) != 0) in os_malloc_aligned()
71 os_malloc_aligned(size_t size, size_t alignment) in os_malloc_aligned() argument
83 if (add_overflow_size_t(size, alignment, &alloc_size) || in os_malloc_aligned()
92 … buf = (char *)(((uintptr_t)ptr + sizeof(void *) + alignment - 1) & ~((uintptr_t)(alignment - 1))); in os_malloc_aligned()
118 os_realloc_aligned(void *ptr, size_t oldsize, size_t newsize, size_t alignment) in os_realloc_aligned() argument
121 void *newBuf = os_malloc_aligned(newsize, alignment); in os_realloc_aligned()
Du_math.h657 ALIGN(uintptr_t value, int32_t alignment) in ALIGN() argument
659 assert(util_is_power_of_two_nonzero(alignment)); in ALIGN()
660 return ALIGN_POT(value, alignment); in ALIGN()
667 ALIGN_NPOT(uintptr_t value, int32_t alignment) in ALIGN_NPOT() argument
669 assert(alignment > 0); in ALIGN_NPOT()
670 return (value + alignment - 1) / alignment * alignment; in ALIGN_NPOT()
685 ROUND_DOWN_TO(uint64_t value, uint32_t alignment) in ROUND_DOWN_TO() argument
687 assert(util_is_power_of_two_nonzero(alignment)); in ROUND_DOWN_TO()
688 return ((value) & ~(uint64_t)(alignment - 1)); in ROUND_DOWN_TO()
695 align(uint32_t value, uint32_t alignment) in align() argument
[all …]
Du_pointer.h85 align_pointer( const void *unaligned, uintptr_t alignment ) in align_pointer() argument
87 uintptr_t aligned = (pointer_to_uintptr( unaligned ) + alignment - 1) & ~(alignment - 1); in align_pointer()
Dos_memory_fd.c106 os_malloc_aligned_fd(size_t size, size_t alignment, int *fd, char const *fd_name, char const *drive… in os_malloc_aligned_fd() argument
122 if (add_overflow_size_t(size, alignment, &alloc_size) || in os_malloc_aligned_fd()
147 buf = (char *)(((uintptr_t)ptr + header_size + alignment - 1) & ~((uintptr_t)(alignment - 1))); in os_malloc_aligned_fd()
Dvma.c158 uint64_t size, uint64_t alignment) in util_vma_heap_alloc() argument
162 assert(alignment > 0); in util_vma_heap_alloc()
170 assert(ALIGN(BITFIELD64_BIT(heap->nospan_shift), alignment) == in util_vma_heap_alloc()
202 offset = (offset / alignment) * alignment; in util_vma_heap_alloc()
219 uint64_t misalign = offset % alignment; in util_vma_heap_alloc()
221 uint64_t pad = alignment - misalign; in util_vma_heap_alloc()
Du_memory.h66 align_calloc(size_t size, unsigned long alignment) in align_calloc() argument
68 void *ptr = align_malloc(size, alignment); in align_calloc()
Dblob.h134 blob_align(struct blob *blob, size_t alignment);
338 blob_reader_align(struct blob_reader *blob, size_t alignment);
/hardware/interfaces/graphics/mapper/stable-c/abi-dumps/arm64/source-based/
Dlibimapper_stablec_abicheck.so.lsdump5 "alignment" : 4,
13 "alignment" : 1,
25 "alignment" : 1,
35 "alignment" : 1,
45 "alignment" : 16,
53 "alignment" : 1,
63 "alignment" : 4,
72 "alignment" : 4,
82 "alignment" : 8,
91 "alignment" : 8,
[all …]
/hardware/interfaces/graphics/mapper/stable-c/abi-dumps/x86_64/source-based/
Dlibimapper_stablec_abicheck.so.lsdump5 "alignment" : 4,
13 "alignment" : 1,
25 "alignment" : 1,
35 "alignment" : 1,
44 "alignment" : 16,
52 "alignment" : 1,
62 "alignment" : 4,
71 "alignment" : 4,
81 "alignment" : 8,
90 "alignment" : 8,
[all …]
/hardware/interfaces/graphics/mapper/stable-c/abi-dumps/arm_arm64/source-based/
Dlibimapper_stablec_abicheck.so.lsdump5 "alignment" : 4,
13 "alignment" : 1,
25 "alignment" : 1,
35 "alignment" : 1,
45 "alignment" : 8,
53 "alignment" : 1,
63 "alignment" : 4,
72 "alignment" : 4,
88 "alignment" : 8,
97 "alignment" : 8,
[all …]
/hardware/interfaces/graphics/mapper/stable-c/abi-dumps/x86/source-based/
Dlibimapper_stablec_abicheck.so.lsdump5 "alignment" : 4,
13 "alignment" : 1,
25 "alignment" : 1,
35 "alignment" : 1,
44 "alignment" : 4,
52 "alignment" : 1,
62 "alignment" : 4,
71 "alignment" : 4,
87 "alignment" : 4,
96 "alignment" : 4,
[all …]
/hardware/interfaces/graphics/mapper/stable-c/abi-dumps/x86_x86_64/source-based/
Dlibimapper_stablec_abicheck.so.lsdump5 "alignment" : 4,
13 "alignment" : 1,
25 "alignment" : 1,
35 "alignment" : 1,
44 "alignment" : 4,
52 "alignment" : 1,
62 "alignment" : 4,
71 "alignment" : 4,
87 "alignment" : 4,
96 "alignment" : 4,
[all …]
/hardware/interfaces/graphics/mapper/stable-c/abi-dumps/arm/source-based/
Dlibimapper_stablec_abicheck.so.lsdump5 "alignment" : 4,
13 "alignment" : 1,
25 "alignment" : 1,
35 "alignment" : 1,
45 "alignment" : 8,
53 "alignment" : 1,
63 "alignment" : 4,
72 "alignment" : 4,
88 "alignment" : 8,
97 "alignment" : 8,
[all …]
/hardware/google/pixel/pixelstats/
DWirelessChargeStats.cpp87 const int alignment) { in CalculateWirelessChargeMetrics() argument
97 if (alignment_ == 0 || ((alignment >= 0) && (alignment_ > alignment))) { in CalculateWirelessChargeMetrics()
99 alignment_ = alignment; in CalculateWirelessChargeMetrics()
119 const int32_t alignment = buf[6]; in CalculateWirelessChargeStats() local
121 if (alignment >= 0 && alignment < 100) in CalculateWirelessChargeStats()
/hardware/google/gfxstream/guest/mesa/src/vulkan/util/
Dvk_alloc.c22 size_t alignment, in vk_default_alloc() argument
25 assert(MAX_ALIGN % alignment == 0); in vk_default_alloc()
33 size_t alignment, in vk_default_realloc() argument
36 assert(MAX_ALIGN % alignment == 0); in vk_default_realloc()
/hardware/qcom/sm8150/media/mm-video-v4l2/vidc/venc/inc/
Domx_swvenc_mpeg4.h210 unsigned int alignment, stride = 0; in SWVENC_Y_STRIDE() local
218 alignment = 128; in SWVENC_Y_STRIDE()
219 stride = ALIGN(width, alignment); in SWVENC_Y_STRIDE()
229 unsigned int alignment, scanlines = 0; in SWVENC_Y_SCANLINES() local
236 alignment = 32; in SWVENC_Y_SCANLINES()
239 alignment = 64; in SWVENC_Y_SCANLINES()
244 scanlines = ALIGN(height, alignment); in SWVENC_Y_SCANLINES()
250 unsigned int alignment, scanlines = 0; in SWVENC_UV_SCANLINES() local
258 alignment = 16; in SWVENC_UV_SCANLINES()
263 scanlines = ALIGN((height+1)>>1, alignment); in SWVENC_UV_SCANLINES()
/hardware/interfaces/automotive/evs/common/utils/default/
DFormatConvert.cpp28 template<unsigned alignment>
30 static_assert((alignment && !(alignment & (alignment - 1))), in align()
33 unsigned mask = alignment - 1; in align()
/hardware/google/aemu/host-common/
Daddress_space_host_memory_allocator.cpp25 size_t align(size_t value, size_t alignment) { in align() argument
26 return (value + alignment - 1) & (~(alignment - 1)); in align()
/hardware/qcom/display/msm8909/gralloc/
Dgr_utils.cpp293 unsigned int alignment = 4096; in GetYuvUbwcSPPlaneInfo() local
297 y_meta_size = ALIGN((y_meta_stride * y_meta_height), alignment); in GetYuvUbwcSPPlaneInfo()
301 y_size = ALIGN((y_stride * y_height), alignment); in GetYuvUbwcSPPlaneInfo()
305 c_meta_size = ALIGN((c_meta_stride * c_meta_height), alignment); in GetYuvUbwcSPPlaneInfo()
317 unsigned int alignment = 4096; in GetYuvUbwcInterlacedSPPlaneInfo() local
327 uv_size = ALIGN((uv_stride * uv_height), alignment); in GetYuvUbwcInterlacedSPPlaneInfo()
705 unsigned int alignment = 32; in GetAlignedWidthAndHeight() local
714 alignment = AdrenoMemInfo::GetInstance()->GetGpuPixelAlignment(); in GetAlignedWidthAndHeight()
715 aligned_w = ALIGN(width, alignment); in GetAlignedWidthAndHeight()
718 aligned_w = ALIGN(width, alignment); in GetAlignedWidthAndHeight()
/hardware/qcom/display/msm8909w_3100/libgralloc1/
Dgr_utils.cpp293 unsigned int alignment = 4096; in GetYuvUbwcSPPlaneInfo() local
297 y_meta_size = ALIGN((y_meta_stride * y_meta_height), alignment); in GetYuvUbwcSPPlaneInfo()
301 y_size = ALIGN((y_stride * y_height), alignment); in GetYuvUbwcSPPlaneInfo()
305 c_meta_size = ALIGN((c_meta_stride * c_meta_height), alignment); in GetYuvUbwcSPPlaneInfo()
317 unsigned int alignment = 4096; in GetYuvUbwcInterlacedSPPlaneInfo() local
327 uv_size = ALIGN((uv_stride * uv_height), alignment); in GetYuvUbwcInterlacedSPPlaneInfo()
705 unsigned int alignment = 32; in GetAlignedWidthAndHeight() local
714 alignment = AdrenoMemInfo::GetInstance()->GetGpuPixelAlignment(); in GetAlignedWidthAndHeight()
715 aligned_w = ALIGN(width, alignment); in GetAlignedWidthAndHeight()
718 aligned_w = ALIGN(width, alignment); in GetAlignedWidthAndHeight()
/hardware/qcom/sm7250/display/gralloc/
Dgr_camera_info.h131 int GetPlaneAlignment(int format, int plane_type, unsigned int *alignment);
139 int GetPlaneStartAddressAlignment(int format, int plane_type, int *alignment);
197 unsigned int *alignment) = nullptr;
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/appendices/
DVK_EXT_texel_buffer_alignment.adoc20 This extension adds more expressive alignment requirements for uniform and
22 Some implementations have single texel alignment requirements that cannot be
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/venc/inc/
Dvideo_encoder_device_copper.h55 unsigned long alignment; member
204 int alignment; member
255 OMX_U32 pmem_allocate(OMX_U32 size, OMX_U32 alignment, OMX_U32 count);
/hardware/libhardware/modules/gralloc/
Dgralloc.cpp198 inline size_t align(size_t value, size_t alignment) in align() argument
200 return ((value + alignment - 1) / alignment) * alignment; in align()
/hardware/google/camera/devices/EmulatedCamera/hwl/
DEmulatedRequestProcessor.h114 static uint32_t inline AlignTo(uint32_t value, uint32_t alignment) { in AlignTo() argument
115 uint32_t delta = value % alignment; in AlignTo()
116 return (delta == 0) ? value : (value + (alignment - delta)); in AlignTo()

1234567