/drivers/hdf_core/adapter/khdf/uniproton/test/sample_driver/src/ |
D | gpio_test.c | 47 uint16_t val = 0; in TestCaseGpioIrqHandler1() local 48 GpioRead(GPIO_PIN_1, &val); in TestCaseGpioIrqHandler1() 49 if (val) { in TestCaseGpioIrqHandler1() 60 uint16_t val = 0; in TestCaseGpioIrqHandler2() local 61 GpioRead(GPIO_PIN_0, &val); in TestCaseGpioIrqHandler2() 62 if (val) { in TestCaseGpioIrqHandler2() 73 uint16_t val = 0; in TestCaseGpioIrqHandler3() local 74 GpioRead(GPIO_PIN_2, &val); in TestCaseGpioIrqHandler3() 75 if (val) { in TestCaseGpioIrqHandler3() 177 uint8_t val = 0; in TestCaseGpioWriteRead() local [all …]
|
/drivers/peripheral/codec/hal/passthrough/adapter/src/ |
D | component_common.cpp | 377 paramOut[index].val = nullptr; in SplitParamGettingPortDefinitionVideo() 388 paramOut[index].val = (void *)&(param->nBufferSize); in SplitParamSettingPortDefinitionVideo() 394 paramOut[index].val = (void *)&(param->format.video.eCompressionFormat); in SplitParamSettingPortDefinitionVideo() 398 paramOut[index].val = (void *)&(param->format.video.nFrameWidth); in SplitParamSettingPortDefinitionVideo() 402 paramOut[index].val = (void *)&(param->format.video.nFrameHeight); in SplitParamSettingPortDefinitionVideo() 406 paramOut[index].val = (void *)&(param->format.video.nStride); in SplitParamSettingPortDefinitionVideo() 410 paramOut[index].val = (void *)&(param->format.video.nBitrate); in SplitParamSettingPortDefinitionVideo() 414 paramOut[index].val = (void *)&(param->format.video.xFramerate); in SplitParamSettingPortDefinitionVideo() 421 paramOut[index].val = (void *)&(param->format.video.eColorFormat); in SplitParamSettingPortDefinitionVideo() 443 paramOut[index].val = setMark ? (void *)&(param->nBufferSize) : nullptr; in SplitParamPortDefinitionAudio() [all …]
|
/drivers/interface/display/composer/common/include/ |
D | display_interface_utils.h | 21 #define DISPLAY_CHECK(val, ...) \ argument 23 if (val) { \ 29 #define DISPLAY_CHK_RETURN(val, ret, ...) \ argument 31 if (val) { \
|
/drivers/interface/display/composer/command_pack/ |
D | command_data_utils.h | 26 #define DISPLAY_CHECK(val, ...) \ argument 28 if (val) { \ 34 #define DISPLAY_CHK_RETURN(val, ret, ...) \ argument 36 if (val) { \
|
/drivers/hdf_core/framework/core/manager/test/unittest/common/ |
D | hdf_sbuf_test.cpp | 121 uint8_t val = 0; in PullDataSequence() local 122 ret = HdfSbufReadUint8(sbuf, &val); in PullDataSequence() 123 … EXPECT_EQ(true, DataCompare(&val, dataTable[type]->data, dataTable[type]->size)); in PullDataSequence() 128 uint16_t val = 0; in PullDataSequence() local 129 ret = HdfSbufReadUint16(sbuf, &val); in PullDataSequence() 130 … EXPECT_EQ(true, DataCompare(&val, dataTable[type]->data, dataTable[type]->size)); in PullDataSequence() 135 uint32_t val = 0; in PullDataSequence() local 136 ret = HdfSbufReadUint32(sbuf, &val); in PullDataSequence() 137 … EXPECT_EQ(true, DataCompare(&val, dataTable[type]->data, dataTable[type]->size)); in PullDataSequence() 142 uint64_t val = 0; in PullDataSequence() local [all …]
|
/drivers/peripheral/display/composer/test/common/ |
D | display_test.h | 29 #define DISPLAY_TEST_CHK_RETURN_NOT_VALUE(val, ret, ...) \ argument 31 if (val) { \ 39 #define DISPLAY_TEST_CHK_RETURN(val, ret, ...) \ argument 41 if (val) { \
|
/drivers/hdf_core/framework/test/unittest/platform/common/ |
D | sdio_test.c | 83 uint8_t val; in TestSdioIncrAddrReadAndWriteOneByte() local 88 ret = SdioReadBytes(tester->handle, &val, addr, 1); in TestSdioIncrAddrReadAndWriteOneByte() 93 HDF_LOGD("TestSdioIncrAddrReadAndWriteOneByte: read, val:%d!\n", val); in TestSdioIncrAddrReadAndWriteOneByte() 95 ret = SdioWriteBytes(tester->handle, &val, addr, 1); in TestSdioIncrAddrReadAndWriteOneByte() 100 HDF_LOGD("TestSdioIncrAddrReadAndWriteOneByte: write, val:%d!\n", val); in TestSdioIncrAddrReadAndWriteOneByte() 103 ret = SdioReadBytes(tester->handle, &val, addr, 1); in TestSdioIncrAddrReadAndWriteOneByte() 108 HDF_LOGD("TestSdioIncrAddrReadAndWriteOneByte: read, val:%u!", val); in TestSdioIncrAddrReadAndWriteOneByte() 111 ret = SdioReadBytes(tester->handle, &val, addr, 1); in TestSdioIncrAddrReadAndWriteOneByte() 116 HDF_LOGE("TestSdioIncrAddrReadAndWriteOneByte: read, val:%u!", val); in TestSdioIncrAddrReadAndWriteOneByte() 169 uint8_t val; in TestSdioFixedAddrReadAndWriteOneByte() local [all …]
|
D | dac_test.c | 125 uint32_t val; in DacTestThreadFunc() local 136 val = i; in DacTestThreadFunc() 137 ret = DacWrite(tester->handle, tester->config.channel, val); in DacTestThreadFunc() 146 return val; in DacTestThreadFunc() 224 uint32_t val; in DacTestReliability() local 226 val = 0; in DacTestReliability() 232 (void)DacWrite(NULL, tester->config.channel, val); in DacTestReliability() 234 (void)DacWrite(tester->handle, tester->config.maxChannel + 1, val); in DacTestReliability() 251 uint32_t val; in DacIfPerformanceTest() local 253 val = 0; in DacIfPerformanceTest() [all …]
|
D | adc_test.c | 136 uint32_t val; in AdcTestThreadFunc() local 149 ret = AdcRead(tester->handle, tester->config.channel, &val); in AdcTestThreadFunc() 159 return val; in AdcTestThreadFunc() 237 uint32_t val; in AdcTestReliability() local 245 (void)AdcRead(NULL, tester->config.channel, &val); in AdcTestReliability() 247 (void)AdcRead(tester->handle, tester->config.maxChannel + 1, &val); in AdcTestReliability() 264 uint32_t val; in AdcIfPerformanceTest() local 274 ret = AdcRead(tester->handle, tester->config.channel, &val); in AdcIfPerformanceTest()
|
/drivers/peripheral/user_auth/common/utils/ |
D | iam_para2str.h | 29 static inline std::string GetMaskedString(uint16_t val) in GetMaskedString() argument 32 ss << "0xXXXX" << std::setfill('0') << std::setw(MASK_WIDTH) << std::hex << val; in GetMaskedString() 36 #define GET_MASKED_STRING(val) OHOS::UserIam::Common::GetMaskedString(static_cast<uint16_t>(val)) argument
|
/drivers/peripheral/face_auth/common/utils/ |
D | iam_para2str.h | 29 static inline std::string GetMaskedString(uint16_t val) in GetMaskedString() argument 32 ss << "0xXXXX" << std::setfill('0') << std::setw(MASK_WIDTH) << std::hex << val; in GetMaskedString() 36 #define GET_MASKED_STRING(val) OHOS::UserIam::Common::GetMaskedString(static_cast<uint16_t>(val)) argument
|
/drivers/hdf_core/framework/support/platform/src/fwk/ |
D | platform_dumper.c | 46 uint8_t *val = (uint8_t *)(data->data.paddr); in DumperPrintUint8Info() local 49 …_s(info, DUMPER_INFO_FILE_LEN + 1, DUMPER_INFO_FILE_LEN, data->printFormat, data->data.name, *val); in DumperPrintUint8Info() 57 uint16_t *val = (uint16_t *)(data->data.paddr); in DumperPrintUint16Info() local 60 …_s(info, DUMPER_INFO_FILE_LEN + 1, DUMPER_INFO_FILE_LEN, data->printFormat, data->data.name, *val); in DumperPrintUint16Info() 68 uint32_t *val = (uint32_t *)(data->data.paddr); in DumperPrintUint32Info() local 71 …_s(info, DUMPER_INFO_FILE_LEN + 1, DUMPER_INFO_FILE_LEN, data->printFormat, data->data.name, *val); in DumperPrintUint32Info() 79 uint64_t *val = (uint64_t *)(data->data.paddr); in DumperPrintUint64Info() local 82 …_s(info, DUMPER_INFO_FILE_LEN + 1, DUMPER_INFO_FILE_LEN, data->printFormat, data->data.name, *val); in DumperPrintUint64Info() 90 int8_t *val = (int8_t *)(data->data.paddr); in DumperPrintInt8Info() local 93 …_s(info, DUMPER_INFO_FILE_LEN + 1, DUMPER_INFO_FILE_LEN, data->printFormat, data->data.name, *val); in DumperPrintInt8Info() [all …]
|
/drivers/peripheral/display/utils/include/ |
D | display_log.h | 98 #define DISPLAY_CHK_RETURN(val, ret, ...) \ argument 100 if (val) { \ 108 #define DISPLAY_CHK_RETURN_NOT_VALUE(val, ...) \ argument 110 if (val) { \
|
/drivers/peripheral/display/hal/default_standard/include/ |
D | display_common.h | 104 #define DISPLAY_CHK_RETURN(val, ret, ...) \ argument 106 if (val) { \ 114 #define DISPLAY_CHK_RETURN_NOT_VALUE(val, ...) \ argument 116 if (val) { \
|
/drivers/peripheral/audio/test/sample/ |
D | idl_render.c | 102 static int32_t CheckInputName(int type, void *val) in CheckInputName() argument 104 if (val == NULL) { in CheckInputName() 126 *(int *)val = inputInt; in CheckInputName() 131 *(float *)val = inputFloat; in CheckInputName() 139 *(uint32_t *)val = inputUint; in CheckInputName() 754 int32_t val; in SetRenderMute() local 764 ret = CheckInputName(INPUT_INT, (void *)&val); in SetRenderMute() 774 if (val == 1) { in SetRenderMute() 788 float val = 0.0; in SetRenderVolume() local 790 ret = g_render->GetVolume((void *)g_render, &val); in SetRenderVolume() [all …]
|
D | idl_capture.c | 117 static int32_t CheckInputName(int type, void *val) in CheckInputName() argument 119 if (val == NULL) { in CheckInputName() 140 *(int *)val = capInputInt; in CheckInputName() 144 *(float *)val = capInputFloat; in CheckInputName() 151 *(uint32_t *)val = capInputUint; in CheckInputName() 731 int32_t val = 0; in SetCaptureMute() local 744 ret = CheckInputName(INPUT_INT, (void *)&val); in SetCaptureMute() 756 if (val == 1) { in SetCaptureMute() 765 float val = 0.5; in SetCaptureVolume() local 770 int32_t ret = g_capture->GetVolume((void *)g_capture, &val); in SetCaptureVolume() [all …]
|
/drivers/hdf_core/framework/test/unittest/platform/virtual/ |
D | adc_linux_virtual_iio_driver.c | 41 … int AdcReadChannelData(const struct iio_dev *indioDev, struct iio_chan_spec const *chan, int *val) in AdcReadChannelData() argument 43 if (val == NULL) { in AdcReadChannelData() 49 *val = ADC_VIRTUAL_RAW_DATA; in AdcReadChannelData() 57 static int AdcIioReadRaw(struct iio_dev *indioDev, struct iio_chan_spec const *chan, int *val, int … in AdcIioReadRaw() argument 63 if (indioDev == NULL || chan == NULL || val == NULL || val2 == NULL) { in AdcIioReadRaw() 77 ret = AdcReadChannelData(indioDev, chan, val); in AdcIioReadRaw() 82 *val = ADC_SCALE / ADC_SCALE_DATA; in AdcIioReadRaw()
|
/drivers/peripheral/display/hal/ |
D | disp_common.h | 40 #define DISPLAY_CHK_RETURN(val, ret, ...) \ argument 42 if (val) { \ 48 #define DISPLAY_CHK_RETURN_NOT_VALUE(val, ...) \ argument 50 if (val) { \
|
/drivers/hdf_core/framework/model/audio/core/src/ |
D | audio_core.c | 343 int32_t AudioDaiReadReg(const struct DaiDevice *dai, uint32_t reg, uint32_t *val) in AudioDaiReadReg() argument 347 if (dai == NULL || dai->devData == NULL || dai->devData->Read == NULL || val == NULL) { in AudioDaiReadReg() 352 ret = dai->devData->Read(dai, reg, val); in AudioDaiReadReg() 360 int32_t AudioDaiWriteReg(const struct DaiDevice *dai, uint32_t reg, uint32_t val) in AudioDaiWriteReg() argument 368 ret = dai->devData->Write(dai, reg, val); in AudioDaiWriteReg() 376 int32_t AudioCodecReadReg(const struct CodecDevice *codec, uint32_t reg, uint32_t *val) in AudioCodecReadReg() argument 380 if (codec == NULL || codec->devData == NULL || codec->devData->Read == NULL || val == NULL) { in AudioCodecReadReg() 385 ret = codec->devData->Read(codec, reg, val); in AudioCodecReadReg() 393 int32_t AudioCodecWriteReg(const struct CodecDevice *codec, uint32_t reg, uint32_t val) in AudioCodecWriteReg() argument 402 ret = codec->devData->Write(codec, reg, val); in AudioCodecWriteReg() [all …]
|
/drivers/hdf_core/adapter/khdf/linux/platform/gpio/ |
D | gpio_adapter.c | 36 static int32_t LinuxGpioWrite(struct GpioCntlr *cntlr, uint16_t local, uint16_t val) in LinuxGpioWrite() argument 42 gpio_set_value_cansleep(cntlr->start + local, val); in LinuxGpioWrite() 46 static int32_t LinuxGpioRead(struct GpioCntlr *cntlr, uint16_t local, uint16_t *val) in LinuxGpioRead() argument 52 if (val != NULL) { in LinuxGpioRead() 53 *val = (gpio_get_value_cansleep(cntlr->start + local) == 0) ? GPIO_VAL_LOW : GPIO_VAL_HIGH; in LinuxGpioRead() 63 int val; in LinuxGpioSetDir() local 77 val = gpio_get_value_cansleep(cntlr->start + local); in LinuxGpioSetDir() 78 if (val < 0) { in LinuxGpioSetDir() 81 ret = gpio_direction_output(cntlr->start + local, val); in LinuxGpioSetDir()
|
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/hdi_operate/ |
D | hdi_get_handler.py | 74 lambda val: os.path.join(self.root, val), 78 lambda val: os.path.join(self.root, val),
|
/drivers/hdf_core/framework/test/unittest/osal/ |
D | osal_case_cmd_test.h | 29 #define UT_TEST_CHECK_RET(val, cmd) do { \ argument 30 if ((val) && (g_testEndFlag == false)) { \
|
/drivers/external_device_manager/services/native/driver_extension_manager/src/drivers_pkg_manager/ |
D | driver_pkg_manager.cpp | 110 for (auto [key, val] : drvInfos_) { in QueryMatchDriver() 111 extInstance = BusExtensionCore::GetInstance().GetBusExtensionByName(val.GetBusName()); in QueryMatchDriver() 113 …EDM_LOGE(MODULE_PKG_MGR, "QueryMatchDriver GetInstance at bus:%{public}s", val.GetBusName().c_str(… in QueryMatchDriver() 117 if (extInstance->MatchDriver(val, *devInfo)) { in QueryMatchDriver() 124 val.Serialize(drvInfoStr); in QueryMatchDriver()
|
/drivers/hdf_core/framework/support/platform/src/gpio/ |
D | gpio_if.c | 17 int32_t GpioRead(uint16_t gpio, uint16_t *val) in GpioRead() argument 22 ret = GpioCntlrRead(cntlr, GpioCntlrGetLocal(cntlr, gpio), val); in GpioRead() 28 int32_t GpioWrite(uint16_t gpio, uint16_t val) in GpioWrite() argument 33 ret = GpioCntlrWrite(cntlr, GpioCntlrGetLocal(cntlr, gpio), val); in GpioWrite()
|
/drivers/hdf_core/adapter/khdf/uniproton/test/sample_driver/include/ |
D | osal_test_type.h | 49 #define UT_TEST_CHECK_RET(val, cmd) \ argument 51 if ((val) && (g_testEndFlag == false)) { \
|