Searched refs:chg_info (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/power/
H A Dabx500_chargalg.c224 * @chg_info: information about connected charger types
250 struct abx500_chargalg_charger_info chg_info; member in struct:abx500_chargalg
360 if (di->chg_info.charger_type & USB_CHG) { abx500_chargalg_check_charger_enable()
364 } else if ((di->chg_info.charger_type & AC_CHG) && abx500_chargalg_check_charger_enable()
382 if (di->chg_info.conn_chg != di->chg_info.prev_conn_chg || abx500_chargalg_check_charger_connection()
388 if ((di->chg_info.conn_chg & AC_CHG) && abx500_chargalg_check_charger_connection()
391 if (di->chg_info.charger_type != AC_CHG) { abx500_chargalg_check_charger_connection()
392 di->chg_info.charger_type = AC_CHG; abx500_chargalg_check_charger_connection()
395 } else if ((di->chg_info.conn_chg & USB_CHG) && abx500_chargalg_check_charger_connection()
398 di->chg_info.charger_type = USB_CHG; abx500_chargalg_check_charger_connection()
400 } else if (di->chg_info.conn_chg && abx500_chargalg_check_charger_connection()
404 di->chg_info.charger_type = NO_CHG; abx500_chargalg_check_charger_connection()
408 di->chg_info.charger_type = NO_CHG; abx500_chargalg_check_charger_connection()
411 di->chg_info.prev_conn_chg = di->chg_info.conn_chg; abx500_chargalg_check_charger_connection()
414 return di->chg_info.conn_chg; abx500_chargalg_check_charger_connection()
445 switch (di->chg_info.charger_type) { abx500_chargalg_start_safety_timer()
521 di->chg_info.online_chg & AC_CHG) { abx500_chargalg_kick_watchdog()
534 di->chg_info.online_chg & USB_CHG) abx500_chargalg_kick_watchdog()
564 di->chg_info.ac_iset = iset; abx500_chargalg_ac_en()
565 di->chg_info.ac_vset = vset; abx500_chargalg_ac_en()
600 di->chg_info.usb_iset = iset; abx500_chargalg_usb_en()
601 di->chg_info.usb_vset = vset; abx500_chargalg_usb_en()
650 di->chg_info.charger_type & AC_CHG) { abx500_chargalg_update_chg_curr()
658 di->chg_info.ac_iset = iset; abx500_chargalg_update_chg_curr()
662 di->chg_info.charger_type & USB_CHG) { abx500_chargalg_update_chg_curr()
670 di->chg_info.usb_iset = iset; abx500_chargalg_update_chg_curr()
730 switch (di->chg_info.charger_type) { abx500_chargalg_start_charging()
804 if (di->chg_info.usb_volt > di->bm->chg_params->usb_volt_max) abx500_chargalg_check_charger_voltage()
805 di->chg_info.usb_chg_ok = false; abx500_chargalg_check_charger_voltage()
807 di->chg_info.usb_chg_ok = true; abx500_chargalg_check_charger_voltage()
809 if (di->chg_info.ac_volt > di->bm->chg_params->ac_volt_max) abx500_chargalg_check_charger_voltage()
810 di->chg_info.ac_chg_ok = false; abx500_chargalg_check_charger_voltage()
812 di->chg_info.ac_chg_ok = true; abx500_chargalg_check_charger_voltage()
836 if ((di->chg_info.charger_type & USB_CHG) && abx500_chargalg_end_of_charge()
1037 (di->chg_info.conn_chg & AC_CHG)) { abx500_chargalg_get_ext_psy_data()
1038 di->chg_info.prev_conn_chg = abx500_chargalg_get_ext_psy_data()
1039 di->chg_info.conn_chg; abx500_chargalg_get_ext_psy_data()
1040 di->chg_info.conn_chg &= ~AC_CHG; abx500_chargalg_get_ext_psy_data()
1044 !(di->chg_info.conn_chg & AC_CHG)) { abx500_chargalg_get_ext_psy_data()
1045 di->chg_info.prev_conn_chg = abx500_chargalg_get_ext_psy_data()
1046 di->chg_info.conn_chg; abx500_chargalg_get_ext_psy_data()
1047 di->chg_info.conn_chg |= AC_CHG; abx500_chargalg_get_ext_psy_data()
1053 (di->chg_info.conn_chg & USB_CHG)) { abx500_chargalg_get_ext_psy_data()
1054 di->chg_info.prev_conn_chg = abx500_chargalg_get_ext_psy_data()
1055 di->chg_info.conn_chg; abx500_chargalg_get_ext_psy_data()
1056 di->chg_info.conn_chg &= ~USB_CHG; abx500_chargalg_get_ext_psy_data()
1060 !(di->chg_info.conn_chg & USB_CHG)) { abx500_chargalg_get_ext_psy_data()
1061 di->chg_info.prev_conn_chg = abx500_chargalg_get_ext_psy_data()
1062 di->chg_info.conn_chg; abx500_chargalg_get_ext_psy_data()
1063 di->chg_info.conn_chg |= USB_CHG; abx500_chargalg_get_ext_psy_data()
1078 (di->chg_info.online_chg & AC_CHG)) { abx500_chargalg_get_ext_psy_data()
1079 di->chg_info.prev_online_chg = abx500_chargalg_get_ext_psy_data()
1080 di->chg_info.online_chg; abx500_chargalg_get_ext_psy_data()
1081 di->chg_info.online_chg &= ~AC_CHG; abx500_chargalg_get_ext_psy_data()
1085 !(di->chg_info.online_chg & AC_CHG)) { abx500_chargalg_get_ext_psy_data()
1086 di->chg_info.prev_online_chg = abx500_chargalg_get_ext_psy_data()
1087 di->chg_info.online_chg; abx500_chargalg_get_ext_psy_data()
1088 di->chg_info.online_chg |= AC_CHG; abx500_chargalg_get_ext_psy_data()
1096 (di->chg_info.online_chg & USB_CHG)) { abx500_chargalg_get_ext_psy_data()
1097 di->chg_info.prev_online_chg = abx500_chargalg_get_ext_psy_data()
1098 di->chg_info.online_chg; abx500_chargalg_get_ext_psy_data()
1099 di->chg_info.online_chg &= ~USB_CHG; abx500_chargalg_get_ext_psy_data()
1103 !(di->chg_info.online_chg & USB_CHG)) { abx500_chargalg_get_ext_psy_data()
1104 di->chg_info.prev_online_chg = abx500_chargalg_get_ext_psy_data()
1105 di->chg_info.online_chg; abx500_chargalg_get_ext_psy_data()
1106 di->chg_info.online_chg |= USB_CHG; abx500_chargalg_get_ext_psy_data()
1205 di->chg_info.ac_volt = ret.intval / 1000; abx500_chargalg_get_ext_psy_data()
1208 di->chg_info.usb_volt = ret.intval / 1000; abx500_chargalg_get_ext_psy_data()
1261 di->chg_info.ac_curr = abx500_chargalg_get_ext_psy_data()
1265 di->chg_info.usb_curr = abx500_chargalg_get_ext_psy_data()
1403 !di->chg_info.usb_chg_ok || abx500_chargalg_algorithm()
1404 !di->chg_info.ac_chg_ok) { abx500_chargalg_algorithm()
1445 di->chg_info.charger_type, abx500_chargalg_algorithm()
1447 di->chg_info.conn_chg & AC_CHG, abx500_chargalg_algorithm()
1448 di->chg_info.conn_chg & USB_CHG, abx500_chargalg_algorithm()
1449 di->chg_info.online_chg & AC_CHG, abx500_chargalg_algorithm()
1450 di->chg_info.online_chg & USB_CHG, abx500_chargalg_algorithm()
1453 di->chg_info.ac_curr, abx500_chargalg_algorithm()
1454 di->chg_info.usb_curr, abx500_chargalg_algorithm()
1455 di->chg_info.ac_vset, abx500_chargalg_algorithm()
1456 di->chg_info.ac_iset, abx500_chargalg_algorithm()
1457 di->chg_info.usb_vset, abx500_chargalg_algorithm()
1458 di->chg_info.usb_iset); abx500_chargalg_algorithm()
1517 di->chg_info.usb_chg_ok && abx500_chargalg_algorithm()
1518 di->chg_info.ac_chg_ok) abx500_chargalg_algorithm()
1543 if ((di->chg_info.charger_type & USB_CHG) && abx500_chargalg_algorithm()
1719 if (di->chg_info.conn_chg) abx500_chargalg_periodic_work()
1988 if (di->chg_info.online_chg) abx500_chargalg_resume()
2005 if (di->chg_info.online_chg) abx500_chargalg_suspend()
2115 di->chg_info.prev_conn_chg = -1; abx500_chargalg_probe()

Completed in 82 milliseconds