Home
last modified time | relevance | path

Searched refs:GetUint16 (Results 1 – 25 of 26) sorted by relevance

12

/drivers/hdf_core/framework/model/misc/vibrator/driver/src/
Dvibrator_parser.c23 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 …]
/drivers/hdf_core/framework/test/unittest/platform/common/
Di3c_driver_test.c48 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()
Di2c_driver_test.c51 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()
Dgpio_driver_test.c79 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()
Dsdio_test.c414 ret = drsOps->GetUint16(node, "vendorId", &(tester->config.vendorId), 0); in SdioTestFillConfig()
419 ret = drsOps->GetUint16(node, "deviceId", &(tester->config.deviceId), 0); in SdioTestFillConfig()
/drivers/hdf_core/framework/model/input/driver/
Dinput_config_parser.c46 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()
135 ret = parser->GetUint16(busNode, "clkGpio", &bus->i2c.clkGpio, 0); in ParseBus()
137 ret = parser->GetUint16(busNode, "dataGpio", &bus->i2c.dataGpio, 0); in ParseBus()
146 ret = parser->GetUint16(busNode, "clkGpio", &bus->spi.clkGpio, 0); in ParseBus()
[all …]
/drivers/hdf_core/framework/model/network/wifi/platform/src/
Dhdf_wlan_config_parser.c223 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()
/drivers/hdf_core/framework/test/unittest/platform/virtual/
Di3c_virtual.c296 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()
Ddac_virtual.c68 if (drsOps == NULL || drsOps->GetUint32 == NULL || drsOps->GetUint16 == NULL) { in VirtualDacReadDrs()
156 ret = drsOps->GetUint16(node, "devNum", (uint16_t *)&devNum, 0); in VirtualDacRemoveByNode()
Dpin_virtual.c263 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()
Dspi_virtual.c329 …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()
/drivers/hdf_core/framework/model/sensor/driver/common/src/
Dsensor_config_parser.c339 ret = parser->GetUint16(infoNode, "sensorTypeId", &id, 0); in ParseSensorInfo()
342 ret = parser->GetUint16(infoNode, "sensorId", &id, 0); in ParseSensorInfo()
372 ret = parser->GetUint16(spiBusNode, "mode", &busConfig->spiCfg.spi.mode, 0); in ParseSensorSpiBus()
394 ret = parser->GetUint16(busNode, "busNum", &config->busCfg.i2cCfg.busNum, 0); in ParseSensorBus()
396 ret = parser->GetUint16(busNode, "busAddr", &config->busCfg.i2cCfg.devAddr, 0); in ParseSensorBus()
398 ret = parser->GetUint16(busNode, "regWidth", &config->busCfg.i2cCfg.regWidth, 0); in ParseSensorBus()
426 ret = parser->GetUint16(attrNode, "chipIdRegister", &config->sensorAttr.chipIdReg, 0); in ParseSensorAttr()
428 ret = parser->GetUint16(attrNode, "chipIdValue", &config->sensorAttr.chipIdValue, 0); in ParseSensorAttr()
/drivers/hdf_core/adapter/khdf/linux/model/storage/
Demmc_adapter.c99 if (drsOps == NULL || drsOps->GetUint16 == NULL || drsOps->GetUint32 == NULL) { in LinuxEmmcCntlrParse()
104 ret = drsOps->GetUint16(node, "hostId", &(cntlr->index), 0); in LinuxEmmcCntlrParse()
Dsdio_adapter.c514 if (drsOps == NULL || drsOps->GetUint16 == NULL || drsOps->GetUint32 == NULL) { in LinuxSdioCntlrParse()
519 ret = drsOps->GetUint16(node, "hostId", &(cntlr->index), 0); in LinuxSdioCntlrParse()
/drivers/hdf_core/framework/utils/src/hcs_parser/
Ddevice_resource_if.c20 instance->GetUint16 = HcsGetUint16; in HcsIfaceConstruct()
/drivers/hdf_core/framework/model/network/bluetooth/
Dhdf_chip_config.c35 if (drsOps->GetUint16(node, "gpioId", &config->gpio.gpioId, 0) != HDF_SUCCESS) { in ParsePowerConfig()
119 if (drsOps->GetUint16(node, "gpioId", &reset->gpio.gpioId, 0) != HDF_SUCCESS) { in ParseResetConfig()
/drivers/peripheral/usb/ddk/device/src/
Dusbfn_cfg_mgr.c61 if (drsOps->GetUint16(devDescNode, USBDEV_BCD, &value, 0) != HDF_SUCCESS) { in UsbFnCfgMgrParseDevDesc()
66 if (drsOps->GetUint16(devDescNode, USBDEV_VENDOR, &value, 0) != HDF_SUCCESS) { in UsbFnCfgMgrParseDevDesc()
71 if (drsOps->GetUint16(devDescNode, USBDEV_IDPRODUCT, &value, 0) != HDF_SUCCESS) { in UsbFnCfgMgrParseDevDesc()
76 if (drsOps->GetUint16(devDescNode, USBDEV_BCDDEVICE, &value, 0) != HDF_SUCCESS) { in UsbFnCfgMgrParseDevDesc()
133 if (drsOps->GetUint16(node, "language", &fnString->language, 0) != HDF_SUCCESS) { in UsbFnCfgMgrParseString()
317 drsOps->GetUint16(node, ENDPOINT_MAXPACKSIZE_W, &value, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseEndpointDesc()
345 drsOps->GetUint16(node, STRING_DATA, &value, 0) != HDF_SUCCESS) { in UsbFnCfgMgrParseStringDesc()
367 drsOps->GetUint16(node, SSP_ISOC_EPCOMP_WRESEVED, &sValue, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseSspIsocEndpointDesc()
392 drsOps->GetUint16(node, SS_EP_COMP_WPERINTERVAL, &sValue, 0) != HDF_SUCCESS) { in UsbFnCfgMgrParseSsEndpointDesc()
418 drsOps->GetUint16(node, QUALIFIER_BCD, &sValue, 0) != HDF_SUCCESS) { in UsbFnCfgMgrParseQualifierDesc()
[all …]
/drivers/hdf_core/framework/test/unittest/platform/config/
Dcan_test_config.c58 ret = drsOps->GetUint16(node, "bus_num", &config->busNum, CAN_TEST_BUS_NUM); in CanTestReadConfig()
/drivers/hdf_core/interfaces/inner_api/utils/
Ddevice_resource_if.h177 …int32_t (*GetUint16)(const struct DeviceResourceNode *node, const char *attrName, uint16_t *value,… member
/drivers/hdf_core/framework/model/usb/src/
Dusb_ddk_pnp_loader.c459 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()
/drivers/hdf_core/framework/test/unittest/utils/hcs_parser/unittest/
Dhcs_config_test.c402 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()
/drivers/hdf_core/adapter/platform/gpio/
Dgpio_gr5xx.c346 if (drsOps == NULL || drsOps->GetUint16 == NULL || drsOps->GetUint16ArrayElem == NULL) { in GetGpioDeviceResource()
350 ret = drsOps->GetUint16(node, "configNum", &configNum, 0); in GetGpioDeviceResource()
/drivers/hdf_core/framework/support/platform/src/pcie/
Dpcie_core.c102 ret = drsOps->GetUint16(node, "busNum", &(cntlr->devInfo.busNum), 0); in PcieCntlrParse()
/drivers/hdf_core/adapter/khdf/linux/platform/watchdog/
Dwatchdog_adapter.c264 ret = drsOps->GetUint16(obj->property, "id", &wdt->wdtId, 0); in HdfWdtBind()
/drivers/hdf_core/adapter/platform/spi/
Dspi_stm32f4xx.c469 if (dri == NULL || dri->GetUint16 == NULL || dri->GetUint8 == NULL || dri->GetUint32 == NULL) { in GetSpiDeviceResource()
485 if (dri->GetUint16(resourceNode, "crcPoly", &resource->crcPoly, 0) != HDF_SUCCESS) { in GetSpiDeviceResource()

12