Home
last modified time | relevance | path

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

123

/ohos5.0/drivers/hdf_core/framework/model/network/wifi/platform/src/
H A Dhdf_wlan_config_parser.c24 if (drsOps == NULL || drsOps->GetString == NULL || drsOps->GetUint8 == NULL) { in ParseWlanStaConfig()
52 if (drsOps == NULL || drsOps->GetString == NULL || drsOps->GetUint8 == NULL) { in ParseWlanApConfig()
91 if (drsOps == NULL || drsOps->GetString == NULL || drsOps->GetUint8 == NULL) { in ParseWlanP2PConfig()
119 if (drsOps == NULL || drsOps->GetUint8 == NULL) { in ParseWlanMac80211Config()
170 …if (drsOps == NULL || drsOps->GetChildNode == NULL || drsOps->GetString == NULL || drsOps->GetUint… in ParseWlanModuleConfig()
223 if (drsOps == NULL || drsOps->GetUint8 == NULL || drsOps->GetUint16 == NULL) { in ParseWlanPowerConfig()
295 if (drsOps == NULL || drsOps->GetUint8 == NULL || drsOps->GetUint16 == NULL) { in ParseWlanResetConfig()
332 …if (drsOps == NULL || drsOps->GetUint8 == NULL || drsOps->GetUint8Array == NULL || drsOps->GetUint… in ParseWlanBusConfig()
378 if (drsOps == NULL || drsOps->GetUint8 == NULL || drsOps->GetChildNode == NULL) { in ParseWlanDevInstConfig()
451 if (drsOps == NULL || drsOps->GetUint16 == NULL || drsOps->GetUint16Array == NULL) { in ParseWlanChipBusConfig()
[all …]
/ohos5.0/drivers/hdf_core/framework/model/camera/parser/src/
H A Dcamera_config_parser.c47 ret = drsOps->GetUint8(node, "id", &sensorConfig->id, 0); in ParseCameraSensorDeviceConfig()
78 ret = drsOps->GetUint8(node, "id", &ispConfig->id, 0); in ParseCameraIspDeviceConfig()
86 ret = drsOps->GetUint8(node, "hue", &ispConfig->hue, 0); in ParseCameraIspDeviceConfig()
90 ret = drsOps->GetUint8(node, "gain", &ispConfig->gain, 0); in ParseCameraIspDeviceConfig()
119 ret = drsOps->GetUint8(node, "id", &vcmConfig->id, 0); in ParseCameraVcmDeviceConfig()
152 ret = drsOps->GetUint8(node, "id", &lensConfig->id, 0); in ParseCameraLensDeviceConfig()
177 ret = drsOps->GetUint8(node, "id", &flashConfig->id, 0); in ParseCameraFlashDeviceConfig()
496 struct DeviceResourceIface *drsOps = NULL; in HdfParseCameraConfig() local
505 if (drsOps == NULL || drsOps->GetString == NULL || drsOps->GetUint8 == NULL || in HdfParseCameraConfig()
506 drsOps->GetUint8Array == NULL || drsOps->GetUint32 == NULL || in HdfParseCameraConfig()
[all …]
/ohos5.0/drivers/peripheral/usb/ddk/device/src/
H A Dusbfn_cfg_mgr.c94 if (drsOps == NULL || drsOps->GetChildNode == NULL) { in UsbFnCfgMgrParseUsbFnDevDesc()
137 strCount = drsOps->GetElemNum(node, "stringList"); in UsbFnCfgMgrParseString()
185 if (node == NULL || drsOps == NULL) { in UsbFnCfgMgrParseStrings()
225 struct DeviceResourceIface *drsOps = NULL; in UsbFnCfgMgrParseUsbFnDevStrings() local
234 if (drsOps == NULL || drsOps->GetChildNode == NULL) { in UsbFnCfgMgrParseUsbFnDevStrings()
572 if (node == NULL || drsOps == NULL) { in UsbFnCfgMgrParseDesc()
609 descCount = drsOps->GetElemNum(node, descName); in UsbFnCfgMgrParseFunDesc()
820 struct DeviceResourceIface *drsOps = NULL; in UsbFnCfgMgrParseUsbFnConfigurations() local
829 if (drsOps == NULL || drsOps->GetChildNode == NULL) { in UsbFnCfgMgrParseUsbFnConfigurations()
1126 struct DeviceResourceIface *drsOps = NULL; in UsbFnCfgFindPropFromHcs() local
[all …]
/ohos5.0/drivers/hdf_core/framework/model/display/driver/lcdkit/
H A Dlcdkit_parse_config.c100 int32_t len = drsOps->GetElemNum(node, name); in ParseCmdConfig()
126 PARSE_PANEL_SYMBOL(node, drsOps, "hbp", &info->hbp); in ParsePanelInfo()
127 PARSE_PANEL_SYMBOL(node, drsOps, "hfp", &info->hfp); in ParsePanelInfo()
128 PARSE_PANEL_SYMBOL(node, drsOps, "hsw", &info->hsw); in ParsePanelInfo()
193 int32_t count = drsOps->GetElemNum(node, name); in ParsePowerSequeue()
229 struct DeviceResourceIface *drsOps = NULL; in ParsePanelConfig() local
231 if (drsOps == NULL || drsOps->GetUint32 == NULL || drsOps->GetUint32Array == NULL || in ParsePanelConfig()
232 drsOps->GetElemNum == NULL || drsOps->GetUint8Array == NULL) { in ParsePanelConfig()
236 if (ParsePanelInfo(node, drsOps, &cfg->info)) { in ParsePanelConfig()
270 struct DeviceResourceIface *drsOps = NULL; in ParseLcdConfig() local
[all …]
/ohos5.0/drivers/hdf_core/framework/model/network/ethernet/src/
H A Deth_device.c81 struct DeviceResourceIface *drsOps = NULL; in ParseEthMacConfig() local
89 if (drsOps == NULL || drsOps->GetUint8 == NULL || drsOps->GetUint32 == NULL) { in ParseEthMacConfig()
122 struct DeviceResourceIface *drsOps = NULL; in ParseEthPhyConfig() local
130 if (drsOps == NULL || drsOps->GetUint8 == NULL) { in ParseEthPhyConfig()
144 struct DeviceResourceIface *drsOps = NULL; in ParseEthDevInstConfig() local
151 if (drsOps == NULL || drsOps->GetUint8 == NULL || drsOps->GetChildNode == NULL) { in ParseEthDevInstConfig()
180 ethMacNode = drsOps->GetChildNode(node, "MAC"); in ParseEthDevInstConfig()
188 ethPhyNode = drsOps->GetChildNode(node, "PHY"); in ParseEthDevInstConfig()
222 struct DeviceResourceIface *drsOps = NULL; in ParseConfigFromProperty() local
226 if (drsOps == NULL || drsOps->GetChildNode == NULL) { in ParseConfigFromProperty()
[all …]
/ohos5.0/drivers/hdf_core/framework/test/unittest/platform/common/
H A 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 …]
H A 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 …]
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
/ohos5.0/drivers/hdf_core/framework/test/unittest/platform/virtual/
H A Dpin_virtual.c226 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()
245 ret = VirtualPinReadFunc(&virtual->desc[index], node, drsOps); in VirtualPinParsePinNode()
259 struct DeviceResourceIface *drsOps = NULL; in VirtualPinCntlrInit() local
262 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in VirtualPinCntlrInit()
263 if (drsOps == NULL || drsOps->GetUint32 == NULL || drsOps->GetUint16 == NULL) { in VirtualPinCntlrInit()
361 struct DeviceResourceIface *drsOps = NULL; in VirtualPinRelease() local
368 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in VirtualPinRelease()
369 if (drsOps == NULL || drsOps->GetUint16 == NULL) { in VirtualPinRelease()
[all …]
H A 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()
H A 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()
H A 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()
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()
186 ret = drsOps->GetString(node, "name", &(regNode->regulatorInfo.name), "ERROR"); in VirtualRegulatorReadHcs()
207 regNode->regulatorInfo.constraints.alwaysOn = drsOps->GetBool(node, "alwaysOn"); in VirtualRegulatorReadHcs()
[all …]
H A 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()
316 if (drsOps->GetUint32(node, "i3cRate", &virtual->i3cRate, 0) != HDF_SUCCESS) { in VirtualI3cReadDrs()
395 struct DeviceResourceIface *drsOps = NULL; in VirtualI3cRemoveByNode() local
397 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in VirtualI3cRemoveByNode()
398 if (drsOps == NULL || drsOps->GetUint32 == NULL) { in VirtualI3cRemoveByNode()
[all …]
H A Dclock_virtual.c172 struct DeviceResourceIface *drsOps = NULL; in VirtualClockReadDrs() local
174 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in VirtualClockReadDrs()
175 if (drsOps == NULL || drsOps->GetUint32 == NULL || drsOps->GetString == NULL) { in VirtualClockReadDrs()
179 ret = drsOps->GetUint32(node, "deviceIndex", &virtual->deviceIndex, 0); in VirtualClockReadDrs()
230 struct DeviceResourceIface *drsOps = NULL; in VirtualClockRelease() local
238 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in VirtualClockRelease()
239 if (drsOps == NULL || drsOps->GetUint32 == NULL) { in VirtualClockRelease()
244 ret = drsOps->GetUint32(device->property, "deviceIndex", (uint32_t *)&deviceIndex, 0); in VirtualClockRelease()
/ohos5.0/drivers/hdf_core/framework/model/audio/common/src/
H A 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()
/ohos5.0/drivers/hdf_core/framework/model/audio/core/src/
H A Daudio_parse.c88 struct DeviceResourceIface *drsOps = NULL; in AudioFillConfigData() local
101 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in AudioFillConfigData()
102 if (drsOps == NULL || drsOps->GetString == NULL) { in AudioFillConfigData()
512 num = drsOps->GetElemNum(device->property, HW_INFO); in AudioGetPortInfoConfig()
554 struct DeviceResourceIface *drsOps = NULL; in AudioGetPortConfig() local
561 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in AudioGetPortConfig()
562 if (drsOps == NULL || drsOps->GetString == NULL) { in AudioGetPortConfig()
567 ret = AudioGetPortInfoConfig(drsOps, device, configData); in AudioGetPortConfig()
581 struct DeviceResourceIface *drsOps = NULL; in AudioGetRegConfig() local
589 if (drsOps == NULL || drsOps->GetString == NULL) { in AudioGetRegConfig()
[all …]
/ohos5.0/drivers/hdf_core/adapter/khdf/linux/platform/adc/
H A 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 …]
/ohos5.0/docs/zh-cn/device-dev/driver/
H A Ddriver-platform-pin-develop.md268 struct DeviceResourceIface *drsOps = NULL;
271 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE);
272 if (drsOps == NULL || drsOps->GetUint32 == NULL || drsOps->GetUint16 == NULL) {
392 struct DeviceResourceIface *drsOps = NULL;
394 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE);
395 if (drsOps == NULL || drsOps->GetUint32 == NULL || drsOps->GetString == NULL) {
405 ret = Hi35xxPinReadFunc(&hi35xx->desc[index], node, drsOps);
459 struct DeviceResourceIface *drsOps = NULL;
466 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE);
467 if (drsOps == NULL || drsOps->GetUint32 == NULL || drsOps->GetString == NULL) {
[all …]
/ohos5.0/drivers/hdf_core/adapter/khdf/linux/platform/regulator/
H A Dregulator_adapter.c303 struct DeviceResourceIface *drsOps = NULL; in LinuxRegulatorReadHcs() local
305 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in LinuxRegulatorReadHcs()
306 if (drsOps == NULL || drsOps->GetString == NULL) { in LinuxRegulatorReadHcs()
362 struct DeviceResourceIface *drsOps = NULL; in LinuxRegulatorReadAdapterHcs() local
364 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in LinuxRegulatorReadAdapterHcs()
365 if (info == NULL || drsOps == NULL || drsOps->GetString == NULL) { in LinuxRegulatorReadAdapterHcs()
370 ret = drsOps->GetString(node, "devName", &(info->devName), "ERROR"); in LinuxRegulatorReadAdapterHcs()
473 struct DeviceResourceIface *drsOps = NULL; in LinuxRegulatorParseAndRelease() local
478 drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in LinuxRegulatorParseAndRelease()
479 if (drsOps == NULL || drsOps->GetString == NULL) { in LinuxRegulatorParseAndRelease()
[all …]

123