Lines Matching refs:chgconfig

118 static void dbg_chgconf(int por, char *buf, size_t len, u8 chgconfig)  in dbg_chgconf()  argument
123 hibit = (chgconfig & TPS_CHARGE_POR) in dbg_chgconf()
126 hibit = (chgconfig & TPS65013_AUA) ? "AUA" : ""; in dbg_chgconf()
129 chgconfig, hibit, in dbg_chgconf()
130 (chgconfig & TPS_CHARGE_RESET) ? " reset" : "", in dbg_chgconf()
131 (chgconfig & TPS_CHARGE_FAST) ? " fast" : "", in dbg_chgconf()
132 ({int p; switch ((chgconfig >> 3) & 3) { in dbg_chgconf()
138 (chgconfig & TPS_VBUS_CHARGING) in dbg_chgconf()
139 ? ((chgconfig & TPS_VBUS_500MA) ? 500 : 100) in dbg_chgconf()
141 (chgconfig & TPS_CHARGE_ENABLE) ? "" : "No"); in dbg_chgconf()
164 static void show_chgconfig(int por, const char *label, u8 chgconfig) in show_chgconfig() argument
168 dbg_chgconf(por, buf, sizeof buf, chgconfig); in show_chgconfig()
176 static inline void show_chgconfig(int por, const char *label, u8 chgconfig) { } in show_chgconfig() argument
407 u8 chgconfig, tmp; in tps65010_work() local
409 chgconfig = i2c_smbus_read_byte_data(tps->client, in tps65010_work()
411 chgconfig &= ~(TPS_VBUS_500MA | TPS_VBUS_CHARGING); in tps65010_work()
413 chgconfig |= TPS_VBUS_500MA | TPS_VBUS_CHARGING; in tps65010_work()
415 chgconfig |= TPS_VBUS_CHARGING; in tps65010_work()
418 TPS_CHGCONFIG, chgconfig); in tps65010_work()
982 unsigned vdcdc1, chgconfig; in tps65013_set_low_pwr() local
995 chgconfig = i2c_smbus_read_byte_data(the_tps->client, TPS_CHGCONFIG); in tps65013_set_low_pwr()
1000 chgconfig &= ~TPS65013_AUA; /* disable AUA bit */ in tps65013_set_low_pwr()
1005 chgconfig |= TPS65013_AUA; /* enable AUA bit */ in tps65013_set_low_pwr()
1011 TPS_CHGCONFIG, chgconfig); in tps65013_set_low_pwr()
1019 chgconfig = i2c_smbus_read_byte_data(the_tps->client, TPS_CHGCONFIG); in tps65013_set_low_pwr()
1020 the_tps->chgconf = chgconfig; in tps65013_set_low_pwr()
1021 show_chgconfig(0, "chgconf", chgconfig); in tps65013_set_low_pwr()