Lines Matching refs:chgconfig

131 static void dbg_chgconf(int por, char *buf, size_t len, u8 chgconfig)  in dbg_chgconf()  argument
136 hibit = (chgconfig & TPS_CHARGE_POR) in dbg_chgconf()
139 hibit = (chgconfig & TPS65013_AUA) ? "AUA" : ""; in dbg_chgconf()
142 chgconfig, hibit, in dbg_chgconf()
143 (chgconfig & TPS_CHARGE_RESET) ? " reset" : "", in dbg_chgconf()
144 (chgconfig & TPS_CHARGE_FAST) ? " fast" : "", in dbg_chgconf()
145 ({int p; switch ((chgconfig >> 3) & 3) { in dbg_chgconf()
151 (chgconfig & TPS_VBUS_CHARGING) in dbg_chgconf()
152 ? ((chgconfig & TPS_VBUS_500MA) ? 500 : 100) in dbg_chgconf()
154 (chgconfig & TPS_CHARGE_ENABLE) ? "" : "No"); in dbg_chgconf()
177 static void show_chgconfig(int por, const char *label, u8 chgconfig) in show_chgconfig() argument
181 dbg_chgconf(por, buf, sizeof buf, chgconfig); in show_chgconfig()
189 static inline void show_chgconfig(int por, const char *label, u8 chgconfig) { } in show_chgconfig() argument
421 u8 chgconfig, tmp; in tps65010_work() local
423 chgconfig = i2c_smbus_read_byte_data(tps->client, in tps65010_work()
425 chgconfig &= ~(TPS_VBUS_500MA | TPS_VBUS_CHARGING); in tps65010_work()
427 chgconfig |= TPS_VBUS_500MA | TPS_VBUS_CHARGING; in tps65010_work()
429 chgconfig |= TPS_VBUS_CHARGING; in tps65010_work()
432 TPS_CHGCONFIG, chgconfig); in tps65010_work()
1001 unsigned vdcdc1, chgconfig; in tps65013_set_low_pwr() local
1014 chgconfig = i2c_smbus_read_byte_data(the_tps->client, TPS_CHGCONFIG); in tps65013_set_low_pwr()
1019 chgconfig &= ~TPS65013_AUA; /* disable AUA bit */ in tps65013_set_low_pwr()
1024 chgconfig |= TPS65013_AUA; /* enable AUA bit */ in tps65013_set_low_pwr()
1030 TPS_CHGCONFIG, chgconfig); in tps65013_set_low_pwr()
1038 chgconfig = i2c_smbus_read_byte_data(the_tps->client, TPS_CHGCONFIG); in tps65013_set_low_pwr()
1039 the_tps->chgconf = chgconfig; in tps65013_set_low_pwr()
1040 show_chgconfig(0, "chgconf", chgconfig); in tps65013_set_low_pwr()