/drivers/peripheral/camera/hal_c/include/ |
D | stream_operator_c_if.h | 27 void (*OnCaptureStarted)(int captureId, int* streamId, int count); 28 void (*OnCaptureEnded)(int captureId, CaptureEndedInfoCIF* info, int count); 29 void (*OnCaptureError)(int captureId, CaptureErrorInfoCIF* info, int count); 30 void (*OnFrameShutter)(int captureId, int* streamId, int count, uint64_t timestamp); 35 int (*ReleaseStreams)(int* streamIds, int count); 45 int (*CreateStreams)(StreamInfoCIF* info, int count); 46 int (*ReleaseStreams)(int* streamIds, int count); 48 int (*GetStreamAttributes)(StreamAttributeCIF** attributes, int* count); 54 int count,
|
/drivers/peripheral/camera/hal_c/hdi_cif/src/ |
D | camera_device.cpp | 83 int count = 0; in GetEnabledResults() local 84 int ret = device_->GetEnabledResults(&meta, &count); in GetEnabledResults() 85 for (int i = 0; i < count; i++) { in GetEnabledResults() 98 int count = results.size(); in EnableResult() local 99 if (count <= 0) { in EnableResult() 102 MetaTypeCIF* meta = new MetaTypeCIF[count]; in EnableResult() 106 for (int i = 0; i < count; i++) { in EnableResult() 109 int ret = device_->EnableResult(meta, count); in EnableResult() 119 int count = results.size(); in DisableResult() local 120 if (count <= 0) { in DisableResult() [all …]
|
D | stream_operator.cpp | 75 int count = streamInfos.size(); in CreateStreams() local 76 if (count <= 0) { in CreateStreams() 79 StreamInfoCIF* sis = new StreamInfoCIF[count]; in CreateStreams() 84 for (int i = 0; i < count; i++) { in CreateStreams() 105 int ret = operator_->CreateStreams(sis, count); in CreateStreams() 118 int count = streamIds.size(); in ReleaseStreams() local 119 if (count <= 0) { in ReleaseStreams() 122 int* ids = new int[count]; in ReleaseStreams() 127 for (int i = 0; i < count; i++) { in ReleaseStreams() 131 int ret = operator_->ReleaseStreams(ids, count); in ReleaseStreams() [all …]
|
D | stream_operator_callback_wrapper.cpp | 28 void StreamCBOnCaptureStarted(int captureId, const int* streamId, int count) in StreamCBOnCaptureStarted() argument 34 for (int i = 0; i < count; i++) { in StreamCBOnCaptureStarted() 41 void StreamCBOnCaptureEnded(int captureId, CaptureEndedInfoCIF* info, int count) in StreamCBOnCaptureEnded() argument 48 for (int i = 0; i < count; i++) { in StreamCBOnCaptureEnded() 64 void StreamCBOnCaptureError(int captureId, CaptureErrorInfoCIF* info, int count) in StreamCBOnCaptureError() argument 71 for (int i = 0; i < count; i++) { in StreamCBOnCaptureError() 87 void StreamCBOnFrameShutter(int captureId, const int* streamId, int count, uint64_t timestamp) in StreamCBOnFrameShutter() argument 98 for (int i = 0; i < count; i++) { in StreamCBOnFrameShutter()
|
/drivers/peripheral/codec/test/benchmarktest/ |
D | codec_benchmark_manager_test.cpp | 49 int32_t count = 0; in BENCHMARK_F() local 52 ret = manager_->GetComponentNum(count); in BENCHMARK_F() 54 EXPECT_TRUE(count >= 0); in BENCHMARK_F() 64 int32_t count = 0; in BENCHMARK_F() local 65 auto ret = manager_->GetComponentNum(count); in BENCHMARK_F() 67 ASSERT_TRUE(count > 0); in BENCHMARK_F() 71 ret = manager_->GetComponentCapabilityList(capList, count); in BENCHMARK_F() 83 int32_t count = 0; in BENCHMARK_F() local 84 auto ret = manager_->GetComponentNum(count); in BENCHMARK_F() 86 ASSERT_TRUE(count > 0); in BENCHMARK_F() [all …]
|
/drivers/peripheral/codec/test/unittest/idl_omx/ |
D | codec_hdi_manager_test.cpp | 52 int32_t count = 0; variable 53 auto ret = manager_->GetComponentNum(count); 55 ASSERT_TRUE(count >= 0); 61 int32_t count = 0; variable 62 auto ret = manager_->GetComponentNum(count); 64 ASSERT_TRUE(count > 0); 67 ret = manager_->GetComponentCapabilityList(capList, count); 88 int32_t count = 0; variable 89 auto ret = manager_->GetComponentNum(count); 91 ASSERT_TRUE(count > 0); [all …]
|
/drivers/hdf_core/interfaces/inner_api/hdi/base/ |
D | hdi_smq.h | 100 int Write(const T *data, size_t count); 111 int Read(T *data, size_t count); 143 int Write(const T *data, size_t count, int64_t waitTimeNanoSec); 156 int Read(T *data, size_t count, int64_t waitTimeNanoSec); 185 int WriteNonBlocking(const T *data, size_t count); 197 int ReadNonBlocking(T *data, size_t count); 408 int SharedMemQueue<T>::Write(const T *data, size_t count) in Write() argument 410 return Write(data, count, 0); in Write() 414 int SharedMemQueue<T>::Read(T *data, size_t count) in Read() argument 416 return Read(data, count, 0); in Read() [all …]
|
/drivers/hdf_core/framework/model/display/driver/lcdkit/ |
D | lcdkit_parse_config.c | 20 static int32_t GetDsiCmdCount(uint8_t *array, int32_t len, uint32_t *count) in GetDsiCmdCount() argument 35 *count = cnt; in GetDsiCmdCount() 39 static int32_t ParseDsiCmd(struct PanelCmd *cmd, int32_t count, uint8_t *array, int32_t len) in ParseDsiCmd() argument 41 … struct DsiCmdDesc *dsiCmd = (struct DsiCmdDesc *)OsalMemCalloc(count * sizeof(struct DsiCmdDesc)); in ParseDsiCmd() 50 cmd->count = count; in ParseDsiCmd() 54 while (count > 0 && len > 0) { in ParseDsiCmd() 67 cmd->count = 0; in ParseDsiCmd() 80 cmd->count = 0; in ParseDsiCmd() 86 count--; in ParseDsiCmd() 108 uint32_t count = 0; in ParseCmdConfig() local [all …]
|
/drivers/hdf_core/framework/support/platform/src/i2c/ |
D | i2c_msg.c | 17 …t32_t AssignReplayBuffer(uint32_t lenReply, uint8_t **bufReply, struct I2cMsg *msgs, int16_t count) in AssignReplayBuffer() argument 27 for (i = 0, buf = *bufReply; i < count && buf < (*bufReply + lenReply); i++) { in AssignReplayBuffer() 37 static int32_t RebuildMsgs(struct HdfSBuf *data, struct I2cMsg **outMsgs, int16_t count) in RebuildMsgs() argument 45 size_t msgSize = sizeof(struct I2cMsg) * count; in RebuildMsgs() 55 for (i = 0; i < count; i++) { in RebuildMsgs() 76 if (lenReply > 0 && AssignReplayBuffer(lenReply, bufReply, msgs, count) != HDF_SUCCESS) { in RebuildMsgs() 86 int32_t I2cMsgsRebuildFromSbuf(struct HdfSBuf *data, struct I2cMsg **msgs, int16_t *count) in I2cMsgsRebuildFromSbuf() argument 104 *count = msgCount; in I2cMsgsRebuildFromSbuf() 109 int32_t I2cMsgsWriteToSbuf(struct I2cMsg *msgs, int16_t count, struct HdfSBuf *reply) in I2cMsgsWriteToSbuf() argument 112 for (i = 0; i < count; i++) { in I2cMsgsWriteToSbuf() [all …]
|
D | i2c_if.c | 33 int32_t I2cTransfer(DevHandle handle, struct I2cMsg *msgs, int16_t count) in I2cTransfer() argument 40 if (msgs == NULL || count <= 0) { in I2cTransfer() 41 HDF_LOGE("I2cTransfer: err params! msgs:%s, count:%hd!", (msgs == NULL) ? "0" : "x", count); in I2cTransfer() 45 return I2cCntlrTransfer((struct I2cCntlr *)handle, msgs, count); in I2cTransfer()
|
/drivers/peripheral/codec/hal/idl_service/src/ |
D | codec_component_config.cpp | 92 int count = sizeof(codecGroupsNodeName) / sizeof(std::string); in Init() local 93 for (int index = 0; index < count; index++) { in Init() 122 int32_t CodecComponentConfig::GetComponentNum(int32_t &count) in GetComponentNum() argument 124 count = static_cast<int32_t>(capList_.size()); in GetComponentNum() 125 CODEC_LOGD("enter, count = %{public}d", count); in GetComponentNum() 129 …mponentConfig::GetComponentCapabilityList(std::vector<CodecCompCapability> &capList, int32_t count) in GetComponentCapabilityList() argument 131 CODEC_LOGD("count[%{public}d], size[%{public}zu]", count, capList_.size()); in GetComponentCapabilityList() 132 if (count > static_cast<int32_t>(capList_.size())) { in GetComponentCapabilityList() 133 CODEC_LOGW("count[%{public}d] is too large", count); in GetComponentCapabilityList() 134 count = static_cast<int32_t>(capList_.size()); in GetComponentCapabilityList() [all …]
|
/drivers/peripheral/codec/test/unittest/hdi_omx/ |
D | codec_hdi_manager_test.cpp | 45 auto count = manager_->GetComponentNum(); variable 46 EXPECT_TRUE(count >= 0); 52 auto count = manager_->GetComponentNum(); variable 53 ASSERT_TRUE(count > 0); 54 …CompCapability *capList = (CodecCompCapability *)OsalMemAlloc(sizeof(CodecCompCapability) * count); 56 auto err = manager_->GetComponentCapabilityList(capList, count); 80 auto count = manager_->GetComponentNum(); variable 81 ASSERT_TRUE(count > 0); 82 …CompCapability *capList = (CodecCompCapability *)OsalMemAlloc(sizeof(CodecCompCapability) * count); 84 auto err = manager_->GetComponentCapabilityList(capList, count);
|
/drivers/peripheral/camera/interfaces/hdi_ipc/utils/src/ |
D | utils_data_stub.cpp | 22 for (size_t i = 0; i < entry.count; i++) { in WriteMetadataDataToVec() 26 for (size_t i = 0; i < entry.count; i++) { in WriteMetadataDataToVec() 30 for (size_t i = 0; i < entry.count; i++) { in WriteMetadataDataToVec() 34 for (size_t i = 0; i < entry.count; i++) { in WriteMetadataDataToVec() 38 for (size_t i = 0; i < entry.count; i++) { in WriteMetadataDataToVec() 42 for (size_t i = 0; i < entry.count; i++) { in WriteMetadataDataToVec() 76 WriteData<uint32_t>(item.count, cameraAbility); in ConvertMetadataToVec() 111 bRet = (bRet && data.WriteUint32(static_cast<uint32_t>(entry.count))); in EncodeCameraMetadata() 124 entry.data.u8 = new(std::nothrow) uint8_t[entry.count]; in ReadMetadataDataFromVec() 126 for (size_t i = 0; i < entry.count; i++) { in ReadMetadataDataFromVec() [all …]
|
/drivers/interface/camera/metadata/src/ |
D | metadata_utils.cpp | 35 for (size_t i = 0; i < entry.count; i++) { in WriteMetadataDataToVec() 39 for (size_t i = 0; i < entry.count; i++) { in WriteMetadataDataToVec() 43 for (size_t i = 0; i < entry.count; i++) { in WriteMetadataDataToVec() 47 for (size_t i = 0; i < entry.count; i++) { in WriteMetadataDataToVec() 51 for (size_t i = 0; i < entry.count; i++) { in WriteMetadataDataToVec() 55 for (size_t i = 0; i < entry.count; i++) { in WriteMetadataDataToVec() 106 if (item.count > MAX_SUPPORTED_ITEMS) { in ConvertMetadataToVec() 107 … METADATA_ERR_LOG("MetadataUtils::ConvertMetadataToVec: item.count out of range:%u", item.count); in ConvertMetadataToVec() 113 WriteData<uint32_t>(item.count, cameraAbility); in ConvertMetadataToVec() 145 bRet = bRet && data.WriteUint32(item.count); in EncodeCameraMetadata() [all …]
|
/drivers/hdf_core/adapter/khdf/linux/platform/i2c/ |
D | i2c_adapter.c | 28 static struct i2c_msg *CreateLinuxI2cMsgs(struct I2cMsg *msgs, int16_t count) in CreateLinuxI2cMsgs() argument 33 linuxMsgs = (struct i2c_msg *)OsalMemCalloc(sizeof(*linuxMsgs) * count); in CreateLinuxI2cMsgs() 39 for (i = 0; i < count; i++) { in CreateLinuxI2cMsgs() 48 static inline void FreeLinuxI2cMsgs(struct i2c_msg *msgs, int16_t count) in FreeLinuxI2cMsgs() argument 50 (void)count; in FreeLinuxI2cMsgs() 54 static int32_t LinuxI2cTransfer(struct I2cCntlr *cntlr, struct I2cMsg *msgs, int16_t count) in LinuxI2cTransfer() argument 63 if (msgs == NULL || count <= 0) { in LinuxI2cTransfer() 64 HDF_LOGE("LinuxI2cTransfer: err params! count:%d!", count); in LinuxI2cTransfer() 68 linuxMsgs = CreateLinuxI2cMsgs(msgs, count); in LinuxI2cTransfer() 74 ret = i2c_transfer((struct i2c_adapter *)cntlr->priv, linuxMsgs, count); in LinuxI2cTransfer() [all …]
|
/drivers/peripheral/camera/hal_c/hdi_cif/include/ |
D | stream_operator_callback_wrapper.h | 29 extern void StreamCBOnCaptureStarted(int captureId, const int* streamId, int count); 30 extern void StreamCBOnCaptureEnded(int captureId, CaptureEndedInfoCIF* info, int count); 31 extern void StreamCBOnCaptureError(int captureId, CaptureErrorInfoCIF* info, int count); 32 extern void StreamCBOnFrameShutter(int captureId, const int* streamId, int count, uint64_t timestam…
|
/drivers/hdf_core/framework/test/unittest/model/network/wifi/unittest/netdevice/ |
D | net_device_test.c | 93 uint32_t count = NetDevGetRegisterCount(); in WiFiNetDviceTestGetCount() local 94 if (count == 0) { in WiFiNetDviceTestGetCount() 102 uint32_t count = NetDeviceGetCap(); in WiFiNetDviceTestGetCap() local 103 if (count > 0) { in WiFiNetDviceTestGetCap() 125 int count = sizeof(g_filterData); in WiFiNetDviceTestRx() local 126 buff = NetBufAlloc(count); in WiFiNetDviceTestRx() 131 NetBufPush(buff, E_DATA_BUF, count); in WiFiNetDviceTestRx() 132 if (memcpy_s(NetBufGetAddress(buff, E_DATA_BUF), count, g_filterData, count) != EOK) { in WiFiNetDviceTestRx()
|
/drivers/peripheral/codec/test/fuzztest/hdi_fuzzer/codecgetcomponentcapabilitylisthdi_fuzzer/ |
D | codecgetcomponentcapabilitylist_fuzzer.cpp | 37 int32_t count = 0; in CodecGetComponentCapabilityList() local 38 auto err = omxMgr_->GetComponentNum(count); in CodecGetComponentCapabilityList() 39 if (err != HDF_SUCCESS || count <= 0) { in CodecGetComponentCapabilityList() 40 …HDF_LOGE("%{public}s GetComponentNum return %{public}d, count = %{public}d", __func__, err, count); in CodecGetComponentCapabilityList() 45 if (count != (static_cast<uint32_t>(*(const_cast<uint8_t *>(data))))) { in CodecGetComponentCapabilityList()
|
/drivers/hdf_core/framework/sample/platform/uart/src/ |
D | uart_dev_sample.c | 54 static ssize_t UartSampleRead(struct file *filep, char *buf, size_t count) in UartSampleRead() argument 65 if (LOS_IsUserAddressRange((vaddr_t)(uintptr_t)buf, count)) { in UartSampleRead() 66 tmpBuf = (uint8_t *)OsalMemCalloc(count); in UartSampleRead() 71 int32_t ret = UartHostRead(host, tmpBuf, count); in UartSampleRead() 73 ret = LOS_ArchCopyToUser(buf, tmpBuf, count); in UartSampleRead() 78 return UartHostRead(host, (uint8_t *)buf, count); in UartSampleRead() 82 static ssize_t UartSampleWrite(struct file *filep, const char *buf, size_t count) in UartSampleWrite() argument 93 if (LOS_IsUserAddressRange((vaddr_t)(uintptr_t)buf, count)) { in UartSampleWrite() 94 tmpBuf = (uint8_t *)OsalMemCalloc(count); in UartSampleWrite() 99 int32_t ret = LOS_ArchCopyFromUser(tmpBuf, buf, count); in UartSampleWrite() [all …]
|
/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/driver_adapter/src/ |
D | v4l2_control.cpp | 25 int count = 0; in V4L2SetCtrls() local 38 if (count < numControls) { in V4L2SetCtrls() 39 cList[count].value = itr->value; in V4L2SetCtrls() 40 count++; in V4L2SetCtrls() 46 ctrls.count = count; in V4L2SetCtrls() 53 for (int i = 0; count > 0; i++, count--) { in V4L2SetCtrls() 64 count = 0; in V4L2SetCtrls() 74 int count = 0; in V4L2GetCtrls() local 87 if (count < numControls) { in V4L2GetCtrls() 88 cList[count].id = itr->id; in V4L2GetCtrls() [all …]
|
/drivers/hdf_core/framework/support/platform/src/gpio/ |
D | gpio_manager.c | 35 freeStart = cntlrLast->start + cntlrLast->count; in GpioCntlrCheckStart() 45 if ((cntlr->start + cntlr->count) <= (freeStart + freeCount)) { in GpioCntlrCheckStart() 53 if (cntlr->start >= (cntlrLast->start + cntlrLast->count)) { in GpioCntlrCheckStart() 57 cntlr->start, cntlr->count, cntlrLast->start, cntlrLast->count); in GpioCntlrCheckStart() 68 HDF_LOGE("GpioManagerAdd: start:%hu(%hu) invalid:%d!", cntlr->start, cntlr->count, ret); in GpioManagerAdd() 73 PLAT_LOGI("GpioManagerAdd: start:%hu count:%hu added success!", cntlr->start, cntlr->count); in GpioManagerAdd() 116 cntlr->ginfos = OsalMemCalloc(sizeof(*cntlr->ginfos) * cntlr->count); in GpioCntlrCreateGpioInfos() 124 for (i = 0; i < cntlr->count; i++) { in GpioCntlrCreateGpioInfos() 155 for (i = 0; i < cntlr->count; i++) { in GpioCntlrDestroyGpioInfos() 179 if (cntlr->count == 0 || cntlr->count >= MAX_CNT_PER_CNTLR) { in GpioCntlrAdd() [all …]
|
/drivers/peripheral/codec/image/config/ |
D | codec_image_config.cpp | 57 const uint32_t count = 2; // encoder and decoder in Init() local 58 const static std::array<std::string, count> codecGroupsNodeName = { in Init() 62 for (uint32_t index = 0; index < count; index++) { in Init() 147 int32_t count = sizeof(nodeAttrs) / sizeof(ConfigUintNodeAttr); in GetOneCapability() local 148 for (int32_t i = 0; i < count; i++) { in GetOneCapability() 169 int32_t count = iface.GetElemNum(&node, attr.attrName.c_str()); in GetUintTableConfig() local 170 … CHECK_AND_RETURN_RET_LOG(count >= 0, HDF_FAILURE, "%{public}s table size: count[%{public}d] < 0!", in GetUintTableConfig() 171 attr.attrName.c_str(), count); in GetUintTableConfig() 173 if (count > 0) { in GetUintTableConfig() 174 std::unique_ptr<int32_t[]> array = std::make_unique<int32_t[]>(count); in GetUintTableConfig() [all …]
|
/drivers/hdf_core/adapter/khdf/linux/test/platform/i2c/ |
D | i2c_adapter_dummy.c | 30 static int32_t EchoI2cMsgs(struct I2cMsg *msgs, int16_t count) in EchoI2cMsgs() argument 37 for (i = 0; i < count; i++) { in EchoI2cMsgs() 52 return count; in EchoI2cMsgs() 55 static int32_t DummyI2cTransEcho(struct I2cCntlr *cntlr, struct I2cMsg *msgs, int16_t count) in DummyI2cTransEcho() argument 61 if (msgs == NULL || count <= 0) { in DummyI2cTransEcho() 62 HDF_LOGE("%s: err params! count:%d", __func__, count); in DummyI2cTransEcho() 66 return EchoI2cMsgs(msgs, count); in DummyI2cTransEcho()
|
/drivers/hdf_core/framework/support/platform/include/i2c/ |
D | i2c_msg.h | 17 int32_t I2cMsgsRebuildFromSbuf(struct HdfSBuf *data, struct I2cMsg **msgs, int16_t *count); 19 void I2cMsgsFree(struct I2cMsg *msgs, int16_t count); 21 int32_t I2cMsgsWriteToSbuf(struct I2cMsg *msgs, int16_t count, struct HdfSBuf *reply);
|
/drivers/peripheral/codec/test/fuzztest/hdi_fuzzer/codeccreatecomponenthdi_fuzzer/ |
D | codeccreatecomponent_fuzzer.cpp | 40 int32_t count = 0; in CodecCreateComponent() local 41 auto err = omxMgr_->GetComponentNum(count); in CodecCreateComponent() 42 if (err != HDF_SUCCESS || count <= 0) { in CodecCreateComponent() 43 …HDF_LOGE("%{public}s GetComponentNum return %{public}d, count = %{public}d", __func__, err, count); in CodecCreateComponent() 48 err = omxMgr_->GetComponentCapabilityList(caps, count); in CodecCreateComponent()
|