Lines Matching refs:sample_res
2189 if (di->pdata->sample_res == 20) { in rk816_bat_select_sample_res()
2192 } else if (di->pdata->sample_res > 20) { in rk816_bat_select_sample_res()
2194 di->res_fac = di->pdata->sample_res * 10 / 20; in rk816_bat_select_sample_res()
2197 di->res_fac = 20 * 10 / di->pdata->sample_res; in rk816_bat_select_sample_res()
2230 if (di->pdata->sample_res < 20) { in rk816_bat_decode_chrg_current()
2235 } else if (di->pdata->sample_res > 20) { in rk816_bat_decode_chrg_current()
2294 if (di->pdata->sample_res < 20) { in rk816_bat_finish_ma()
2300 } else if (di->pdata->sample_res > 20) { in rk816_bat_finish_ma()
2870 di->pdata->sample_res, in rk816_bat_debug_info()
4665 pdata->sample_res = DEFAULT_SAMPLE_RES; in rk816_bat_parse_dt()
4742 of_property_read_u32(np, "sample_res", &pdata->sample_res); in rk816_bat_parse_dt()
4887 pdata->bat_res, pdata->sample_res, pdata->max_input_current, in rk816_bat_parse_dt()