Home
last modified time | relevance | path

Searched refs:align (Results 1 – 25 of 171) sorted by relevance

1234567

/hardware/libhardware/tests/hardware/
Dstruct-last.cpp27 #define GET_PADDING(align, size) (((align) - ((size) % (align))) % (align)) argument
/hardware/qcom/display/msm8998/libgralloc1/
Dgr_utils.h49 inline Type1 ALIGN(Type1 x, Type2 align) { in ALIGN() argument
50 return (Type1)((x + (Type1)align - 1) & ~((Type1)align - 1)); in ALIGN()
/hardware/qcom/display/msm8996/libgralloc1/
Dgr_utils.h49 inline Type1 ALIGN(Type1 x, Type2 align) { in ALIGN() argument
50 return (Type1)((x + (Type1)align - 1) & ~((Type1)align - 1)); in ALIGN()
/hardware/google/av/codec2/vndk/
DC2AllocatorIon.cpp136 …C2AllocationIon(int ionFd, size_t size, size_t align, unsigned heapMask, unsigned flags, C2Allocat…
212 …static Impl *Alloc(int ionFd, size_t size, size_t align, unsigned heapMask, unsigned flags, C2Allo… in Alloc() argument
215 size_t alignedSize = align == 0 ? size : (size + align - 1) & ~(align - 1); in Alloc()
216 int ret = ion_alloc(ionFd, alignedSize, align, heapMask, flags, &buffer); in Alloc()
219 ionFd, alignedSize, align, heapMask, flags, ret, buffer); in Alloc()
402 C2AllocationIon::C2AllocationIon(int ionFd, size_t size, size_t align, in C2AllocationIon() argument
405 mImpl(Impl::Alloc(ionFd, size, align, heapMask, flags, id)) { } in C2AllocationIon()
469 C2MemoryUsage usage, size_t capacity, size_t *align, unsigned *heapMask, unsigned *flags) { in mapUsage() argument
478 res = mUsageMapper(usage, capacity, align, heapMask, flags); in mapUsage()
480 *align = 0; // TODO make this 1 in mapUsage()
[all …]
/hardware/qcom/display/msm8998/sdm/libs/hwc2/
Dhwc_buffer_allocator.h42 inline Type ALIGN(Type x, Type align) { in ALIGN() argument
43 return (x + align - 1) & ~(align - 1); in ALIGN()
/hardware/qcom/display/msm8996/sdm/libs/hwc2/
Dhwc_buffer_allocator.h42 inline Type ALIGN(Type x, Type align) { in ALIGN() argument
43 return (x + align - 1) & ~(align - 1); in ALIGN()
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc2/
Dhwc_buffer_allocator.h42 inline Type ALIGN(Type x, Type align) { in ALIGN() argument
43 return (x + align - 1) & ~(align - 1); in ALIGN()
/hardware/qcom/sdm845/display/sdm/libs/hwc2/
Dhwc_buffer_allocator.h45 inline Type ALIGN(Type x, Type align) { in ALIGN() argument
46 return (x + align - 1) & ~(align - 1); in ALIGN()
/hardware/qcom/display/msm8909/sdm/libs/hwc2/
Dhwc_buffer_allocator.h42 inline Type ALIGN(Type x, Type align) { in ALIGN() argument
43 return (x + align - 1) & ~(align - 1); in ALIGN()
/hardware/qcom/display/msm8996/sdm/libs/hwc/
Dhwc_buffer_allocator.cpp70 data.align = SECURE_ALIGN; in AllocateBuffer()
72 data.align = UINT32(getpagesize()); in AllocateBuffer()
90 buffer_size = ROUND_UP(buffer_size, data.align) * buffer_config.buffer_count; in AllocateBuffer()
154 uint32_t align = UINT32(getpagesize()); in GetBufferSize() local
167 align = SECURE_ALIGN; in GetBufferSize()
184 buffer_size = ROUND_UP(buffer_size, align) * buffer_config.buffer_count; in GetBufferSize()
/hardware/qcom/display/msm8960/libgralloc/
Dgr.h41 inline size_t ALIGN(size_t x, size_t align) { in ALIGN() argument
42 return (x + align-1) & ~(align-1); in ALIGN()
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc/
Dhwc_buffer_allocator.cpp70 data.align = SZ_2M; in AllocateBuffer()
74 data.align = SECURE_ALIGN; in AllocateBuffer()
76 data.align = UINT32(getpagesize()); in AllocateBuffer()
94 buffer_size = ROUND_UP(buffer_size, data.align) * buffer_config.buffer_count; in AllocateBuffer()
162 uint32_t align = UINT32(getpagesize()); in GetBufferSize() local
175 align = SZ_2M; in GetBufferSize()
179 align = SECURE_ALIGN; in GetBufferSize()
196 buffer_size = ROUND_UP(buffer_size, align) * buffer_config.buffer_count; in GetBufferSize()
/hardware/qcom/display/msm8909/sdm/libs/hwc/
Dhwc_buffer_allocator.cpp70 data.align = SZ_2M; in AllocateBuffer()
74 data.align = SECURE_ALIGN; in AllocateBuffer()
76 data.align = UINT32(getpagesize()); in AllocateBuffer()
94 buffer_size = ROUND_UP(buffer_size, data.align) * buffer_config.buffer_count; in AllocateBuffer()
162 uint32_t align = UINT32(getpagesize()); in GetBufferSize() local
175 align = SZ_2M; in GetBufferSize()
179 align = SECURE_ALIGN; in GetBufferSize()
196 buffer_size = ROUND_UP(buffer_size, align) * buffer_config.buffer_count; in GetBufferSize()
/hardware/qcom/msm8960/original-kernel-headers/linux/
Dion.h187 size_t align, unsigned int heap_mask,
301 int domain_num, int partition_num, unsigned long align,
405 size_t len, size_t align, in ion_alloc() argument
455 int partition_num, unsigned long align, in ion_map_iommu() argument
515 size_t align; member
/hardware/qcom/display/msm8226/libgralloc/
Dgr.h41 inline Type ALIGN(Type x, Type align) { in ALIGN() argument
42 return (x + align-1) & ~(align-1); in ALIGN()
/hardware/qcom/display/msm8994/liboverlay/
DoverlayMem.h132 mBufSzAligned = utils::align(bufSz, SIZE_1M); in open()
133 data.align = SIZE_1M; in open()
136 data.align = getpagesize(); in open()
/hardware/qcom/display/msm8909w_3100/libgralloc1/
Dgr_utils.h59 inline Type1 ALIGN(Type1 x, Type2 align) { in ALIGN() argument
60 return (Type1)((x + (Type1)align - 1) & ~((Type1)align - 1)); in ALIGN()
/hardware/qcom/display/msm8084/libgralloc/
Dgr.h41 inline Type ALIGN(Type x, Type align) { in ALIGN() argument
42 return (x + align-1) & ~(align-1); in ALIGN()
/hardware/qcom/display/msm8226/liboverlay/
DoverlayMem.h132 mBufSzAligned = utils::align(bufSz, SIZE_1M); in open()
133 data.align = SIZE_1M; in open()
136 data.align = getpagesize(); in open()
/hardware/qcom/display/msm8909/gralloc/
Dgr_utils.h59 inline Type1 ALIGN(Type1 x, Type2 align) { in ALIGN() argument
60 return (Type1)((x + (Type1)align - 1) & ~((Type1)align - 1)); in ALIGN()
/hardware/qcom/display/msm8994/libgralloc/
Dgr.h42 inline Type ALIGN(Type x, Type align) { in ALIGN() argument
43 return (x + align-1) & ~(align-1); in ALIGN()
/hardware/interfaces/automotive/evs/1.0/vts/functional/
DFormatConvert.cpp24 int align(int value) { in align() function
78 unsigned strideLum = align<16>(width); in copyNV21toRGB32()
111 unsigned strideLum = align<16>(width); in copyYV12toRGB32()
113 unsigned strideColor = align<16>(strideLum/2); in copyYV12toRGB32()
/hardware/qcom/display/msm8996/libgralloc/
Dgr.h42 inline Type ALIGN(Type x, Type align) { in ALIGN() argument
43 return (x + align-1) & ~(align-1); in ALIGN()
/hardware/qcom/display/msm8909/libgralloc/
Dgr.h43 inline Type ALIGN(Type x, Type align) { in ALIGN() argument
44 return (x + align-1) & ~(align-1); in ALIGN()
/hardware/qcom/display/msm8909w_3100/libgralloc/
Dgr.h43 inline Type ALIGN(Type x, Type align) { in ALIGN() argument
44 return (x + align-1) & ~(align-1); in ALIGN()

1234567