Lines Matching refs:usb_state
297 struct ab8500_charger_usb_state usb_state; member
1108 switch (di->usb_state.usb_current_ua) { in ab8500_charger_get_usb_cur()
1296 if (di->usb_state.usb_current_ua >= 0) in ab8500_charger_set_vbus_in_curr()
1297 min_value = min(di->usb_state.usb_current_ua, min_value); in ab8500_charger_set_vbus_in_curr()
2420 spin_lock_irqsave(&di->usb_state.usb_lock, flags); in ab8500_charger_usb_state_changed_work()
2421 di->usb_state.state = di->usb_state.state_tmp; in ab8500_charger_usb_state_changed_work()
2422 di->usb_state.usb_current_ua = di->usb_state.usb_current_tmp_ua; in ab8500_charger_usb_state_changed_work()
2423 spin_unlock_irqrestore(&di->usb_state.usb_lock, flags); in ab8500_charger_usb_state_changed_work()
2426 __func__, di->usb_state.state, di->usb_state.usb_current_ua); in ab8500_charger_usb_state_changed_work()
2428 switch (di->usb_state.state) { in ab8500_charger_usb_state_changed_work()
3216 if ((di->usb_state.usb_current_ua == 2000) && (mA > 2)) in ab8500_charger_usb_notifier_call()
3230 spin_lock(&di->usb_state.usb_lock); in ab8500_charger_usb_notifier_call()
3231 di->usb_state.state_tmp = bm_usb_state; in ab8500_charger_usb_notifier_call()
3233 di->usb_state.usb_current_tmp_ua = mA * 1000; in ab8500_charger_usb_notifier_call()
3234 spin_unlock(&di->usb_state.usb_lock); in ab8500_charger_usb_notifier_call()
3491 spin_lock_init(&di->usb_state.usb_lock); in ab8500_charger_probe()
3538 di->usb_state.usb_current_ua = -1; in ab8500_charger_probe()