Home
last modified time | relevance | path

Searched refs:drsOps (Results 1 – 25 of 40) sorted by relevance

12

/drivers/hdf_core/framework/model/network/wifi/platform/src/
Dhdf_wlan_config_parser.c16 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/
Dcamera_config_parser.c41 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/
Dhdf_chip_config.c13 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/
Dlcdkit_parse_config.c94 …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/
Dusbfn_cfg_mgr.c33 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()
47drsOps->GetUint8(devDescNode, USBDEV_SUBCLASS, &devDesc->bDeviceSubClass, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseDevDesc()
48drsOps->GetUint8(devDescNode, USBDEV_PROTOCOL, &devDesc->bDeviceProtocol, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseDevDesc()
49drsOps->GetUint8(devDescNode, USBDEV_MAXSIZE, &devDesc->bMaxPacketSize0, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseDevDesc()
50drsOps->GetUint8(devDescNode, USBDEV_MANUFACTURER, &devDesc->iManufacturer, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseDevDesc()
51 drsOps->GetUint8(devDescNode, USBDEV_PRODUCT, &devDesc->iProduct, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseDevDesc()
52drsOps->GetUint8(devDescNode, USBDEV_SERIALNUM, &devDesc->iSerialNumber, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseDevDesc()
[all …]
/drivers/hdf_core/framework/model/network/ethernet/src/
Deth_device.c81 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", &ethMacConfig->regBase, 0) != HDF_SUCCESS) { in ParseEthMacConfig()
97 if (drsOps->GetUint32(node, "irqVector", &ethMacConfig->irqVector, 0) != HDF_SUCCESS) { in ParseEthMacConfig()
101 if (drsOps->GetUint8(node, "mdioFrqDiv", &ethMacConfig->mdioFrqDiv, 0) != HDF_SUCCESS) { in ParseEthMacConfig()
105 if (drsOps->GetUint8(node, "txBusy", &ethMacConfig->txBusy, 0) != HDF_SUCCESS) { in ParseEthMacConfig()
109 if (drsOps->GetUint32(node, "iobase", &ethMacConfig->iobase, 0) != HDF_SUCCESS) { in ParseEthMacConfig()
113 if (drsOps->GetUint32(node, "regOffSize", &ethMacConfig->regOffSize, 0) != HDF_SUCCESS) { in ParseEthMacConfig()
122 struct DeviceResourceIface *drsOps = NULL; in ParseEthPhyConfig() local
[all …]
/drivers/hdf_core/framework/model/audio/common/src/
Daudio_dsp_base.c17 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/
Drtc_driver_test.c46 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 …]
Dgpio_driver_test.c42 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 …]
Ddac_driver_test.c45 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()
Dadc_driver_test.c44 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()
Di3c_driver_test.c45 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()
Di2c_driver_test.c43 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()
Dpin_driver_test.c45 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()
Dpwm_driver_test.c43 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()
Dwatchdog_driver_test.c44 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()
Duart_driver_test.c51 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()
Dpcie_driver_test.c44 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/
Ddac_virtual.c65 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()
Dpin_virtual.c174 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 …]
Dadc_virtual.c78 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()
Dregulator_virtual.c130 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", &regNode->regulatorInfo.constraints.minUv, 0); in VirtualRegulatorContinueReadHcs()
146 ret = drsOps->GetUint32(node, "maxUv", &regNode->regulatorInfo.constraints.maxUv, 0); in VirtualRegulatorContinueReadHcs()
152 ret = drsOps->GetUint32(node, "minUa", &regNode->regulatorInfo.constraints.minUa, 0); in VirtualRegulatorContinueReadHcs()
158 ret = drsOps->GetUint32(node, "maxUa", &regNode->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 …]
Di3c_virtual.c293 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/
Dadc_iio_adapter.c147 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/
Dcan_test_config.c50 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()

12