/hardware/qcom/display/msm8960/libgralloc/ |
H A D | 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 94 private_handle_t* hnd = (private_handle_t*)handle; local 175 terminateBuffer(gralloc_module_t const* module, private_handle_t* hnd) argument 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 307 private_handle_t* hnd = (private_handle_t*)handle; local 349 private_handle_t* hnd = (private_handle_t*)native_handle_create( local 372 private_handle_t* hnd = va_arg(args, private_handle_t*); local 393 private_handle_t* hnd = va_arg(args, private_handle_t*); local [all...] |
H A D | 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 [all...] |
H A D | gpu.cpp | 145 private_handle_t *hnd = new private_handle_t(data.fd, size, flags, local 149 hnd->offset = data.offset; 150 hnd->base = int(data.base) + data.offset; 151 hnd->gpuaddr = 0; 153 *pHandle = hnd; 213 private_handle_t* hnd = new private_handle_t( local 228 hnd->base = vaddr; 229 hnd->offset = vaddr - intptr_t(m->framebuffer->base); 230 *pHandle = hnd; 313 int gpu_context_t::free_impl(private_handle_t const* hnd) { argument 368 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); local [all...] |
H A D | 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) argument 387 if (hnd && hnd->fd > 0) { 388 IMemAlloc* memalloc = sAlloc->getAllocator(hnd->flags); 389 memalloc->free_buffer((void*)hnd [all...] |
/hardware/qcom/display/msm8084/libgralloc/ |
H A D | 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 179 terminateBuffer(gralloc_module_t const* module, private_handle_t* hnd) argument 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...] |
H A D | alloc_controller.cpp | 554 int getYUVPlaneInfo(private_handle_t* hnd, struct android_ycbcr* ycbcr) argument 562 switch (hnd->format) { 568 ystride = cstride = hnd->width; 569 ycbcr->y = (void*)hnd->base; 570 ycbcr->cb = (void*)(hnd->base + ystride * hnd->height); 571 ycbcr->cr = (void*)(hnd->base + ystride * hnd->height + 1); 583 ystride = cstride = hnd->width; 584 ycbcr->y = (void*)hnd 645 private_handle_t* hnd = new private_handle_t(data.fd, data.size, local 655 free_buffer(private_handle_t *hnd) argument [all...] |
/hardware/qcom/display/msm8226/libgralloc/ |
H A D | 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 179 terminateBuffer(gralloc_module_t const* module, private_handle_t* hnd) argument 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...] |
H A D | alloc_controller.cpp | 553 int getYUVPlaneInfo(private_handle_t* hnd, struct android_ycbcr* ycbcr) argument 561 switch (hnd->format) { 567 ystride = cstride = hnd->width; 568 ycbcr->y = (void*)hnd->base; 569 ycbcr->cb = (void*)(hnd->base + ystride * hnd->height); 570 ycbcr->cr = (void*)(hnd->base + ystride * hnd->height + 1); 581 ystride = cstride = hnd->width; 582 ycbcr->y = (void*)hnd 643 private_handle_t* hnd = new private_handle_t(data.fd, data.size, local 653 free_buffer(private_handle_t *hnd) argument [all...] |
H A D | gpu.cpp | 161 private_handle_t *hnd = new private_handle_t(data.fd, size, flags, local 165 hnd->offset = data.offset; 166 hnd->base = (uint64_t)(data.base) + data.offset; 167 hnd->gpuaddr = 0; 168 setMetaData(hnd, UPDATE_COLOR_SPACE, (void*) &colorSpace); 170 *pHandle = hnd; 230 private_handle_t* hnd = new private_handle_t( local 245 hnd->base = vaddr; 246 hnd->offset = (unsigned int)(vaddr - m->framebuffer->base); 247 *pHandle = hnd; 328 free_impl(private_handle_t const* hnd) argument 384 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); local [all...] |
/hardware/qcom/display/msm8996/libgralloc/ |
H A D | mapper.cpp | 65 private_handle_t* hnd = (private_handle_t*)handle; 68 IMemAlloc* memalloc = getAllocator(hnd->flags) ; 70 hnd->base = 0; 71 hnd->base_metadata = 0; 74 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && 75 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { 76 size = hnd->size; 78 hnd->offset, hnd->fd); 81 handle, hnd 188 terminateBuffer(gralloc_module_t const* module, private_handle_t* hnd) argument 212 private_handle_t* hnd = (private_handle_t*)handle; local 250 private_handle_t* hnd = (private_handle_t*)handle; local 263 private_handle_t* hnd = (private_handle_t*)handle; local 278 private_handle_t* hnd = (private_handle_t*)handle; local 314 private_handle_t* hnd = (private_handle_t*)native_handle_create( local 347 const private_handle_t* hnd = va_arg(args, private_handle_t*); local 362 const private_handle_t* hnd = va_arg(args, private_handle_t*); local 395 private_handle_t* hnd = va_arg(args, private_handle_t*); local 409 private_handle_t* hnd = va_arg(args, private_handle_t*); local 418 private_handle_t* hnd = va_arg(args, private_handle_t*); local 434 private_handle_t* hnd = va_arg(args, private_handle_t*); local 449 private_handle_t* hnd = va_arg(args, private_handle_t*); local 458 private_handle_t* hnd = va_arg(args, private_handle_t*); local 475 private_handle_t* hnd = va_arg(args, private_handle_t*); local [all...] |
/hardware/libhardware/modules/gralloc/ |
H A D | mapper.cpp | 42 private_handle_t* hnd = (private_handle_t*)handle; local 43 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { 44 size_t size = hnd->size; 46 PROT_READ|PROT_WRITE, MAP_SHARED, hnd->fd, 0); 51 hnd->base = uintptr_t(mappedAddress) + hnd->offset; 53 // hnd->fd, hnd->offset, hnd->size, mappedAddress); 55 *vaddr = (void*)hnd 62 private_handle_t* hnd = (private_handle_t*)handle; local 140 mapBuffer(gralloc_module_t const* module, private_handle_t* hnd) argument 147 terminateBuffer(gralloc_module_t const* module, private_handle_t* hnd) argument [all...] |
/hardware/qcom/display/msm8909/libgralloc/ |
H A D | mapper.cpp | 65 private_handle_t* hnd = (private_handle_t*)handle; 68 IMemAlloc* memalloc = getAllocator(hnd->flags) ; 71 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && 72 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { 73 size = hnd->size; 75 hnd->offset, hnd->fd); 78 handle, hnd->fd, strerror(errno)); 79 hnd->base = 0; 83 hnd 193 terminateBuffer(gralloc_module_t const* module, private_handle_t* hnd) argument 230 private_handle_t* hnd = (private_handle_t*)handle; local 268 private_handle_t* hnd = (private_handle_t*)handle; local 281 private_handle_t* hnd = (private_handle_t*)handle; local 296 private_handle_t* hnd = (private_handle_t*)handle; local 332 private_handle_t* hnd = (private_handle_t*)native_handle_create( local 365 private_handle_t* hnd = va_arg(args, private_handle_t*); local 381 private_handle_t* hnd = va_arg(args, private_handle_t*); local 416 private_handle_t* hnd = va_arg(args, private_handle_t*); local 429 private_handle_t* hnd = va_arg(args, private_handle_t*); local [all...] |
H A D | alloc_controller.cpp | 566 int getYUVPlaneInfo(private_handle_t* hnd, struct android_ycbcr* ycbcr) argument 574 switch (hnd->format) { 580 ystride = cstride = hnd->width; 581 ycbcr->y = (void*)hnd->base; 582 ycbcr->cb = (void*)(hnd->base + ystride * hnd->height); 583 ycbcr->cr = (void*)(hnd->base + ystride * hnd->height + 1); 593 ystride = cstride = hnd->width; 594 ycbcr->y = (void*)hnd 655 private_handle_t* hnd = new private_handle_t(data.fd, data.size, local 665 free_buffer(private_handle_t *hnd) argument [all...] |
/hardware/qcom/display/msm8994/libgralloc/ |
H A D | mapper.cpp | 59 private_handle_t* hnd = (private_handle_t*)handle; local 60 hnd->base_metadata = 0; 61 IMemAlloc* memalloc = getAllocator(hnd->flags) ; 64 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { 68 hnd->offset_metadata, hnd->fd_metadata); 71 hnd, hnd->fd_metadata, strerror(errno)); 74 hnd->base_metadata = uint64_t(mappedAddress) + hnd 196 terminateBuffer(gralloc_module_t const* module, private_handle_t* hnd) argument 220 private_handle_t* hnd = (private_handle_t*)handle; local 258 private_handle_t* hnd = (private_handle_t*)handle; local 271 private_handle_t* hnd = (private_handle_t*)handle; local 286 private_handle_t* hnd = (private_handle_t*)handle; local 322 private_handle_t* hnd = (private_handle_t*)native_handle_create( local 353 private_handle_t* hnd = va_arg(args, private_handle_t*); local 369 private_handle_t* hnd = va_arg(args, private_handle_t*); local 403 private_handle_t* hnd = va_arg(args, private_handle_t*); local 417 private_handle_t* hnd = va_arg(args, private_handle_t*); local 426 private_handle_t* hnd = va_arg(args, private_handle_t*); local [all...] |
H A D | alloc_controller.cpp | 645 int getYUVPlaneInfo(private_handle_t* hnd, struct android_ycbcr* ycbcr) argument 653 switch (hnd->format) { 659 ystride = cstride = hnd->width; 660 ycbcr->y = (void*)hnd->base; 661 ycbcr->cb = (void*)(hnd->base + ystride * hnd->height); 662 ycbcr->cr = (void*)(hnd->base + ystride * hnd->height + 1); 674 ystride = cstride = hnd->width; 675 ycbcr->y = (void*)hnd 736 private_handle_t* hnd = new private_handle_t(data.fd, data.size, local 746 free_buffer(private_handle_t *hnd) argument [all...] |
/hardware/qcom/display/msm8084/libcopybit/ |
H A D | 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/ |
H A D | 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/msm8909/libcopybit/ |
H A D | 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/ |
H A D | 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/msm8994/libcopybit/ |
H A D | 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/msm8996/libcopybit/ |
H A D | 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/ |
H A D | genlock.cpp | 76 private_handle_t *hnd = reinterpret_cast<private_handle_t*> local 78 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { 79 if (hnd->genlockPrivFd < 0) { 89 lock.fd = hnd->genlockHandle; 92 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_DREADLOCK, &lock)) { 95 lockType, strerror(errno), hnd->fd); 103 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_LOCK, &lock)) { 105 ,__FUNCTION__, lockType, strerror(errno), hnd->fd); 151 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local 152 if ((hnd 206 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local 236 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local 329 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local [all...] |
/hardware/qcom/display/msm8960/libhwcomposer/ |
H A D | hwc_utils.h | 216 static inline bool isYuvBuffer(const private_handle_t* hnd) { argument 217 return (hnd && (hnd->bufferType == BUFFER_TYPE_VIDEO)); 221 static inline bool isSecureBuffer(const private_handle_t* hnd) { argument 222 return (hnd && (private_handle_t::PRIV_FLAGS_SECURE_BUFFER & hnd->flags)); 225 static inline bool isBufferLocked(const private_handle_t* hnd) { argument 226 return (hnd && (private_handle_t::PRIV_FLAGS_HWC_LOCK & hnd->flags)); 230 static inline bool isExtOnly(const private_handle_t* hnd) { argument 235 isExtBlock(const private_handle_t* hnd) argument 240 isExtCC(const private_handle_t* hnd) argument 244 getWidth(const private_handle_t* hnd) argument 254 getHeight(const private_handle_t* hnd) argument [all...] |
/hardware/qcom/display/msm8084/libhwcomposer/ |
H A D | 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 [all...] |
/hardware/qcom/display/msm8226/libhwcomposer/ |
H A D | 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 [all...] |