Home
last modified time | relevance | path

Searched refs:usage (Results 1 - 25 of 76) sorted by relevance

1234

/drivers/peripheral/display/buffer/test/unittest/
H A Ddisplay_buffer_ut.cpp72 .usage = HBM_USE_MEM_DMA | HBM_USE_CPU_READ | HBM_USE_CPU_WRITE,
79 .usage = HBM_USE_MEM_DMA | HBM_USE_CPU_READ | HBM_USE_CPU_WRITE,
86 .usage = HBM_USE_MEM_DMA | HBM_USE_CPU_READ | HBM_USE_CPU_WRITE,
93 .usage = HBM_USE_MEM_DMA | HBM_USE_CPU_READ | HBM_USE_CPU_WRITE,
100 .usage = HBM_USE_MEM_DMA | HBM_USE_CPU_READ | HBM_USE_CPU_WRITE,
107 .usage = HBM_USE_MEM_DMA | HBM_USE_CPU_READ | HBM_USE_CPU_WRITE,
114 .usage = HBM_USE_MEM_DMA | HBM_USE_CPU_READ | HBM_USE_CPU_WRITE,
121 .usage = HBM_USE_MEM_DMA | HBM_USE_CPU_READ | HBM_USE_CPU_WRITE,
128 .usage = HBM_USE_MEM_DMA | HBM_USE_CPU_READ | HBM_USE_CPU_WRITE,
135 .usage
[all...]
/drivers/peripheral/display/hal/default_standard/src/display_gralloc/
H A Ddisplay_gralloc.cpp25 return AllocatorManager::GetInstance().GetAllocator(info->usage)->AllocMem(*info, handle); in AllocMem()
32 AllocatorManager::GetInstance().GetAllocator(handle->usage)->FreeMem(handle); in FreeMem()
39 return AllocatorManager::GetInstance().GetAllocator(handle->usage)->Mmap(*handle); in Mmap()
46 return AllocatorManager::GetInstance().GetAllocator(handle->usage)->Unmap(*handle); in Unmap()
53 return AllocatorManager::GetInstance().GetAllocator(handle->usage)->FlushCache(*handle); in FlushCache()
60 return AllocatorManager::GetInstance().GetAllocator(handle->usage)->InvalidateCache(*handle); in InvalidateCache()
H A Dallocator_manager.cpp66 Allocator* AllocatorManager::GetAllocator(uint64_t usage) in GetAllocator() argument
69 if ((usage & HBM_USE_MEM_FB) != 0) { in GetAllocator()
H A Dallocator_manager.h31 Allocator* GetAllocator(uint64_t usage);
H A Dallocator.cpp25 DISPLAY_LOGD("usage = 0x%{public}" PRIx64 "", handle.usage); in DumpBufferHandle()
137 bufferInfo.usage_ = info.usage; in ConvertToBufferInfo()
169 priBuffer->usage = bufferInfo.usage_; in AllocMem()
220 if (handle.usage & HBM_USE_CPU_WRITE) { in DmaBufferSync()
223 if (handle.usage & HBM_USE_CPU_READ) { in DmaBufferSync()
/drivers/peripheral/camera/vdi_base/common/buffer_manager/src/buffer_adapter/standard/
H A Dbuffer_adapter.cpp38 buffer->SetUsage(CameraUsageToGrallocUsage(bufHandle->usage)); in SurfaceBufferToCameraBuffer()
65 pHandle->usage = in CameraBufferToSurfaceBuffer()
111 uint64_t BufferAdapter::GrallocUsageToCameraUsage(const uint64_t usage) in GrallocUsageToCameraUsage() argument
116 for (uint32_t i = 0; i < sizeof(usage) * BYTE; i++) { in GrallocUsageToCameraUsage()
117 switch (usage & (test << i)) { in GrallocUsageToCameraUsage()
/drivers/peripheral/camera/vdi_base/usb_camera/buffer_manager/src/buffer_adapter/standard/
H A Dbuffer_adapter.cpp39 buffer->SetUsage(CameraUsageToGrallocUsage(bufHandle->usage)); in SurfaceBufferToCameraBuffer()
67 pHandle->usage = in CameraBufferToSurfaceBuffer()
113 uint64_t BufferAdapter::GrallocUsageToCameraUsage(const uint64_t usage) in GrallocUsageToCameraUsage() argument
118 for (uint32_t i = 0; i < sizeof(usage) * BYTE; i++) { in GrallocUsageToCameraUsage()
119 switch (usage & (test << i)) { in GrallocUsageToCameraUsage()
/drivers/peripheral/camera/vdi_base/common/buffer_manager/src/gralloc_buffer_allocator/
H A Dgralloc_buffer_allocator.cpp60 uint64_t usage = BufferAdapter::CameraUsageToGrallocUsage(cameraUsage); in AllocBuffer() local
62 width, height, usage, format); in AllocBuffer()
68 .usage = usage, in AllocBuffer()
219 dest.usage = in CameraBufferToGrallocBuffer()
239 dest->SetUsage(BufferAdapter::GrallocUsageToCameraUsage(src.usage)); in GrallocBufferToCameraBuffer()
/drivers/peripheral/camera/vdi_base/common/include/
H A Dstream.h34 uint64_t usage; member
50 uint64_t usage; member
/drivers/peripheral/camera/hal_c/hdi_cif/src/
H A Dbuffer_producer_wrapper.cpp43 requestConfig.usage = buffer->usage; in BufferProducerRequestBuffer()
62 buffer->usage = handle->usage; in BufferProducerRequestBuffer()
/drivers/peripheral/display/hdi_service/gralloc/include/
H A Dparcel_utils.h37 pAllocInfo->usage = data.ReadUint64(); in UnpackAllocInfo()
56 if (!data.WriteUint64(pAllocInfo->usage)) { in PackAllocInfo()
57 HDF_LOGE("%{public}s: write AllocInfo usage failed", __func__); in PackAllocInfo()
/drivers/peripheral/display/hal/default/
H A Ddisplay_gralloc.c157 buffer->hdl.usage = info->usage; in InitBufferHandle()
222 if (bufferHdl->usage == HBM_USE_MEM_SHARE) { in AllocMem()
225 HDF_LOGE("%s: not support memory usage: 0x%" PRIx64 "", __func__, bufferHdl->usage); in AllocMem()
259 if (buffer->usage == HBM_USE_MEM_SHARE) { in FreeMem()
262 HDF_LOGE("%s: not support memory usage: 0x%" PRIx64 "", __func__, buffer->usage); in FreeMem()
297 if (buffer->usage == HBM_USE_MEM_SHARE) { in Mmap()
300 HDF_LOGE("%s: not support memory usage in Mmap()
[all...]
/drivers/peripheral/camera/vdi_base/common/buffer_manager/src/buffer_adapter/lite/
H A Dbuffer_adapter.cpp146 uint64_t BufferAdapter::GrallocUsageToCameraUsage(const uint64_t usage) in GrallocUsageToCameraUsage() argument
151 for (uint32_t i = 0; i < sizeof(usage) * BYTE; i++) { in GrallocUsageToCameraUsage()
152 switch (usage & (test << i)) { in GrallocUsageToCameraUsage()
H A Dbuffer_adapter.h41 // convert camera usage to gralloc usage.
44 // convert gralloc usage to camera usage.
45 static uint64_t GrallocUsageToCameraUsage(const uint64_t usage);
/drivers/peripheral/camera/vdi_base/common/buffer_manager/src/
H A Dbuffer_allocator_utils.cpp63 const uint64_t usage, in AllocBuffer()
69 return allocator->AllocBuffer(width, height, usage, format); in AllocBuffer()
60 AllocBuffer(const int32_t source, const uint32_t width, const uint32_t height, const uint64_t usage, const uint32_t format) AllocBuffer() argument
H A Dimage_buffer.cpp29 const uint64_t usage, in ImageBuffer()
35 usage_ = usage; in ImageBuffer()
252 void ImageBuffer::SetUsage(const uint64_t usage) in SetUsage() argument
255 usage_ = usage; in SetUsage()
26 ImageBuffer(const int32_t source, const uint32_t width, const uint32_t height, const uint64_t usage, const uint32_t format) ImageBuffer() argument
/drivers/hdf_core/adapter/uhdf2/hdi/src/
H A Dbuffer_util.c74 handle->usage = other->usage; in CloneNativeBufferHandle()
134 !HdfSbufWriteInt32(data, handle->format) || !HdfSbufWriteUint64(data, handle->usage)) { in HdfSbufWriteNativeBufferHandle()
204 !HdfSbufReadInt32(data, &handle->format) || !HdfSbufReadUint64(data, &handle->usage)) { in HdfSbufReadNativeBufferHandle()
/drivers/peripheral/distributed_camera/hdi_service/src/dstream_operator/
H A Ddbuffer_manager.cpp79 if ((bufHandle->size <= 0) || (bufHandle->width <= 0) || (bufHandle->height <= 0) || (bufHandle->usage <= 0)) { in SurfaceBufferToDImageBuffer()
91 buffer->SetUsage(CameraUsageToGrallocUsage(bufHandle->usage)); in SurfaceBufferToDImageBuffer()
152 if ((bufHandle->size <= 0) || (bufHandle->width <= 0) || (bufHandle->height <= 0) || (bufHandle->usage <= 0)) { in DImageBufferToDCameraBuffer()
/drivers/hdf_core/interfaces/inner_api/hdi/base/
H A Dbuffer_handle.h60 uint64_t usage; /**< Usage of the buffer */ member
/drivers/peripheral/base/
H A Dbuffer_handle.h32 uint64_t usage; /**< the usage of memory */ member
/drivers/peripheral/display/buffer/vdi_base/include/
H A Dbuffer_handle.h32 uint64_t usage; /**< the usage of memory */ member
/drivers/peripheral/camera/vdi_base/common/pipeline_core/pipeline_impl/include/
H A Dconfig.h27 uint64_t usage; member
/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/driver_adapter/include/
H A Dv4l2_temp.h75 void SetUsage(const uint64_t usage) in SetUsage() argument
77 usage_ = usage; in SetUsage()
/drivers/peripheral/camera/vdi_base/common/buffer_manager/src/heap_buffer_allocator/
H A Dheap_buffer_allocator.cpp96 const uint64_t usage, in CalculateSize()
99 (void)usage; in CalculateSize()
94 CalculateSize(const uint32_t width, const uint32_t height, const uint64_t usage, const uint32_t format) const CalculateSize() argument
/drivers/peripheral/codec/test/fuzztest/image_fuzzer/common/src/
H A Dencode_buffer_helper.cpp93 uint64_t usage = OHOS::HDI::Display::Composer::V1_2::HBM_USE_CPU_READ | in CreateImgBuffer() local
99 .usage = usage, in CreateImgBuffer()

Completed in 8 milliseconds

1234