Lines Matching refs:ich
535 int ich; in ab8500_charger_get_usb_current() local
539 ich = ab8500_gpadc_convert(di->gpadc, USB_CHARGER_C); in ab8500_charger_get_usb_current()
540 if (ich < 0) in ab8500_charger_get_usb_current()
543 ich = 0; in ab8500_charger_get_usb_current()
545 return ich; in ab8500_charger_get_usb_current()
557 int ich; in ab8500_charger_get_ac_current() local
561 ich = ab8500_gpadc_convert(di->gpadc, MAIN_CHARGER_C); in ab8500_charger_get_ac_current()
562 if (ich < 0) in ab8500_charger_get_ac_current()
565 ich = 0; in ab8500_charger_get_ac_current()
567 return ich; in ab8500_charger_get_ac_current()
1112 int ich, int reg) in ab8500_charger_set_current() argument
1133 curr_index = ab8500_current_to_regval(di, ich); in ab8500_charger_set_current()
1141 curr_index = ab8500_vbus_in_curr_to_regval(di, ich); in ab8500_charger_set_current()
1150 curr_index = ab8500_current_to_regval(di, ich); in ab8500_charger_set_current()
1180 __func__, ich, reg); in ab8500_charger_set_current()