Lines Matching refs:chgstatus

74 	u8			chgstatus, regstatus, chgconf;  member
88 static void dbg_chgstat(char *buf, size_t len, u8 chgstatus) in dbg_chgstat() argument
91 chgstatus, in dbg_chgstat()
92 (chgstatus & TPS_CHG_USB) ? " USB" : "", in dbg_chgstat()
93 (chgstatus & TPS_CHG_AC) ? " AC" : "", in dbg_chgstat()
94 (chgstatus & TPS_CHG_THERM) ? " therm" : "", in dbg_chgstat()
95 (chgstatus & TPS_CHG_TERM) ? " done" : in dbg_chgstat()
96 ((chgstatus & (TPS_CHG_USB|TPS_CHG_AC)) in dbg_chgstat()
98 (chgstatus & TPS_CHG_TAPER_TMO) ? " taper_tmo" : "", in dbg_chgstat()
99 (chgstatus & TPS_CHG_CHG_TMO) ? " charge_tmo" : "", in dbg_chgstat()
100 (chgstatus & TPS_CHG_PRECHG_TMO) ? " prechg_tmo" : "", in dbg_chgstat()
101 (chgstatus & TPS_CHG_TEMP_ERR) ? " temp_err" : ""); in dbg_chgstat()
148 static void show_chgstatus(const char *label, u8 chgstatus) in show_chgstatus() argument
152 dbg_chgstat(buf, sizeof buf, chgstatus); in show_chgstatus()
174 static inline void show_chgstatus(const char *label, u8 chgstatus) { } in show_chgstatus() argument
175 static inline void show_regstatus(const char *label, u8 chgstatus) { } in show_regstatus() argument
346 mask = tmp ^ tps->chgstatus; in tps65010_interrupt()
347 tps->chgstatus = tmp; in tps65010_interrupt()
362 if (!(tps->chgstatus & ~(TPS_CHG_USB|TPS_CHG_AC)) in tps65010_interrupt()
363 && (tps->chgstatus & (TPS_CHG_USB|TPS_CHG_AC)) in tps65010_interrupt()
366 if (tps->chgstatus & TPS_CHG_USB) { in tps65010_interrupt()
371 } else if (tps->chgstatus & TPS_CHG_AC) in tps65010_interrupt()
378 ((tps->chgstatus & (TPS_CHG_USB|TPS_CHG_AC)) in tps65010_interrupt()
387 && (tps->chgstatus & (TPS_CHG_USB|TPS_CHG_AC))) in tps65010_interrupt()
700 if ((the_tps->chgstatus & TPS_CHG_USB) in tps65010_set_vbus_draw()