Home
last modified time | relevance | path

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

1234567

/hardware/libhardware/tests/hardware/
Dstruct-last.cpp27 #define GET_PADDING(align, size) (((align) - ((size) % (align))) % (align)) argument
/hardware/intel/img/hwcomposer/moorefield_hdmi/ips/common/
DWsbm.cpp57 bool Wsbm::allocateTTMBuffer(uint32_t size, uint32_t align, void ** buf) in allocateTTMBuffer() argument
59 int ret = psbWsbmAllocateTTMBuffer(size, align, buf); in allocateTTMBuffer()
68 bool Wsbm::allocateTTMBufferUB(uint32_t size, uint32_t align, void ** buf, void *user_pt) in allocateTTMBufferUB() argument
70 int ret = psbWsbmAllocateFromUB(size, align, buf, user_pt); in allocateTTMBufferUB()
DWsbmWrapper.c36 static inline uint32_t align_to(uint32_t arg, uint32_t align) in align_to() argument
38 return ((arg + (align - 1)) & (~(align - 1))); in align_to()
158 int psbWsbmAllocateFromUB(uint32_t size, uint32_t align, void ** buf, void *user_pt) in psbWsbmAllocateFromUB() argument
172 ret = wsbmGenBuffers(mainPool, 1, &wsbmBuf, align, in psbWsbmAllocateFromUB()
196 int psbWsbmAllocateTTMBuffer(uint32_t size, uint32_t align, void ** buf) in psbWsbmAllocateTTMBuffer() argument
210 ret = wsbmGenBuffers(mainPool, 1, &wsbmBuf, align, in psbWsbmAllocateTTMBuffer()
DWsbm.h34 bool allocateTTMBuffer(uint32_t size, uint32_t align,void ** buf);
35 bool allocateTTMBufferUB(uint32_t size, uint32_t align, void ** buf, void *user_pt);
DWsbmWrapper.h25 extern int psbWsbmAllocateFromUB(uint32_t size, uint32_t align, void ** buf, void *user_pt);
26 extern int psbWsbmAllocateTTMBuffer(uint32_t size, uint32_t align,void ** buf);
/hardware/intel/img/hwcomposer/merrifield/ips/common/
DWsbm.cpp57 bool Wsbm::allocateTTMBuffer(uint32_t size, uint32_t align, void ** buf) in allocateTTMBuffer() argument
59 int ret = psbWsbmAllocateTTMBuffer(size, align, buf); in allocateTTMBuffer()
68 bool Wsbm::allocateTTMBufferUB(uint32_t size, uint32_t align, void ** buf, void *user_pt) in allocateTTMBufferUB() argument
70 int ret = psbWsbmAllocateFromUB(size, align, buf, user_pt); in allocateTTMBufferUB()
DWsbmWrapper.c35 static inline uint32_t align_to(uint32_t arg, uint32_t align) in align_to() argument
37 return ((arg + (align - 1)) & (~(align - 1))); in align_to()
156 int psbWsbmAllocateFromUB(uint32_t size, uint32_t align, void ** buf, void *user_pt) in psbWsbmAllocateFromUB() argument
171 ret = wsbmGenBuffers(mainPool, 1, &wsbmBuf, align, in psbWsbmAllocateFromUB()
195 int psbWsbmAllocateTTMBuffer(uint32_t size, uint32_t align, void ** buf) in psbWsbmAllocateTTMBuffer() argument
210 ret = wsbmGenBuffers(mainPool, 1, &wsbmBuf, align, in psbWsbmAllocateTTMBuffer()
DWsbm.h34 bool allocateTTMBuffer(uint32_t size, uint32_t align,void ** buf);
35 bool allocateTTMBufferUB(uint32_t size, uint32_t align, void ** buf, void *user_pt);
DWsbmWrapper.h25 extern int psbWsbmAllocateFromUB(uint32_t size, uint32_t align, void ** buf, void *user_pt);
26 extern int psbWsbmAllocateTTMBuffer(uint32_t size, uint32_t align,void ** buf);
/hardware/qcom/display/msm8996/libgralloc1/
Dgr_utils.h48 inline Type1 ALIGN(Type1 x, Type2 align) { in ALIGN() argument
49 return (Type1)((x + (Type1)align - 1) & ~((Type1)align - 1)); in ALIGN()
/hardware/qcom/display/msm8998/libgralloc1/
Dgr_utils.h48 inline Type1 ALIGN(Type1 x, Type2 align) { in ALIGN() argument
49 return (Type1)((x + (Type1)align - 1) & ~((Type1)align - 1)); in ALIGN()
/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/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 int ret = ion_alloc(ionFd, size, align, heapMask, flags, &buffer); in Alloc()
218 ionFd, size, align, heapMask, flags, ret, buffer); in Alloc()
401 C2AllocationIon::C2AllocationIon(int ionFd, size_t size, size_t align, in C2AllocationIon() argument
404 mImpl(Impl::Alloc(ionFd, size, align, heapMask, flags, id)) { } in C2AllocationIon()
468 C2MemoryUsage usage, size_t capacity, size_t *align, unsigned *heapMask, unsigned *flags) { in mapUsage() argument
477 res = mUsageMapper(usage, capacity, align, heapMask, flags); in mapUsage()
479 *align = 0; // TODO make this 1 in mapUsage()
485 MapperValue value = std::make_tuple(*align, *heapMask, *flags, res); in mapUsage()
[all …]
/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/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/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/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/intel/img/hwcomposer/moorefield_hdmi/include/
DDataBuffer.h106 static inline uint32_t align_to(uint32_t arg, uint32_t align) in align_to() argument
108 return ((arg + (align - 1)) & (~(align - 1))); in align_to()
/hardware/intel/img/hwcomposer/merrifield/include/
DDataBuffer.h106 static inline uint32_t align_to(uint32_t arg, uint32_t align) in align_to() argument
108 return ((arg + (align - 1)) & (~(align - 1))); in align_to()
/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/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/interfaces/automotive/evs/1.0/vts/functional/
DFormatConvert.cpp24 int align(int value) { in align() function
69 unsigned strideLum = align<16>(width); in copyNV21toRGB32()
101 unsigned strideLum = align<16>(width); in copyYV12toRGB32()
103 unsigned strideColor = align<16>(strideLum/2); in copyYV12toRGB32()

1234567