/drivers/hdf_core/framework/model/network/wifi/platform/src/ |
D | hdf_wlan_config_parser.c | 16 struct DeviceResourceIface *drsOps = NULL; in ParseWlanStaConfig() local 23 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in ParseWlanStaConfig() 24 if (drsOps == NULL || drsOps->GetString == NULL || drsOps->GetUint8 == NULL) { in ParseWlanStaConfig() 28 ret = drsOps->GetString(node, "name", &staConfig->name, NULL); in ParseWlanStaConfig() 33 ret = drsOps->GetUint8(node, "mode", &staConfig->mode, 0); in ParseWlanStaConfig() 44 struct DeviceResourceIface *drsOps = NULL; in ParseWlanApConfig() local 51 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in ParseWlanApConfig() 52 if (drsOps == NULL || drsOps->GetString == NULL || drsOps->GetUint8 == NULL) { in ParseWlanApConfig() 56 ret = drsOps->GetString(node, "name", &apConfig->name, NULL); in ParseWlanApConfig() 61 ret = drsOps->GetUint8(node, "mode", &apConfig->mode, 0); in ParseWlanApConfig() [all …]
|
/drivers/hdf_core/framework/model/camera/parser/src/ |
D | camera_config_parser.c | 41 struct DeviceResourceIface *drsOps, struct SensorDeviceConfig *sensorConfig) in ParseCameraSensorDeviceConfig() argument 45 ret = drsOps->GetString(node, "name", &sensorConfig->name, NULL); in ParseCameraSensorDeviceConfig() 47 ret = drsOps->GetUint8(node, "id", &sensorConfig->id, 0); in ParseCameraSensorDeviceConfig() 49 ret = drsOps->GetUint8(node, "exposure", &sensorConfig->exposure, 0); in ParseCameraSensorDeviceConfig() 51 ret = drsOps->GetUint8(node, "mirror", &sensorConfig->mirror, 0); in ParseCameraSensorDeviceConfig() 53 ret = drsOps->GetUint8(node, "gain", &sensorConfig->gain, 0); in ParseCameraSensorDeviceConfig() 55 sensorConfig->ctrlValueNum = drsOps->GetElemNum(node, "ctrlValue"); in ParseCameraSensorDeviceConfig() 60 …ret = drsOps->GetUint32Array(node, "ctrlValue", sensorConfig->ctrlValue, sensorConfig->ctrlValueNu… in ParseCameraSensorDeviceConfig() 72 struct DeviceResourceIface *drsOps, struct IspDeviceConfig *ispConfig) in ParseCameraIspDeviceConfig() argument 76 ret = drsOps->GetString(node, "name", &ispConfig->name, NULL); in ParseCameraIspDeviceConfig() [all …]
|
/drivers/hdf_core/framework/model/network/bluetooth/ |
D | hdf_chip_config.c | 13 struct DeviceResourceIface *drsOps = NULL; in ParsePowerConfig() local 18 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in ParsePowerConfig() 19 if (drsOps == NULL || drsOps->GetUint8 == NULL) { in ParsePowerConfig() 24 if (drsOps->GetUint8(node, "powerSeqDelay", &config->powerSeqDelay, 0) != HDF_SUCCESS) { in ParsePowerConfig() 29 if (drsOps->GetUint8(node, "powerType", &config->type, 0) != HDF_SUCCESS) { in ParsePowerConfig() 35 if (drsOps->GetUint16(node, "gpioId", &config->gpio.gpioId, 0) != HDF_SUCCESS) { in ParsePowerConfig() 39 if (drsOps->GetUint8(node, "activeLevel", &config->gpio.activeLevel, 0) != HDF_SUCCESS) { in ParsePowerConfig() 50 struct DeviceResourceIface *drsOps = NULL; in ParsePowersConfig() local 59 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in ParsePowersConfig() 60 if (drsOps == NULL || drsOps->GetChildNode == NULL) { in ParsePowersConfig() [all …]
|
/drivers/hdf_core/framework/model/display/driver/lcdkit/ |
D | lcdkit_parse_config.c | 94 …c int32_t ParseCmdConfig(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, in ParseCmdConfig() argument 97 int32_t len = drsOps->GetElemNum(node, name); in ParseCmdConfig() 103 if (drsOps->GetUint8Array(node, name, array, len, 0) != HDF_SUCCESS) { in ParseCmdConfig() 117 …c int32_t ParsePanelInfo(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, in ParsePanelInfo() argument 121 PARSE_PANEL_SYMBOL(node, drsOps, "width", &info->width); in ParsePanelInfo() 122 PARSE_PANEL_SYMBOL(node, drsOps, "height", &info->height); in ParsePanelInfo() 123 PARSE_PANEL_SYMBOL(node, drsOps, "hbp", &info->hbp); in ParsePanelInfo() 124 PARSE_PANEL_SYMBOL(node, drsOps, "hfp", &info->hfp); in ParsePanelInfo() 125 PARSE_PANEL_SYMBOL(node, drsOps, "hsw", &info->hsw); in ParsePanelInfo() 126 PARSE_PANEL_SYMBOL(node, drsOps, "vbp", &info->vbp); in ParsePanelInfo() [all …]
|
/drivers/peripheral/usb/ddk/device/src/ |
D | usbfn_cfg_mgr.c | 33 struct DeviceResourceIface *drsOps, struct UsbDeviceDescriptor *devDesc) in UsbFnCfgMgrParseDevDesc() argument 37 if (drsOps->GetUint8(devDescNode, DESC_LENGTH, &devDesc->bLength, 0) != HDF_SUCCESS) { in UsbFnCfgMgrParseDevDesc() 45 if (drsOps->GetUint8(devDescNode, DESC_TYPE, &devDesc->bDescriptorType, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseDevDesc() 46 drsOps->GetUint8(devDescNode, USBDEV_CLASS, &devDesc->bDeviceClass, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseDevDesc() 47 … drsOps->GetUint8(devDescNode, USBDEV_SUBCLASS, &devDesc->bDeviceSubClass, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseDevDesc() 48 … drsOps->GetUint8(devDescNode, USBDEV_PROTOCOL, &devDesc->bDeviceProtocol, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseDevDesc() 49 … drsOps->GetUint8(devDescNode, USBDEV_MAXSIZE, &devDesc->bMaxPacketSize0, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseDevDesc() 50 … drsOps->GetUint8(devDescNode, USBDEV_MANUFACTURER, &devDesc->iManufacturer, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseDevDesc() 51 drsOps->GetUint8(devDescNode, USBDEV_PRODUCT, &devDesc->iProduct, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseDevDesc() 52 … drsOps->GetUint8(devDescNode, USBDEV_SERIALNUM, &devDesc->iSerialNumber, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseDevDesc() [all …]
|
/drivers/hdf_core/framework/model/network/ethernet/src/ |
D | eth_device.c | 81 struct DeviceResourceIface *drsOps = NULL; in ParseEthMacConfig() local 88 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in ParseEthMacConfig() 89 if (drsOps == NULL || drsOps->GetUint8 == NULL || drsOps->GetUint32 == NULL) { in ParseEthMacConfig() 93 if (drsOps->GetUint32(node, "regBase", ðMacConfig->regBase, 0) != HDF_SUCCESS) { in ParseEthMacConfig() 97 if (drsOps->GetUint32(node, "irqVector", ðMacConfig->irqVector, 0) != HDF_SUCCESS) { in ParseEthMacConfig() 101 if (drsOps->GetUint8(node, "mdioFrqDiv", ðMacConfig->mdioFrqDiv, 0) != HDF_SUCCESS) { in ParseEthMacConfig() 105 if (drsOps->GetUint8(node, "txBusy", ðMacConfig->txBusy, 0) != HDF_SUCCESS) { in ParseEthMacConfig() 109 if (drsOps->GetUint32(node, "iobase", ðMacConfig->iobase, 0) != HDF_SUCCESS) { in ParseEthMacConfig() 113 if (drsOps->GetUint32(node, "regOffSize", ðMacConfig->regOffSize, 0) != HDF_SUCCESS) { in ParseEthMacConfig() 122 struct DeviceResourceIface *drsOps = NULL; in ParseEthPhyConfig() local [all …]
|
/drivers/hdf_core/framework/model/audio/common/src/ |
D | audio_dsp_base.c | 17 struct DeviceResourceIface *drsOps = NULL; in DspGetServiceName() local 30 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in DspGetServiceName() 31 if (drsOps == NULL || drsOps->GetString == NULL) { in DspGetServiceName() 36 ret = drsOps->GetString(node, "serviceName", drvDspName, 0); in DspGetServiceName() 48 struct DeviceResourceIface *drsOps = NULL; in DspGetDaiName() local 61 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in DspGetDaiName() 62 if (drsOps == NULL || drsOps->GetString == NULL) { in DspGetDaiName() 67 ret = drsOps->GetString(node, "dspDaiName", drvDaiName, 0); in DspGetDaiName()
|
/drivers/hdf_core/framework/test/unittest/platform/common/ |
D | rtc_driver_test.c | 46 struct DeviceResourceIface *drsOps = NULL; in RtcTestReadConfig() local 48 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in RtcTestReadConfig() 49 if (drsOps == NULL || drsOps->GetUint32 == NULL) { in RtcTestReadConfig() 53 ret = drsOps->GetUint32(node, "time", &config->time, 0); in RtcTestReadConfig() 58 ret = drsOps->GetUint32(node, "maxYear", &config->maxYear, 0); in RtcTestReadConfig() 63 ret = drsOps->GetUint32(node, "year", &config->year, 0); in RtcTestReadConfig() 68 ret = drsOps->GetUint32(node, "month", &config->month, 0); in RtcTestReadConfig() 73 ret = drsOps->GetUint32(node, "day", &config->day, 0); in RtcTestReadConfig() 78 ret = drsOps->GetUint32(node, "hour", &config->hour, 0); in RtcTestReadConfig() 83 ret = drsOps->GetUint32(node, "minute", &config->minute, 0); in RtcTestReadConfig() [all …]
|
D | gpio_driver_test.c | 42 struct DeviceResourceIface *drsOps) in GpioReadNameTestInfos() argument 47 ret = drsOps->GetString(node, "testNameOne", &tempName, "NULL"); in GpioReadNameTestInfos() 58 ret = drsOps->GetString(node, "testNameTwo", &tempName, "NULL"); in GpioReadNameTestInfos() 76 struct DeviceResourceIface *drsOps = NULL; in GpioTestReadConfig() local 78 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in GpioTestReadConfig() 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() [all …]
|
D | dac_driver_test.c | 45 struct DeviceResourceIface *drsOps = NULL; in DacTestReadConfig() local 47 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in DacTestReadConfig() 48 if (drsOps == NULL || drsOps->GetUint32 == NULL) { in DacTestReadConfig() 53 ret = drsOps->GetUint32(node, "devNum", &config->devNum, 0); in DacTestReadConfig() 59 ret = drsOps->GetUint32(node, "channel", &config->channel, 0); in DacTestReadConfig() 65 ret = drsOps->GetUint32(node, "maxChannel", &config->maxChannel, 0); in DacTestReadConfig() 71 ret = drsOps->GetUint32(node, "dataWidth", &config->dataWidth, 0); in DacTestReadConfig() 77 ret = drsOps->GetUint32(node, "rate", &config->rate, 0); in DacTestReadConfig()
|
D | adc_driver_test.c | 44 struct DeviceResourceIface *drsOps = NULL; in AdcTestReadConfig() local 46 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in AdcTestReadConfig() 47 if (drsOps == NULL || drsOps->GetUint32 == NULL) { in AdcTestReadConfig() 52 ret = drsOps->GetUint32(node, "devNum", &config->devNum, 0); in AdcTestReadConfig() 58 ret = drsOps->GetUint32(node, "channel", &config->channel, 0); in AdcTestReadConfig() 64 ret = drsOps->GetUint32(node, "maxChannel", &config->maxChannel, 0); in AdcTestReadConfig() 70 ret = drsOps->GetUint32(node, "dataWidth", &config->dataWidth, 0); in AdcTestReadConfig() 76 ret = drsOps->GetUint32(node, "rate", &config->rate, 0); in AdcTestReadConfig()
|
D | i3c_driver_test.c | 45 struct DeviceResourceIface *drsOps = NULL; in I3cTestReadConfig() local 47 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in I3cTestReadConfig() 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()
|
D | i2c_driver_test.c | 43 struct DeviceResourceIface *drsOps = NULL; in I2cTestReadConfig() local 45 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in I2cTestReadConfig() 46 if (drsOps == NULL || drsOps->GetUint32 == NULL) { in I2cTestReadConfig() 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()
|
D | pin_driver_test.c | 45 struct DeviceResourceIface *drsOps = NULL; in PinTestReadConfig() local 47 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in PinTestReadConfig() 48 if (drsOps == NULL || drsOps->GetUint32 == NULL || drsOps->GetString == NULL) { in PinTestReadConfig() 52 ret = drsOps->GetString(node, "pinName", &config->pinName, 0); in PinTestReadConfig() 58 ret = drsOps->GetUint32(node, "strengthNum", &config->strengthNum, 0); in PinTestReadConfig() 64 ret = drsOps->GetUint32(node, "PullTypeNum", &config->PullTypeNum, 0); in PinTestReadConfig() 70 ret = drsOps->GetString(node, "funcName", &funcName, 0); in PinTestReadConfig()
|
D | pwm_driver_test.c | 43 struct DeviceResourceIface *drsOps = NULL; in PwmTestReadConfig() local 46 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in PwmTestReadConfig() 47 if (drsOps == NULL) { in PwmTestReadConfig() 52 if (drsOps->GetUint32 == NULL) { in PwmTestReadConfig() 57 ret = drsOps->GetUint32(node, "num", &(config->num), 0); in PwmTestReadConfig() 63 ret = drsOps->GetUint32(node, "period", &(config->cfg.period), 0); in PwmTestReadConfig() 69 ret = drsOps->GetUint32(node, "duty", &(config->cfg.duty), 0); in PwmTestReadConfig() 75 ret = drsOps->GetUint32(node, "polarity", &(temp), 0); in PwmTestReadConfig() 82 ret = drsOps->GetUint32(node, "status", &(temp), 0); in PwmTestReadConfig()
|
D | watchdog_driver_test.c | 44 struct DeviceResourceIface *drsOps = NULL; in WatchdogTestReadConfig() local 47 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in WatchdogTestReadConfig() 48 if (drsOps == NULL || drsOps->GetUint32 == NULL) { in WatchdogTestReadConfig() 53 ret = drsOps->GetUint32(node, "id", &temp, 0); in WatchdogTestReadConfig() 60 ret = drsOps->GetUint32(node, "timeoutSet", &config->timeoutSet, 0); in WatchdogTestReadConfig() 66 ret = drsOps->GetUint32(node, "feedTime", &config->feedTime, 0); in WatchdogTestReadConfig()
|
D | uart_driver_test.c | 51 struct DeviceResourceIface *drsOps = NULL; in UartTestReadConfig() local 53 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in UartTestReadConfig() 54 if (drsOps == NULL || drsOps->GetUint32 == NULL || drsOps->GetUint32Array == NULL) { in UartTestReadConfig() 58 ret = drsOps->GetUint32(node, "port", &config->port, 0); in UartTestReadConfig() 63 ret = drsOps->GetUint32(node, "len", &config->len, 0); in UartTestReadConfig() 79 ret = drsOps->GetUint32Array(node, "wbuf", tmp, config->len, 0); in UartTestReadConfig()
|
D | pcie_driver_test.c | 44 struct DeviceResourceIface *drsOps = NULL; in PcieTestReadConfig() local 46 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in PcieTestReadConfig() 47 if (drsOps == NULL || drsOps->GetUint32 == NULL) { in PcieTestReadConfig() 52 ret = drsOps->GetUint32(node, "busNum", &(g_config.busNum), 0); in PcieTestReadConfig()
|
/drivers/hdf_core/framework/test/unittest/platform/virtual/ |
D | dac_virtual.c | 65 struct DeviceResourceIface *drsOps = NULL; in VirtualDacReadDrs() local 67 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in VirtualDacReadDrs() 68 if (drsOps == NULL || drsOps->GetUint32 == NULL || drsOps->GetUint16 == NULL) { in VirtualDacReadDrs() 72 if (drsOps->GetUint32(node, "deviceNum", &virtual->deviceNum, 0) != HDF_SUCCESS) { in VirtualDacReadDrs() 76 if (drsOps->GetUint32(node, "validChannel", &virtual->validChannel, 0) != HDF_SUCCESS) { in VirtualDacReadDrs() 80 if (drsOps->GetUint32(node, "rate", &virtual->rate, 0) != HDF_SUCCESS) { in VirtualDacReadDrs() 148 struct DeviceResourceIface *drsOps = NULL; in VirtualDacRemoveByNode() local 150 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in VirtualDacRemoveByNode() 151 if (drsOps == NULL || drsOps->GetUint32 == NULL) { in VirtualDacRemoveByNode() 156 ret = drsOps->GetUint16(node, "devNum", (uint16_t *)&devNum, 0); in VirtualDacRemoveByNode()
|
D | pin_virtual.c | 174 const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps) in VirtualPinReadFunc() argument 179 ret = drsOps->GetString(node, "F0", &desc->func[funcNum], "NULL"); in VirtualPinReadFunc() 186 ret = drsOps->GetString(node, "F1", &desc->func[funcNum], "NULL"); in VirtualPinReadFunc() 193 ret = drsOps->GetString(node, "F2", &desc->func[funcNum], "NULL"); in VirtualPinReadFunc() 200 ret = drsOps->GetString(node, "F3", &desc->func[funcNum], "NULL"); in VirtualPinReadFunc() 207 ret = drsOps->GetString(node, "F4", &desc->func[funcNum], "NULL"); in VirtualPinReadFunc() 214 ret = drsOps->GetString(node, "F5", &desc->func[funcNum], "NULL"); in VirtualPinReadFunc() 226 struct DeviceResourceIface *drsOps = NULL; in VirtualPinParsePinNode() local 228 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in VirtualPinParsePinNode() 229 if (drsOps == NULL || drsOps->GetUint32 == NULL || drsOps->GetString == NULL) { in VirtualPinParsePinNode() [all …]
|
D | adc_virtual.c | 78 struct DeviceResourceIface *drsOps = NULL; in VirtualAdcReadDrs() local 80 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in VirtualAdcReadDrs() 81 if (drsOps == NULL || drsOps->GetUint32 == NULL) { in VirtualAdcReadDrs() 86 ret = drsOps->GetUint32(node, "devNum", &virtual->devNum, 0); in VirtualAdcReadDrs() 92 ret = drsOps->GetUint32(node, "dataWidth", &virtual->dataWidth, 0); in VirtualAdcReadDrs() 98 ret = drsOps->GetUint32(node, "channels", &virtual->channels, 0); in VirtualAdcReadDrs() 151 struct DeviceResourceIface *drsOps = NULL; in VirtualAdcRelease() local 159 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in VirtualAdcRelease() 160 if (drsOps == NULL || drsOps->GetUint32 == NULL) { in VirtualAdcRelease() 165 ret = drsOps->GetUint32(device->property, "devNum", (uint32_t *)&devNum, 0); in VirtualAdcRelease()
|
D | regulator_virtual.c | 130 struct DeviceResourceIface *drsOps = NULL; in VirtualRegulatorContinueReadHcs() local 134 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in VirtualRegulatorContinueReadHcs() 135 if (drsOps == NULL || drsOps->GetString == NULL) { in VirtualRegulatorContinueReadHcs() 140 ret = drsOps->GetUint32(node, "minUv", ®Node->regulatorInfo.constraints.minUv, 0); in VirtualRegulatorContinueReadHcs() 146 ret = drsOps->GetUint32(node, "maxUv", ®Node->regulatorInfo.constraints.maxUv, 0); in VirtualRegulatorContinueReadHcs() 152 ret = drsOps->GetUint32(node, "minUa", ®Node->regulatorInfo.constraints.minUa, 0); in VirtualRegulatorContinueReadHcs() 158 ret = drsOps->GetUint32(node, "maxUa", ®Node->regulatorInfo.constraints.maxUa, 0); in VirtualRegulatorContinueReadHcs() 176 struct DeviceResourceIface *drsOps = NULL; in VirtualRegulatorReadHcs() local 180 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in VirtualRegulatorReadHcs() 181 if (drsOps == NULL || drsOps->GetString == NULL) { in VirtualRegulatorReadHcs() [all …]
|
D | i3c_virtual.c | 293 struct DeviceResourceIface *drsOps = NULL; in VirtualI3cReadDrs() local 295 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in VirtualI3cReadDrs() 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() 312 if (drsOps->GetUint32(node, "i3cMaxRate", &virtual->i3cMaxRate, 0) != HDF_SUCCESS) { in VirtualI3cReadDrs() 316 if (drsOps->GetUint32(node, "i3cRate", &virtual->i3cRate, 0) != HDF_SUCCESS) { in VirtualI3cReadDrs() 320 if (drsOps->GetUint32(node, "i2cFmRate", &virtual->i2cFmRate, 0) != HDF_SUCCESS) { in VirtualI3cReadDrs() 324 if (drsOps->GetUint32(node, "i2cFmPlusRate", &virtual->i2cFmPlusRate, 0) != HDF_SUCCESS) { in VirtualI3cReadDrs() [all …]
|
/drivers/hdf_core/adapter/khdf/linux/platform/adc/ |
D | adc_iio_adapter.c | 147 struct DeviceResourceIface *drsOps = NULL; in AdcIioReadDrs() local 150 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in AdcIioReadDrs() 151 if (drsOps == NULL || drsOps->GetUint32 == NULL || drsOps->GetString == NULL) { in AdcIioReadDrs() 155 ret = drsOps->GetUint32(node, "deviceNum", &adcDevice->deviceNum, 0); in AdcIioReadDrs() 160 ret = drsOps->GetUint32(node, "channelNum", &adcDevice->channelNum, 1); in AdcIioReadDrs() 173 ret = drsOps->GetString(node, channelName, &drName, NULL); in AdcIioReadDrs() 183 ret = drsOps->GetUint32(node, "scanMode", &adcDevice->scanMode, 0); in AdcIioReadDrs() 189 ret = drsOps->GetUint32(node, "rate", &adcDevice->rate, 0); in AdcIioReadDrs() 254 struct DeviceResourceIface *drsOps = NULL; in AdcIioRemoveByNode() local 256 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in AdcIioRemoveByNode() [all …]
|
/drivers/hdf_core/framework/test/unittest/platform/config/ |
D | can_test_config.c | 50 struct DeviceResourceIface *drsOps = NULL; in CanTestReadConfig() local 52 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in CanTestReadConfig() 53 if (drsOps == NULL) { in CanTestReadConfig() 58 ret = drsOps->GetUint16(node, "bus_num", &config->busNum, CAN_TEST_BUS_NUM); in CanTestReadConfig() 63 ret = drsOps->GetUint32(node, "bit_rate", &config->bitRate, CAN_TEST_BIT_RATE); in CanTestReadConfig() 68 ret = drsOps->GetUint8(node, "work_mode", &config->workMode, CAN_TEST_WORK_MODE); in CanTestReadConfig()
|