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
408 u8 chgconfig, tmp; in tps65010_work() local
410 chgconfig = i2c_smbus_read_byte_data(tps->client, in tps65010_work()
412 chgconfig &= ~(TPS_VBUS_500MA | TPS_VBUS_CHARGING); in tps65010_work()
414 chgconfig |= TPS_VBUS_500MA | TPS_VBUS_CHARGING; in tps65010_work()
416 chgconfig |= TPS_VBUS_CHARGING; in tps65010_work()
419 TPS_CHGCONFIG, chgconfig); in tps65010_work()
988 unsigned vdcdc1, chgconfig; in tps65013_set_low_pwr() local
1001 chgconfig = i2c_smbus_read_byte_data(the_tps->client, TPS_CHGCONFIG); in tps65013_set_low_pwr()
1006 chgconfig &= ~TPS65013_AUA; /* disable AUA bit */ in tps65013_set_low_pwr()
1011 chgconfig |= TPS65013_AUA; /* enable AUA bit */ in tps65013_set_low_pwr()
1017 TPS_CHGCONFIG, chgconfig); in tps65013_set_low_pwr()
1025 chgconfig = i2c_smbus_read_byte_data(the_tps->client, TPS_CHGCONFIG); in tps65013_set_low_pwr()
1026 the_tps->chgconf = chgconfig; in tps65013_set_low_pwr()
1027 show_chgconfig(0, "chgconf", chgconfig); in tps65013_set_low_pwr()