Lines Matching refs:fg_params
369 if (curr_ua > -di->bm->fg_params->high_curr_threshold_ua) in ab8500_fg_is_low_curr()
1214 max(capacity, di->bm->fg_params->maint_thres); in ab8500_fg_calculate_scaled_capacity()
1276 di->bm->fg_params->maint_thres); in ab8500_fg_update_cap_scalers()
1457 di->bm->fg_params->accu_charging); in ab8500_fg_algorithm_charging()
1519 lower = di->bat_cap.permille - di->bm->fg_params->user_cap_limit * 10; in check_sysfs_capacity()
1520 upper = di->bat_cap.permille + di->bm->fg_params->user_cap_limit * 10; in check_sysfs_capacity()
1560 di->fg_samples = SEC_TO_SAMPLE(di->bm->fg_params->init_timer); in ab8500_fg_algorithm_discharging()
1573 sleep_time = di->bm->fg_params->init_timer; in ab8500_fg_algorithm_discharging()
1576 if (di->init_cnt > di->bm->fg_params->init_discard_time) { in ab8500_fg_algorithm_discharging()
1583 if (di->init_cnt > di->bm->fg_params->init_total_time) in ab8500_fg_algorithm_discharging()
1598 sleep_time = di->bm->fg_params->recovery_sleep_timer; in ab8500_fg_algorithm_discharging()
1610 di->bm->fg_params->recovery_total_time) { in ab8500_fg_algorithm_discharging()
1612 di->bm->fg_params->accu_high_curr); in ab8500_fg_algorithm_discharging()
1625 di->bm->fg_params->accu_high_curr); in ab8500_fg_algorithm_discharging()
1634 di->bm->fg_params->accu_high_curr); in ab8500_fg_algorithm_discharging()
1681 di->bm->fg_params->accu_high_curr; in ab8500_fg_algorithm_discharging()
1683 di->bm->fg_params->high_curr_time) in ab8500_fg_algorithm_discharging()
1697 di->bm->fg_params->accu_high_curr); in ab8500_fg_algorithm_discharging()
1892 if (vbat_uv < di->bm->fg_params->lowbat_threshold_uv) { in ab8500_fg_low_bat_work()
1954 sel0 = di->bm->fg_params->battok_falling_th_sel0; in ab8500_fg_battok_init_hw_register()
1955 sel1 = di->bm->fg_params->battok_raising_th_sel1; in ab8500_fg_battok_init_hw_register()
2340 di->bm->fg_params->lowbat_threshold_uv) << 1 | in ab8500_fg_init_hw_registers()
2356 AB8505_RTC_PCUT_MAX_TIME_REG, di->bm->fg_params->pcut_max_time); in ab8500_fg_init_hw_registers()
2364 AB8505_RTC_PCUT_FLAG_TIME_REG, di->bm->fg_params->pcut_flag_time); in ab8500_fg_init_hw_registers()
2372 AB8505_RTC_PCUT_RESTART_REG, di->bm->fg_params->pcut_max_restart); in ab8500_fg_init_hw_registers()
2380 AB8505_RTC_PCUT_DEBOUNCE_REG, di->bm->fg_params->pcut_debounce_time); in ab8500_fg_init_hw_registers()
2388 AB8505_RTC_PCUT_CTL_STATUS_REG, di->bm->fg_params->pcut_enable); in ab8500_fg_init_hw_registers()
3167 di->fg_samples = SEC_TO_SAMPLE(di->bm->fg_params->init_timer); in ab8500_fg_probe()