Lines Matching refs:ab8500_fg

156  * struct ab8500_fg - ab8500 FG device information
198 struct ab8500_fg {
246 struct ab8500_fg *ab8500_fg_get(void)
248 return list_first_entry_or_null(&ab8500_fg_list, struct ab8500_fg,
356 * @di: pointer to the ab8500_fg structure
361 static int ab8500_fg_is_low_curr(struct ab8500_fg *di, int curr)
374 * @di: pointer to the ab8500_fg structure
380 static int ab8500_fg_add_cap_sample(struct ab8500_fg *di, int sample)
410 * @di: pointer to the ab8500_fg structure
414 static void ab8500_fg_clear_cap_samples(struct ab8500_fg *di)
432 * @di: pointer to the ab8500_fg structure
437 static void ab8500_fg_fill_cap_sample(struct ab8500_fg *di, int sample)
458 * @di: pointer to the ab8500_fg structure
464 static int ab8500_fg_coulomb_counter(struct ab8500_fg *di, bool enable)
527 * @di: pointer to the ab8500_fg structure
533 int ab8500_fg_inst_curr_start(struct ab8500_fg *di)
581 * @di: pointer to the ab8500_fg structure
585 int ab8500_fg_inst_curr_started(struct ab8500_fg *di)
592 * @di: pointer to the ab8500_fg structure
596 int ab8500_fg_inst_curr_done(struct ab8500_fg *di)
603 * @di: pointer to the ab8500_fg structure
610 int ab8500_fg_inst_curr_finalize(struct ab8500_fg *di, int *res)
701 * @di: pointer to the ab8500_fg structure
706 int ab8500_fg_inst_curr_blocking(struct ab8500_fg *di)
760 struct ab8500_fg *di = container_of(work,
761 struct ab8500_fg, fg_acc_cur_work);
826 * @di: pointer to the ab8500_fg structure
830 static int ab8500_fg_bat_voltage(struct ab8500_fg *di)
849 * @di: pointer to the ab8500_fg structure
854 static int ab8500_fg_volt_to_capacity(struct ab8500_fg *di, int voltage)
888 * @di: pointer to the ab8500_fg structure
893 static int ab8500_fg_uncomp_volt_to_capacity(struct ab8500_fg *di)
901 * @di: pointer to the ab8500_fg structure
906 static int ab8500_fg_battery_resistance(struct ab8500_fg *di)
945 * @di: pointer to the ab8500_fg structure
950 static int ab8500_fg_load_comp_volt_to_capacity(struct ab8500_fg *di)
981 * @di: pointer to the ab8500_fg structure
986 static int ab8500_fg_convert_mah_to_permille(struct ab8500_fg *di, int cap_mah)
993 * @di: pointer to the ab8500_fg structure
998 static int ab8500_fg_convert_permille_to_mah(struct ab8500_fg *di, int cap_pm)
1005 * @di: pointer to the ab8500_fg structure
1010 static int ab8500_fg_convert_mah_to_uwh(struct ab8500_fg *di, int cap_mah)
1027 * @di: pointer to the ab8500_fg structure
1032 static int ab8500_fg_calc_cap_charging(struct ab8500_fg *di)
1066 * @di: pointer to the ab8500_fg structure
1073 static int ab8500_fg_calc_cap_discharge_voltage(struct ab8500_fg *di, bool comp)
1093 * @di: pointer to the ab8500_fg structure
1099 static int ab8500_fg_calc_cap_discharge_fg(struct ab8500_fg *di)
1146 * @di: pointer to the ab8500_fg structure
1150 static int ab8500_fg_capacity_level(struct ab8500_fg *di)
1173 * @di: pointer to the ab8500_fg structure
1179 static int ab8500_fg_calculate_scaled_capacity(struct ab8500_fg *di)
1232 * @di: pointer to the ab8500_fg structure
1237 static void ab8500_fg_update_cap_scalers(struct ab8500_fg *di)
1266 * @di: pointer to the ab8500_fg structure
1272 static void ab8500_fg_check_capacity_limits(struct ab8500_fg *di, bool init)
1394 static void ab8500_fg_charge_state_to(struct ab8500_fg *di,
1406 static void ab8500_fg_discharge_state_to(struct ab8500_fg *di,
1420 * @di: pointer to the ab8500_fg structure
1424 static void ab8500_fg_algorithm_charging(struct ab8500_fg *di)
1472 static void force_capacity(struct ab8500_fg *di)
1489 static bool check_sysfs_capacity(struct ab8500_fg *di)
1524 * @di: pointer to the ab8500_fg structure
1528 static void ab8500_fg_algorithm_discharging(struct ab8500_fg *di)
1693 * @di: pointer to the ab8500_fg structure
1696 static void ab8500_fg_algorithm_calibrate(struct ab8500_fg *di)
1743 * @di: pointer to the ab8500_fg structure
1747 static void ab8500_fg_algorithm(struct ab8500_fg *di)
1787 struct ab8500_fg *di = container_of(work, struct ab8500_fg,
1825 struct ab8500_fg *di = container_of(work, struct ab8500_fg,
1865 struct ab8500_fg *di = container_of(work, struct ab8500_fg,
1900 * @di: pointer to the ab8500_fg structure
1907 static int ab8500_fg_battok_calc(struct ab8500_fg *di, int target)
1919 * @di: pointer to the ab8500_fg structure
1923 static int ab8500_fg_battok_init_hw_register(struct ab8500_fg *di)
1967 struct ab8500_fg *di = container_of(work, struct ab8500_fg, fg_work);
1975 * @_di: pointer to the ab8500_fg structure
1981 struct ab8500_fg *di = _di;
1995 * @_di: pointer to the ab8500_fg structure
2001 struct ab8500_fg *di = _di;
2010 * @_di: pointer to the ab8500_fg structure
2016 struct ab8500_fg *di = _di;
2026 * @_di: pointer to the ab8500_fg structure
2032 struct ab8500_fg *di = _di;
2045 * @_di: pointer to the ab8500_fg structure
2051 struct ab8500_fg *di = _di;
2089 struct ab8500_fg *di = power_supply_get_drvdata(psy);
2166 struct ab8500_fg *di;
2278 * @di: pointer to the ab8500_fg structure
2282 static int ab8500_fg_init_hw_registers(struct ab8500_fg *di)
2397 struct ab8500_fg *di = container_of(work, struct ab8500_fg,
2421 ssize_t (*show)(struct ab8500_fg *, char *);
2422 ssize_t (*store)(struct ab8500_fg *, const char *, size_t);
2425 static ssize_t charge_full_show(struct ab8500_fg *di, char *buf)
2430 static ssize_t charge_full_store(struct ab8500_fg *di, const char *buf,
2444 static ssize_t charge_now_show(struct ab8500_fg *di, char *buf)
2449 static ssize_t charge_now_store(struct ab8500_fg *di, const char *buf,
2475 struct ab8500_fg *di;
2478 di = container_of(kobj, struct ab8500_fg, fg_kobject);
2490 struct ab8500_fg *di;
2493 di = container_of(kobj, struct ab8500_fg, fg_kobject);
2523 static void ab8500_fg_sysfs_exit(struct ab8500_fg *di)
2535 static int ab8500_fg_sysfs_init(struct ab8500_fg *di)
2557 struct ab8500_fg *di = power_supply_get_drvdata(psy);
2580 struct ab8500_fg *di = power_supply_get_drvdata(psy);
2607 struct ab8500_fg *di = power_supply_get_drvdata(psy);
2631 struct ab8500_fg *di = power_supply_get_drvdata(psy);
2658 struct ab8500_fg *di = power_supply_get_drvdata(psy);
2681 struct ab8500_fg *di = power_supply_get_drvdata(psy);
2709 struct ab8500_fg *di = power_supply_get_drvdata(psy);
2732 struct ab8500_fg *di = power_supply_get_drvdata(psy);
2755 struct ab8500_fg *di = power_supply_get_drvdata(psy);
2776 struct ab8500_fg *di = power_supply_get_drvdata(psy);
2804 struct ab8500_fg *di = power_supply_get_drvdata(psy);
2827 struct ab8500_fg *di = power_supply_get_drvdata(psy);
2850 struct ab8500_fg *di = power_supply_get_drvdata(psy);
2877 struct ab8500_fg *di = power_supply_get_drvdata(psy);
2912 static int ab8500_fg_sysfs_psy_create_attrs(struct ab8500_fg *di)
2932 static void ab8500_fg_sysfs_psy_remove_attrs(struct ab8500_fg *di)
2948 struct ab8500_fg *di = platform_get_drvdata(pdev);
2965 struct ab8500_fg *di = platform_get_drvdata(pdev);
2991 struct ab8500_fg *di = platform_get_drvdata(pdev);
3027 .name = "ab8500_fg",
3040 struct ab8500_fg *di;
3046 dev_err(&pdev->dev, "%s no mem for ab8500_fg\n", __func__);