| /xsrc/external/mit/MesaLib/dist/src/util/ |
| H A D | os_memory_aligned.h | 30 * Memory alignment wrappers. 54 os_malloc_aligned(size_t size, size_t alignment) argument 57 alignment = (alignment + sizeof(void*) - 1) & ~(sizeof(void*) - 1); 58 if(posix_memalign(&ptr, alignment, size) != 0) 68 * Return memory on given byte alignment 71 os_malloc_aligned(size_t size, size_t alignment) argument 79 * alloc_size = size + alignment + sizeof(void *) 83 if (add_overflow_size_t(size, alignment, &alloc_size) || 92 buf = (char *)(((uintptr_t)ptr + sizeof(void *) + alignment 118 os_realloc_aligned(void * ptr,size_t oldsize,size_t newsize,size_t alignment) argument [all...] |
| H A D | os_memory_fd.h | 44 * Return memory on given byte alignment 47 os_malloc_aligned_fd(size_t size, size_t alignment, int *fd, char const *fd_name, char const *driver_id);
|
| H A D | u_math.h | 634 * Align a value up to an alignment value 636 * If \c value is not already aligned to the requested alignment value, it 640 * \param alignment Alignment value to be used. This must be a power of two. 649 ALIGN(uintptr_t value, int32_t alignment) argument 651 assert(util_is_power_of_two_nonzero(alignment)); 652 return (((value) + (alignment) - 1) & ~((alignment) - 1)); 656 * Like ALIGN(), but works with a non-power-of-two alignment. 659 ALIGN_NPOT(uintptr_t value, int32_t alignment) argument 661 assert(alignment > 677 ROUND_DOWN_TO(uint64_t value,int32_t alignment) argument 687 align(int value,int alignment) argument 693 align64(uint64_t value,unsigned alignment) argument 702 util_align_npot(size_t value,size_t alignment) argument [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/mesa/main/ |
| H A D | imports.c | 75 * \param alignment alignment (must be greater than zero). 78 * alignment and to record the real malloc address. 83 _mesa_align_malloc(size_t bytes, unsigned long alignment) argument 87 int err = posix_memalign(& mem, alignment, bytes); 92 return _aligned_malloc(bytes, alignment); 96 assert( alignment > 0 ); 98 ptr = (uintptr_t)malloc(bytes + alignment + sizeof(void *)); 102 buf = (ptr + alignment + sizeof(void *)) & ~(uintptr_t)(alignment 122 _mesa_align_calloc(size_t bytes,unsigned long alignment) argument 195 _mesa_align_realloc(void * oldBuffer,size_t oldSize,size_t newSize,unsigned long alignment) argument [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/util/ |
| H A D | os_memory_aligned.h | 30 * Memory alignment wrappers. 56 * Return memory on given byte alignment 59 os_malloc_aligned(size_t size, size_t alignment) argument 67 * alloc_size = size + alignment + sizeof(void *) 71 if (add_overflow_size_t(size, alignment, &alloc_size) || 80 buf = (char *)(((uintptr_t)ptr + sizeof(void *) + alignment - 1) & ~((uintptr_t)(alignment - 1)));
|
| H A D | os_memory_stdc.h | 54 os_malloc_aligned(size_t size, size_t alignment) argument 57 alignment = (alignment + sizeof(void*) - 1) & ~(sizeof(void*) - 1); 58 if(posix_memalign(&ptr, alignment, size) != 0)
|
| H A D | os_memory.h | 61 os_malloc_aligned(size_t size, size_t alignment);
|
| H A D | vma.h | 44 uint64_t size, uint64_t alignment);
|
| /xsrc/external/mit/MesaLib/dist/src/vulkan/util/ |
| H A D | vk_alloc.c | 22 size_t alignment, 25 assert(MAX_ALIGN % alignment == 0); 33 size_t alignment, 36 assert(MAX_ALIGN % alignment == 0); 20 vk_default_alloc(void * pUserData,size_t size,size_t alignment,VkSystemAllocationScope allocationScope) argument 30 vk_default_realloc(void * pUserData,void * pOriginal,size_t size,size_t alignment,VkSystemAllocationScope allocationScope) argument
|
| /xsrc/external/mit/libdrm/dist/tests/radeon/ |
| H A D | rbo.h | 38 unsigned alignment; member in struct:rbo 43 unsigned alignment, void *ptr);
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a3xx/ |
| H A D | fd3_resource.c | 29 setup_slices(struct fd_resource *rsc, uint32_t alignment, argument 39 /* 32 pixel alignment */ 64 slice->size0 = align(nblocksy * pitch, alignment); 65 else if (level == 0 || alignment == 1) 66 slice->size0 = align(nblocksy * pitch, alignment); 79 uint32_t alignment; local in function:fd3_setup_slices 85 alignment = 4096; 88 alignment = 1; 92 return setup_slices(rsc, alignment, rsc->b.b.format);
|
| /xsrc/external/mit/MesaLib/dist/src/asahi/lib/ |
| H A D | pool.c | 82 agx_pool_alloc_aligned(struct agx_pool *pool, size_t sz, unsigned alignment) argument 84 alignment = MAX2(alignment, 4096); 85 assert(alignment == util_next_power_of_two(alignment)); 89 unsigned offset = ALIGN_POT(pool->transient_offset, alignment); 115 agx_pool_upload_aligned(struct agx_pool *pool, const void *data, size_t sz, unsigned alignment) argument 117 alignment = MAX2(alignment, 4096); 118 struct agx_ptr transfer = agx_pool_alloc_aligned(pool, sz, alignment); [all...] |
| /xsrc/external/mit/libdrm/dist/ |
| H A D | util_math.h | 33 #define ALIGN(value, alignment) __align_mask(value, (__typeof__(value))((alignment) - 1))
|
| /xsrc/external/mit/xf86-video-openchrome/dist/src/ |
| H A D | via_memmgr.h | 48 int format, unsigned int alignment, int domain); 50 drm_bo_alloc(ScrnInfoPtr pScrn, unsigned int size, unsigned int alignment,
|
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/util/ |
| H A D | u_upload_mgr.h | 99 * \param alignment Alignment of the suballocation within the buffer 107 unsigned alignment, 122 unsigned alignment,
|
| H A D | u_suballoc.h | 46 unsigned alignment, unsigned *out_offset,
|
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/a5xx/ |
| H A D | fd5_resource.c | 47 setup_slices(struct fd_resource *rsc, uint32_t alignment, enum pipe_format format) argument 106 slice->size0 = align(blocks * rsc->cpp, alignment); 107 else if (level == 0 || rsc->layer_first || alignment == 1) 108 slice->size0 = align(blocks * rsc->cpp, alignment); 134 uint32_t alignment; local in function:fd5_setup_slices 139 alignment = 4096; 143 alignment = 1; 147 return setup_slices(rsc, alignment, rsc->base.format);
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/util/ |
| H A D | u_upload_mgr.h | 99 * \param alignment Alignment of the suballocation within the buffer 107 unsigned alignment, 122 unsigned alignment,
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a4xx/ |
| H A D | fd4_resource.c | 42 uint32_t layers_in_level, alignment; local in function:fd4_setup_slices 47 alignment = 4096; 51 alignment = 1; 54 /* 32 pixel alignment */ 73 slice->size0 = align(nblocksy * pitch, alignment);
|
| /xsrc/external/mit/libdrm/dist/intel/ |
| H A D | intel_bufmgr_priv.h | 51 unsigned long size, unsigned int alignment); 62 unsigned int alignment); 213 * \param alignment Required alignment for aperture, in bytes 215 int (*bo_pin) (drm_intel_bo *bo, uint32_t alignment); 321 #define ALIGN(value, alignment) ((value + alignment - 1) & ~(alignment - 1))
|
| /xsrc/external/mit/xorg-server.old/dist/glx/ |
| H A D | indirect_reqsize.c | 73 GLint alignment = *(GLint *) (pc + 16); local in function:__glXBitmapReqSize 80 alignment = bswap_32(alignment); 87 skip_rows, alignment); 153 GLint alignment = *(GLint *) (pc + 16); local in function:__glXPolygonStippleReqSize 158 alignment = bswap_32(alignment); 163 skip_rows, alignment); 187 GLint alignment = *(GLint *) (pc + 16); local in function:__glXTexImage1DReqSize 196 alignment 215 GLint alignment = *(GLint *) (pc + 16); local in function:__glXTexImage2DReqSize 311 GLint alignment = *(GLint *) (pc + 16); local in function:__glXDrawPixelsReqSize 351 GLint alignment = *(GLint *) (pc + 16); local in function:__glXTexSubImage1DReqSize 379 GLint alignment = *(GLint *) (pc + 16); local in function:__glXTexSubImage2DReqSize 409 GLint alignment = *(GLint *) (pc + 16); local in function:__glXColorTableReqSize 451 GLint alignment = *(GLint *) (pc + 16); local in function:__glXColorSubTableReqSize 479 GLint alignment = *(GLint *) (pc + 16); local in function:__glXConvolutionFilter1DReqSize 507 GLint alignment = *(GLint *) (pc + 16); local in function:__glXConvolutionFilter2DReqSize 551 GLint alignment = *(GLint *) (pc + 32); local in function:__glXTexImage3DReqSize 588 GLint alignment = *(GLint *) (pc + 32); local in function:__glXTexSubImage3DReqSize [all...] |
| /xsrc/external/mit/xorg-server/dist/glx/ |
| H A D | indirect_reqsize.c | 71 GLint alignment = *(GLint *) (pc + 16); local in function:__glXBitmapReqSize 78 alignment = bswap_32(alignment); 85 skip_rows, alignment); 151 GLint alignment = *(GLint *) (pc + 16); local in function:__glXPolygonStippleReqSize 156 alignment = bswap_32(alignment); 161 skip_rows, alignment); 185 GLint alignment = *(GLint *) (pc + 16); local in function:__glXTexImage1DReqSize 194 alignment 213 GLint alignment = *(GLint *) (pc + 16); local in function:__glXTexImage2DReqSize 309 GLint alignment = *(GLint *) (pc + 16); local in function:__glXDrawPixelsReqSize 349 GLint alignment = *(GLint *) (pc + 16); local in function:__glXTexSubImage1DReqSize 377 GLint alignment = *(GLint *) (pc + 16); local in function:__glXTexSubImage2DReqSize 407 GLint alignment = *(GLint *) (pc + 16); local in function:__glXColorTableReqSize 449 GLint alignment = *(GLint *) (pc + 16); local in function:__glXColorSubTableReqSize 477 GLint alignment = *(GLint *) (pc + 16); local in function:__glXConvolutionFilter1DReqSize 505 GLint alignment = *(GLint *) (pc + 16); local in function:__glXConvolutionFilter2DReqSize 549 GLint alignment = *(GLint *) (pc + 32); local in function:__glXTexImage3DReqSize 586 GLint alignment = *(GLint *) (pc + 32); local in function:__glXTexSubImage3DReqSize [all...] |
| H A D | renderpix.c | 53 glPixelStorei(GL_UNPACK_ALIGNMENT, hdr->alignment); 60 hdr->alignment);
|
| /xsrc/external/mit/MesaLib.old/dist/src/mesa/drivers/dri/i965/ |
| H A D | intel_buffer_objects.h | 105 uint32_t alignment, 111 uint32_t alignment,
|
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/state_trackers/xvmc/tests/ |
| H A D | testlib.h | 65 unsigned int align(unsigned int value, unsigned int alignment);
|