/ohos5.0/drivers/hdf_core/framework/model/misc/vibrator/driver/src/ |
H A D | vibrator_parser.c | 23 ret = parser->GetUint16(attrNode, "chipIdRegister", &config->vibratorAttr.chipIdReg, 0); in ParseVibratorAttr() 25 ret = parser->GetUint16(attrNode, "chipIdValue", &config->vibratorAttr.chipIdValue, 0); in ParseVibratorAttr() 27 … ret = parser->GetUint16(attrNode, "defaultIntensity", &config->vibratorAttr.defaultIntensity, 0); in ParseVibratorAttr() 29 … ret = parser->GetUint16(attrNode, "defaultFrequency", &config->vibratorAttr.defaultFrequency, 0); in ParseVibratorAttr() 47 …ret = parser->GetUint16(infoNode, "intensityMaxValue", (uint16_t *)&config->vibratorInfo.intensity… in ParseVibratorInfo() 49 …ret = parser->GetUint16(infoNode, "intensityMinValue", (uint16_t *)&config->vibratorInfo.intensity… in ParseVibratorInfo() 51 …ret = parser->GetUint16(infoNode, "frequencyMaxValue", (uint16_t *)&config->vibratorInfo.frequency… in ParseVibratorInfo() 53 …ret = parser->GetUint16(infoNode, "frequencyMinValue", (uint16_t *)&config->vibratorInfo.frequency… in ParseVibratorInfo() 72 ret = parser->GetUint16(busNode, "busNum", &config->vibratorBus.i2cCfg.busNum, 0); in ParseVibratorBus() 74 ret = parser->GetUint16(busNode, "busAddr", &config->vibratorBus.i2cCfg.devAddr, 0); in ParseVibratorBus() [all …]
|
/ohos5.0/drivers/hdf_core/framework/model/input/driver/ |
H A D | input_config_parser.c | 46 ret = parser->GetUint16(infraredNode, "gpioNum", &config->gpioNum, 0); in ParseInfraredConfig() 48 ret = parser->GetUint16(infraredNode, "irqFlag", &config->irqFlag, 0); in ParseInfraredConfig() 74 ret = parser->GetUint16(keyNode, "gpioNum", &config->gpioNum, 0); in ParseKeyConfig() 76 ret = parser->GetUint16(keyNode, "irqFlag", &config->irqFlag, 0); in ParseKeyConfig() 101 ret = parser->GetUint16(encoderNode, "gpioClk", &config->gpioClk, 0); in ParseEncoderConfig() 103 ret = parser->GetUint16(encoderNode, "gpioDT", &config->gpioData, 0); in ParseEncoderConfig() 105 ret = parser->GetUint16(encoderNode, "gpioSW", &config->gpioSW, 0); in ParseEncoderConfig() 148 ret = parser->GetUint16(busNode, "csGpio", &bus->spi.csGpio, 0); in ParseBus() 164 ret = parser->GetUint16(pinsNode, "rstGpio", &pins->rstGpio, 0); in ParsePins() 166 ret = parser->GetUint16(pinsNode, "intGpio", &pins->intGpio, 0); in ParsePins() [all …]
|
/ohos5.0/drivers/hdf_core/framework/test/unittest/platform/common/ |
H A D | i3c_driver_test.c | 48 if (drsOps == NULL || drsOps->GetUint16 == NULL) { in I3cTestReadConfig() 53 ret = drsOps->GetUint16(node, "busId", &config->busId, 0); in I3cTestReadConfig() 59 ret = drsOps->GetUint16(node, "devAddr", &config->devAddr, 0); in I3cTestReadConfig() 65 ret = drsOps->GetUint16(node, "regLen", &config->regLen, 1); in I3cTestReadConfig() 71 ret = drsOps->GetUint16(node, "regAddr", &config->regAddr, 0); in I3cTestReadConfig() 77 ret = drsOps->GetUint16(node, "bufSize", &config->bufSize, 0); in I3cTestReadConfig()
|
H A D | i2c_driver_test.c | 51 ret = drsOps->GetUint16(node, "bus_num", &config->busNum, 0); in I2cTestReadConfig() 57 ret = drsOps->GetUint16(node, "dev_addr", &config->devAddr, 0); in I2cTestReadConfig() 63 ret = drsOps->GetUint16(node, "reg_len", &config->regLen, 1); in I2cTestReadConfig() 69 ret = drsOps->GetUint16(node, "reg_addr", &config->regAddr, 0); in I2cTestReadConfig() 75 ret = drsOps->GetUint16(node, "buf_size", &config->bufSize, 0); in I2cTestReadConfig()
|
H A D | gpio_driver_test.c | 79 if (drsOps == NULL || drsOps->GetUint16 == NULL) { in GpioTestReadConfig() 84 ret = drsOps->GetUint16(node, "gpio", &tmp, 0); in GpioTestReadConfig() 91 ret = drsOps->GetUint16(node, "gpioTestTwo", &tmp, 0); in GpioTestReadConfig() 98 ret = drsOps->GetUint16(node, "gpioIrq", &tmp, 0); in GpioTestReadConfig() 105 ret = drsOps->GetUint16(node, "testUserApi", &tmp, 0); in GpioTestReadConfig()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/ |
H A D | shader_module_gles.cpp | 138 uint16_t GetUint16() in GetUint16() function 154 const uint16_t len = GetUint16(); in GetStringView() 192 refl.offset = read.GetUint16(); in ProcessShaderModule() 193 refl.size = read.GetUint16(); in ProcessShaderModule() 194 refl.arraySize = read.GetUint16(); in ProcessShaderModule() 195 refl.arrayStride = read.GetUint16(); in ProcessShaderModule() 196 refl.matrixStride = read.GetUint16(); in ProcessShaderModule()
|
/ohos5.0/drivers/hdf_core/framework/model/network/wifi/platform/src/ |
H A D | hdf_wlan_config_parser.c | 223 if (drsOps == NULL || drsOps->GetUint8 == NULL || drsOps->GetUint16 == NULL) { in ParseWlanPowerConfig() 238 if (drsOps->GetUint16(node, "gpioId", &primaryPowerConfig->gpioId, 0) != HDF_SUCCESS) { in ParseWlanPowerConfig() 295 if (drsOps == NULL || drsOps->GetUint8 == NULL || drsOps->GetUint16 == NULL) { in ParseWlanResetConfig() 305 if (drsOps->GetUint16(node, "gpioId", &resetConfig->gpioId, 0) != HDF_SUCCESS) { in ParseWlanResetConfig() 332 …= NULL || drsOps->GetUint8 == NULL || drsOps->GetUint8Array == NULL || drsOps->GetUint16 == NULL || in ParseWlanBusConfig() 351 if (drsOps->GetUint16(node, "timeout", &busConfig->timeout, 0) != HDF_SUCCESS) { in ParseWlanBusConfig() 355 if (drsOps->GetUint16(node, "blockSize", &busConfig->blockSize, 0) != HDF_SUCCESS) { in ParseWlanBusConfig() 451 if (drsOps == NULL || drsOps->GetUint16 == NULL || drsOps->GetUint16Array == NULL) { in ParseWlanChipBusConfig() 456 if (drsOps->GetUint16(node, "vendorId", &busArgs->vendorId, 0) != HDF_SUCCESS) { in ParseWlanChipBusConfig()
|
/ohos5.0/drivers/hdf_core/framework/test/unittest/platform/virtual/ |
H A D | i3c_virtual.c | 296 if (drsOps == NULL || drsOps->GetUint32 == NULL || drsOps->GetUint16 == NULL) { in VirtualI3cReadDrs() 300 if (drsOps->GetUint16(node, "busId", &virtual->busId, 0) != HDF_SUCCESS) { in VirtualI3cReadDrs() 304 if (drsOps->GetUint16(node, "busMode", &virtual->busMode, 0) != HDF_SUCCESS) { in VirtualI3cReadDrs() 308 if (drsOps->GetUint16(node, "IrqNum", &virtual->IrqNum, 0) != HDF_SUCCESS) { in VirtualI3cReadDrs() 403 ret = drsOps->GetUint16(node, "busId", (uint16_t *)&busId, 0); in VirtualI3cRemoveByNode()
|
H A D | pin_virtual.c | 263 if (drsOps == NULL || drsOps->GetUint32 == NULL || drsOps->GetUint16 == NULL) { in VirtualPinCntlrInit() 268 ret = drsOps->GetUint16(device->property, "number", &virtual->number, 0); in VirtualPinCntlrInit() 369 if (drsOps == NULL || drsOps->GetUint16 == NULL) { in VirtualPinRelease() 374 ret = drsOps->GetUint16(device->property, "number", &number, 0); in VirtualPinRelease()
|
H A D | dac_virtual.c | 68 if (drsOps == NULL || drsOps->GetUint32 == NULL || drsOps->GetUint16 == NULL) { in VirtualDacReadDrs() 156 ret = drsOps->GetUint16(node, "devNum", (uint16_t *)&devNum, 0); in VirtualDacRemoveByNode()
|
H A D | spi_virtual.c | 329 …if (iface == NULL || iface->GetUint32 == NULL || iface->GetUint16 == NULL || iface->GetUint8 == NU… in SpiGetCfgFromHcs() 349 if (iface->GetUint16(node, "mode", &virtual->cfg.mode, 0) != HDF_SUCCESS) { in SpiGetCfgFromHcs() 365 if (iface->GetUint16(node, "waterline", &virtual->waterline, 0) != HDF_SUCCESS) { in SpiGetCfgFromHcs()
|
/ohos5.0/drivers/hdf_core/framework/model/sensor/driver/common/src/ |
H A D | sensor_config_parser.c | 344 int32_t ret = parser->GetUint16(infoNode, "sensorTypeId", &id, 0); in ParseSensorValue() 347 ret = parser->GetUint16(infoNode, "sensorId", &id, 0); in ParseSensorValue() 388 ret = parser->GetUint16(spiBusNode, "mode", &busConfig->spiCfg.spi.mode, 0); in ParseSensorSpiBus() 410 ret = parser->GetUint16(busNode, "busNum", &config->busCfg.i2cCfg.busNum, 0); in ParseSensorBus() 412 ret = parser->GetUint16(busNode, "busAddr", &config->busCfg.i2cCfg.devAddr, 0); in ParseSensorBus() 414 ret = parser->GetUint16(busNode, "regWidth", &config->busCfg.i2cCfg.regWidth, 0); in ParseSensorBus() 442 ret = parser->GetUint16(attrNode, "chipIdRegister", &config->sensorAttr.chipIdReg, 0); in ParseSensorAttr() 444 ret = parser->GetUint16(attrNode, "chipIdValue", &config->sensorAttr.chipIdValue, 0); in ParseSensorAttr()
|
/ohos5.0/drivers/peripheral/usb/ddk/device/src/ |
H A D | usbfn_cfg_mgr.c | 62 if (drsOps->GetUint16(devDescNode, USBDEV_BCD, &value, 0) != HDF_SUCCESS) { in UsbFnCfgMgrParseDevDesc() 67 if (drsOps->GetUint16(devDescNode, USBDEV_VENDOR, &value, 0) != HDF_SUCCESS) { in UsbFnCfgMgrParseDevDesc() 72 if (drsOps->GetUint16(devDescNode, USBDEV_IDPRODUCT, &value, 0) != HDF_SUCCESS) { in UsbFnCfgMgrParseDevDesc() 77 if (drsOps->GetUint16(devDescNode, USBDEV_BCDDEVICE, &value, 0) != HDF_SUCCESS) { in UsbFnCfgMgrParseDevDesc() 134 if (drsOps->GetUint16(node, "language", &fnString->language, 0) != HDF_SUCCESS) { in UsbFnCfgMgrParseString() 318 drsOps->GetUint16(node, ENDPOINT_MAXPACKSIZE_W, &value, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseEndpointDesc() 346 drsOps->GetUint16(node, STRING_DATA, &value, 0) != HDF_SUCCESS) { in UsbFnCfgMgrParseStringDesc() 393 drsOps->GetUint16(node, SS_EP_COMP_WPERINTERVAL, &sValue, 0) != HDF_SUCCESS) { in UsbFnCfgMgrParseSsEndpointDesc() 419 drsOps->GetUint16(node, QUALIFIER_BCD, &sValue, 0) != HDF_SUCCESS) { in UsbFnCfgMgrParseQualifierDesc() 448 if (drsOps->GetUint16(node, QUALIFIER_BCD, &sValue, 0) != HDF_SUCCESS) { in UsbFnCfgMgrParseOtgDesc() [all …]
|
/ohos5.0/drivers/hdf_core/adapter/khdf/linux/model/storage/ |
H A D | emmc_adapter.c | 99 if (drsOps == NULL || drsOps->GetUint16 == NULL || drsOps->GetUint32 == NULL) { in LinuxEmmcCntlrParse() 104 ret = drsOps->GetUint16(node, "hostId", &(cntlr->index), 0); in LinuxEmmcCntlrParse()
|
/ohos5.0/docs/zh-cn/device-dev/driver/ |
H A D | driver-platform-i3c-develop.md | 378 if (drsOps == NULL || drsOps->GetUint32 == NULL || drsOps->GetUint16 == NULL) { 383 if (drsOps->GetUint16(node, "busId", &virtual->busId, 0) != HDF_SUCCESS) { 387 if (drsOps->GetUint16(node, "busMode", &virtual->busMode, 0) != HDF_SUCCESS) { 391 if (drsOps->GetUint16(node, "IrqNum", &virtual->IrqNum, 0) != HDF_SUCCESS) { 432 ret = drsOps->GetUint16(node, "busId", (uint16_t *)&busId, 0);
|
H A D | driver-platform-pin-develop.md | 272 if (drsOps == NULL || drsOps->GetUint32 == NULL || drsOps->GetUint16 == NULL) { 276 ret = drsOps->GetUint16(device->property, "number", &hi35xx->number, 0); 471 ret = drsOps->GetUint16(device->property, "number", &number, 0);
|
/ohos5.0/drivers/hdf_core/framework/utils/src/hcs_parser/ |
H A D | device_resource_if.c | 20 instance->GetUint16 = HcsGetUint16; in HcsIfaceConstruct()
|
/ohos5.0/base/hiviewdfx/hiview/base/event_report/event/include/ |
H A D | param_value.h | 47 uint16_t GetUint16() const;
|
/ohos5.0/drivers/hdf_core/framework/test/unittest/utils/hcs_parser/unittest/ |
H A D | hcs_config_test.c | 402 ret = g_devResInstance->GetUint16(audioNode, SMARTPA_NUM, &data, DEFAULT_UINT16_MAX); in HcsTestGetUint16AttrValueSuccess() 407 ret = g_devResInstance->GetUint16(audioNode, VOICE_VOL_LEVEL, &data, DEFAULT_UINT16_MAX); in HcsTestGetUint16AttrValueSuccess() 424 ret = g_devResInstance->GetUint16(audioNode, INVALID_STRING, &data, DEFAULT_UINT16_MAX); in HcsTestGetUint16AttrValueFail() 428 ret = g_devResInstance->GetUint16(audioNode, READ_U64DATA, NULL, DEFAULT_UINT16_MAX); in HcsTestGetUint16AttrValueFail() 432 ret = g_devResInstance->GetUint16(audioNode, SMARTPA_ADDR, &data, DEFAULT_UINT16_MAX); in HcsTestGetUint16AttrValueFail() 436 ret = g_devResInstance->GetUint16(audioNode, READ_U64DATA, &data, DEFAULT_UINT16_MAX); in HcsTestGetUint16AttrValueFail()
|
/ohos5.0/drivers/hdf_core/framework/model/usb/src/ |
H A D | usb_ddk_pnp_loader.c | 459 if (devResIface->GetUint16(node, "vendorId", &table->vendorId, 0) != HDF_SUCCESS) { in UsbDdkPnpLoaderParseIdDevice() 464 if (devResIface->GetUint16(node, "productId", &table->productId, 0) != HDF_SUCCESS) { in UsbDdkPnpLoaderParseIdDevice() 469 if (devResIface->GetUint16(node, "bcdDeviceLow", &table->bcdDeviceLow, 0) != HDF_SUCCESS) { in UsbDdkPnpLoaderParseIdDevice() 474 if (devResIface->GetUint16(node, "bcdDeviceHigh", &table->bcdDeviceHigh, 0) != HDF_SUCCESS) { in UsbDdkPnpLoaderParseIdDevice() 525 if (devResIface->GetUint16(node, "matchFlag", &table->matchFlag, 0) != HDF_SUCCESS) { in UsbDdkPnpLoaderParseIdTable()
|
/ohos5.0/drivers/hdf_core/framework/test/unittest/platform/config/ |
H A D | can_test_config.c | 58 ret = drsOps->GetUint16(node, "bus_num", &config->busNum, CAN_TEST_BUS_NUM); in CanTestReadConfig()
|
/ohos5.0/base/hiviewdfx/hiview/base/event_report/event/ |
H A D | param_value.cpp | 67 uint16_t ParamValue::GetUint16() const in GetUint16() function in OHOS::HiviewDFX::ParamValue
|
H A D | logger_event.cpp | 35 root[name] = value.GetUint16(); in AddUint16Value()
|
/ohos5.0/drivers/hdf_core/adapter/platform/gpio/ |
H A D | gpio_gr5xx.c | 346 if (drsOps == NULL || drsOps->GetUint16 == NULL || drsOps->GetUint16ArrayElem == NULL) { in GetGpioDeviceResource() 350 ret = drsOps->GetUint16(node, "configNum", &configNum, 0); in GetGpioDeviceResource()
|
/ohos5.0/drivers/hdf_core/interfaces/inner_api/utils/ |
H A D | device_resource_if.h | 177 …int32_t (*GetUint16)(const struct DeviceResourceNode *node, const char *attrName, uint16_t *value,… member
|