Lines Matching refs:usb_state
297 struct ab8500_charger_usb_state usb_state; member
1096 switch (di->usb_state.usb_current_ua) { in ab8500_charger_get_usb_cur()
1284 if (di->usb_state.usb_current_ua >= 0) in ab8500_charger_set_vbus_in_curr()
1285 min_value = min(di->usb_state.usb_current_ua, min_value); in ab8500_charger_set_vbus_in_curr()
2409 spin_lock_irqsave(&di->usb_state.usb_lock, flags); in ab8500_charger_usb_state_changed_work()
2410 di->usb_state.state = di->usb_state.state_tmp; in ab8500_charger_usb_state_changed_work()
2411 di->usb_state.usb_current_ua = di->usb_state.usb_current_tmp_ua; in ab8500_charger_usb_state_changed_work()
2412 spin_unlock_irqrestore(&di->usb_state.usb_lock, flags); in ab8500_charger_usb_state_changed_work()
2415 __func__, di->usb_state.state, di->usb_state.usb_current_ua); in ab8500_charger_usb_state_changed_work()
2417 switch (di->usb_state.state) { in ab8500_charger_usb_state_changed_work()
3205 if ((di->usb_state.usb_current_ua == 2000) && (mA > 2)) in ab8500_charger_usb_notifier_call()
3219 spin_lock(&di->usb_state.usb_lock); in ab8500_charger_usb_notifier_call()
3220 di->usb_state.state_tmp = bm_usb_state; in ab8500_charger_usb_notifier_call()
3222 di->usb_state.usb_current_tmp_ua = mA * 1000; in ab8500_charger_usb_notifier_call()
3223 spin_unlock(&di->usb_state.usb_lock); in ab8500_charger_usb_notifier_call()
3480 spin_lock_init(&di->usb_state.usb_lock); in ab8500_charger_probe()
3527 di->usb_state.usb_current_ua = -1; in ab8500_charger_probe()