/hardware/qcom/display/msm8960/libgralloc/ |
D | mapper.cpp | 60 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map() local 62 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && in gralloc_map() 63 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { in gralloc_map() 64 size_t size = hnd->size; in gralloc_map() 65 IMemAlloc* memalloc = getAllocator(hnd->flags) ; in gralloc_map() 67 hnd->offset, hnd->fd); in gralloc_map() 70 handle, hnd->fd, strerror(errno)); in gralloc_map() 71 hnd->base = 0; in gralloc_map() 75 hnd->base = intptr_t(mappedAddress) + hnd->offset; in gralloc_map() 79 hnd->offset_metadata, hnd->fd_metadata); in gralloc_map() [all …]
|
/hardware/qcom/display/msm8084/libgralloc/ |
D | mapper.cpp | 61 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map() local 63 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && in gralloc_map() 64 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { in gralloc_map() 65 size_t size = hnd->size; in gralloc_map() 66 IMemAlloc* memalloc = getAllocator(hnd->flags) ; in gralloc_map() 68 hnd->offset, hnd->fd); in gralloc_map() 71 handle, hnd->fd, strerror(errno)); in gralloc_map() 72 hnd->base = 0; in gralloc_map() 76 hnd->base = intptr_t(mappedAddress) + hnd->offset; in gralloc_map() 80 hnd->offset_metadata, hnd->fd_metadata); in gralloc_map() [all …]
|
/hardware/qcom/display/msm8226/libgralloc/ |
D | mapper.cpp | 61 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map() local 63 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && in gralloc_map() 64 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { in gralloc_map() 65 unsigned int size = hnd->size; in gralloc_map() 66 IMemAlloc* memalloc = getAllocator(hnd->flags) ; in gralloc_map() 68 hnd->offset, hnd->fd); in gralloc_map() 71 handle, hnd->fd, strerror(errno)); in gralloc_map() 72 hnd->base = 0; in gralloc_map() 76 hnd->base = uint64_t(mappedAddress) + hnd->offset; in gralloc_map() 80 hnd->offset_metadata, hnd->fd_metadata); in gralloc_map() [all …]
|
/hardware/qcom/display/msm8909/libgralloc/ |
D | mapper.cpp | 59 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map_metadata() local 60 hnd->base_metadata = 0; in gralloc_map_metadata() 61 IMemAlloc* memalloc = getAllocator(hnd->flags) ; in gralloc_map_metadata() 64 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_map_metadata() 68 hnd->offset_metadata, hnd->fd_metadata); in gralloc_map_metadata() 71 hnd, hnd->fd_metadata, strerror(errno)); in gralloc_map_metadata() 74 hnd->base_metadata = uint64_t(mappedAddress); in gralloc_map_metadata() 86 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map() local 89 IMemAlloc* memalloc = getAllocator(hnd->flags) ; in gralloc_map() 91 hnd->base = 0; in gralloc_map() [all …]
|
/hardware/qcom/display/msm8909w_3100/libgralloc/ |
D | mapper.cpp | 59 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map_metadata() local 60 hnd->base_metadata = 0; in gralloc_map_metadata() 61 IMemAlloc* memalloc = getAllocator(hnd->flags) ; in gralloc_map_metadata() 64 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_map_metadata() 68 hnd->offset_metadata, hnd->fd_metadata); in gralloc_map_metadata() 71 hnd, hnd->fd_metadata, strerror(errno)); in gralloc_map_metadata() 74 hnd->base_metadata = uint64_t(mappedAddress); in gralloc_map_metadata() 86 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map() local 89 IMemAlloc* memalloc = getAllocator(hnd->flags) ; in gralloc_map() 91 hnd->base = 0; in gralloc_map() [all …]
|
/hardware/qcom/display/msm8994/libgralloc/ |
D | mapper.cpp | 61 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map_metadata() local 62 hnd->base_metadata = 0; in gralloc_map_metadata() 63 IMemAlloc* memalloc = getAllocator(hnd->flags) ; in gralloc_map_metadata() 66 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_map_metadata() 70 hnd->offset_metadata, hnd->fd_metadata); in gralloc_map_metadata() 73 hnd, hnd->fd_metadata, strerror(errno)); in gralloc_map_metadata() 76 hnd->base_metadata = uint64_t(mappedAddress); in gralloc_map_metadata() 88 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map() local 91 IMemAlloc* memalloc = getAllocator(hnd->flags) ; in gralloc_map() 93 hnd->base = 0; in gralloc_map() [all …]
|
/hardware/qcom/display/msm8996/libgralloc/ |
D | mapper.cpp | 60 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map_metadata() local 61 hnd->base_metadata = 0; in gralloc_map_metadata() 62 IMemAlloc* memalloc = getAllocator(hnd->flags) ; in gralloc_map_metadata() 65 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_map_metadata() 69 hnd->offset_metadata, hnd->fd_metadata); in gralloc_map_metadata() 72 hnd, hnd->fd_metadata, strerror(errno)); in gralloc_map_metadata() 75 hnd->base_metadata = uint64_t(mappedAddress); in gralloc_map_metadata() 87 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map() local 90 IMemAlloc* memalloc = getAllocator(hnd->flags) ; in gralloc_map() 92 hnd->base = 0; in gralloc_map() [all …]
|
/hardware/qcom/display/msm8998/libgralloc1/ |
D | gr_buf_mgr.cpp | 192 auto hnd = buf->handle; in FreeBuffer() local 193 ALOGD_IF(DEBUG, "FreeBuffer handle:%p", hnd); in FreeBuffer() 195 if (private_handle_t::validate(hnd) != 0) { in FreeBuffer() 196 ALOGE("FreeBuffer: Invalid handle: %p", hnd); in FreeBuffer() 200 if (allocator_->FreeBuffer(reinterpret_cast<void *>(hnd->base), hnd->size, hnd->offset, in FreeBuffer() 201 hnd->fd, buf->ion_handle_main) != 0) { in FreeBuffer() 206 if (allocator_->FreeBuffer(reinterpret_cast<void *>(hnd->base_metadata), meta_size, in FreeBuffer() 207 hnd->offset_metadata, hnd->fd_metadata, buf->ion_handle_meta) != 0) { in FreeBuffer() 211 private_handle_t * handle = const_cast<private_handle_t *>(hnd); in FreeBuffer() 220 void BufferManager::RegisterHandleLocked(const private_handle_t *hnd, in RegisterHandleLocked() argument [all …]
|
D | gr_priv_handle.h | 153 const private_handle_t *hnd = (const private_handle_t *)h; in validate() local 161 if (hnd->magic != kMagic) { in validate() 163 clean_magic_byte(hnd->magic >> 24), in validate() 164 clean_magic_byte(hnd->magic >> 16), in validate() 165 clean_magic_byte(hnd->magic >> 8), in validate() 166 clean_magic_byte(hnd->magic >> 0), in validate() 174 static void Dump(const private_handle_t *hnd) { in Dump() 177 hnd->id, hnd->width, hnd->height, hnd->unaligned_width, hnd->unaligned_height, hnd->size, in Dump() 178 hnd->fd, hnd->fd_metadata, hnd->flags, hnd->producer_usage, hnd->consumer_usage, in Dump() 179 hnd->format, hnd->layer_count); in Dump()
|
/hardware/qcom/display/msm8996/libgralloc1/ |
D | gr_buf_mgr.cpp | 193 auto hnd = buf->handle; in FreeBuffer() local 194 ALOGD_IF(DEBUG, "FreeBuffer handle:%p id: %" PRIu64, hnd, hnd->id); in FreeBuffer() 195 if (allocator_->FreeBuffer(reinterpret_cast<void *>(hnd->base), hnd->size, hnd->offset, in FreeBuffer() 196 hnd->fd, buf->ion_handle_main) != 0) { in FreeBuffer() 201 if (allocator_->FreeBuffer(reinterpret_cast<void *>(hnd->base_metadata), meta_size, in FreeBuffer() 202 hnd->offset_metadata, hnd->fd_metadata, buf->ion_handle_meta) != 0) { in FreeBuffer() 206 private_handle_t * handle = const_cast<private_handle_t *>(hnd); in FreeBuffer() 213 void BufferManager::RegisterHandleLocked(const private_handle_t *hnd, in RegisterHandleLocked() argument 216 auto buffer = std::make_shared<Buffer>(hnd, ion_handle, ion_handle_meta); in RegisterHandleLocked() 217 handles_map_.emplace(std::make_pair(hnd, buffer)); in RegisterHandleLocked() [all …]
|
D | gr_priv_handle.h | 147 const private_handle_t *hnd = (const private_handle_t *)h; in validate() local 149 h->numFds != kNumFds || hnd->magic != kMagic) { in validate() 155 hnd ? (((hnd->magic >> 24) & 0xFF) ? ((hnd->magic >> 24) & 0xFF) : '-') : '?', in validate() 156 hnd ? (((hnd->magic >> 16) & 0xFF) ? ((hnd->magic >> 16) & 0xFF) : '-') : '?', in validate() 157 hnd ? (((hnd->magic >> 8) & 0xFF) ? ((hnd->magic >> 8) & 0xFF) : '-') : '?', in validate() 158 hnd ? (((hnd->magic >> 0) & 0xFF) ? ((hnd->magic >> 0) & 0xFF) : '-') : '?', in validate() 166 static void Dump(const private_handle_t *hnd) { in Dump() 169 hnd->id, hnd->width, hnd->height, hnd->unaligned_width, hnd->unaligned_height, hnd->size, in Dump() 170 hnd->fd, hnd->fd_metadata, hnd->flags, hnd->producer_usage, hnd->consumer_usage, in Dump() 171 hnd->format, hnd->layer_count); in Dump()
|
/hardware/google/gchips/gralloc4/src/hidl_common/ |
D | SharedMetadata.cpp | 42 void get_name(const private_handle_t *hnd, std::string *name) in get_name() argument 44 …auto *metadata = reinterpret_cast<shared_metadata *>(mali_gralloc_reference_get_metadata_addr(hnd)… in get_name() 48 void get_crop_rect(const private_handle_t *hnd, std::optional<Rect> *crop) in get_crop_rect() argument 50 …auto *metadata = reinterpret_cast<shared_metadata *>(mali_gralloc_reference_get_metadata_addr(hnd)… in get_crop_rect() 54 android::status_t set_crop_rect(const private_handle_t *hnd, const Rect &crop) in set_crop_rect() argument 56 …auto *metadata = reinterpret_cast<shared_metadata *>(mali_gralloc_reference_get_metadata_addr(hnd)… in set_crop_rect() 59 crop.left > crop.right || crop.right > hnd->plane_info[0].alloc_width || in set_crop_rect() 60 crop.top > crop.bottom || crop.bottom > hnd->plane_info[0].alloc_height || in set_crop_rect() 61 (crop.right - crop.left) != hnd->width || in set_crop_rect() 62 (crop.bottom - crop.top) != hnd->height) in set_crop_rect() [all …]
|
D | SharedMetadata.h | 50 void get_name(const private_handle_t *hnd, std::string *name); 52 void get_crop_rect(const private_handle_t *hnd, std::optional<Rect> *crop); 53 android::status_t set_crop_rect(const private_handle_t *hnd, const Rect &crop_rectangle); 55 void get_dataspace(const private_handle_t *hnd, std::optional<Dataspace> *dataspace); 56 void set_dataspace(const private_handle_t *hnd, const Dataspace &dataspace); 58 void get_blend_mode(const private_handle_t *hnd, std::optional<BlendMode> *blend_mode); 59 void set_blend_mode(const private_handle_t *hnd, const BlendMode &blend_mode); 61 void get_smpte2086(const private_handle_t *hnd, std::optional<Smpte2086> *smpte2086); 62 android::status_t set_smpte2086(const private_handle_t *hnd, const std::optional<Smpte2086> &smpte2… 64 void get_cta861_3(const private_handle_t *hnd, std::optional<Cta861_3> *cta861_3); [all …]
|
/hardware/google/gchips/gralloc4/src/core/ |
D | mali_gralloc_bufferaccess.cpp | 64 static void buffer_sync(private_handle_t * const hnd, in buffer_sync() argument 69 hnd->cpu_read = (direction == TX_FROM_DEVICE || direction == TX_BOTH) ? 1 : 0; in buffer_sync() 70 hnd->cpu_write = (direction == TX_TO_DEVICE || direction == TX_BOTH) ? 1 : 0; in buffer_sync() 73 const int status = mali_gralloc_ion_sync_start(hnd, in buffer_sync() 74 hnd->cpu_read ? true : false, in buffer_sync() 75 hnd->cpu_write ? true : false); in buffer_sync() 82 else if (hnd->cpu_read || hnd->cpu_write) in buffer_sync() 85 const int status = mali_gralloc_ion_sync_end(hnd, in buffer_sync() 86 hnd->cpu_read ? true : false, in buffer_sync() 87 hnd->cpu_write ? true : false); in buffer_sync() [all …]
|
D | mali_gralloc_reference.cpp | 64 private_handle_t *hnd = in dmabuf_sanity_check() local 67 if (hnd->fd_count < 0 || hnd->fd_count > MAX_FDS) { in dmabuf_sanity_check() 68 MALI_GRALLOC_LOGE("%s failed: invalid number of fds (%d)", __func__, hnd->fd_count); in dmabuf_sanity_check() 72 int valid_fd_count = std::find(hnd->fds, hnd->fds + MAX_FDS, -1) - hnd->fds; in dmabuf_sanity_check() 74 if (hnd->fd_count + 1 != valid_fd_count) { in dmabuf_sanity_check() 77 __func__, hnd->fd_count, valid_fd_count - 1); in dmabuf_sanity_check() 95 for (auto i = 0; i < hnd->fd_count; i++) { in dmabuf_sanity_check() 96 if (!check_pid(hnd->fds[i], hnd->alloc_sizes[i])) { in dmabuf_sanity_check() 105 if (!check_pid(hnd->get_share_attr_fd(), hnd->attr_size)) { in dmabuf_sanity_check() 129 private_handle_t *hnd = in map_buffer_locked() local [all …]
|
/hardware/libhardware/modules/gralloc/ |
D | mapper.cpp | 41 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map() local 42 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_map() 43 size_t size = hnd->size; in gralloc_map() 45 PROT_READ|PROT_WRITE, MAP_SHARED, hnd->fd, 0); in gralloc_map() 50 hnd->base = uintptr_t(mappedAddress) + hnd->offset; in gralloc_map() 54 *vaddr = (void*)hnd->base; in gralloc_map() 61 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap() local 62 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_unmap() 63 void* base = (void*)hnd->base; in gralloc_unmap() 64 size_t size = hnd->size; in gralloc_unmap() [all …]
|
/hardware/qcom/display/msm8909w_3100/libgralloc1/ |
D | gr_buf_mgr.cpp | 194 auto hnd = buf->handle; in FreeBuffer() local 195 ALOGD_IF(DEBUG, "FreeBuffer handle:%p id: %" PRIu64, hnd, hnd->id); in FreeBuffer() 196 if (allocator_->FreeBuffer(reinterpret_cast<void *>(hnd->base), hnd->size, hnd->offset, in FreeBuffer() 197 hnd->fd, buf->ion_handle_main) != 0) { in FreeBuffer() 202 if (allocator_->FreeBuffer(reinterpret_cast<void *>(hnd->base_metadata), meta_size, in FreeBuffer() 203 hnd->offset_metadata, hnd->fd_metadata, buf->ion_handle_meta) != 0) { in FreeBuffer() 207 private_handle_t * handle = const_cast<private_handle_t *>(hnd); in FreeBuffer() 216 void BufferManager::RegisterHandleLocked(const private_handle_t *hnd, in RegisterHandleLocked() argument 219 auto buffer = std::make_shared<Buffer>(hnd, ion_handle, ion_handle_meta); in RegisterHandleLocked() 220 handles_map_.emplace(std::make_pair(hnd, buffer)); in RegisterHandleLocked() [all …]
|
D | gr_priv_handle.h | 154 const private_handle_t *hnd = (const private_handle_t *)h; in validate() local 156 h->numFds != kNumFds || hnd->magic != kMagic) { in validate() 162 hnd ? (((hnd->magic >> 24) & 0xFF) ? ((hnd->magic >> 24) & 0xFF) : '-') : '?', in validate() 163 hnd ? (((hnd->magic >> 16) & 0xFF) ? ((hnd->magic >> 16) & 0xFF) : '-') : '?', in validate() 164 hnd ? (((hnd->magic >> 8) & 0xFF) ? ((hnd->magic >> 8) & 0xFF) : '-') : '?', in validate() 165 hnd ? (((hnd->magic >> 0) & 0xFF) ? ((hnd->magic >> 0) & 0xFF) : '-') : '?', in validate() 172 static void Dump(const private_handle_t *hnd) { in Dump() 175 hnd->id, hnd->width, hnd->height, hnd->unaligned_width, hnd->unaligned_height, hnd->size, in Dump() 176 hnd->fd, hnd->fd_metadata, hnd->flags, hnd->producer_usage, hnd->consumer_usage, in Dump() 177 hnd->format, hnd->layer_count); in Dump()
|
/hardware/qcom/display/msm8909/gralloc/ |
D | gr_buf_mgr.cpp | 194 auto hnd = buf->handle; in FreeBuffer() local 195 ALOGD_IF(DEBUG, "FreeBuffer handle:%p", hnd); in FreeBuffer() 197 if (private_handle_t::validate(hnd) != 0) { in FreeBuffer() 198 ALOGE("FreeBuffer: Invalid handle: %p", hnd); in FreeBuffer() 202 if (allocator_->FreeBuffer(reinterpret_cast<void *>(hnd->base), hnd->size, hnd->offset, in FreeBuffer() 203 hnd->fd, buf->ion_handle_main) != 0) { in FreeBuffer() 208 if (allocator_->FreeBuffer(reinterpret_cast<void *>(hnd->base_metadata), meta_size, in FreeBuffer() 209 hnd->offset_metadata, hnd->fd_metadata, buf->ion_handle_meta) != 0) { in FreeBuffer() 213 private_handle_t * handle = const_cast<private_handle_t *>(hnd); in FreeBuffer() 222 void BufferManager::RegisterHandleLocked(const private_handle_t *hnd, in RegisterHandleLocked() argument [all …]
|
D | gr_priv_handle.h | 153 const private_handle_t *hnd = (const private_handle_t *)h; in validate() local 155 h->numFds != kNumFds || hnd->magic != kMagic) { in validate() 161 hnd ? (((hnd->magic >> 24) & 0xFF) ? ((hnd->magic >> 24) & 0xFF) : '-') : '?', in validate() 162 hnd ? (((hnd->magic >> 16) & 0xFF) ? ((hnd->magic >> 16) & 0xFF) : '-') : '?', in validate() 163 hnd ? (((hnd->magic >> 8) & 0xFF) ? ((hnd->magic >> 8) & 0xFF) : '-') : '?', in validate() 164 hnd ? (((hnd->magic >> 0) & 0xFF) ? ((hnd->magic >> 0) & 0xFF) : '-') : '?', in validate() 171 static void Dump(const private_handle_t *hnd) { in Dump() 174 hnd->id, hnd->width, hnd->height, hnd->unaligned_width, hnd->unaligned_height, hnd->size, in Dump() 175 hnd->fd, hnd->fd_metadata, hnd->flags, hnd->producer_usage, hnd->consumer_usage, in Dump() 176 hnd->format, hnd->layer_count); in Dump()
|
/hardware/qcom/sm8150/display/gralloc/ |
D | QtiMapperExtensions.cpp | 53 auto hnd = static_cast<private_handle_t *>(buffer); in getMapSecureBufferFlag() local 55 if (buffer != nullptr && private_handle_t::validate(hnd) == 0) { in getMapSecureBufferFlag() 56 if (getMetaData(hnd, GET_MAP_SECURE_BUFFER, &map_secure_buffer) != 0) { in getMapSecureBufferFlag() 68 auto hnd = static_cast<private_handle_t *>(buffer); in getInterlacedFlag() local 70 if (buffer != nullptr && private_handle_t::validate(hnd) == 0) { in getInterlacedFlag() 71 if (getMetaData(hnd, GET_PP_PARAM_INTERLACED, &interlaced_flag) != 0) { in getInterlacedFlag() 84 auto hnd = static_cast<private_handle_t *>(buffer); in getCustomDimensions() local 87 if (buffer != nullptr && private_handle_t::validate(hnd) == 0) { in getCustomDimensions() 88 stride = hnd->width; in getCustomDimensions() 89 height = hnd->height; in getCustomDimensions() [all …]
|
/hardware/qcom/sm7250/display/gralloc/ |
D | QtiMapperExtensions.cpp | 53 auto hnd = static_cast<private_handle_t *>(buffer); in getMapSecureBufferFlag() local 55 if (buffer != nullptr && private_handle_t::validate(hnd) == 0) { in getMapSecureBufferFlag() 56 if (getMetaData(hnd, GET_MAP_SECURE_BUFFER, &map_secure_buffer) != 0) { in getMapSecureBufferFlag() 68 auto hnd = static_cast<private_handle_t *>(buffer); in getInterlacedFlag() local 70 if (buffer != nullptr && private_handle_t::validate(hnd) == 0) { in getInterlacedFlag() 71 if (getMetaData(hnd, GET_PP_PARAM_INTERLACED, &interlaced_flag) != 0) { in getInterlacedFlag() 84 auto hnd = static_cast<private_handle_t *>(buffer); in getCustomDimensions() local 87 if (buffer != nullptr && private_handle_t::validate(hnd) == 0) { in getCustomDimensions() 88 stride = hnd->width; in getCustomDimensions() 89 height = hnd->height; in getCustomDimensions() [all …]
|
/hardware/google/gchips/gralloc4/src/allocator/ |
D | mali_gralloc_ion.cpp | 268 int mali_gralloc_ion_sync(const private_handle_t * const hnd, in mali_gralloc_ion_sync() argument 273 if (hnd == NULL) in mali_gralloc_ion_sync() 278 for (int i = 0; i < hnd->fd_count; i++) in mali_gralloc_ion_sync() 280 const int fd = hnd->fds[i]; in mali_gralloc_ion_sync() 291 int mali_gralloc_ion_sync_start(const private_handle_t * const hnd, in mali_gralloc_ion_sync_start() argument 295 return mali_gralloc_ion_sync(hnd, read, write, true); in mali_gralloc_ion_sync_start() 299 int mali_gralloc_ion_sync_end(const private_handle_t * const hnd, in mali_gralloc_ion_sync_end() argument 303 return mali_gralloc_ion_sync(hnd, read, write, false); in mali_gralloc_ion_sync_end() 307 void mali_gralloc_ion_free(private_handle_t * const hnd) in mali_gralloc_ion_free() argument 309 for (int i = 0; i < hnd->fd_count; i++) in mali_gralloc_ion_free() [all …]
|
/hardware/google/gchips/libvendorgraphicbuffer/gralloc5/ |
D | vendor_graphicbuffer_meta.cpp | 129 int VendorGraphicBufferMeta::get_dataspace(buffer_handle_t hnd) { in get_dataspace() argument 130 if (!hnd) { in get_dataspace() 134 int err = get_metadata<StandardMetadataType::DATASPACE>(hnd, dataspace); in get_dataspace() 142 int VendorGraphicBufferMeta::set_dataspace(buffer_handle_t hnd, in set_dataspace() argument 144 native_handle_t* handle = const_cast<native_handle_t*>(hnd); in set_dataspace() 161 hnd, getMetaType(StandardMetadataType::DATASPACE), buffer.data(), in set_dataspace() 172 int VendorGraphicBufferMeta::is_afbc(buffer_handle_t hnd) { in is_afbc() argument 173 const auto* gralloc_hnd = convertNativeHandleToPrivateHandle(hnd); in is_afbc() 186 int VendorGraphicBufferMeta::is_sbwc(buffer_handle_t hnd) { in is_sbwc() argument 188 VendorGraphicBufferMeta::get_internal_format(hnd)); in is_sbwc() [all …]
|
/hardware/qcom/display/msm8960/libgenlock/ |
D | genlock.cpp | 76 private_handle_t *hnd = reinterpret_cast<private_handle_t*> in perform_lock_unlock_operation() local 78 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in perform_lock_unlock_operation() 79 if (hnd->genlockPrivFd < 0) { in perform_lock_unlock_operation() 89 lock.fd = hnd->genlockHandle; in perform_lock_unlock_operation() 92 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_DREADLOCK, &lock)) { in perform_lock_unlock_operation() 95 lockType, strerror(errno), hnd->fd); in perform_lock_unlock_operation() 103 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_LOCK, &lock)) { in perform_lock_unlock_operation() 105 ,__FUNCTION__, lockType, strerror(errno), hnd->fd); in perform_lock_unlock_operation() 151 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); in genlock_create_lock() local 152 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in genlock_create_lock() [all …]
|