Lines Matching refs:fg_params
366 if (curr > -di->bm->fg_params->high_curr_threshold) in ab8500_fg_is_low_curr()
1194 max(capacity, di->bm->fg_params->maint_thres); in ab8500_fg_calculate_scaled_capacity()
1256 di->bm->fg_params->maint_thres); in ab8500_fg_update_cap_scalers()
1437 di->bm->fg_params->accu_charging); in ab8500_fg_algorithm_charging()
1499 lower = di->bat_cap.permille - di->bm->fg_params->user_cap_limit * 10; in check_sysfs_capacity()
1500 upper = di->bat_cap.permille + di->bm->fg_params->user_cap_limit * 10; in check_sysfs_capacity()
1540 di->fg_samples = SEC_TO_SAMPLE(di->bm->fg_params->init_timer); in ab8500_fg_algorithm_discharging()
1553 sleep_time = di->bm->fg_params->init_timer; in ab8500_fg_algorithm_discharging()
1556 if (di->init_cnt > di->bm->fg_params->init_discard_time) { in ab8500_fg_algorithm_discharging()
1563 if (di->init_cnt > di->bm->fg_params->init_total_time) in ab8500_fg_algorithm_discharging()
1578 sleep_time = di->bm->fg_params->recovery_sleep_timer; in ab8500_fg_algorithm_discharging()
1590 di->bm->fg_params->recovery_total_time) { in ab8500_fg_algorithm_discharging()
1592 di->bm->fg_params->accu_high_curr); in ab8500_fg_algorithm_discharging()
1605 di->bm->fg_params->accu_high_curr); in ab8500_fg_algorithm_discharging()
1614 di->bm->fg_params->accu_high_curr); in ab8500_fg_algorithm_discharging()
1661 di->bm->fg_params->accu_high_curr; in ab8500_fg_algorithm_discharging()
1663 di->bm->fg_params->high_curr_time) in ab8500_fg_algorithm_discharging()
1677 di->bm->fg_params->accu_high_curr); in ab8500_fg_algorithm_discharging()
1871 if (vbat < di->bm->fg_params->lowbat_threshold) { in ab8500_fg_low_bat_work()
1933 sel0 = di->bm->fg_params->battok_falling_th_sel0; in ab8500_fg_battok_init_hw_register()
1934 sel1 = di->bm->fg_params->battok_raising_th_sel1; in ab8500_fg_battok_init_hw_register()
2313 di->bm->fg_params->lowbat_threshold) << 1 | in ab8500_fg_init_hw_registers()
2329 AB8505_RTC_PCUT_MAX_TIME_REG, di->bm->fg_params->pcut_max_time); in ab8500_fg_init_hw_registers()
2337 AB8505_RTC_PCUT_FLAG_TIME_REG, di->bm->fg_params->pcut_flag_time); in ab8500_fg_init_hw_registers()
2345 AB8505_RTC_PCUT_RESTART_REG, di->bm->fg_params->pcut_max_restart); in ab8500_fg_init_hw_registers()
2353 AB8505_RTC_PCUT_DEBOUNCE_REG, di->bm->fg_params->pcut_debounce_time); in ab8500_fg_init_hw_registers()
2361 AB8505_RTC_PCUT_CTL_STATUS_REG, di->bm->fg_params->pcut_enable); in ab8500_fg_init_hw_registers()
3148 di->fg_samples = SEC_TO_SAMPLE(di->bm->fg_params->init_timer); in ab8500_fg_probe()