Home
last modified time | relevance | path

Searched refs:base (Results 1 – 25 of 98) sorted by relevance

1234

/hardware/qcom/display/msm8960/libgralloc/
Dionalloc.cpp72 void *base = 0; in alloc_buffer() local
103 base = mmap(0, ionAllocData.len, PROT_READ|PROT_WRITE, in alloc_buffer()
105 if(base == MAP_FAILED) { in alloc_buffer()
112 memset(base, 0, ionAllocData.len); in alloc_buffer()
114 clean_buffer(base, data.size, data.offset, fd_data.fd, in alloc_buffer()
118 data.base = base; in alloc_buffer()
122 data.base, ionAllocData.len, 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()
137 if(base) in free_buffer()
[all …]
Dmapper.cpp72 hnd->base = 0; in gralloc_map()
76 hnd->base = intptr_t(mappedAddress) + hnd->offset; in gralloc_map()
98 void* base = (void*)hnd->base; in gralloc_unmap() local
102 err = memalloc->unmap_buffer(base, size, hnd->offset); in gralloc_unmap()
104 ALOGE("Could not unmap memory at address %p", base); in gralloc_unmap()
106 base = (void*)hnd->base_metadata; in gralloc_unmap()
108 err = memalloc->unmap_buffer(base, size, hnd->offset_metadata); in gralloc_unmap()
110 ALOGE("Could not unmap memory at address %p", base); in gralloc_unmap()
116 hnd->base = 0; in gralloc_unmap()
143 hnd->base = 0; in gralloc_register_buffer()
[all …]
Dmemalloc.h44 void *base; member
64 virtual int free_buffer(void *base, size_t size,
72 virtual int unmap_buffer(void *base, size_t size,
76 virtual int clean_buffer(void *base, size_t size,
Dgpu.cpp45 common.module = const_cast<hw_module_t*>(&module->base.common); in gpu_context_t()
65 data.base = 0; in gralloc_alloc_buffer()
85 eData.base = 0; in gralloc_alloc_buffer()
144 int eBaseAddr = int(eData.base) + eData.offset; in gralloc_alloc_buffer()
150 hnd->base = int(data.base) + data.offset; in gralloc_alloc_buffer()
212 intptr_t vaddr = intptr_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked()
228 hnd->base = vaddr; in gralloc_alloc_framebuffer_locked()
229 hnd->offset = vaddr - intptr_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked()
311 int index = (hnd->base - m->framebuffer->base) / bufferSize; in free_impl()
315 terminateBuffer(&m->base, const_cast<private_handle_t*>(hnd)); in free_impl()
[all …]
/hardware/qcom/display/msm8x26/libgralloc/
Dionalloc.cpp72 void *base = 0; in alloc_buffer() local
103 base = mmap(0, ionAllocData.len, PROT_READ|PROT_WRITE, in alloc_buffer()
105 if(base == MAP_FAILED) { in alloc_buffer()
112 memset(base, 0, ionAllocData.len); in alloc_buffer()
114 clean_buffer(base, data.size, data.offset, fd_data.fd, in alloc_buffer()
118 data.base = base; in alloc_buffer()
122 data.base, ionAllocData.len, 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()
137 if(base) in free_buffer()
[all …]
Dmapper.cpp72 hnd->base = 0; in gralloc_map()
76 hnd->base = intptr_t(mappedAddress) + hnd->offset; in gralloc_map()
98 void* base = (void*)hnd->base; in gralloc_unmap() local
102 err = memalloc->unmap_buffer(base, size, hnd->offset); in gralloc_unmap()
104 ALOGE("Could not unmap memory at address %p", base); in gralloc_unmap()
106 base = (void*)hnd->base_metadata; in gralloc_unmap()
108 err = memalloc->unmap_buffer(base, size, hnd->offset_metadata); in gralloc_unmap()
110 ALOGE("Could not unmap memory at address %p", base); in gralloc_unmap()
116 hnd->base = 0; in gralloc_unmap()
143 hnd->base = 0; in gralloc_register_buffer()
[all …]
Dmemalloc.h44 void *base; member
64 virtual int free_buffer(void *base, size_t size,
72 virtual int unmap_buffer(void *base, size_t size,
76 virtual int clean_buffer(void *base, size_t size,
Dgpu.cpp45 common.module = const_cast<hw_module_t*>(&module->base.common); in gpu_context_t()
65 data.base = 0; in gralloc_alloc_buffer()
85 eData.base = 0; in gralloc_alloc_buffer()
144 int eBaseAddr = int(eData.base) + eData.offset; in gralloc_alloc_buffer()
150 hnd->base = int(data.base) + data.offset; in gralloc_alloc_buffer()
212 intptr_t vaddr = intptr_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked()
228 hnd->base = vaddr; in gralloc_alloc_framebuffer_locked()
229 hnd->offset = vaddr - intptr_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked()
311 int index = (hnd->base - m->framebuffer->base) / bufferSize; in free_impl()
315 terminateBuffer(&m->base, const_cast<private_handle_t*>(hnd)); in free_impl()
[all …]
/hardware/qcom/display/msm8974/libgralloc/
Dionalloc.cpp72 void *base = 0; in alloc_buffer() local
108 base = mmap(0, ionAllocData.len, PROT_READ|PROT_WRITE, in alloc_buffer()
110 if(base == MAP_FAILED) { in alloc_buffer()
119 data.base = base; in alloc_buffer()
123 data.base, ionAllocData.len, data.fd); in alloc_buffer()
128 int IonAlloc::free_buffer(void* base, size_t size, int offset, int fd) in free_buffer() argument
132 base, size, fd); in free_buffer()
138 if(base) in free_buffer()
139 err = unmap_buffer(base, size, offset); in free_buffer()
147 void *base = 0; in map_buffer() local
[all …]
Dmapper.cpp72 hnd->base = 0; in gralloc_map()
76 hnd->base = intptr_t(mappedAddress) + hnd->offset; in gralloc_map()
98 void* base = (void*)hnd->base; in gralloc_unmap() local
102 err = memalloc->unmap_buffer(base, size, hnd->offset); in gralloc_unmap()
104 ALOGE("Could not unmap memory at address %p", base); in gralloc_unmap()
106 base = (void*)hnd->base_metadata; in gralloc_unmap()
108 err = memalloc->unmap_buffer(base, size, hnd->offset_metadata); in gralloc_unmap()
110 ALOGE("Could not unmap memory at address %p", base); in gralloc_unmap()
116 hnd->base = 0; in gralloc_unmap()
143 hnd->base = 0; in gralloc_register_buffer()
[all …]
Dmemalloc.h44 void *base; member
64 virtual int free_buffer(void *base, size_t size,
72 virtual int unmap_buffer(void *base, size_t size,
76 virtual int clean_buffer(void *base, size_t size,
Dgpu.cpp44 common.module = const_cast<hw_module_t*>(&module->base.common); in gpu_context_t()
64 data.base = 0; in gralloc_alloc_buffer()
86 eData.base = 0; in gralloc_alloc_buffer()
150 int eBaseAddr = int(eData.base) + eData.offset; in gralloc_alloc_buffer()
156 hnd->base = int(data.base) + data.offset; in gralloc_alloc_buffer()
218 intptr_t vaddr = intptr_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked()
234 hnd->base = vaddr; in gralloc_alloc_framebuffer_locked()
235 hnd->offset = vaddr - intptr_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked()
326 int index = (hnd->base - m->framebuffer->base) / bufferSize; in free_impl()
330 terminateBuffer(&m->base, const_cast<private_handle_t*>(hnd)); in free_impl()
[all …]
/hardware/libhardware/tests/hwc/
Dcnativewindow.c50 aBuffer base; member
57 aWindow base; member
113 static void cnw_inc_ref(aBase *base) { TRACE("buf %p ref++\n",base); } in cnw_inc_ref() argument
114 static void cnw_dec_ref(aBase *base) { TRACE("buf %p ref--\n",base); } in cnw_dec_ref() argument
116 static inline CNativeWindow *from_base(aWindow *base) { in from_base() argument
117 return (CNativeWindow *) base; in from_base()
120 static inline CNativeWindow *from_base_const(const aWindow *base) { in from_base_const() argument
121 return (CNativeWindow *) base; in from_base_const()
124 static int cnw_set_swap_interval(aWindow *base, int interval) { in cnw_set_swap_interval() argument
125 CNativeWindow *win = from_base(base); in cnw_set_swap_interval()
[all …]
/hardware/libhardware/modules/gralloc/
Dmapper.cpp59 hnd->base = intptr_t(mappedAddress) + hnd->offset; in gralloc_map()
63 *vaddr = (void*)hnd->base; in gralloc_map()
72 void* base = (void*)hnd->base; in gralloc_unmap() local
75 if (munmap(base, size) < 0) { in gralloc_unmap()
79 hnd->base = 0; in gralloc_unmap()
146 if (hnd->base) in gralloc_unregister_buffer()
162 if (hnd->base) { in terminateBuffer()
187 *vaddr = (void*)hnd->base; in gralloc_lock()
Dframebuffer.cpp97 const size_t offset = hnd->base - m->framebuffer->base; in fb_post()
102 m->base.unlock(&m->base, buffer); in fb_post()
114 m->base.lock(&m->base, m->framebuffer, in fb_post()
119 m->base.lock(&m->base, buffer, in fb_post()
126 m->base.unlock(&m->base, buffer); in fb_post()
127 m->base.unlock(&m->base, m->framebuffer); in fb_post()
286 module->framebuffer->base = intptr_t(vaddr); in mapFrameBufferLocked()
/hardware/samsung_slsi/exynos5/gralloc/
Dmapper.cpp52 hnd->base = mappedAddress; in gralloc_map()
60 if (!hnd->base) in gralloc_unmap()
63 if (munmap(hnd->base, hnd->size) < 0) { in gralloc_unmap()
65 hnd->base, hnd->size); in gralloc_unmap()
67 ALOGV("%s: base %p %d %d %d %d\n", __func__, hnd->base, hnd->size, in gralloc_unmap()
69 hnd->base = 0; in gralloc_unmap()
107 ALOGV("%s: base %p %d %d %d %d\n", __func__, hnd->base, hnd->size, in gralloc_register_buffer()
135 ALOGV("%s: base %p %d %d %d %d\n", __func__, hnd->base, hnd->size, in gralloc_unregister_buffer()
167 if (!hnd->base) in gralloc_lock()
169 *vaddr = (void*)hnd->base; in gralloc_lock()
/hardware/qcom/display/msm8x26/libqdutils/
DqdMetaData.cpp51 void *base = mmap(NULL, size, PROT_READ|PROT_WRITE, MAP_SHARED, in setMetaData() local
53 if (!base) { in setMetaData()
57 MetaData_t *data = reinterpret_cast <MetaData_t *>(base); in setMetaData()
85 if(munmap(base, size)) in setMetaData()
86 ALOGE("%s: failed to unmap ptr 0x%x, err %d", __func__, (int)base, in setMetaData()
/hardware/qcom/display/msm8960/libqdutils/
DqdMetaData.cpp51 void *base = mmap(NULL, size, PROT_READ|PROT_WRITE, MAP_SHARED, in setMetaData() local
53 if (!base) { in setMetaData()
57 MetaData_t *data = reinterpret_cast <MetaData_t *>(base); in setMetaData()
85 if(munmap(base, size)) in setMetaData()
86 ALOGE("%s: failed to unmap ptr 0x%x, err %d", __func__, (int)base, in setMetaData()
/hardware/qcom/display/msm8974/libqdutils/
DqdMetaData.cpp51 void *base = mmap(NULL, size, PROT_READ|PROT_WRITE, MAP_SHARED, in setMetaData() local
53 if (!base) { in setMetaData()
57 MetaData_t *data = reinterpret_cast <MetaData_t *>(base); in setMetaData()
88 if(munmap(base, size)) in setMetaData()
89 ALOGE("%s: failed to unmap ptr 0x%x, err %d", __func__, (int)base, in setMetaData()
/hardware/qcom/camera/QCamera2/HAL/test/
DAndroid.mk21 frameworks/base/include/ui \
22 frameworks/base/include/surfaceflinger \
23 frameworks/base/include/camera \
24 frameworks/base/include/media \
/hardware/ti/omap4xxx/test/CameraHal/
DAndroid.mk22 frameworks/base/include/ui \
23 frameworks/base/include/surfaceflinger \
24 frameworks/base/include/camera \
25 frameworks/base/include/media \
/hardware/qcom/display/msm8974/libcopybit/
Dsoftware_converter.cpp59 unsigned char* newChroma = (unsigned char *)(yv12_handle->base + y_size); in convertYV12toYCrCb420SP()
60 unsigned char* oldChroma = (unsigned char*)(hnd->base + y_size); in convertYV12toYCrCb420SP()
61 memcpy((char *)yv12_handle->base,(char *)hnd->base,y_size); in convertYV12toYCrCb420SP()
215 ret = copy_source_to_destination(hnd->base, dst_hnd->base, info); in convert_yuv_c2d_to_yuv_android()
260 ret = copy_source_to_destination(hnd->base, dst_hnd->base, info); in convert_yuv_android_to_yuv_c2d()
/hardware/qcom/display/msm8x26/libcopybit/
Dsoftware_converter.cpp59 unsigned char* newChroma = (unsigned char *)(yv12_handle->base + y_size); in convertYV12toYCrCb420SP()
60 unsigned char* oldChroma = (unsigned char*)(hnd->base + y_size); in convertYV12toYCrCb420SP()
61 memcpy((char *)yv12_handle->base,(char *)hnd->base,y_size); in convertYV12toYCrCb420SP()
215 ret = copy_source_to_destination(hnd->base, dst_hnd->base, info); in convert_yuv_c2d_to_yuv_android()
260 ret = copy_source_to_destination(hnd->base, dst_hnd->base, info); in convert_yuv_android_to_yuv_c2d()
/hardware/qcom/display/msm8960/libcopybit/
Dsoftware_converter.cpp59 unsigned char* newChroma = (unsigned char *)(yv12_handle->base + y_size); in convertYV12toYCrCb420SP()
60 unsigned char* oldChroma = (unsigned char*)(hnd->base + y_size); in convertYV12toYCrCb420SP()
61 memcpy((char *)yv12_handle->base,(char *)hnd->base,y_size); in convertYV12toYCrCb420SP()
215 ret = copy_source_to_destination(hnd->base, dst_hnd->base, info); in convert_yuv_c2d_to_yuv_android()
260 ret = copy_source_to_destination(hnd->base, dst_hnd->base, info); in convert_yuv_android_to_yuv_c2d()
/hardware/qcom/media/libc2dcolorconvert/
DC2DColorConverter.cpp65 virtual C2D_STATUS updateYUVSurfaceDef(int fd, void *base, void * data, bool isSource);
316 C2D_STATUS C2DColorConverter::updateYUVSurfaceDef(int fd, void *base, void *data, bool isSource) in updateYUVSurfaceDef() argument
321 …srcSurfaceDef->phys0 = getMappedGPUAddr(fd, data, mSrcSize) + ((uint8_t *)data - (uint8_t *)base); in updateYUVSurfaceDef()
333 …dstSurfaceDef->phys0 = getMappedGPUAddr(fd, data, mDstSize) + ((uint8_t *)data - (uint8_t *)base); in updateYUVSurfaceDef()
598 uint8_t * base = (uint8_t *)dstSurfaceDef->plane0; in dumpOutput() local
603 ret = write(fd, base, mDstWidth); //will work only for the 420 ones in dumpOutput()
605 base += stride; in dumpOutput()
612 base = (uint8_t *)dstSurfaceDef->plane1; in dumpOutput()
615 ret = write(fd, base, mDstWidth/2); in dumpOutput()
617 base += stride; in dumpOutput()
[all …]

1234