Home
last modified time | relevance | path

Searched refs:samp_res (Results 1 – 3 of 3) sorted by relevance

/OK3568_Linux_fs/u-boot/drivers/power/fuel_gauge/
H A Dfg_rk817.c178 #define ADC_TO_CURRENT(adc_value, samp_res) \ argument
179 (adc_value * 172 / 1000 / samp_res)
180 #define CURRENT_TO_ADC(current, samp_res) \ argument
181 (current * 1000 * samp_res / 172)
183 #define ADC_TO_CAPACITY(adc_value, samp_res) \ argument
184 (adc_value / 1000 * 172 / 3600 / samp_res)
185 #define CAPACITY_TO_ADC(capacity, samp_res) \ argument
186 (capacity * samp_res * 3600 / 172 * 1000)
188 #define ADC_TO_CAPACITY_UAH(adc_value, samp_res) \ argument
189 (adc_value / 3600 * 172 / samp_res)
[all …]
/OK3568_Linux_fs/kernel/drivers/power/supply/
H A Drk817_battery.c74 #define ADC_TO_CURRENT(adc_value, samp_res) \ argument
75 (adc_value * 172 / 1000 / samp_res)
76 #define CURRENT_TO_ADC(current, samp_res) \ argument
77 (current * 1000 * samp_res / 172)
79 #define ADC_TO_CAPACITY(adc_value, samp_res) \ argument
80 (adc_value / 1000 * 172 / 3600 / samp_res)
81 #define CAPACITY_TO_ADC(capacity, samp_res) \ argument
82 (capacity * samp_res * 3600 / 172 * 1000)
84 #define ADC_TO_CAPACITY_UAH(adc_value, samp_res) \ argument
85 (adc_value / 3600 * 172 / samp_res)
[all …]
H A Drk817_charger.c73 #define CURRENT_TO_ADC(current, samp_res) \ argument
74 (current * 1000 * samp_res / 172)