Lines Matching defs:di
364 static int ab8500_fg_is_low_curr(struct ab8500_fg *di, int curr_ua) in ab8500_fg_is_low_curr()
383 static int ab8500_fg_add_cap_sample(struct ab8500_fg *di, int sample) in ab8500_fg_add_cap_sample()
417 static void ab8500_fg_clear_cap_samples(struct ab8500_fg *di) in ab8500_fg_clear_cap_samples()
440 static void ab8500_fg_fill_cap_sample(struct ab8500_fg *di, int sample) in ab8500_fg_fill_cap_sample()
467 static int ab8500_fg_coulomb_counter(struct ab8500_fg *di, bool enable) in ab8500_fg_coulomb_counter()
536 int ab8500_fg_inst_curr_start(struct ab8500_fg *di) in ab8500_fg_inst_curr_start()
588 int ab8500_fg_inst_curr_started(struct ab8500_fg *di) in ab8500_fg_inst_curr_started()
599 int ab8500_fg_inst_curr_done(struct ab8500_fg *di) in ab8500_fg_inst_curr_done()
613 int ab8500_fg_inst_curr_finalize(struct ab8500_fg *di, int *curr_ua) in ab8500_fg_inst_curr_finalize()
708 int ab8500_fg_inst_curr_blocking(struct ab8500_fg *di) in ab8500_fg_inst_curr_blocking()
762 struct ab8500_fg *di = container_of(work, in ab8500_fg_acc_cur_work() local
831 static int ab8500_fg_bat_voltage(struct ab8500_fg *di) in ab8500_fg_bat_voltage()
857 static int ab8500_fg_volt_to_capacity(struct ab8500_fg *di, int voltage_uv) in ab8500_fg_volt_to_capacity()
872 static int ab8500_fg_uncomp_volt_to_capacity(struct ab8500_fg *di) in ab8500_fg_uncomp_volt_to_capacity()
887 static int ab8500_fg_battery_resistance(struct ab8500_fg *di, int vbat_uncomp_uv) in ab8500_fg_battery_resistance()
937 static int ab8500_load_comp_fg_bat_voltage(struct ab8500_fg *di, bool always) in ab8500_load_comp_fg_bat_voltage()
989 static int ab8500_fg_load_comp_volt_to_capacity(struct ab8500_fg *di) in ab8500_fg_load_comp_volt_to_capacity()
1005 static int ab8500_fg_convert_mah_to_permille(struct ab8500_fg *di, int cap_mah) in ab8500_fg_convert_mah_to_permille()
1017 static int ab8500_fg_convert_permille_to_mah(struct ab8500_fg *di, int cap_pm) in ab8500_fg_convert_permille_to_mah()
1029 static int ab8500_fg_convert_mah_to_uwh(struct ab8500_fg *di, int cap_mah) in ab8500_fg_convert_mah_to_uwh()
1056 static int ab8500_fg_calc_cap_charging(struct ab8500_fg *di) in ab8500_fg_calc_cap_charging()
1096 static int ab8500_fg_calc_cap_discharge_voltage(struct ab8500_fg *di) in ab8500_fg_calc_cap_discharge_voltage()
1119 static int ab8500_fg_calc_cap_discharge_fg(struct ab8500_fg *di) in ab8500_fg_calc_cap_discharge_fg()
1170 static int ab8500_fg_capacity_level(struct ab8500_fg *di) in ab8500_fg_capacity_level()
1199 static int ab8500_fg_calculate_scaled_capacity(struct ab8500_fg *di) in ab8500_fg_calculate_scaled_capacity()
1257 static void ab8500_fg_update_cap_scalers(struct ab8500_fg *di) in ab8500_fg_update_cap_scalers()
1292 static void ab8500_fg_check_capacity_limits(struct ab8500_fg *di, bool init) in ab8500_fg_check_capacity_limits()
1414 static void ab8500_fg_charge_state_to(struct ab8500_fg *di, in ab8500_fg_charge_state_to()
1426 static void ab8500_fg_discharge_state_to(struct ab8500_fg *di, in ab8500_fg_discharge_state_to()
1444 static void ab8500_fg_algorithm_charging(struct ab8500_fg *di) in ab8500_fg_algorithm_charging()
1492 static void force_capacity(struct ab8500_fg *di) in force_capacity()
1509 static bool check_sysfs_capacity(struct ab8500_fg *di) in check_sysfs_capacity()
1548 static void ab8500_fg_algorithm_discharging(struct ab8500_fg *di) in ab8500_fg_algorithm_discharging()
1716 static void ab8500_fg_algorithm_calibrate(struct ab8500_fg *di) in ab8500_fg_algorithm_calibrate()
1768 static void ab8500_fg_algorithm(struct ab8500_fg *di) in ab8500_fg_algorithm()
1808 struct ab8500_fg *di = container_of(work, struct ab8500_fg, in ab8500_fg_periodic_work() local
1846 struct ab8500_fg *di = container_of(work, struct ab8500_fg, in ab8500_fg_check_hw_failure_work() local
1886 struct ab8500_fg *di = container_of(work, struct ab8500_fg, in ab8500_fg_low_bat_work() local
1928 static int ab8500_fg_battok_calc(struct ab8500_fg *di, int target) in ab8500_fg_battok_calc()
1944 static int ab8500_fg_battok_init_hw_register(struct ab8500_fg *di) in ab8500_fg_battok_init_hw_register()
1988 struct ab8500_fg *di = container_of(work, struct ab8500_fg, fg_work); in ab8500_fg_instant_work() local
2002 struct ab8500_fg *di = _di; in ab8500_fg_cc_data_end_handler() local
2022 struct ab8500_fg *di = _di; in ab8500_fg_cc_int_calib_handler() local
2037 struct ab8500_fg *di = _di; in ab8500_fg_cc_convend_handler() local
2053 struct ab8500_fg *di = _di; in ab8500_fg_batt_ovv_handler() local
2072 struct ab8500_fg *di = _di; in ab8500_fg_lowbatf_handler() local
2110 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8500_fg_get_property() local
2187 struct ab8500_fg *di; in ab8500_fg_get_ext_psy_data() local
2303 static int ab8500_fg_init_hw_registers(struct ab8500_fg *di) in ab8500_fg_init_hw_registers()
2410 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8500_fg_external_power_changed() local
2426 struct ab8500_fg *di = container_of(work, struct ab8500_fg, in ab8500_fg_reinit_work() local
2454 static ssize_t charge_full_show(struct ab8500_fg *di, char *buf) in charge_full_show()
2459 static ssize_t charge_full_store(struct ab8500_fg *di, const char *buf, in charge_full_store()
2473 static ssize_t charge_now_show(struct ab8500_fg *di, char *buf) in charge_now_show()
2478 static ssize_t charge_now_store(struct ab8500_fg *di, const char *buf, in charge_now_store()
2504 struct ab8500_fg *di; in ab8500_fg_show() local
2519 struct ab8500_fg *di; in ab8500_fg_store() local
2553 static void ab8500_fg_sysfs_exit(struct ab8500_fg *di) in ab8500_fg_sysfs_exit()
2565 static int ab8500_fg_sysfs_init(struct ab8500_fg *di) in ab8500_fg_sysfs_init()
2587 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8505_powercut_flagtime_read() local
2610 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8505_powercut_flagtime_write() local
2637 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8505_powercut_maxtime_read() local
2661 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8505_powercut_maxtime_write() local
2688 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8505_powercut_restart_read() local
2711 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8505_powercut_restart_write() local
2739 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8505_powercut_timer_read() local
2762 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8505_powercut_restart_counter_read() local
2785 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8505_powercut_read() local
2806 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8505_powercut_write() local
2834 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8505_powercut_flag_read() local
2857 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8505_powercut_debounce_read() local
2880 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8505_powercut_debounce_write() local
2907 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8505_powercut_enable_status_read() local
2942 static int ab8500_fg_sysfs_psy_create_attrs(struct ab8500_fg *di) in ab8500_fg_sysfs_psy_create_attrs()
2962 static void ab8500_fg_sysfs_psy_remove_attrs(struct ab8500_fg *di) in ab8500_fg_sysfs_psy_remove_attrs()
2977 struct ab8500_fg *di = dev_get_drvdata(dev); in ab8500_fg_resume() local
2993 struct ab8500_fg *di = dev_get_drvdata(dev); in ab8500_fg_suspend() local
3038 struct ab8500_fg *di = dev_get_drvdata(dev); in ab8500_fg_bind() local
3055 struct ab8500_fg *di = dev_get_drvdata(dev); in ab8500_fg_unbind() local
3075 struct ab8500_fg *di; in ab8500_fg_probe() local
3234 struct ab8500_fg *di = platform_get_drvdata(pdev); in ab8500_fg_remove() local