Home
last modified time | relevance | path

Searched refs:drsOps (Results 1 - 25 of 41) sorted by relevance

12

/drivers/hdf_core/framework/model/network/wifi/platform/src/
H A 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 in ParseWlanApConfig()
83 struct DeviceResourceIface *drsOps = NULL; ParseWlanP2PConfig() local
111 struct DeviceResourceIface *drsOps = NULL; ParseWlanMac80211Config() local
134 struct DeviceResourceIface *drsOps = NULL; ParseWlanPhyConfig() local
157 struct DeviceResourceIface *drsOps = NULL; ParseWlanModuleConfig() local
217 struct DeviceResourceIface *drsOps = NULL; ParseWlanPowerConfig() local
253 struct DeviceResourceIface *drsOps = NULL; ParseWlanPowersConfig() local
288 struct DeviceResourceIface *drsOps = NULL; ParseWlanResetConfig() local
325 struct DeviceResourceIface *drsOps = NULL; ParseWlanBusConfig() local
369 struct DeviceResourceIface *drsOps = NULL; ParseWlanDevInstConfig() local
445 struct DeviceResourceIface *drsOps = NULL; ParseWlanChipBusConfig() local
470 struct DeviceResourceIface *drsOps = NULL; ParseWlanChipsCompsConfig() local
527 struct DeviceResourceIface *drsOps = NULL; ParseWlanConfig() local
[all...]
/drivers/hdf_core/framework/model/camera/parser/src/
H A Dcamera_config_parser.c41 struct DeviceResourceIface *drsOps, struct SensorDeviceConfig *sensorConfig) in ParseCameraSensorDeviceConfig()
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->ctrlValueNum, 0); in ParseCameraSensorDeviceConfig()
72 struct DeviceResourceIface *drsOps, struct IspDeviceConfig *ispConfig) in ParseCameraIspDeviceConfig()
76 ret = drsOps in ParseCameraIspDeviceConfig()
40 ParseCameraSensorDeviceConfig(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct SensorDeviceConfig *sensorConfig) ParseCameraSensorDeviceConfig() argument
71 ParseCameraIspDeviceConfig(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct IspDeviceConfig *ispConfig) ParseCameraIspDeviceConfig() argument
112 ParseCameraVcmDeviceConfig(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct VcmDeviceConfig *vcmConfig) ParseCameraVcmDeviceConfig() argument
145 ParseCameraLensDeviceConfig(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct LensDeviceConfig *lensConfig) ParseCameraLensDeviceConfig() argument
170 ParseCameraFlashDeviceConfig(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct FlashDeviceConfig *flashConfig) ParseCameraFlashDeviceConfig() argument
197 ParseCameraStreamDeviceConfigs(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct StreamDeviceConfig *streamConfig) ParseCameraStreamDeviceConfigs() argument
218 ParseCameraStreamDeviceConfig(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct StreamDeviceConfig *streamConfig) ParseCameraStreamDeviceConfig() argument
257 ParseCameraSensorConfig(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct CameraSensorConfig *sensorConfig) ParseCameraSensorConfig() argument
286 ParseCameraIspConfig(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct CameraIspConfig *ispConfig) ParseCameraIspConfig() argument
315 ParseCameraLensConfig(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct CameraLensConfig *lensConfig) ParseCameraLensConfig() argument
344 ParseCameraVcmConfig(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct CameraVcmConfig *vcmConfig) ParseCameraVcmConfig() argument
373 ParseCameraFlashConfig(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct CameraFlashConfig *flashConfig) ParseCameraFlashConfig() argument
402 ParseCameraStreamConfig(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct CameraStreamConfig *streamConfig) ParseCameraStreamConfig() argument
431 ParseCameraDeviceConfig(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct CameraDeviceConfig *deviceConfig) ParseCameraDeviceConfig() argument
466 ParseCameraConfig(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct CameraConfigRoot *cameraConfig) ParseCameraConfig() argument
496 struct DeviceResourceIface *drsOps = NULL; HdfParseCameraConfig() local
[all...]
/drivers/peripheral/usb/ddk/device/src/
H A Dusbfn_cfg_mgr.c34 struct DeviceResourceIface *drsOps, struct UsbDeviceDescriptor *devDesc) in UsbFnCfgMgrParseDevDesc()
38 if (drsOps->GetUint8(devDescNode, DESC_LENGTH, &devDesc->bLength, 0) != HDF_SUCCESS) { in UsbFnCfgMgrParseDevDesc()
46 if (drsOps->GetUint8(devDescNode, DESC_TYPE, &devDesc->bDescriptorType, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseDevDesc()
47 drsOps->GetUint8(devDescNode, USBDEV_CLASS, &devDesc->bDeviceClass, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseDevDesc()
48 drsOps->GetUint8(devDescNode, USBDEV_SUBCLASS, &devDesc->bDeviceSubClass, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseDevDesc()
49 drsOps->GetUint8(devDescNode, USBDEV_PROTOCOL, &devDesc->bDeviceProtocol, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseDevDesc()
50 drsOps->GetUint8(devDescNode, USBDEV_MAXSIZE, &devDesc->bMaxPacketSize0, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseDevDesc()
51 drsOps->GetUint8(devDescNode, USBDEV_MANUFACTURER, &devDesc->iManufacturer, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseDevDesc()
52 drsOps->GetUint8(devDescNode, USBDEV_PRODUCT, &devDesc->iProduct, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseDevDesc()
53 drsOps in UsbFnCfgMgrParseDevDesc()
33 UsbFnCfgMgrParseDevDesc(const struct DeviceResourceNode *devDescNode, struct DeviceResourceIface *drsOps, struct UsbDeviceDescriptor *devDesc) UsbFnCfgMgrParseDevDesc() argument
93 struct DeviceResourceIface *drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); UsbFnCfgMgrParseUsbFnDevDesc() local
122 UsbFnCfgMgrParseString( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, struct UsbFnStrings *fnString) UsbFnCfgMgrParseString() argument
175 UsbFnCfgMgrParseStrings( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps) UsbFnCfgMgrParseStrings() argument
225 struct DeviceResourceIface *drsOps = NULL; UsbFnCfgMgrParseUsbFnDevStrings() local
256 UsbFnCfgMgrParseAccocInterfaceDesc( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, uint8_t *descBuff) UsbFnCfgMgrParseAccocInterfaceDesc() argument
280 UsbFnCfgMgrParseInterfaceDesc( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, uint8_t *descBuff) UsbFnCfgMgrParseInterfaceDesc() argument
305 UsbFnCfgMgrParseEndpointDesc( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, uint8_t *descBuff) UsbFnCfgMgrParseEndpointDesc() argument
334 UsbFnCfgMgrParseStringDesc( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, uint8_t *descBuff) UsbFnCfgMgrParseStringDesc() argument
355 UsbFnCfgMgrParseSspIsocEndpointDesc( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, uint8_t *descBuff) UsbFnCfgMgrParseSspIsocEndpointDesc() argument
379 UsbFnCfgMgrParseSsEndpointDesc( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, uint8_t *descBuff) UsbFnCfgMgrParseSsEndpointDesc() argument
402 UsbFnCfgMgrParseQualifierDesc( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, uint8_t *descBuff) UsbFnCfgMgrParseQualifierDesc() argument
428 UsbFnCfgMgrParseOtgDesc( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, uint8_t *descBuff, uint8_t length) UsbFnCfgMgrParseOtgDesc() argument
457 UsbFnCfgMgrParseDebugDesc( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, uint8_t *descBuff) UsbFnCfgMgrParseDebugDesc() argument
477 UsbFnCfgMgrParseSecurityDesc( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, uint8_t *descBuff) UsbFnCfgMgrParseSecurityDesc() argument
499 UsbFnCfgMgrParseOtherDesc( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, uint8_t *descBuff, uint8_t length) UsbFnCfgMgrParseOtherDesc() argument
514 UsbFnCfgMgrParseDescriptor(const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, uint8_t *descBuff, uint8_t descType, uint8_t length) UsbFnCfgMgrParseDescriptor() argument
564 UsbFnCfgMgrParseDesc( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps) UsbFnCfgMgrParseDesc() argument
597 UsbFnCfgMgrParseFunDesc( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, const char *descName) UsbFnCfgMgrParseFunDesc() argument
641 UsbFnCfgMgrParseUsbFnFunction( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, struct UsbFnFunction *fun) UsbFnCfgMgrParseUsbFnFunction() argument
680 UsbFnCfgMgrParseUsbFnFunctions( const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct UsbFnConfiguration *fnConfig) UsbFnCfgMgrParseUsbFnFunctions() argument
733 UsbFnCfgMgrParseUsbFnConfiguration( const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct UsbFnConfiguration *fnConfig) UsbFnCfgMgrParseUsbFnConfiguration() argument
763 UsbFnCfgMgrParseUsbFnCfgLists( const struct DeviceResourceNode *configNode, struct DeviceResourceIface *drsOps, struct UsbFnDeviceDesc *fnDevDesc) UsbFnCfgMgrParseUsbFnCfgLists() argument
820 struct DeviceResourceIface *drsOps = NULL; UsbFnCfgMgrParseUsbFnConfigurations() local
1038 UsbFnCfgGetPropValueFromPropList(const struct UsbFnDeviceMgr *fnDevMgr, const struct UsbFnInterface *intf, const struct DeviceResourceIface *drsOps, const struct DeviceResourceNode *propListNode, const char *name) UsbFnCfgGetPropValueFromPropList() argument
1090 UsbFnCfgGetPropValueFromHcs(const struct UsbFnDeviceMgr *fnDevMgr, const struct UsbFnInterface *intf, const struct DeviceResourceIface *drsOps, const struct DeviceResourceNode *customNode, const char *name) UsbFnCfgGetPropValueFromHcs() argument
1126 struct DeviceResourceIface *drsOps = NULL; UsbFnCfgFindPropFromHcs() local
[all...]
/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 in RtcTestReadConfig()
[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 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 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 Dgpio_driver_test.c42 struct DeviceResourceIface *drsOps) in GpioReadNameTestInfos()
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 in GpioTestReadConfig()
41 GpioReadNameTestInfos(struct GpioTestConfig *config, const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps) GpioReadNameTestInfos() argument
[all...]
H A 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()
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()
48 HDF_LOGE("PwmTestReadConfig: drsOps is 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 in PwmTestReadConfig()
[all...]
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()
/drivers/hdf_core/framework/model/display/driver/lcdkit/
H A Dlcdkit_parse_config.c97 static int32_t ParseCmdConfig(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, in ParseCmdConfig() argument
100 int32_t len = drsOps->GetElemNum(node, name); in ParseCmdConfig()
106 if (drsOps->GetUint8Array(node, name, array, len, 0) != HDF_SUCCESS) { in ParseCmdConfig()
120 static int32_t ParsePanelInfo(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, in ParsePanelInfo() argument
124 PARSE_PANEL_SYMBOL(node, drsOps, "width", &info->width); in ParsePanelInfo()
125 PARSE_PANEL_SYMBOL(node, drsOps, "height", &info->height); in ParsePanelInfo()
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()
129 PARSE_PANEL_SYMBOL(node, drsOps, "vb in ParsePanelInfo()
153 ParsePowerSetting(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct PowerSetting *setting) ParsePowerSetting() argument
190 ParsePowerSequeue(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, const char *name, struct PowerSequeue *seq) ParsePowerSequeue() argument
229 struct DeviceResourceIface *drsOps = NULL; ParsePanelConfig() local
270 struct DeviceResourceIface *drsOps = NULL; ParseLcdConfig() local
[all...]
/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 in DspGetDaiName()
[all...]
/drivers/hdf_core/framework/model/network/ethernet/src/
H A 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 in ParseEthMacConfig()
122 struct DeviceResourceIface *drsOps = NULL; ParseEthPhyConfig() local
144 struct DeviceResourceIface *drsOps = NULL; ParseEthDevInstConfig() local
222 struct DeviceResourceIface *drsOps = NULL; ParseConfigFromProperty() local
[all...]
/drivers/hdf_core/framework/test/unittest/platform/virtual/
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 in VirtualDacRemoveByNode()
[all...]
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 in VirtualAdcRelease()
[all...]
H A Dpin_virtual.c174 const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps) in VirtualPinReadFunc()
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 in VirtualPinParsePinNode()
173 VirtualPinReadFunc(struct VirtualPinDesc *desc, const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps) VirtualPinReadFunc() argument
259 struct DeviceResourceIface *drsOps = NULL; VirtualPinCntlrInit() local
361 struct DeviceResourceIface *drsOps = NULL; VirtualPinRelease() local
[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()
312 if (drsOps->GetUint32(node, "i3cMaxRate", &virtual->i3cMaxRate, 0) != HDF_SUCCESS) { in VirtualI3cReadDrs()
316 if (drsOps in VirtualI3cReadDrs()
395 struct DeviceResourceIface *drsOps = NULL; VirtualI3cRemoveByNode() local
[all...]
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()
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 in VirtualRegulatorReadHcs()
[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 in VirtualClockRelease()
[all...]
/drivers/hdf_core/framework/test/unittest/platform/config/
H A 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()
/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 in AdcIioReadDrs()
254 struct DeviceResourceIface *drsOps = NULL; AdcIioRemoveByNode() local
[all...]
/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()
107 (void)drsOps->GetString(node, "serviceName", &(configData->cardServiceName), 0); in AudioFillConfigData()
108 (void)drsOps->GetString(node, "codecName", &(configData->codecName), 0); in AudioFillConfigData()
109 (void)drsOps->GetString(node, "platformName", &(configData->platformName), 0); in AudioFillConfigData()
110 (void)drsOps->GetString(node, "cpuDaiName", &(configData->cpuDaiName), 0); in AudioFillConfigData()
111 (void)drsOps->GetString(node, "codecDaiName", &(configData->codecDaiName), 0); in AudioFillConfigData()
112 (void)drsOps in AudioFillConfigData()
505 AudioGetPortInfoConfig(struct DeviceResourceIface *drsOps, const struct HdfDeviceObject *device, struct AudioPortInfo *configData) AudioGetPortInfoConfig() argument
554 struct DeviceResourceIface *drsOps = NULL; AudioGetPortConfig() local
581 struct DeviceResourceIface *drsOps = NULL; AudioGetRegConfig() local
[all...]

Completed in 11 milliseconds

12