/drivers/hdf_core/framework/model/camera/parser/src/ |
D | camera_config_parser.c | 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() 78 ret = drsOps->GetUint8(node, "id", &ispConfig->id, 0); in ParseCameraIspDeviceConfig() 80 ret = drsOps->GetUint8(node, "brightness", &ispConfig->brightness, 0); in ParseCameraIspDeviceConfig() 82 ret = drsOps->GetUint8(node, "contrast", &ispConfig->contrast, 0); in ParseCameraIspDeviceConfig() 84 ret = drsOps->GetUint8(node, "saturation", &ispConfig->saturation, 0); in ParseCameraIspDeviceConfig() 86 ret = drsOps->GetUint8(node, "hue", &ispConfig->hue, 0); in ParseCameraIspDeviceConfig() 88 ret = drsOps->GetUint8(node, "sharpness", &ispConfig->sharpness, 0); in ParseCameraIspDeviceConfig() [all …]
|
/drivers/hdf_core/framework/model/network/bluetooth/ |
D | hdf_chip_config.c | 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() 39 if (drsOps->GetUint8(node, "activeLevel", &config->gpio.activeLevel, 0) != HDF_SUCCESS) { in ParsePowerConfig() 109 if (drsOps == NULL || drsOps->GetUint8 == NULL) { in ParseResetConfig() 114 if (drsOps->GetUint8(node, "resetType", &reset->resetType, 0) != HDF_SUCCESS) { in ParseResetConfig() 124 if (drsOps->GetUint8(node, "activeLevel", &reset->gpio.activeLevel, 0) != HDF_SUCCESS) { in ParseResetConfig() 129 if (drsOps->GetUint8(node, "resetHoldTime", &reset->resetHoldTime, 0) != HDF_SUCCESS) { in ParseResetConfig() 156 if (drsOps == NULL || drsOps->GetUint8 == NULL || drsOps->GetChildNode == NULL) { in ParseChipConfig() 162 if (drsOps->GetUint8(node, "bootUpTimeOut", &config->bootUpTimeOut, 0) != HDF_SUCCESS) { in ParseChipConfig()
|
D | hdf_bt_core.c | 77 if (drsOps == NULL || drsOps->GetUint8 == NULL || drsOps->GetString == NULL) { in ParseTransportConfig() 81 if (drsOps->GetUint8(node, "type", &config->type, 0) != HDF_SUCCESS) { in ParseTransportConfig()
|
/drivers/hdf_core/framework/model/network/wifi/platform/src/ |
D | hdf_wlan_config_parser.c | 24 if (drsOps == NULL || drsOps->GetString == NULL || drsOps->GetUint8 == NULL) { in ParseWlanStaConfig() 33 ret = drsOps->GetUint8(node, "mode", &staConfig->mode, 0); in ParseWlanStaConfig() 52 if (drsOps == NULL || drsOps->GetString == NULL || drsOps->GetUint8 == NULL) { in ParseWlanApConfig() 61 ret = drsOps->GetUint8(node, "mode", &apConfig->mode, 0); in ParseWlanApConfig() 66 ret = drsOps->GetUint8(node, "vapResNum", &apConfig->vapResNum, 0); in ParseWlanApConfig() 71 ret = drsOps->GetUint8(node, "userResNum", &apConfig->userResNum, 0); in ParseWlanApConfig() 91 if (drsOps == NULL || drsOps->GetString == NULL || drsOps->GetUint8 == NULL) { in ParseWlanP2PConfig() 100 ret = drsOps->GetUint8(node, "mode", &p2pConfig->mode, 0); in ParseWlanP2PConfig() 119 if (drsOps == NULL || drsOps->GetUint8 == NULL) { in ParseWlanMac80211Config() 123 ret = drsOps->GetUint8(node, "mode", &macConfig->mode, 0); in ParseWlanMac80211Config() [all …]
|
/drivers/peripheral/usb/ddk/device/src/ |
D | usbfn_cfg_mgr.c | 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() 53 … drsOps->GetUint8(devDescNode, USBDEV_NUMCFG, &devDesc->bNumConfigurations, 0) != HDF_SUCCESS) { in UsbFnCfgMgrParseDevDesc() [all …]
|
/drivers/hdf_core/framework/model/network/ethernet/src/ |
D | eth_device.c | 89 if (drsOps == NULL || drsOps->GetUint8 == NULL || drsOps->GetUint32 == NULL) { 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() 130 if (drsOps == NULL || drsOps->GetUint8 == NULL) { in ParseEthPhyConfig() 135 if (drsOps->GetUint8(node, "phyMode", ðPhyConfig->phyMode, 0) != HDF_SUCCESS) { in ParseEthPhyConfig() 151 if (drsOps == NULL || drsOps->GetUint8 == NULL || drsOps->GetChildNode == NULL) { in ParseEthDevInstConfig() 155 if (drsOps->GetUint8(node, "deviceInstId", &devLstConfig->deviceInstId, 0) != HDF_SUCCESS) { in ParseEthDevInstConfig() 159 if (drsOps->GetUint8(node, "isSetDefault", &devLstConfig->isSetDefault, 0) != HDF_SUCCESS) { in ParseEthDevInstConfig() 167 if (drsOps->GetUint8(node, "hwXmitq", &devLstConfig->hwXmitq, 0) != HDF_SUCCESS) { in ParseEthDevInstConfig() 171 if (drsOps->GetUint8(node, "qSize", &devLstConfig->qSize, 0) != HDF_SUCCESS) { in ParseEthDevInstConfig() [all …]
|
/drivers/hdf_core/framework/model/input/driver/ |
D | input_config_parser.c | 44 ret = parser->GetUint8(infraredNode, "inputType", &config->devType, 0); in ParseInfraredConfig() 72 ret = parser->GetUint8(keyNode, "inputType", &config->devType, 0); in ParseKeyConfig() 99 int32_t ret = parser->GetUint8(encoderNode, "inputType", &config->devType, 0); in ParseEncoderConfig() 115 ret = parser->GetUint8(attrNode, "inputType", &attr->devType, 0); in ParseAttr() 129 ret = parser->GetUint8(busNode, "busType", &bus->busType, 0); in ParseBus() 133 ret = parser->GetUint8(busNode, "busNum", &bus->i2c.busNum, 0); in ParseBus() 144 ret = parser->GetUint8(busNode, "busNum", &bus->spi.busNum, 0); in ParseBus() 198 ret = parser->GetUint8(featureNode, "capacitanceTest", &feature->capacitanceTest, 0); in ParseFeature() 200 ret = parser->GetUint8(featureNode, "gestureMode", &feature->gestureMode, 0); in ParseFeature() 202 ret = parser->GetUint8(featureNode, "gloverMOde", &feature->gloverMOde, 0); in ParseFeature() [all …]
|
/drivers/hdf_core/framework/test/unittest/platform/common/ |
D | i2s_test.c | 400 int32_t ret = face->GetUint8(node, "writeChannel", &test->writeChannel, 0); in I2sTestInitCodecFromHcs() 405 ret = face->GetUint8(node, "i2slFsSel", &test->i2slFsSel, 0); in I2sTestInitCodecFromHcs() 411 ret = face->GetUint8(node, "channelMode", &test->channelMode, 0); in I2sTestInitCodecFromHcs() 416 ret = face->GetUint8(node, "channelIfMode", &test->channelIfMode, 0); in I2sTestInitCodecFromHcs() 439 ret = face->GetUint8(node, "sampleRate", &test->sampleRate, 0); in I2sTestInitFromHcs() 444 ret = face->GetUint8(node, "type", &test->type, 0); in I2sTestInitFromHcs() 449 ret = face->GetUint8(node, "samplePrecision", &test->samplePrecision, 0); in I2sTestInitFromHcs()
|
D | regulator_test.c | 355 ret = face->GetUint8(node, "mode", &test->mode, 0); in RegulatorTestInitFromHcs()
|
/drivers/hdf_core/adapter/platform/uart/ |
D | uart_stm32f4xx.c | 373 if (dri->GetUint8(resourceNode, "num", &resource->num, 0) != HDF_SUCCESS) { in GetUartHcs() 381 if (dri->GetUint8(resourceNode, "dataWidth", &resource->dataWidth, 0) != HDF_SUCCESS) { in GetUartHcs() 385 if (dri->GetUint8(resourceNode, "stopBit", &resource->stopBit, 0) != HDF_SUCCESS) { in GetUartHcs() 389 if (dri->GetUint8(resourceNode, "parity", &resource->parity, 0) != HDF_SUCCESS) { in GetUartHcs() 393 if (dri->GetUint8(resourceNode, "transDir", &resource->transDir, 0) != HDF_SUCCESS) { in GetUartHcs() 397 if (dri->GetUint8(resourceNode, "flowCtrl", &resource->flowCtrl, 0) != HDF_SUCCESS) { in GetUartHcs() 401 if (dri->GetUint8(resourceNode, "overSimpling", &resource->overSimpling, 0) != HDF_SUCCESS) { in GetUartHcs() 405 if (dri->GetUint8(resourceNode, "transMode", &resource->transMode, 0) != HDF_SUCCESS) { in GetUartHcs() 409 if (dri->GetUint8(resourceNode, "uartType", &resource->uartType, 0) != HDF_SUCCESS) { in GetUartHcs() 413 if (dri->GetUint8(resourceNode, "uartDePin", &resource->dePin, 0) != HDF_SUCCESS) { in GetUartHcs() [all …]
|
/drivers/hdf_core/framework/utils/src/hcs_parser/ |
D | device_resource_if.c | 17 instance->GetUint8 = HcsGetUint8; in HcsIfaceConstruct()
|
/drivers/hdf_core/adapter/platform/i2c/ |
D | i2c_stm32f4xx.c | 107 …if (dri == NULL || dri->GetUint8 == NULL || dri->GetUint32 == NULL || dri->GetUint32Array == NULL)… in GetI2cDeviceResource() 112 if (dri->GetUint8(resourceNode, "port", &i2cResource->port, 0) != HDF_SUCCESS) { in GetI2cDeviceResource() 117 if (dri->GetUint8(resourceNode, "devMode", &i2cResource->devMode, 0) != HDF_SUCCESS) { in GetI2cDeviceResource()
|
/drivers/hdf_core/framework/test/unittest/platform/config/ |
D | can_test_config.c | 68 ret = drsOps->GetUint8(node, "work_mode", &config->workMode, CAN_TEST_WORK_MODE); in CanTestReadConfig()
|
/drivers/hdf_core/framework/test/unittest/platform/virtual/ |
D | spi_virtual.c | 329 …if (iface == NULL || iface->GetUint32 == NULL || iface->GetUint16 == NULL || iface->GetUint8 == NU… in SpiGetCfgFromHcs() 353 if (iface->GetUint8(node, "bitsPerWord", &virtual->cfg.bitsPerWord, 0) != HDF_SUCCESS) { in SpiGetCfgFromHcs() 357 if (iface->GetUint8(node, "transferMode", &virtual->cfg.transferMode, 0) != HDF_SUCCESS) { in SpiGetCfgFromHcs()
|
D | regulator_virtual.c | 210 ret = drsOps->GetUint8(node, "mode", ®Node->regulatorInfo.constraints.mode, 0); in VirtualRegulatorReadHcs()
|
/drivers/hdf_core/interfaces/inner_api/utils/ |
D | device_resource_if.h | 126 …int32_t (*GetUint8)(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, u… member
|
/drivers/hdf_core/framework/model/sensor/driver/common/src/ |
D | sensor_config_parser.c | 374 ret = parser->GetUint8(spiBusNode, "transferMode", &busConfig->spiCfg.spi.transferMode, 0); in ParseSensorSpiBus() 376 ret = parser->GetUint8(spiBusNode, "bitsPerWord", &busConfig->spiCfg.spi.bitsPerWord, 0); in ParseSensorSpiBus() 388 ret = parser->GetUint8(busNode, "busType", &config->busCfg.busType, 0); in ParseSensorBus() 390 ret = parser->GetUint8(busNode, "regBigEndian", &config->busCfg.regBigEndian, 0); in ParseSensorBus()
|
/drivers/hdf_core/adapter/platform/pwm/ |
D | pwm_stm32f4xx.c | 248 if (dri == NULL || dri->GetUint8 == NULL || dri->GetUint32 == NULL) { in GetPwmDeviceResource() 253 if (dri->GetUint8(resourceNode, "pwmTim", &resource->pwmTim, 0) != HDF_SUCCESS) { in GetPwmDeviceResource() 263 if (dri->GetUint8(resourceNode, "pwmCh", &resource->pwmCh, 0) != HDF_SUCCESS) { in GetPwmDeviceResource()
|
/drivers/hdf_core/framework/test/unittest/utils/hcs_parser/unittest/ |
D | hcs_config_test.c | 243 ret = g_devResInstance->GetUint8(audioNode, SMARTPA_NUM, &data, DEFAULT_UINT8_MAX); in HcsTestGetUint8AttrValueSuccess() 260 ret = g_devResInstance->GetUint8(audioNode, INVALID_STRING, &data, DEFAULT_UINT8_MAX); in HcsTestGetUint8AttrValueFail() 264 ret = g_devResInstance->GetUint8(audioNode, READ_U64DATA, NULL, DEFAULT_UINT8_MAX); in HcsTestGetUint8AttrValueFail() 268 ret = g_devResInstance->GetUint8(audioNode, VOICE_VOL_LEVEL, &data, DEFAULT_UINT8_MAX); in HcsTestGetUint8AttrValueFail() 272 ret = g_devResInstance->GetUint8(audioNode, SMARTPA_ADDR, &data, DEFAULT_UINT8_MAX); in HcsTestGetUint8AttrValueFail() 276 ret = g_devResInstance->GetUint8(audioNode, READ_U64DATA, &data, DEFAULT_UINT8_MAX); in HcsTestGetUint8AttrValueFail()
|
/drivers/hdf_core/framework/model/misc/vibrator/driver/src/ |
D | vibrator_parser.c | 68 ret = parser->GetUint8(busNode, "busType", &config->vibratorBus.busType, 0); in ParseVibratorBus()
|
/drivers/peripheral/usb/gadget/function/usbfn/ |
D | dev_usbfn.c | 172 if (iface->GetUint8(device->property, "use_hcs", &useHcs, 0) != HDF_SUCCESS) { in UsbFnDriverInit()
|
/drivers/hdf_core/framework/model/display/driver/backlight/ |
D | pwm_bl.c | 81 ret = parser->GetUint8(node, "pwmDevNum", pwmNum, 0); in ParsePwmNum()
|
/drivers/hdf_core/framework/model/usb/src/ |
D | usb_ddk_pnp_loader.c | 479 if (devResIface->GetUint8(node, "deviceClass", &table->deviceClass, 0) != HDF_SUCCESS) { in UsbDdkPnpLoaderParseIdDevice() 484 if (devResIface->GetUint8(node, "deviceSubClass", &table->deviceSubClass, 0) != HDF_SUCCESS) { in UsbDdkPnpLoaderParseIdDevice() 489 if (devResIface->GetUint8(node, "deviceProtocol", &table->deviceProtocol, 0) != HDF_SUCCESS) { in UsbDdkPnpLoaderParseIdDevice() 520 if (devResIface->GetUint8(node, "length", &table->length, 0) != HDF_SUCCESS) { in UsbDdkPnpLoaderParseIdTable()
|
/drivers/hdf_core/adapter/platform/can/ |
D | can_virtual.c | 70 if (iface->GetUint8(node, "work_mode", &virtualCan->workMode, 0) != HDF_SUCCESS) { in VirtualReadConfigFromHcs()
|
/drivers/hdf_core/adapter/platform/spi/ |
D | spi_stm32f4xx.c | 469 if (dri == NULL || dri->GetUint16 == NULL || dri->GetUint8 == NULL || dri->GetUint32 == NULL) { in GetSpiDeviceResource() 475 if (dri->GetUint8(resourceNode, g_parseHcsMap[i], &temp[i], 0) != HDF_SUCCESS) { in GetSpiDeviceResource()
|