Lines Matching refs:fg_params

364 	if (curr_ua > -di->bm->fg_params->high_curr_threshold_ua)  in ab8500_fg_is_low_curr()
1209 max(capacity, di->bm->fg_params->maint_thres); in ab8500_fg_calculate_scaled_capacity()
1271 di->bm->fg_params->maint_thres); in ab8500_fg_update_cap_scalers()
1452 di->bm->fg_params->accu_charging); in ab8500_fg_algorithm_charging()
1514 lower = di->bat_cap.permille - di->bm->fg_params->user_cap_limit * 10; in check_sysfs_capacity()
1515 upper = di->bat_cap.permille + di->bm->fg_params->user_cap_limit * 10; in check_sysfs_capacity()
1555 di->fg_samples = SEC_TO_SAMPLE(di->bm->fg_params->init_timer); in ab8500_fg_algorithm_discharging()
1568 sleep_time = di->bm->fg_params->init_timer; in ab8500_fg_algorithm_discharging()
1571 if (di->init_cnt > di->bm->fg_params->init_discard_time) { in ab8500_fg_algorithm_discharging()
1578 if (di->init_cnt > di->bm->fg_params->init_total_time) in ab8500_fg_algorithm_discharging()
1593 sleep_time = di->bm->fg_params->recovery_sleep_timer; in ab8500_fg_algorithm_discharging()
1605 di->bm->fg_params->recovery_total_time) { in ab8500_fg_algorithm_discharging()
1607 di->bm->fg_params->accu_high_curr); in ab8500_fg_algorithm_discharging()
1620 di->bm->fg_params->accu_high_curr); in ab8500_fg_algorithm_discharging()
1629 di->bm->fg_params->accu_high_curr); in ab8500_fg_algorithm_discharging()
1676 di->bm->fg_params->accu_high_curr; in ab8500_fg_algorithm_discharging()
1678 di->bm->fg_params->high_curr_time) in ab8500_fg_algorithm_discharging()
1692 di->bm->fg_params->accu_high_curr); in ab8500_fg_algorithm_discharging()
1887 if (vbat_uv < di->bm->fg_params->lowbat_threshold_uv) { in ab8500_fg_low_bat_work()
1949 sel0 = di->bm->fg_params->battok_falling_th_sel0; in ab8500_fg_battok_init_hw_register()
1950 sel1 = di->bm->fg_params->battok_raising_th_sel1; in ab8500_fg_battok_init_hw_register()
2335 di->bm->fg_params->lowbat_threshold_uv) << 1 | in ab8500_fg_init_hw_registers()
2351 AB8505_RTC_PCUT_MAX_TIME_REG, di->bm->fg_params->pcut_max_time); in ab8500_fg_init_hw_registers()
2359 AB8505_RTC_PCUT_FLAG_TIME_REG, di->bm->fg_params->pcut_flag_time); in ab8500_fg_init_hw_registers()
2367 AB8505_RTC_PCUT_RESTART_REG, di->bm->fg_params->pcut_max_restart); in ab8500_fg_init_hw_registers()
2375 AB8505_RTC_PCUT_DEBOUNCE_REG, di->bm->fg_params->pcut_debounce_time); in ab8500_fg_init_hw_registers()
2383 AB8505_RTC_PCUT_CTL_STATUS_REG, di->bm->fg_params->pcut_enable); in ab8500_fg_init_hw_registers()
3159 di->fg_samples = SEC_TO_SAMPLE(di->bm->fg_params->init_timer); in ab8500_fg_probe()