Lines Matching refs:fg_params

366 	if (curr > -di->bm->fg_params->high_curr_threshold)  in ab8500_fg_is_low_curr()
1196 max(capacity, di->bm->fg_params->maint_thres); in ab8500_fg_calculate_scaled_capacity()
1258 di->bm->fg_params->maint_thres); in ab8500_fg_update_cap_scalers()
1439 di->bm->fg_params->accu_charging); in ab8500_fg_algorithm_charging()
1501 lower = di->bat_cap.permille - di->bm->fg_params->user_cap_limit * 10; in check_sysfs_capacity()
1502 upper = di->bat_cap.permille + di->bm->fg_params->user_cap_limit * 10; in check_sysfs_capacity()
1542 di->fg_samples = SEC_TO_SAMPLE(di->bm->fg_params->init_timer); in ab8500_fg_algorithm_discharging()
1555 sleep_time = di->bm->fg_params->init_timer; in ab8500_fg_algorithm_discharging()
1558 if (di->init_cnt > di->bm->fg_params->init_discard_time) { in ab8500_fg_algorithm_discharging()
1565 if (di->init_cnt > di->bm->fg_params->init_total_time) in ab8500_fg_algorithm_discharging()
1580 sleep_time = di->bm->fg_params->recovery_sleep_timer; in ab8500_fg_algorithm_discharging()
1592 di->bm->fg_params->recovery_total_time) { in ab8500_fg_algorithm_discharging()
1594 di->bm->fg_params->accu_high_curr); in ab8500_fg_algorithm_discharging()
1607 di->bm->fg_params->accu_high_curr); in ab8500_fg_algorithm_discharging()
1616 di->bm->fg_params->accu_high_curr); in ab8500_fg_algorithm_discharging()
1663 di->bm->fg_params->accu_high_curr; in ab8500_fg_algorithm_discharging()
1665 di->bm->fg_params->high_curr_time) in ab8500_fg_algorithm_discharging()
1679 di->bm->fg_params->accu_high_curr); in ab8500_fg_algorithm_discharging()
1874 if (vbat < di->bm->fg_params->lowbat_threshold) { in ab8500_fg_low_bat_work()
1936 sel0 = di->bm->fg_params->battok_falling_th_sel0; in ab8500_fg_battok_init_hw_register()
1937 sel1 = di->bm->fg_params->battok_raising_th_sel1; in ab8500_fg_battok_init_hw_register()
2317 di->bm->fg_params->lowbat_threshold) << 1 | in ab8500_fg_init_hw_registers()
2333 AB8505_RTC_PCUT_MAX_TIME_REG, di->bm->fg_params->pcut_max_time); in ab8500_fg_init_hw_registers()
2341 AB8505_RTC_PCUT_FLAG_TIME_REG, di->bm->fg_params->pcut_flag_time); in ab8500_fg_init_hw_registers()
2349 AB8505_RTC_PCUT_RESTART_REG, di->bm->fg_params->pcut_max_restart); in ab8500_fg_init_hw_registers()
2357 AB8505_RTC_PCUT_DEBOUNCE_REG, di->bm->fg_params->pcut_debounce_time); in ab8500_fg_init_hw_registers()
2365 AB8505_RTC_PCUT_CTL_STATUS_REG, di->bm->fg_params->pcut_enable); in ab8500_fg_init_hw_registers()
3138 di->fg_samples = SEC_TO_SAMPLE(di->bm->fg_params->init_timer); in ab8500_fg_probe()