Lines Matching defs:abx500_chargalg
208 * struct abx500_chargalg - abx500 Charging algorithm device information
236 struct abx500_chargalg {
275 ssize_t (*show)(struct abx500_chargalg *, char *);
276 ssize_t (*store)(struct abx500_chargalg *, const char *, size_t);
289 struct abx500_chargalg *di = container_of(timer, struct abx500_chargalg,
312 struct abx500_chargalg *di = container_of(timer, struct abx500_chargalg,
326 * @di: pointer to the abx500_chargalg structure
330 static void abx500_chargalg_state_to(struct abx500_chargalg *di,
344 static int abx500_chargalg_check_charger_enable(struct abx500_chargalg *di)
370 * @di: pointer to the abx500_chargalg structure
375 static int abx500_chargalg_check_charger_connection(struct abx500_chargalg *di)
415 * @di: pointer to the abx500_chargalg structure
421 (struct abx500_chargalg *di)
430 * @di: pointer to the abx500_chargalg structure
435 static void abx500_chargalg_start_safety_timer(struct abx500_chargalg *di)
463 * @di: pointer to the abx500_chargalg structure
467 static void abx500_chargalg_stop_safety_timer(struct abx500_chargalg *di)
475 * @di: pointer to the abx500_chargalg structure
482 static void abx500_chargalg_start_maintenance_timer(struct abx500_chargalg *di,
494 * @di: pointer to the abx500_chargalg structure
499 static void abx500_chargalg_stop_maintenance_timer(struct abx500_chargalg *di)
507 * @di: pointer to the abx500_chargalg structure
512 static int abx500_chargalg_kick_watchdog(struct abx500_chargalg *di)
537 * @di: pointer to the abx500_chargalg structure
545 static int abx500_chargalg_ac_en(struct abx500_chargalg *di, int enable,
575 * @di: pointer to the abx500_chargalg structure
583 static int abx500_chargalg_usb_en(struct abx500_chargalg *di, int enable,
603 * @di: pointer to the abx500_chargalg structure
609 static int abx500_chargalg_update_chg_curr(struct abx500_chargalg *di,
644 * @di: pointer to the abx500_chargalg structure
650 static void abx500_chargalg_stop_charging(struct abx500_chargalg *di)
664 * @di: pointer to the abx500_chargalg structure
670 static void abx500_chargalg_hold_charging(struct abx500_chargalg *di)
684 * @di: pointer to the abx500_chargalg structure
691 static void abx500_chargalg_start_charging(struct abx500_chargalg *di,
717 * @di: pointer to the abx500_chargalg structure
722 static void abx500_chargalg_check_temp(struct abx500_chargalg *di)
762 * @di: pointer to the abx500_chargalg structure
766 static void abx500_chargalg_check_charger_voltage(struct abx500_chargalg *di)
782 * @di: pointer to the abx500_chargalg structure
788 static void abx500_chargalg_end_of_charge(struct abx500_chargalg *di)
816 static void init_maxim_chg_curr(struct abx500_chargalg *di)
831 * @di pointer to the abx500_chargalg structure
837 static enum maxim_ret abx500_chargalg_chg_curr_maxim(struct abx500_chargalg *di)
909 static void handle_maxim_chg_curr(struct abx500_chargalg *di)
941 struct abx500_chargalg *di;
1270 struct abx500_chargalg *di = power_supply_get_drvdata(psy);
1281 * @di: pointer to the abx500_chargalg structure
1287 static void abx500_chargalg_algorithm(struct abx500_chargalg *di)
1644 struct abx500_chargalg *di = container_of(work,
1645 struct abx500_chargalg, chargalg_periodic_work.work);
1672 struct abx500_chargalg *di = container_of(work,
1673 struct abx500_chargalg, chargalg_wd_work.work);
1693 struct abx500_chargalg *di = container_of(work,
1694 struct abx500_chargalg, chargalg_work);
1715 struct abx500_chargalg *di = power_supply_get_drvdata(psy);
1744 static ssize_t abx500_chargalg_curr_step_show(struct abx500_chargalg *di,
1750 static ssize_t abx500_chargalg_curr_step_store(struct abx500_chargalg *di,
1775 static ssize_t abx500_chargalg_en_show(struct abx500_chargalg *di,
1783 static ssize_t abx500_chargalg_en_store(struct abx500_chargalg *di,
1844 struct abx500_chargalg *di = container_of(kobj,
1845 struct abx500_chargalg, chargalg_kobject);
1859 struct abx500_chargalg *di = container_of(kobj,
1860 struct abx500_chargalg, chargalg_kobject);
1886 * @di: pointer to the struct abx500_chargalg
1890 static void abx500_chargalg_sysfs_exit(struct abx500_chargalg *di)
1897 * @di: pointer to the struct abx500_chargalg
1902 static int abx500_chargalg_sysfs_init(struct abx500_chargalg *di)
1908 NULL, "abx500_chargalg");
1919 struct abx500_chargalg *di = platform_get_drvdata(pdev);
1937 struct abx500_chargalg *di = platform_get_drvdata(pdev);
1953 struct abx500_chargalg *di = platform_get_drvdata(pdev);
1978 .name = "abx500_chargalg",
1991 struct abx500_chargalg *di;