/hardware/qcom/display/msm8x26/libgralloc/ |
mapper.cpp | 61 private_handle_t* hnd = (private_handle_t*)handle; local 63 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && 64 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { 65 size_t size = hnd->size; 66 IMemAlloc* memalloc = getAllocator(hnd->flags) ; 68 hnd->offset, hnd->fd); 71 handle, hnd->fd, strerror(errno)); 72 hnd->base = 0; 76 hnd->base = intptr_t(mappedAddress) + hnd->offset 95 private_handle_t* hnd = (private_handle_t*)handle; local 209 private_handle_t* hnd = (private_handle_t*)handle; local 240 private_handle_t* hnd = (private_handle_t*)handle; local 252 private_handle_t* hnd = (private_handle_t*)handle; local 284 private_handle_t* hnd = (private_handle_t*)handle; local 326 private_handle_t* hnd = (private_handle_t*)native_handle_create( local 349 private_handle_t* hnd = va_arg(args, private_handle_t*); local [all...] |
gralloc_priv.h | 212 const private_handle_t* hnd = (const private_handle_t*)h; local 215 hnd->magic != sMagic) 223 hnd ? (((hnd->magic >> 24) & 0xFF)? 224 ((hnd->magic >> 24) & 0xFF) : '-') : '?', 225 hnd ? (((hnd->magic >> 16) & 0xFF)? 226 ((hnd->magic >> 16) & 0xFF) : '-') : '?', 227 hnd ? (((hnd->magic >> 8) & 0xFF) [all...] |
alloc_controller.cpp | 362 private_handle_t* hnd = new private_handle_t(data.fd, data.size, local 365 hnd->base = (int) data.base; 366 hnd->offset = data.offset; 367 hnd->gpuaddr = 0; 368 *pHnd = hnd; 372 void free_buffer(private_handle_t *hnd) 376 if (hnd && hnd->fd > 0) { 377 IMemAlloc* memalloc = sAlloc->getAllocator(hnd->flags); 378 memalloc->free_buffer((void*)hnd->base, hnd->size, hnd->offset, hnd->fd) [all...] |
/hardware/samsung_slsi/exynos5/gralloc/ |
mapper.cpp | 42 private_handle_t* hnd = (private_handle_t*)handle; local 44 void* mappedAddress = mmap(0, hnd->size, PROT_READ|PROT_WRITE, MAP_SHARED, 45 hnd->fd, 0); 50 ALOGV("%s: base %p %d %d %d %d\n", __func__, mappedAddress, hnd->size, 51 hnd->width, hnd->height, hnd->stride); 52 hnd->base = mappedAddress; 58 private_handle_t* hnd = (private_handle_t*)handle; local 60 if (!hnd->base 106 private_handle_t* hnd = (private_handle_t*)handle; local 178 private_handle_t* hnd = (private_handle_t*)handle; local [all...] |
gr.h | 34 int grallocMap(gralloc_module_t const* module, private_handle_t *hnd); 35 int grallocUnmap(gralloc_module_t const* module, private_handle_t *hnd);
|
gralloc.cpp | 135 unsigned int ion_flags, private_handle_t **hnd, int *stride) 196 *hnd = new private_handle_t(fd, size, usage, w, h, format, *stride, 204 private_handle_t **hnd, int *stride) 228 *hnd = new private_handle_t(fd, size, usage, w, h, format, *stride, h); 234 private_handle_t **hnd, int *stride) 277 ion_flags, hnd, stride); 298 *hnd = new private_handle_t(fd, luma_size, usage, w, h, 309 *hnd = new private_handle_t(fd, fd1, fd2, luma_size, usage, w, h, 312 *hnd = new private_handle_t(fd, fd1, luma_size, usage, w, h, format, 317 if (!err && *hnd) { 342 private_handle_t *hnd = NULL; local 386 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); local [all...] |
/hardware/qcom/display/msm8974/libgralloc/ |
mapper.cpp | 61 private_handle_t* hnd = (private_handle_t*)handle; local 63 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && 64 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { 65 size_t size = hnd->size; 66 IMemAlloc* memalloc = getAllocator(hnd->flags) ; 68 hnd->offset, hnd->fd); 71 handle, hnd->fd, strerror(errno)); 72 hnd->base = 0; 76 hnd->base = intptr_t(mappedAddress) + hnd->offset 95 private_handle_t* hnd = (private_handle_t*)handle; local 209 private_handle_t* hnd = (private_handle_t*)handle; local 241 private_handle_t* hnd = (private_handle_t*)handle; local 253 private_handle_t* hnd = (private_handle_t*)handle; local 285 private_handle_t* hnd = (private_handle_t*)handle; local 329 private_handle_t* hnd = (private_handle_t*)native_handle_create( local 352 private_handle_t* hnd = va_arg(args, private_handle_t*); local 373 private_handle_t* hnd = va_arg(args, private_handle_t*); local [all...] |
gralloc_priv.h | 210 const private_handle_t* hnd = (const private_handle_t*)h; local 213 hnd->magic != sMagic) 221 hnd ? (((hnd->magic >> 24) & 0xFF)? 222 ((hnd->magic >> 24) & 0xFF) : '-') : '?', 223 hnd ? (((hnd->magic >> 16) & 0xFF)? 224 ((hnd->magic >> 16) & 0xFF) : '-') : '?', 225 hnd ? (((hnd->magic >> 8) & 0xFF) [all...] |
gpu.cpp | 151 private_handle_t *hnd = new private_handle_t(data.fd, size, flags, local 155 hnd->offset = data.offset; 156 hnd->base = int(data.base) + data.offset; 157 hnd->gpuaddr = 0; 159 *pHandle = hnd; 219 private_handle_t* hnd = new private_handle_t( local 234 hnd->base = vaddr; 235 hnd->offset = vaddr - intptr_t(m->framebuffer->base); 236 *pHandle = hnd; 316 int gpu_context_t::free_impl(private_handle_t const* hnd) { 371 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); local [all...] |
alloc_controller.cpp | 385 private_handle_t* hnd = new private_handle_t(data.fd, data.size, local 388 hnd->base = (int) data.base; 389 hnd->offset = data.offset; 390 hnd->gpuaddr = 0; 391 *pHnd = hnd; 395 void free_buffer(private_handle_t *hnd) 399 if (hnd && hnd->fd > 0) { 400 IMemAlloc* memalloc = sAlloc->getAllocator(hnd->flags); 401 memalloc->free_buffer((void*)hnd->base, hnd->size, hnd->offset, hnd->fd) [all...] |
/hardware/qcom/display/msm8960/libgralloc/ |
mapper.cpp | 61 private_handle_t* hnd = (private_handle_t*)handle; local 63 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && 64 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { 65 size_t size = hnd->size; 66 IMemAlloc* memalloc = getAllocator(hnd->flags) ; 68 hnd->offset, hnd->fd); 71 handle, hnd->fd, strerror(errno)); 72 hnd->base = 0; 76 hnd->base = intptr_t(mappedAddress) + hnd->offset 95 private_handle_t* hnd = (private_handle_t*)handle; local 209 private_handle_t* hnd = (private_handle_t*)handle; local 240 private_handle_t* hnd = (private_handle_t*)handle; local 252 private_handle_t* hnd = (private_handle_t*)handle; local 284 private_handle_t* hnd = (private_handle_t*)handle; local 326 private_handle_t* hnd = (private_handle_t*)native_handle_create( local 349 private_handle_t* hnd = va_arg(args, private_handle_t*); local 370 private_handle_t* hnd = va_arg(args, private_handle_t*); local [all...] |
gralloc_priv.h | 213 const private_handle_t* hnd = (const private_handle_t*)h; local 216 hnd->magic != sMagic) 224 hnd ? (((hnd->magic >> 24) & 0xFF)? 225 ((hnd->magic >> 24) & 0xFF) : '-') : '?', 226 hnd ? (((hnd->magic >> 16) & 0xFF)? 227 ((hnd->magic >> 16) & 0xFF) : '-') : '?', 228 hnd ? (((hnd->magic >> 8) & 0xFF) [all...] |
alloc_controller.cpp | 364 private_handle_t* hnd = new private_handle_t(data.fd, data.size, local 367 hnd->base = (int) data.base; 368 hnd->offset = data.offset; 369 hnd->gpuaddr = 0; 370 *pHnd = hnd; 374 void free_buffer(private_handle_t *hnd) 378 if (hnd && hnd->fd > 0) { 379 IMemAlloc* memalloc = sAlloc->getAllocator(hnd->flags); 380 memalloc->free_buffer((void*)hnd->base, hnd->size, hnd->offset, hnd->fd) [all...] |
/hardware/libhardware/modules/gralloc/ |
mapper.cpp | 50 private_handle_t* hnd = (private_handle_t*)handle; local 51 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { 52 size_t size = hnd->size; 54 PROT_READ|PROT_WRITE, MAP_SHARED, hnd->fd, 0); 59 hnd->base = intptr_t(mappedAddress) + hnd->offset; 61 // hnd->fd, hnd->offset, hnd->size, mappedAddress); 63 *vaddr = (void*)hnd->base 70 private_handle_t* hnd = (private_handle_t*)handle; local [all...] |
/hardware/qcom/display/msm8960/libcopybit/ |
software_converter.h | 49 int convert_yuv_c2d_to_yuv_android(private_handle_t *hnd, 61 int convert_yuv_android_to_yuv_c2d(private_handle_t *hnd,
|
/hardware/qcom/display/msm8974/libcopybit/ |
software_converter.h | 49 int convert_yuv_c2d_to_yuv_android(private_handle_t *hnd, 61 int convert_yuv_android_to_yuv_c2d(private_handle_t *hnd,
|
/hardware/qcom/display/msm8x26/libcopybit/ |
software_converter.h | 49 int convert_yuv_c2d_to_yuv_android(private_handle_t *hnd, 61 int convert_yuv_android_to_yuv_c2d(private_handle_t *hnd,
|
/hardware/qcom/display/msm8960/libgenlock/ |
genlock.cpp | 73 private_handle_t *hnd = reinterpret_cast<private_handle_t*> local 75 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { 76 if (hnd->genlockPrivFd < 0) { 86 lock.fd = hnd->genlockHandle; 89 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_DREADLOCK, &lock)) { 92 lockType, strerror(errno), hnd->fd); 100 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_LOCK, &lock)) { 102 ,__FUNCTION__, lockType, strerror(errno), hnd->fd); 144 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local 145 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) 199 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local 229 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local 322 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local [all...] |
/hardware/qcom/display/msm8x26/libgenlock/ |
genlock.cpp | 73 private_handle_t *hnd = reinterpret_cast<private_handle_t*> local 75 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { 76 if (hnd->genlockPrivFd < 0) { 86 lock.fd = hnd->genlockHandle; 89 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_DREADLOCK, &lock)) { 92 lockType, strerror(errno), hnd->fd); 100 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_LOCK, &lock)) { 102 ,__FUNCTION__, lockType, strerror(errno), hnd->fd); 144 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local 145 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) 199 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local 229 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local 322 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local [all...] |
/device/generic/goldfish/opengl/system/OpenglSystemCommon/ |
gralloc_cb.h | 74 static bool validate(cb_handle_t * hnd) { 75 return (hnd && 76 hnd->version == sizeof(native_handle) && 77 hnd->magic == BUFFER_HANDLE_MAGIC && 78 hnd->numInts == CB_HANDLE_NUM_INTS(hnd->numFds));
|
/hardware/qcom/display/msm8960/libhwcomposer/ |
hwc_utils.h | 216 static inline bool isYuvBuffer(const private_handle_t* hnd) { 217 return (hnd && (hnd->bufferType == BUFFER_TYPE_VIDEO)); 221 static inline bool isSecureBuffer(const private_handle_t* hnd) { 222 return (hnd && (private_handle_t::PRIV_FLAGS_SECURE_BUFFER & hnd->flags)); 225 static inline bool isBufferLocked(const private_handle_t* hnd) { 226 return (hnd && (private_handle_t::PRIV_FLAGS_HWC_LOCK & hnd->flags)); 230 static inline bool isExtOnly(const private_handle_t* hnd) { [all...] |
hwc_fbupdate.cpp | 66 private_handle_t *hnd = (private_handle_t *)layer->handle; local 67 ovutils::Whf info(getWidth(hnd), getHeight(hnd), 68 ovutils::getMdpFormat(hnd->format), hnd->size); 127 bool FBUpdateLowRes::draw(hwc_context_t *ctx, private_handle_t *hnd) 135 if (!ov.queueBuffer(hnd->fd, hnd->offset, dest)) { 170 private_handle_t *hnd = (private_handle_t *)layer->handle; local 171 ovutils::Whf info(getWidth(hnd), getHeight(hnd) [all...] |
/hardware/qcom/display/msm8x26/libhwcomposer/ |
hwc_utils.h | 216 static inline bool isYuvBuffer(const private_handle_t* hnd) { 217 return (hnd && (hnd->bufferType == BUFFER_TYPE_VIDEO)); 221 static inline bool isSecureBuffer(const private_handle_t* hnd) { 222 return (hnd && (private_handle_t::PRIV_FLAGS_SECURE_BUFFER & hnd->flags)); 225 static inline bool isBufferLocked(const private_handle_t* hnd) { 226 return (hnd && (private_handle_t::PRIV_FLAGS_HWC_LOCK & hnd->flags)); 230 static inline bool isExtOnly(const private_handle_t* hnd) { [all...] |
/hardware/qcom/display/msm8974/libhwcomposer/ |
hwc_utils.h | 265 static inline bool isYuvBuffer(const private_handle_t* hnd) { 266 return (hnd && (hnd->bufferType == BUFFER_TYPE_VIDEO)); 270 static inline bool isSecureBuffer(const private_handle_t* hnd) { 271 return (hnd && (private_handle_t::PRIV_FLAGS_SECURE_BUFFER & hnd->flags)); 274 static inline bool isBufferLocked(const private_handle_t* hnd) { 275 return (hnd && (private_handle_t::PRIV_FLAGS_HWC_LOCK & hnd->flags)); 279 static inline bool isExtOnly(const private_handle_t* hnd) { [all...] |
hwc_fbupdate.cpp | 72 private_handle_t *hnd = (private_handle_t *)layer->handle; local 73 ovutils::Whf info(getWidth(hnd), getHeight(hnd), 74 ovutils::getMdpFormat(hnd->format), hnd->size); 143 bool FBUpdateLowRes::draw(hwc_context_t *ctx, private_handle_t *hnd) 151 if (!ov.queueBuffer(hnd->fd, hnd->offset, dest)) { 186 private_handle_t *hnd = (private_handle_t *)layer->handle; local 187 ovutils::Whf info(getWidth(hnd), getHeight(hnd) [all...] |