Lines Matching refs:ac
117 if (!pm2->ac.charger_connected && gpio_is_valid(pm2->lpn_pin)) { in set_lpn_pin()
125 if (!pm2->ac.charger_connected && gpio_is_valid(pm2->lpn_pin)) in clear_lpn_pin()
231 pm2->ac.wd_expired = true; in pm2xxx_charger_wd_exp_mngt()
309 pm2->ac.charger_connected = 1; in pm2xxx_charger_itv_pwr_plug_mngt()
321 pm2->ac.charger_connected = 0; in pm2xxx_charger_itv_pwr_unplug_mngt()
513 if (pm2->ac.charger_connected && pm2->ac.charger_online) { in pm2xxx_charger_get_ac_cv()
616 else if (pm2->ac.wd_expired) in pm2xxx_charger_ac_get_property()
626 val->intval = pm2->ac.charger_online; in pm2xxx_charger_ac_get_property()
629 val->intval = pm2->ac.charger_connected; in pm2xxx_charger_ac_get_property()
632 pm2->ac.cv_active = pm2xxx_charger_get_ac_cv(pm2); in pm2xxx_charger_ac_get_property()
633 val->intval = pm2->ac.cv_active; in pm2xxx_charger_ac_get_property()
718 if (!pm2->ac.charger_connected) { in pm2xxx_charger_ac_en()
799 pm2->ac.charger_online = 1; in pm2xxx_charger_ac_en()
801 pm2->ac.charger_online = 0; in pm2xxx_charger_ac_en()
802 pm2->ac.wd_expired = false; in pm2xxx_charger_ac_en()
1170 pm2->ac.charger_connected = 1; in pm2xxx_wall_charger_probe()