Home
last modified time | relevance | path

Searched defs:samp_res (Results 1 – 4 of 4) sorted by relevance

/device/soc/rockchip/common/vendor/drivers/power/
Drk817_battery.c73 #define ADC_TO_CURRENT(adc_value, samp_res) ((adc_value) * 172 / 1000 / (samp_res)) argument
74 #define CURRENT_TO_ADC(current, samp_res) ((current) * 1000 * (samp_res) / 172) argument
76 #define ADC_TO_CAPACITY(adc_value, samp_res) ((adc_value) / 1000 * 172 / 3600 / (samp_res)) argument
77 #define CAPACITY_TO_ADC(capacity, samp_res) ((capacity) * (samp_res)*3600 / 172 * 1000) argument
79 #define ADC_TO_CAPACITY_UAH(adc_value, samp_res) ((adc_value) / 3600 * 172 / (samp_res)) argument
80 #define ADC_TO_CAPACITY_MAH(adc_value, samp_res) ((adc_value) / 1000 * 172 / 3600 / (samp_res)) argument
Drk817_charger.c73 #define CURRENT_TO_ADC(current, samp_res) ((current)*1000 * (samp_res) / 172) argument
/device/soc/rockchip/rk3588/kernel/drivers/power/supply/
Drk817_battery.c74 #define ADC_TO_CURRENT(adc_value, samp_res) \ argument
76 #define CURRENT_TO_ADC(current, samp_res) \ argument
79 #define ADC_TO_CAPACITY(adc_value, samp_res) \ argument
81 #define CAPACITY_TO_ADC(capacity, samp_res) \ argument
84 #define ADC_TO_CAPACITY_UAH(adc_value, samp_res) \ argument
86 #define ADC_TO_CAPACITY_MAH(adc_value, samp_res) \ argument
Drk817_charger.c73 #define CURRENT_TO_ADC(current, samp_res) \ argument