/drivers/hdf_core/adapter/uhdf2/hdi/src/ |
H A D | buffer_util.c | 24 BufferHandle *AllocateNativeBufferHandle(uint32_t reserveFds, uint32_t reserveInts)
in AllocateNativeBufferHandle() argument 26 if (reserveFds > MAX_RESERVE_FDS || reserveInts > MAX_RESERVE_INTS) {
in AllocateNativeBufferHandle() 27 HDF_LOGE("%{public}s: illegal reserveFds or reserveInts", __func__);
in AllocateNativeBufferHandle() 31 size_t handleSize = sizeof(BufferHandle) + (sizeof(int32_t) * (reserveFds + reserveInts));
in AllocateNativeBufferHandle() 36 handle->reserveInts = reserveInts;
in AllocateNativeBufferHandle() 53 BufferHandle *handle = AllocateNativeBufferHandle(other->reserveFds, other->reserveInts);
in CloneNativeBufferHandle() 86 if (other->reserveInts == 0) {
in CloneNativeBufferHandle() 90 if (memcpy_s(&handle->reserve[handle->reserveFds], sizeof(int32_t) * handle->reserveInts,
in CloneNativeBufferHandle() 91 &other->reserve[other->reserveFds], sizeof(int32_t) * other->reserveInts) ! in CloneNativeBufferHandle() 190 uint32_t reserveInts = 0; HdfSbufReadNativeBufferHandle() local [all...] |
H A D | native_buffer.cpp | 90 if (!messageParcel.WriteUint32(handle_->reserveFds) || !messageParcel.WriteUint32(handle_->reserveInts) ||
in Marshalling() 181 os << "reserveInts:" << handle_->reserveInts << ", ";
in Dump() 184 if (UINT32_MAX - handle_->reserveFds >= handle_->reserveInts) {
in Dump() 185 uint32_t reserveSize = handle_->reserveFds + handle_->reserveInts;
in Dump() 206 uint32_t reserveInts = 0;
in ExtractFromParcel() local 207 if (!messageParcel.ReadUint32(reserveFds) || !messageParcel.ReadUint32(reserveInts)) {
in ExtractFromParcel() 208 HDF_LOGE("%{public}s: failed to read reserveFds or reserveInts", __func__);
in ExtractFromParcel() 211 if ((handle_ = AllocateNativeBufferHandle(reserveFds, reserveInts)) == nullptr) {
in ExtractFromParcel() 247 for (uint32_t j = 0; j < handle.reserveInts; in WriteReserveData() [all...] |
/drivers/interface/camera/sequenceable/buffer_handle/ |
H A D | buffer_handle_sequenceable.cpp | 45 auto newBufferHandle = NewBufferHandle(bufferHandle.reserveFds, bufferHandle.reserveInts); in BufferHandleSequenceable() 54 BufferHandle* BufferHandleSequenceable::NewBufferHandle(uint32_t reserveFds, uint32_t reserveInts) in NewBufferHandle() argument 56 return AllocateNativeBufferHandle(reserveFds, reserveInts); in NewBufferHandle()
|
H A D | buffer_handle_sequenceable.h | 40 static BufferHandle* NewBufferHandle(uint32_t reserveFds, uint32_t reserveInts);
|
/drivers/peripheral/camera/test/hdi/sequenceable_test/src/ |
H A D | camera_hdi_sequenceable_test.cpp | 122 constexpr int32_t reserveInts = 0; in HWTEST_F() local 124 BufferHandle* handle0 = BufferHandleSequenceable::NewBufferHandle(reserveFds, reserveInts); in HWTEST_F() 150 constexpr int32_t reserveInts = 0; in HWTEST_F() local 151 BufferHandle* handle0 = BufferHandleSequenceable::NewBufferHandle(reserveFds, reserveInts); in HWTEST_F() 157 bufferHandle.reserveInts = 2; in HWTEST_F()
|
/drivers/hdf_core/adapter/uhdf2/hdi/test/buffer_handle/ |
H A D | buffer_handle_test.cpp | 35 static BufferHandle *CreateBufferHandle(uint32_t reserveFds = 1, uint32_t reserveInts = 0);
42 BufferHandle *BufferHandleTest::CreateBufferHandle(uint32_t reserveFds, uint32_t reserveInts)
in CreateBufferHandle() argument 44 BufferHandle *handle = AllocateNativeBufferHandle(reserveFds, reserveInts);
in CreateBufferHandle() 61 for (uint32_t i = reserveFds; i < reserveInts; i++) {
in CreateBufferHandle() 83 os << "reserveInts:" << handle->reserveInts << ", ";
in BufferHandleDump() 85 if (UINT32_MAX - handle->reserveFds >= handle->reserveInts) {
in BufferHandleDump() 86 uint32_t reserveSize = handle->reserveFds + handle->reserveInts;
in BufferHandleDump() 247 // write reserveInts
in HWTEST_F() 282 // write reserveInts
in HWTEST_F() [all...] |
/drivers/hdf_core/interfaces/inner_api/hdi/base/ |
H A D | buffer_util.h | 49 * @brief Defines the maximum value of the <b>reserveInts</b> in <b>BufferHandle</b>.
61 * based on the specified <b>reserveFds</b> and <b>reserveInts</b>.
64 * @param reserveInts Indicates the integer count (<b>0</b> to <b>MAX_RESERVE_FDS</b>) in <b>reserve[reserveFds]</b>.
68 BufferHandle *AllocateNativeBufferHandle(uint32_t reserveFds, uint32_t reserveInts);
|
H A D | buffer_handle.h | 64 uint32_t reserveInts; /**< Number of the reserved integers */ member
|
/drivers/peripheral/base/ |
H A D | buffer_handle.h | 36 uint32_t reserveInts; /**< the number of reserved integer value */ member
|
/drivers/peripheral/display/buffer/vdi_base/include/ |
H A D | buffer_handle.h | 36 uint32_t reserveInts; /**< the number of reserved integer value */ member
|
/drivers/peripheral/codec/hal/src/ |
H A D | codec_types.c | 38 if (!HdfSbufWriteUint32(data, handle->reserveFds) || !HdfSbufWriteUint32(data, handle->reserveInts) || in BufferHandleMarshalling() 65 for (uint32_t i = 0; i < handle->reserveInts; i++) { in BufferHandleMarshalling() 79 uint32_t reserveInts = 0; in BufferHandleUnmarshalling() local 80 if (!HdfSbufReadUint32(data, &reserveFds) || !HdfSbufReadUint32(data, &reserveInts)) { in BufferHandleUnmarshalling() 81 CODEC_LOGE("read reserveFds or reserveInts failed!"); in BufferHandleUnmarshalling() 85 BufferHandle *tmpHandle = AllocateBufferHandle(reserveFds, reserveInts); in BufferHandleUnmarshalling() 114 for (uint32_t i = 0; i < tmpHandle->reserveInts; i++) { in BufferHandleUnmarshalling()
|
/drivers/interface/display/composer/v1_0/display_command/ |
H A D | display_cmd_utils.h | 210 DISPLAY_CHK_RETURN(packer.WriteUint32(buffer->reserveInts) == false, HDF_FAILURE, in BufferHandlePack() 211 HDF_LOGE("%{public}s, write buffer->reserveInts error", __func__)); in BufferHandlePack() 238 for (uint32_t j = 0; j < buffer->reserveInts; j++) { in BufferHandlePack() 314 for (uint32_t j = 0; j < handle->reserveInts; j++) { in UnpackExtraInfo()
|
/drivers/peripheral/display/buffer/test/moduletest/ |
H A D | display_buffer_mt.cpp | 103 HDF_LOGD("reserveInts =%{public}d", handle.reserveInts); in DumpBufferHandle()
|
/drivers/peripheral/display/interfaces/include/ |
H A D | display_type.h | 672 uint32_t reserveInts; /**< the number of reserved integer value */ member
|
/drivers/peripheral/codec/test/demo/v2.0/src/ |
H A D | codec_hdi_decode.cpp | 459 sizeof(BufferHandle) + (sizeof(int32_t) * (bufferHandle->reserveFds + bufferHandle->reserveInts)); in UseBufferHandle() 537 bufferInfo->bufferHandle->reserveInts); in FillAllTheBuffer()
|
H A D | codec_hdi_encode.cpp | 535 sizeof(BufferHandle) + sizeof(int32_t) * (bufferHandle->reserveFds + bufferHandle->reserveInts); in FillCodecBuffer()
|
/drivers/peripheral/display/buffer/vdi_base/src/ |
H A D | display_gralloc_gbm.cpp | 268 bufferHandle->reserveInts = 0; in InitBufferHandle()
|
/drivers/peripheral/display/hal/default/ |
H A D | display_gralloc.c | 161 buffer->hdl.reserveInts = (sizeof(PriBufferHandle) - sizeof(BufferHandle) - in InitBufferHandle()
|
/drivers/peripheral/codec/test/benchmarktest/ |
H A D | codec_benchmark_omx_test.cpp | 466 sizeof(BufferHandle) + (sizeof(int32_t) * (bufferHandle->reserveFds + bufferHandle->reserveInts)); in BENCHMARK_F()
|