/drivers/hdf_core/framework/support/platform/src/regulator/ |
H A D | regulator_if.c | 115 int32_t RegulatorGetVoltage(DevHandle handle, uint32_t *voltage) in RegulatorGetVoltage() argument 119 if (node == NULL || voltage == NULL) { in RegulatorGetVoltage() 124 int ret = RegulatorNodeGetVoltage(node, voltage); in RegulatorGetVoltage()
|
H A D | regulator_core.c | 541 int32_t RegulatorNodeGetVoltage(struct RegulatorNode *node, uint32_t *voltage)
in RegulatorNodeGetVoltage() argument 544 CHECK_NULL_PTR_RETURN_VALUE(voltage, HDF_ERR_INVALID_PARAM);
in RegulatorNodeGetVoltage() 552 int ret = node->ops->getVoltage(node, voltage);
in RegulatorNodeGetVoltage()
|
/drivers/hdf_core/framework/include/platform/ |
H A D | regulator_if.h | 27 /* regulator mode, set voltage or current */
89 * @brief Set the output voltage range of a regulator.
92 * @param minUv Represents minimum voltage
93 * @param minUv Represents maximum voltage
96 * @attention If the set voltage is not within the contrants, the setting fails.
102 * @brief Get a regulator voltage.
105 * @param voltage Voltage obtained.
106 * @return <b>0</b> If the regulator get voltage successfully; Otherwise, a negative value is returned.
110 int32_t RegulatorGetVoltage(DevHandle handle, uint32_t *voltage);
128 * @param voltage Curren [all...] |
/drivers/hdf_core/framework/test/unittest/platform/virtual/ |
H A D | regulator_virtual.c | 10 dev ---+-> Regulator-1(voltage) -+-> Regulator-2(voltage) -+-> Regulator-3(voltage) -+-> Regulator-4(voltage) 12 | | -+-> Regulator-5(voltage) -+-> Regulator-6(voltage) -+-> Regulator-7(voltage) -+-> Regulator-8(voltage) 69 static int32_t VirtualRegulatorGetVoltage(struct RegulatorNode *node, uint32_t *voltage) in VirtualRegulatorGetVoltage() argument 71 if (node == NULL || voltage in VirtualRegulatorGetVoltage() [all...] |
/drivers/hdf_core/framework/support/platform/include/regulator/ |
H A D | regulator_core.h | 70 uint8_t mode; /* mode: voltage or current */
71 uint32_t minUv; /* min voltage that can be set by the regulator */
72 uint32_t maxUv; /* max voltage that can be set by the regulator */
81 uint32_t minUv; /* min voltage */
82 uint32_t maxUv; /* min voltage */
107 int32_t (*getVoltage)(struct RegulatorNode *node, uint32_t *voltage);
153 * @brief set regulator voltage
155 * @param minUv min voltage
156 * @param maxUv max voltage
161 * @brief get regulator voltage
[all...] |
/drivers/peripheral/thermal/interfaces/hdi_service/include/ |
H A D | thermal_device_mitigation.h | 38 int32_t BatteryVoltageRequest(uint32_t voltage);
|
/drivers/peripheral/thermal/interfaces/hdi_service/src/ |
H A D | thermal_device_mitigation.cpp | 43 const std::string BATTERY_VOLTAGE_PATH = "/data/service/el0/thermal/cooling/battery/voltage"; 222 int32_t ThermalDeviceMitigation::BatteryVoltageRequest(uint32_t voltage) in BatteryVoltageRequest() argument 233 ret = snprintf_s(voltageBuf, MAX_PATH, sizeof(voltageBuf) - 1, "%u", voltage); in BatteryVoltageRequest() 238 THERMAL_HILOGI(COMP_HDI, "Set current to %{public}d", voltage); in BatteryVoltageRequest()
|
/drivers/peripheral/battery/interfaces/hdi_service/include/ |
H A D | battery_interface_impl.h | 44 int32_t GetVoltage(int32_t& voltage) override;
|
H A D | power_supply_provider.h | 85 int32_t ParseVoltage(int32_t* voltage);
|
/drivers/hdf_core/adapter/khdf/linux/platform/regulator/ |
H A D | regulator_adapter.c | 185 static int32_t LinuxRegulatorGetVoltage(struct RegulatorNode *node, uint32_t *voltage) in LinuxRegulatorGetVoltage() argument 187 if (node == NULL || node->priv == NULL || voltage == NULL) { in LinuxRegulatorGetVoltage() 188 HDF_LOGE("LinuxRegulatorGetVoltage: node or priv or voltage is null!"); in LinuxRegulatorGetVoltage() 203 *voltage = ret; in LinuxRegulatorGetVoltage()
|
/drivers/peripheral/battery/interfaces/hdi_service/src/ |
H A D | battery_interface_impl.cpp | 116 int32_t BatteryInterfaceImpl::GetVoltage(int32_t& voltage) in GetVoltage() argument 118 return powerSupplyProvider_->ParseVoltage(&voltage); in GetVoltage() 207 info.voltage = batteryInfo.voltage_; in GetBatteryInfo()
|
H A D | battery_thread.cpp | 192 event.voltage= batteryInfo->voltage_; in UpdateBatteryInfo() 216 event.capacity, event.voltage, event.curNow, event.temperature, event.healthState, in UpdateBatteryInfo()
|
H A D | power_supply_provider.cpp | 142 { "Over voltage", BATTERY_HEALTH_OVERVOLTAGE }, in HealthStateEnumConverter() 804 int32_t PowerSupplyProvider::ParseVoltage(int32_t* voltage) in ParseVoltage() argument 813 *voltage = value; in ParseVoltage() 936 CreateFile(mockTechPath + "/health", "Over voltage"); in CreateMockTechPath()
|
/drivers/peripheral/battery/interfaces/hdi_service/test/unittest/src/ |
H A D | hdi_service_test.cpp | 276 BATTERY_HILOGE(LABEL_TEST, "read system file voltage is %{public}d", battVoltage); in ReadVoltageSysfs() 278 BATTERY_HILOGE(LABEL_TEST, "read system file voltage is %{public}d", battVoltage); in ReadVoltageSysfs() 489 {"Over voltage", PowerSupplyProvider::BATTERY_HEALTH_OVERVOLTAGE}, in HealthStateEnumConverter() 836 int32_t voltage = 0; in HWTEST_F() local 838 giver_->ParseVoltage(&voltage); in HWTEST_F() 840 BATTERY_HILOGI(LABEL_TEST, "Not Mock HdiService002::voltage=%{public}d, v=%{public}d", voltage, sysfsVoltage); in HWTEST_F() 841 ASSERT_TRUE(voltage == sysfsVoltage); in HWTEST_F() 845 giver_->ParseVoltage(&voltage); in HWTEST_F() 846 BATTERY_HILOGI(LABEL_TEST, "Not Mock HdiService002::voltage in HWTEST_F() [all...] |
/drivers/peripheral/usb/hdi_service/include/ |
H A D | usbd_type.h | 210 int32_t voltage;
member
|
/drivers/hdf_core/framework/model/storage/include/mmc/ |
H A D | mmc_corex.h | 173 int32_t MmcCntlrSwitchVoltage(struct MmcCntlr *cntlr, enum MmcVolt voltage);
|
/drivers/hdf_core/framework/model/storage/src/mmc/ |
H A D | mmc_core.c | 404 int32_t MmcCntlrSwitchVoltage(struct MmcCntlr *cntlr, enum MmcVolt voltage) in MmcCntlrSwitchVoltage() argument 410 return cntlr->ops->switchVoltage(cntlr, voltage); in MmcCntlrSwitchVoltage() 463 /* use low voltage shuould both host and dev support. */ in MmcCntlrSelectWorkVoltage() 469 * Based on the voltage range supported by the host and the voltage range read from the OCR register, in MmcCntlrSelectWorkVoltage() 470 * obtain the voltage range supported by both the host and the OCR register, in MmcCntlrSelectWorkVoltage() 471 * and then select the minimum voltage value. in MmcCntlrSelectWorkVoltage() 528 /* init voltage 3.3v. */ in MmcCntlrPowerUp()
|