/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 165 private_handle_t* hnd = (private_handle_t*)handle; local [all...] |
gralloc.cpp | 130 unsigned int ion_flags, private_handle_t **hnd, int *stride) 193 *hnd = new private_handle_t(fd, size, usage, w, h, format, *stride, 201 private_handle_t **hnd, int *stride) 225 *hnd = new private_handle_t(fd, size, usage, w, h, format, *stride, h); 231 private_handle_t **hnd, int *stride) 274 ion_flags, hnd, stride); 295 *hnd = new private_handle_t(fd, luma_size, usage, w, h, 306 *hnd = new private_handle_t(fd, fd1, fd2, luma_size, usage, w, h, 309 *hnd = new private_handle_t(fd, fd1, luma_size, usage, w, h, format, 314 if (!err && *hnd) { 339 private_handle_t *hnd = NULL; local 384 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); local [all...] |
/hardware/qcom/display/msm8974/libgralloc/ |
mapper.cpp | 60 private_handle_t* hnd = (private_handle_t*)handle; local 62 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && 63 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { 64 size_t size = hnd->size; 65 IMemAlloc* memalloc = getAllocator(hnd->flags) ; 67 hnd->offset, hnd->fd); 70 handle, hnd->fd, strerror(errno)); 71 hnd->base = 0; 75 hnd->base = intptr_t(mappedAddress) + hnd->offset 94 private_handle_t* hnd = (private_handle_t*)handle; local 208 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 293 private_handle_t* hnd = (private_handle_t*)handle; local 337 private_handle_t* hnd = (private_handle_t*)native_handle_create( local 360 private_handle_t* hnd = va_arg(args, private_handle_t*); local 381 private_handle_t* hnd = va_arg(args, private_handle_t*); local [all...] |
gralloc_priv.h | 211 const private_handle_t* hnd = (const private_handle_t*)h; local 214 hnd->magic != sMagic) 222 hnd ? (((hnd->magic >> 24) & 0xFF)? 223 ((hnd->magic >> 24) & 0xFF) : '-') : '?', 224 hnd ? (((hnd->magic >> 16) & 0xFF)? 225 ((hnd->magic >> 16) & 0xFF) : '-') : '?', 226 hnd ? (((hnd->magic >> 8) & 0xFF) [all...] |
alloc_controller.cpp | 383 private_handle_t* hnd = new private_handle_t(data.fd, data.size, local 386 hnd->base = (int) data.base; 387 hnd->offset = data.offset; 388 hnd->gpuaddr = 0; 389 *pHnd = hnd; 393 void free_buffer(private_handle_t *hnd) 397 if (hnd && hnd->fd > 0) { 398 IMemAlloc* memalloc = sAlloc->getAllocator(hnd->flags); 399 memalloc->free_buffer((void*)hnd->base, hnd->size, hnd->offset, hnd->fd) [all...] |
/hardware/qcom/display/msm8960/libgralloc/ |
mapper.cpp | 60 private_handle_t* hnd = (private_handle_t*)handle; local 62 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && 63 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { 64 size_t size = hnd->size; 65 IMemAlloc* memalloc = getAllocator(hnd->flags) ; 67 hnd->offset, hnd->fd); 70 handle, hnd->fd, strerror(errno)); 71 hnd->base = 0; 75 hnd->base = intptr_t(mappedAddress) + hnd->offset 94 private_handle_t* hnd = (private_handle_t*)handle; local 208 private_handle_t* hnd = (private_handle_t*)handle; local 239 private_handle_t* hnd = (private_handle_t*)handle; local 251 private_handle_t* hnd = (private_handle_t*)handle; local 294 private_handle_t* hnd = (private_handle_t*)handle; local 336 private_handle_t* hnd = (private_handle_t*)native_handle_create( local 359 private_handle_t* hnd = va_arg(args, private_handle_t*); local 380 private_handle_t* hnd = va_arg(args, private_handle_t*); local [all...] |
gralloc_priv.h | 214 const private_handle_t* hnd = (const private_handle_t*)h; local 217 hnd->magic != sMagic) 225 hnd ? (((hnd->magic >> 24) & 0xFF)? 226 ((hnd->magic >> 24) & 0xFF) : '-') : '?', 227 hnd ? (((hnd->magic >> 16) & 0xFF)? 228 ((hnd->magic >> 16) & 0xFF) : '-') : '?', 229 hnd ? (((hnd->magic >> 8) & 0xFF) [all...] |
alloc_controller.cpp | 373 private_handle_t* hnd = new private_handle_t(data.fd, data.size, local 376 hnd->base = (int) data.base; 377 hnd->offset = data.offset; 378 hnd->gpuaddr = 0; 379 *pHnd = hnd; 383 void free_buffer(private_handle_t *hnd) 387 if (hnd && hnd->fd > 0) { 388 IMemAlloc* memalloc = sAlloc->getAllocator(hnd->flags); 389 memalloc->free_buffer((void*)hnd->base, hnd->size, hnd->offset, hnd->fd) [all...] |
/hardware/qcom/display/msm8084/libgralloc/ |
mapper.cpp | 61 private_handle_t* hnd = (private_handle_t*)handle; 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 214 private_handle_t* hnd = (private_handle_t*)handle; local 246 private_handle_t* hnd = (private_handle_t*)handle; local 258 private_handle_t* hnd = (private_handle_t*)handle; local 272 private_handle_t* hnd = (private_handle_t*)handle; local 318 private_handle_t* hnd = (private_handle_t*)native_handle_create( local 341 private_handle_t* hnd = va_arg(args, private_handle_t*); local 366 private_handle_t* hnd = va_arg(args, private_handle_t*); local 382 private_handle_t* hnd = va_arg(args, private_handle_t*); local 417 private_handle_t* hnd = va_arg(args, private_handle_t*); local 430 private_handle_t* hnd = va_arg(args, private_handle_t*); local [all...] |
alloc_controller.cpp | 558 int getYUVPlaneInfo(private_handle_t* hnd, struct android_ycbcr* ycbcr) 566 switch (hnd->format) { 572 ystride = cstride = hnd->width; 573 ycbcr->y = (void*)hnd->base; 574 ycbcr->cb = (void*)(hnd->base + ystride * hnd->height); 575 ycbcr->cr = (void*)(hnd->base + ystride * hnd->height + 1); 587 ystride = cstride = hnd->width; 588 ycbcr->y = (void*)hnd->base 649 private_handle_t* hnd = new private_handle_t(data.fd, data.size, local [all...] |
gpu.cpp | 158 private_handle_t *hnd = new private_handle_t(data.fd, size, flags, local 162 hnd->offset = data.offset; 163 hnd->base = (uintptr_t)(data.base) + data.offset; 164 hnd->gpuaddr = 0; 165 setMetaData(hnd, UPDATE_COLOR_SPACE, (void*) &colorSpace); 167 *pHandle = hnd; 227 private_handle_t* hnd = new private_handle_t( local 242 hnd->base = vaddr; 243 hnd->offset = vaddr - uintptr_t(m->framebuffer->base); 244 *pHandle = hnd; 376 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); local [all...] |
/hardware/qcom/display/msm8226/libgralloc/ |
mapper.cpp | 61 private_handle_t* hnd = (private_handle_t*)handle; 63 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && 64 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { 65 unsigned int 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 = uint64_t(mappedAddress) + hnd->offset 214 private_handle_t* hnd = (private_handle_t*)handle; local 246 private_handle_t* hnd = (private_handle_t*)handle; local 258 private_handle_t* hnd = (private_handle_t*)handle; local 272 private_handle_t* hnd = (private_handle_t*)handle; local 318 private_handle_t* hnd = (private_handle_t*)native_handle_create( local 341 private_handle_t* hnd = va_arg(args, private_handle_t*); local 366 private_handle_t* hnd = va_arg(args, private_handle_t*); local 382 private_handle_t* hnd = va_arg(args, private_handle_t*); local 417 private_handle_t* hnd = va_arg(args, private_handle_t*); local 430 private_handle_t* hnd = va_arg(args, private_handle_t*); local [all...] |
alloc_controller.cpp | 555 int getYUVPlaneInfo(private_handle_t* hnd, struct android_ycbcr* ycbcr) 563 switch (hnd->format) { 569 ystride = cstride = hnd->width; 570 ycbcr->y = (void*)hnd->base; 571 ycbcr->cb = (void*)(hnd->base + ystride * hnd->height); 572 ycbcr->cr = (void*)(hnd->base + ystride * hnd->height + 1); 583 ystride = cstride = hnd->width; 584 ycbcr->y = (void*)hnd->base 645 private_handle_t* hnd = new private_handle_t(data.fd, data.size, local [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 = uintptr_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/msm8084/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/msm8226/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/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/msm8960/libgenlock/ |
genlock.cpp | 75 private_handle_t *hnd = reinterpret_cast<private_handle_t*> local 77 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { 78 if (hnd->genlockPrivFd < 0) { 88 lock.fd = hnd->genlockHandle; 91 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_DREADLOCK, &lock)) { 94 lockType, strerror(errno), hnd->fd); 102 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_LOCK, &lock)) { 104 ,__FUNCTION__, lockType, strerror(errno), hnd->fd); 146 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local 147 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) 201 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local 231 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local 324 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(const 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...] |
/hardware/qcom/display/msm8974/libhwcomposer/ |
hwc_utils.h | 263 static inline bool isYuvBuffer(const private_handle_t* hnd) { 264 return (hnd && (hnd->bufferType == BUFFER_TYPE_VIDEO)); 268 static inline bool isSecureBuffer(const private_handle_t* hnd) { 269 return (hnd && (private_handle_t::PRIV_FLAGS_SECURE_BUFFER & hnd->flags)); 273 static inline bool isL3SecureBuffer(const private_handle_t* hnd) { 274 return (hnd && 275 (private_handle_t::PRIV_FLAGS_L3_SECURE_BUFFER & hnd->flags)); 278 static inline bool isBufferLocked(const private_handle_t* hnd) { [all...] |
/hardware/qcom/display/msm8084/libhwcomposer/ |
hwc_dump_layers.cpp | 226 private_handle_t *hnd = (private_handle_t *)layer->handle; local 239 if (hnd) 240 getHalPixelFormatStr(hnd->format, pixFormatStr); 245 (hnd)? getWidth(hnd) : -1, (hnd)? getHeight(hnd) : -1, 303 private_handle_t *hnd = (private_handle_t *)layer->handle; local 306 if (NULL == hnd) { 312 getHalPixelFormatStr(hnd->format, pixFormatStr) [all...] |
/hardware/qcom/display/msm8226/libhwcomposer/ |
hwc_dump_layers.cpp | 226 private_handle_t *hnd = (private_handle_t *)layer->handle; local 239 if (hnd) 240 getHalPixelFormatStr(hnd->format, pixFormatStr); 245 (hnd)? getWidth(hnd) : -1, (hnd)? getHeight(hnd) : -1, 303 private_handle_t *hnd = (private_handle_t *)layer->handle; local 306 if (NULL == hnd) { 312 getHalPixelFormatStr(hnd->format, pixFormatStr) [all...] |
hwc_utils.h | 259 bool isRotatorSupportedFormat(private_handle_t *hnd); 261 bool isRotationDoable(hwc_context_t *ctx, private_handle_t *hnd); 269 private_handle_t *hnd); 308 private_handle_t *hnd, 406 static inline bool isYuvBuffer(const private_handle_t* hnd) { 407 return (hnd && (hnd->bufferType == BUFFER_TYPE_VIDEO)); 411 static inline bool is4kx2kYuvBuffer(const private_handle_t* hnd) { 412 return (hnd && (hnd->bufferType == BUFFER_TYPE_VIDEO) & [all...] |