/hardware/msm7k/libgralloc-qsd8k/ |
D | allocator.cpp | 30 SimpleBestFitAllocator::SimpleBestFitAllocator(size_t size) in SimpleBestFitAllocator() argument 33 setSize(size); in SimpleBestFitAllocator() 43 ssize_t SimpleBestFitAllocator::setSize(size_t size) in setSize() argument 48 mHeapSize = ((size + pagesize-1) & ~(pagesize-1)); in setSize() 51 return size; in setSize() 55 size_t SimpleBestFitAllocator::size() const in size() function in SimpleBestFitAllocator 60 ssize_t SimpleBestFitAllocator::allocate(size_t size, uint32_t flags) in allocate() argument 64 ssize_t offset = alloc(size, flags); in allocate() 79 ssize_t SimpleBestFitAllocator::alloc(size_t size, uint32_t flags) in alloc() argument 81 if (size == 0) { in alloc() [all …]
|
D | pmemalloc.cpp | 89 size_t size = 0; in init_pmem_area_locked() local 90 err = deps.getPmemTotalSize(fd, &size); in init_pmem_area_locked() 94 size = 8<<20; // 8 MiB in init_pmem_area_locked() 96 allocator.setSize(size); in init_pmem_area_locked() 98 void* base = deps.mmap(0, size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, in init_pmem_area_locked() 145 int PmemUserspaceAllocator::alloc_pmem_buffer(size_t size, int usage, in alloc_pmem_buffer() argument 152 int offset = allocator.allocate(size); in alloc_pmem_buffer() 172 err = deps.mapPmem(fd, offset, size); in alloc_pmem_buffer() 182 ALOGV("%s: mapped fd %d at offset %d, size %d", pmemdev, fd, offset, size); in alloc_pmem_buffer() 183 memset((char*)base + offset, 0, size); in alloc_pmem_buffer() [all …]
|
D | gpu.cpp | 44 int gpu_context_t::gralloc_alloc_framebuffer_locked(size_t size, int usage, in gralloc_alloc_framebuffer_locked() argument 82 private_handle_t* hnd = new private_handle_t(dup(m->framebuffer->fd), size, in gralloc_alloc_framebuffer_locked() 103 int gpu_context_t::gralloc_alloc_framebuffer(size_t size, int usage, in gralloc_alloc_framebuffer() argument 108 int err = gralloc_alloc_framebuffer_locked(size, usage, pHandle); in gralloc_alloc_framebuffer() 114 int gpu_context_t::gralloc_alloc_buffer(size_t size, int usage, buffer_handle_t* pHandle) in gralloc_alloc_buffer() argument 125 size = roundUpToPageSize(size); in gralloc_alloc_buffer() 165 err = pma->alloc_pmem_buffer(size, usage, &base, &offset, &fd); in gralloc_alloc_buffer() 179 fd = deps.ashmem_create_region("gralloc-buffer", size); in gralloc_alloc_buffer() 187 private_handle_t* hnd = new private_handle_t(fd, size, flags); in gralloc_alloc_buffer() 208 size_t size, alignedw, alignedh; in alloc_impl() local [all …]
|
D | pmemalloc.h | 38 virtual int alloc_pmem_buffer(size_t size, int usage, void** pBase, 40 virtual int free_pmem_buffer(size_t size, void* base, int offset, int fd) = 0; 59 virtual ssize_t setSize(size_t size) = 0; 60 virtual size_t size() const = 0; 61 virtual ssize_t allocate(size_t size, uint32_t flags = 0) = 0; 68 virtual size_t getPmemTotalSize(int fd, size_t* size) = 0; 70 virtual int mapPmem(int fd, int offset, size_t size) = 0; 71 virtual int unmapPmem(int fd, int offset, size_t size) = 0; 91 virtual int alloc_pmem_buffer(size_t size, int usage, void** pBase, 93 virtual int free_pmem_buffer(size_t size, void* base, int offset, int fd); [all …]
|
D | allocator.h | 100 SimpleBestFitAllocator(size_t size); 103 virtual ssize_t setSize(size_t size); 105 virtual ssize_t allocate(size_t size, uint32_t flags = 0); 107 virtual size_t size() const; 111 chunk_t(size_t start, size_t size) in chunk_t() 112 : start(start), size(size), free(1), prev(0), next(0) { in chunk_t() 115 size_t size : 28; member 121 ssize_t alloc(size_t size, uint32_t flags);
|
/hardware/msm7k/libgralloc/ |
D | allocator.cpp | 30 SimpleBestFitAllocator::SimpleBestFitAllocator(size_t size) in SimpleBestFitAllocator() argument 33 setSize(size); in SimpleBestFitAllocator() 43 ssize_t SimpleBestFitAllocator::setSize(size_t size) in setSize() argument 48 mHeapSize = ((size + pagesize-1) & ~(pagesize-1)); in setSize() 51 return size; in setSize() 55 size_t SimpleBestFitAllocator::size() const in size() function in SimpleBestFitAllocator 60 ssize_t SimpleBestFitAllocator::allocate(size_t size, uint32_t flags) in allocate() argument 64 ssize_t offset = alloc(size, flags); in allocate() 79 ssize_t SimpleBestFitAllocator::alloc(size_t size, uint32_t flags) in alloc() argument 81 if (size == 0) { in alloc() [all …]
|
D | gralloc.cpp | 62 size_t size, int usage, buffer_handle_t* pHandle); 129 size_t size, int usage, buffer_handle_t* pHandle) in gralloc_alloc_framebuffer_locked() argument 162 private_handle_t* hnd = new private_handle_t(dup(m->framebuffer->fd), size, in gralloc_alloc_framebuffer_locked() 183 size_t size, int usage, buffer_handle_t* pHandle) in gralloc_alloc_framebuffer() argument 188 int err = gralloc_alloc_framebuffer_locked(dev, size, usage, pHandle); in gralloc_alloc_framebuffer() 200 size_t size; in init_pmem_area_locked() local 204 size = 8<<20; // 8 MiB in init_pmem_area_locked() 206 size = region.len; in init_pmem_area_locked() 208 sAllocator.setSize(size); in init_pmem_area_locked() 210 void* base = mmap(0, size, in init_pmem_area_locked() [all …]
|
D | allocator.h | 99 SimpleBestFitAllocator(size_t size); 102 ssize_t setSize(size_t size); 104 ssize_t allocate(size_t size, uint32_t flags = 0); 106 size_t size() const; 110 chunk_t(size_t start, size_t size) in chunk_t() 111 : start(start), size(size), free(1), prev(0), next(0) { in chunk_t() 114 size_t size : 28; member 120 ssize_t alloc(size_t size, uint32_t flags);
|
/hardware/ti/omap4xxx/domx/domx/omx_rpc/inc/ |
D | omx_rpc_skel.h | 72 RPC_OMX_ERRORTYPE RPC_SKEL_GetHandle(uint32_t size, uint32_t * data); 73 RPC_OMX_ERRORTYPE RPC_SKEL_SetParameter(uint32_t size, 75 RPC_OMX_ERRORTYPE RPC_SKEL_GetParameter(uint32_t size, 77 RPC_OMX_ERRORTYPE RPC_SKEL_FreeHandle(uint32_t size, uint32_t * data); 78 RPC_OMX_ERRORTYPE RPC_SKEL_EmptyThisBuffer(uint32_t size, 80 RPC_OMX_ERRORTYPE RPC_SKEL_FillThisBuffer(uint32_t size, 82 RPC_OMX_ERRORTYPE RPC_SKEL_UseBuffer(uint32_t size, uint32_t * data); 83 RPC_OMX_ERRORTYPE RPC_SKEL_FreeBuffer(uint32_t size, uint32_t * data); 84 RPC_OMX_ERRORTYPE RPC_SKEL_SetConfig(uint32_t size, uint32_t * data); 85 RPC_OMX_ERRORTYPE RPC_SKEL_GetConfig(uint32_t size, uint32_t * data); [all …]
|
/hardware/invensense/libsensors_iio/software/core/mllite/ |
D | storage_manager.c | 34 long size; member 67 … inv_error_t (*save_func)(unsigned char *data), size_t size, unsigned int key) in inv_register_load_store() argument 82 ds.hd[ds.num].size = size; in inv_register_load_store() 85 ds.total_size += size + sizeof(struct data_header_t); in inv_register_load_store() 95 inv_error_t inv_get_mpl_state_size(size_t *size) in inv_get_mpl_state_size() argument 97 *size = ds.total_size; in inv_get_mpl_state_size() 135 len = MIN(hd->size, len); in inv_load_mpl_states() 136 len = hd->size; in inv_load_mpl_states() 148 if (entry >= 0 && len >= hd->size) { in inv_load_mpl_states() 149 if (hd->size == ds.hd[entry].size) { in inv_load_mpl_states() [all …]
|
/hardware/msm7k/libgralloc-qsd8k/tests/ |
D | pmemalloc_test.cpp | 30 virtual size_t getPmemTotalSize(int fd, size_t* size) { in getPmemTotalSize() argument 38 virtual int mapPmem(int fd, int offset, size_t size) { in mapPmem() argument 42 virtual int unmapPmem(int fd, int offset, size_t size) { in unmapPmem() argument 71 virtual ssize_t setSize(size_t size) { in setSize() argument 75 virtual size_t size() const { in size() function in AllocatorStub 79 virtual ssize_t allocate(size_t size, uint32_t flags = 0) { in allocate() argument 103 virtual size_t getPmemTotalSize(int fd, size_t* size) { in getPmemTotalSize() 105 *size = 16 << 20; in getPmemTotalSize() 119 virtual ssize_t setSize(size_t size) { in setSize() 120 EXPECT_EQ(size_t(16 << 20), size); in setSize() [all …]
|
/hardware/ti/omap4xxx/ |
D | heaptracker.c | 26 extern void *__real_malloc(size_t size); 27 extern void *__real_realloc(void *ptr, size_t size); 28 extern void *__real_calloc(int nmemb, int size); 52 size_t size; member 62 return (struct ftr *)(((char *)(hdr + 1)) + hdr->size); in to_ftr() 186 static inline void add(struct hdr *hdr, size_t size) in add() argument 190 hdr->size = size; in add() 212 memset(user(hdr), FREE_POISON, hdr->size); in poison() 219 for (i = 0; i < hdr->size; i++) in was_used_after_free() 232 user(hdr), hdr->size); in check_guards() [all …]
|
/hardware/qcom/display/libgralloc/ |
D | alloc_controller.cpp | 258 size_t size; in getBufferSizeAndDimensions() local 266 size = alignedw * alignedh * 4; in getBufferSizeAndDimensions() 269 size = alignedw * alignedh * 3; in getBufferSizeAndDimensions() 275 size = alignedw * alignedh * 2; in getBufferSizeAndDimensions() 280 size = ALIGN(alignedw*alignedh, 4096); in getBufferSizeAndDimensions() 281 size += ALIGN(2 * ALIGN(width/2, 32) * ALIGN(height/2, 32), 4096); in getBufferSizeAndDimensions() 287 size = ALIGN( alignedw * alignedh, 8192); in getBufferSizeAndDimensions() 288 size += ALIGN( alignedw * ALIGN(height/2, 32), 8192); in getBufferSizeAndDimensions() 299 size = ALIGN(alignedw*alignedh, 2048) + in getBufferSizeAndDimensions() 302 size = alignedw*alignedh + in getBufferSizeAndDimensions() [all …]
|
D | gpu.cpp | 55 int gpu_context_t::gralloc_alloc_buffer(size_t size, int usage, in gralloc_alloc_buffer() argument 61 size = roundUpToPageSize(size); in gralloc_alloc_buffer() 75 size = ALIGN(size, data.align); in gralloc_alloc_buffer() 77 data.size = size; in gralloc_alloc_buffer() 87 eData.size = ROUND_UP_PAGESIZE(sizeof(MetaData_t)); in gralloc_alloc_buffer() 145 private_handle_t *hnd = new private_handle_t(data.fd, size, flags, in gralloc_alloc_buffer() 175 int gpu_context_t::gralloc_alloc_framebuffer_locked(size_t size, int usage, in gralloc_alloc_framebuffer_locked() argument 235 int gpu_context_t::gralloc_alloc_framebuffer(size_t size, int usage, in gralloc_alloc_framebuffer() argument 240 int err = gralloc_alloc_framebuffer_locked(size, usage, pHandle); in gralloc_alloc_framebuffer() 251 size_t size; in alloc_impl() local [all …]
|
D | ionalloc.cpp | 74 ionAllocData.len = data.size; in alloc_buffer() 114 clean_buffer(base, data.size, data.offset, fd_data.fd, in alloc_buffer() 127 int IonAlloc::free_buffer(void* base, size_t size, int offset, int fd) in free_buffer() argument 131 base, size, fd); in free_buffer() 138 err = unmap_buffer(base, size, offset); in free_buffer() 143 int IonAlloc::map_buffer(void **pBase, size_t size, int offset, int fd) in map_buffer() argument 153 base = mmap(0, size, PROT_READ| PROT_WRITE, in map_buffer() 162 base, size, offset, fd); in map_buffer() 167 int IonAlloc::unmap_buffer(void *base, size_t size, int offset) in unmap_buffer() argument 169 ALOGD_IF(DEBUG, "ion: Unmapping buffer base:%p size:%d", base, size); in unmap_buffer() [all …]
|
D | memalloc.h | 47 size_t size; member 64 virtual int free_buffer(void *base, size_t size, 68 virtual int map_buffer(void **pBase, size_t size, 72 virtual int unmap_buffer(void *base, size_t size, 76 virtual int clean_buffer(void *base, size_t size,
|
/hardware/ti/omap3/omx/system/src/openmax_il/perf/tests/ |
D | perf | 104 size=$(expr $4 \* $5 \* 2) 105 EVAL="$EVAL $cmd_VCrate+size=$size" 106 EVAL="$EVAL $cmd_VCPrate+size=$size" 132 size=$(expr $width \* $height \* 2) 133 EVAL="$EVAL $cmd_VCrate+size=$size" 134 EVAL="$EVAL $cmd_VCPrate+size=$size" 142 size=$(expr $4 \* $5 \* 2) 147 EVAL="$EVAL $cmd_VPrate+size=$size" 173 size=$(expr $width \* $height \* 2) 174 EVAL="$EVAL $cmd_VCrate+size=$size" [all …]
|
/hardware/ti/omap4xxx/domx/domx/omx_rpc/src/ |
D | omx_rpc_skel.c | 250 RPC_OMX_ERRORTYPE RPC_SKEL_GetHandle(uint32_t size, uint32_t * data) in RPC_SKEL_GetHandle() argument 255 RPC_OMX_ERRORTYPE RPC_SKEL_SetParameter(uint32_t size, uint32_t * data) in RPC_SKEL_SetParameter() argument 260 RPC_OMX_ERRORTYPE RPC_SKEL_GetParameter(uint32_t size, uint32_t * data) in RPC_SKEL_GetParameter() argument 265 RPC_OMX_ERRORTYPE RPC_SKEL_FreeHandle(uint32_t size, uint32_t * data) in RPC_SKEL_FreeHandle() argument 270 RPC_OMX_ERRORTYPE RPC_SKEL_EmptyThisBuffer(uint32_t size, uint32_t * data) in RPC_SKEL_EmptyThisBuffer() argument 275 RPC_OMX_ERRORTYPE RPC_SKEL_FillThisBuffer(uint32_t size, uint32_t * data) in RPC_SKEL_FillThisBuffer() argument 280 RPC_OMX_ERRORTYPE RPC_SKEL_UseBuffer(uint32_t size, uint32_t * data) in RPC_SKEL_UseBuffer() argument 285 RPC_OMX_ERRORTYPE RPC_SKEL_FreeBuffer(uint32_t size, uint32_t * data) in RPC_SKEL_FreeBuffer() argument 290 RPC_OMX_ERRORTYPE RPC_SKEL_SetConfig(uint32_t size, uint32_t * data) in RPC_SKEL_SetConfig() argument 295 RPC_OMX_ERRORTYPE RPC_SKEL_GetConfig(uint32_t size, uint32_t * data) in RPC_SKEL_GetConfig() argument [all …]
|
/hardware/samsung_slsi/exynos5/include/ |
D | ExynosBuffer.h | 83 } size; member 94 size. extS[i] = 0; in ExynosBuffer() 106 size. extS[i] = other->size.extS[i]; in ExynosBuffer() 118 size. extS[i] = other.size.extS[i]; 138 && size. extS[0] == other.size.extS[0] 139 && size. extS[1] == other.size.extS[1] 140 && size. extS[2] == other.size.extS[2]);
|
D | gralloc_priv.h | 84 int size; member 109 private_handle_t(int fd, int size, int flags, int w, in private_handle_t() 111 fd(fd), fd1(-1), fd2(-1), magic(sMagic), flags(flags), size(size), in private_handle_t() 121 private_handle_t(int fd, int fd1, int size, int flags, int w, in private_handle_t() 123 fd(fd), fd1(fd1), fd2(-1), magic(sMagic), flags(flags), size(size), in private_handle_t() 133 private_handle_t(int fd, int fd1, int fd2, int size, int flags, int w, in private_handle_t() 135 fd(fd), fd1(fd1), fd2(fd2), magic(sMagic), flags(flags), size(size), in private_handle_t()
|
/hardware/ti/omap4xxx/domx/mm_osal/src/ |
D | timm_osal_pipes.c | 182 void *pMessage, TIMM_OSAL_U32 size, TIMM_OSAL_S32 timeout) in TIMM_OSAL_WriteToPipe() argument 189 if (size == 0) in TIMM_OSAL_WriteToPipe() 195 lSizeWritten = write(pHandle->pfd[1], pMessage, size); in TIMM_OSAL_WriteToPipe() 197 if (lSizeWritten != size) in TIMM_OSAL_WriteToPipe() 206 pHandle->totalBytesInPipe += size; in TIMM_OSAL_WriteToPipe() 225 void *pMessage, TIMM_OSAL_U32 size, TIMM_OSAL_S32 timeout) in TIMM_OSAL_WriteToFrontOfPipe() argument 236 if (size == 0) in TIMM_OSAL_WriteToFrontOfPipe() 242 lSizeWritten = write(pHandle->pfd[1], pMessage, size); in TIMM_OSAL_WriteToFrontOfPipe() 244 if (lSizeWritten != size) in TIMM_OSAL_WriteToFrontOfPipe() 276 if (lSizeWritten != size) in TIMM_OSAL_WriteToFrontOfPipe() [all …]
|
/hardware/ti/wlan/mac80211/ti-utils/ |
D | nvs.c | 34 int size; in nvs_fill_radio_params() local 41 size = sizeof(struct wl1271_ini); in nvs_fill_radio_params() 47 for (i = 0; i < size; i++) { in nvs_fill_radio_params() 52 write(fd, (const void *)p, size); in nvs_fill_radio_params() 60 int size; in nvs_fill_radio_params_128x() local 63 size = sizeof(struct wl128x_ini); in nvs_fill_radio_params_128x() 69 for (i = 0; i < size; i++) { in nvs_fill_radio_params_128x() 75 write(fd, p, size); in nvs_fill_radio_params_128x() 83 int size; in nvs_set_autofem() local 95 size = sizeof(struct wl1271_ini); in nvs_set_autofem() [all …]
|
/hardware/libhardware/modules/gralloc/ |
D | gralloc.cpp | 48 size_t size, int usage, buffer_handle_t* pHandle); 105 size_t size, int usage, buffer_handle_t* pHandle) in gralloc_alloc_framebuffer_locked() argument 138 private_handle_t* hnd = new private_handle_t(dup(m->framebuffer->fd), size, in gralloc_alloc_framebuffer_locked() 158 size_t size, int usage, buffer_handle_t* pHandle) in gralloc_alloc_framebuffer() argument 163 int err = gralloc_alloc_framebuffer_locked(dev, size, usage, pHandle); in gralloc_alloc_framebuffer() 169 size_t size, int usage, buffer_handle_t* pHandle) in gralloc_alloc_buffer() argument 174 size = roundUpToPageSize(size); in gralloc_alloc_buffer() 176 fd = ashmem_create_region("gralloc-buffer", size); in gralloc_alloc_buffer() 183 private_handle_t* hnd = new private_handle_t(fd, size, 0); in gralloc_alloc_buffer() 206 size_t size, stride; in gralloc_alloc() local [all …]
|
/hardware/samsung_slsi/exynos5/libexynosutils/ |
D | exynos5_format_v4l2.c | 266 unsigned int size = 0; in FRAME_SIZE() local 294 size = ALIGN(width, 16) * ALIGN(height, 16); in FRAME_SIZE() 295 frame_size = size + 2 * ALIGN(width >> 1, 8) * ALIGN(height >> 1, 8); in FRAME_SIZE() 302 size = ALIGN(ALIGN(width, 16) * ALIGN(height, 16), 2048); in FRAME_SIZE() 303 frame_size = size + ALIGN(ALIGN(width, 16) * ALIGN(height >> 1, 8), 2048); in FRAME_SIZE() 338 unsigned int size = 0; in PLANAR_FRAME_SIZE() local 343 size = width * height; in PLANAR_FRAME_SIZE() 344 *luma_size = size; in PLANAR_FRAME_SIZE() 345 *chroma_size = size >> 2; in PLANAR_FRAME_SIZE() 352 size = width * height; in PLANAR_FRAME_SIZE() [all …]
|
/hardware/samsung_slsi/exynos5/exynos_omx/codecs/exynos_codecs/audio/exynos5/srp/alp/src/ |
D | srp_api.c | 156 int SRP_Get_PCM(void **addr, unsigned int *size) in SRP_Get_PCM() argument 163 *size = 0; in SRP_Get_PCM() 169 *size = pcm_info.size; in SRP_Get_PCM() 198 int SRP_Get_Ibuf_Info(void **addr, unsigned int *size, unsigned int *num) in SRP_Get_Ibuf_Info() argument 210 *size = ibuf_info.size; in SRP_Get_Ibuf_Info() 226 int SRP_Get_Obuf_Info(void **addr, unsigned int *size, unsigned int *num) in SRP_Get_Obuf_Info() argument 240 *size = obuf_info.size; in SRP_Get_Obuf_Info()
|