Lines Matching refs:ab8500_fg
198 struct ab8500_fg { struct
246 struct ab8500_fg *ab8500_fg_get(void) in ab8500_fg_get() argument
248 return list_first_entry_or_null(&ab8500_fg_list, struct ab8500_fg, in ab8500_fg_get()
361 static int ab8500_fg_is_low_curr(struct ab8500_fg *di, int curr) in ab8500_fg_is_low_curr()
380 static int ab8500_fg_add_cap_sample(struct ab8500_fg *di, int sample) in ab8500_fg_add_cap_sample()
414 static void ab8500_fg_clear_cap_samples(struct ab8500_fg *di) in ab8500_fg_clear_cap_samples()
437 static void ab8500_fg_fill_cap_sample(struct ab8500_fg *di, int sample) in ab8500_fg_fill_cap_sample()
464 static int ab8500_fg_coulomb_counter(struct ab8500_fg *di, bool enable) in ab8500_fg_coulomb_counter()
533 int ab8500_fg_inst_curr_start(struct ab8500_fg *di) in ab8500_fg_inst_curr_start()
585 int ab8500_fg_inst_curr_started(struct ab8500_fg *di) in ab8500_fg_inst_curr_started()
596 int ab8500_fg_inst_curr_done(struct ab8500_fg *di) in ab8500_fg_inst_curr_done()
610 int ab8500_fg_inst_curr_finalize(struct ab8500_fg *di, int *res) in ab8500_fg_inst_curr_finalize()
706 int ab8500_fg_inst_curr_blocking(struct ab8500_fg *di) in ab8500_fg_inst_curr_blocking()
760 struct ab8500_fg *di = container_of(work, in ab8500_fg_acc_cur_work()
761 struct ab8500_fg, fg_acc_cur_work); in ab8500_fg_acc_cur_work()
830 static int ab8500_fg_bat_voltage(struct ab8500_fg *di) in ab8500_fg_bat_voltage()
854 static int ab8500_fg_volt_to_capacity(struct ab8500_fg *di, int voltage) in ab8500_fg_volt_to_capacity()
893 static int ab8500_fg_uncomp_volt_to_capacity(struct ab8500_fg *di) in ab8500_fg_uncomp_volt_to_capacity()
906 static int ab8500_fg_battery_resistance(struct ab8500_fg *di) in ab8500_fg_battery_resistance()
950 static int ab8500_fg_load_comp_volt_to_capacity(struct ab8500_fg *di) in ab8500_fg_load_comp_volt_to_capacity()
986 static int ab8500_fg_convert_mah_to_permille(struct ab8500_fg *di, int cap_mah) in ab8500_fg_convert_mah_to_permille()
998 static int ab8500_fg_convert_permille_to_mah(struct ab8500_fg *di, int cap_pm) in ab8500_fg_convert_permille_to_mah()
1010 static int ab8500_fg_convert_mah_to_uwh(struct ab8500_fg *di, int cap_mah) in ab8500_fg_convert_mah_to_uwh()
1032 static int ab8500_fg_calc_cap_charging(struct ab8500_fg *di) in ab8500_fg_calc_cap_charging()
1073 static int ab8500_fg_calc_cap_discharge_voltage(struct ab8500_fg *di, bool comp) in ab8500_fg_calc_cap_discharge_voltage()
1099 static int ab8500_fg_calc_cap_discharge_fg(struct ab8500_fg *di) in ab8500_fg_calc_cap_discharge_fg()
1150 static int ab8500_fg_capacity_level(struct ab8500_fg *di) in ab8500_fg_capacity_level()
1179 static int ab8500_fg_calculate_scaled_capacity(struct ab8500_fg *di) in ab8500_fg_calculate_scaled_capacity()
1237 static void ab8500_fg_update_cap_scalers(struct ab8500_fg *di) in ab8500_fg_update_cap_scalers()
1272 static void ab8500_fg_check_capacity_limits(struct ab8500_fg *di, bool init) in ab8500_fg_check_capacity_limits()
1394 static void ab8500_fg_charge_state_to(struct ab8500_fg *di, in ab8500_fg_charge_state_to()
1406 static void ab8500_fg_discharge_state_to(struct ab8500_fg *di, in ab8500_fg_discharge_state_to()
1424 static void ab8500_fg_algorithm_charging(struct ab8500_fg *di) in ab8500_fg_algorithm_charging()
1472 static void force_capacity(struct ab8500_fg *di) in force_capacity()
1489 static bool check_sysfs_capacity(struct ab8500_fg *di) in check_sysfs_capacity()
1528 static void ab8500_fg_algorithm_discharging(struct ab8500_fg *di) in ab8500_fg_algorithm_discharging()
1696 static void ab8500_fg_algorithm_calibrate(struct ab8500_fg *di) in ab8500_fg_algorithm_calibrate()
1747 static void ab8500_fg_algorithm(struct ab8500_fg *di) in ab8500_fg_algorithm()
1787 struct ab8500_fg *di = container_of(work, struct ab8500_fg, in ab8500_fg_periodic_work()
1825 struct ab8500_fg *di = container_of(work, struct ab8500_fg, in ab8500_fg_check_hw_failure_work()
1865 struct ab8500_fg *di = container_of(work, struct ab8500_fg, in ab8500_fg_low_bat_work()
1907 static int ab8500_fg_battok_calc(struct ab8500_fg *di, int target) in ab8500_fg_battok_calc()
1923 static int ab8500_fg_battok_init_hw_register(struct ab8500_fg *di) in ab8500_fg_battok_init_hw_register()
1967 struct ab8500_fg *di = container_of(work, struct ab8500_fg, fg_work); in ab8500_fg_instant_work()
1981 struct ab8500_fg *di = _di; in ab8500_fg_cc_data_end_handler()
2001 struct ab8500_fg *di = _di; in ab8500_fg_cc_int_calib_handler()
2016 struct ab8500_fg *di = _di; in ab8500_fg_cc_convend_handler()
2032 struct ab8500_fg *di = _di; in ab8500_fg_batt_ovv_handler()
2051 struct ab8500_fg *di = _di; in ab8500_fg_lowbatf_handler()
2089 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8500_fg_get_property()
2166 struct ab8500_fg *di; in ab8500_fg_get_ext_psy_data()
2282 static int ab8500_fg_init_hw_registers(struct ab8500_fg *di) in ab8500_fg_init_hw_registers()
2383 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8500_fg_external_power_changed()
2399 struct ab8500_fg *di = container_of(work, struct ab8500_fg, in ab8500_fg_reinit_work()
2423 ssize_t (*show)(struct ab8500_fg *, char *);
2424 ssize_t (*store)(struct ab8500_fg *, const char *, size_t);
2427 static ssize_t charge_full_show(struct ab8500_fg *di, char *buf) in charge_full_show()
2432 static ssize_t charge_full_store(struct ab8500_fg *di, const char *buf, in charge_full_store()
2446 static ssize_t charge_now_show(struct ab8500_fg *di, char *buf) in charge_now_show()
2451 static ssize_t charge_now_store(struct ab8500_fg *di, const char *buf, in charge_now_store()
2477 struct ab8500_fg *di; in ab8500_fg_show()
2480 di = container_of(kobj, struct ab8500_fg, fg_kobject); in ab8500_fg_show()
2492 struct ab8500_fg *di; in ab8500_fg_store()
2495 di = container_of(kobj, struct ab8500_fg, fg_kobject); in ab8500_fg_store()
2525 static void ab8500_fg_sysfs_exit(struct ab8500_fg *di) in ab8500_fg_sysfs_exit()
2537 static int ab8500_fg_sysfs_init(struct ab8500_fg *di) in ab8500_fg_sysfs_init()
2557 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8505_powercut_flagtime_read()
2580 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8505_powercut_flagtime_write()
2607 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8505_powercut_maxtime_read()
2631 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8505_powercut_maxtime_write()
2658 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8505_powercut_restart_read()
2681 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8505_powercut_restart_write()
2709 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8505_powercut_timer_read()
2732 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8505_powercut_restart_counter_read()
2755 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8505_powercut_read()
2776 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8505_powercut_write()
2804 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8505_powercut_flag_read()
2827 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8505_powercut_debounce_read()
2850 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8505_powercut_debounce_write()
2877 struct ab8500_fg *di = power_supply_get_drvdata(psy); in ab8505_powercut_enable_status_read()
2912 static int ab8500_fg_sysfs_psy_create_attrs(struct ab8500_fg *di) in ab8500_fg_sysfs_psy_create_attrs()
2932 static void ab8500_fg_sysfs_psy_remove_attrs(struct ab8500_fg *di) in ab8500_fg_sysfs_psy_remove_attrs()
2948 struct ab8500_fg *di = platform_get_drvdata(pdev); in ab8500_fg_resume()
2965 struct ab8500_fg *di = platform_get_drvdata(pdev); in ab8500_fg_suspend()
2991 struct ab8500_fg *di = platform_get_drvdata(pdev); in ab8500_fg_remove()
3040 struct ab8500_fg *di; in ab8500_fg_probe()