Searched defs:samp_res (Results 1 – 4 of 4) sorted by relevance
| /device/soc/rockchip/common/vendor/drivers/power/ |
| D | rk817_battery.c | 73 #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
|
| D | rk817_charger.c | 73 #define CURRENT_TO_ADC(current, samp_res) ((current)*1000 * (samp_res) / 172) argument
|
| /device/soc/rockchip/rk3588/kernel/drivers/power/supply/ |
| D | rk817_battery.c | 74 #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
|
| D | rk817_charger.c | 73 #define CURRENT_TO_ADC(current, samp_res) \ argument
|