Searched refs:usb_state (Results 1 – 14 of 14) sorted by relevance
257 if (mux_dev->usb_state == PM_NORMAL) in gdm_mux_rcv_complete()354 if (mux_dev->usb_state == PM_SUSPEND) { in gdm_mux_send()544 mux_dev->usb_state = PM_NORMAL; in gdm_mux_probe()595 if (mux_dev->usb_state != PM_NORMAL) { in gdm_mux_suspend()600 mux_dev->usb_state = PM_SUSPEND; in gdm_mux_suspend()623 if (mux_dev->usb_state != PM_SUSPEND) { in gdm_mux_resume()628 mux_dev->usb_state = PM_NORMAL; in gdm_mux_resume()
312 udev->usb_state = PM_NORMAL; in init_usb()473 if (urb->status && udev->usb_state == PM_NORMAL) in gdm_usb_rcv_complete()652 if (udev->usb_state == PM_SUSPEND) in do_tx()917 if (udev->usb_state != PM_NORMAL) { in gdm_usb_suspend()922 udev->usb_state = PM_SUSPEND; in gdm_usb_suspend()953 if (udev->usb_state != PM_SUSPEND) { in gdm_usb_resume()957 udev->usb_state = PM_NORMAL; in gdm_usb_resume()
75 int usb_state; member
95 int usb_state; member
297 struct ab8500_charger_usb_state usb_state; member1096 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()[all …]
1365 udc->usb_state = USB_STATE_ATTACHED; in mv_udc_start()1520 udc->usb_state = USB_STATE_ADDRESS; in ch9setaddress()1621 if (udc->usb_state != USB_STATE_CONFIGURED in ch9setfeature()1622 && udc->usb_state != USB_STATE_ADDRESS in ch9setfeature()1623 && udc->usb_state != USB_STATE_DEFAULT) in ch9setfeature()1727 if (udc->usb_state == USB_STATE_ADDRESS) { in ep0_req_complete()1897 udc->usb_state = USB_STATE_DEFAULT; in irq_process_reset()1919 udc->usb_state = USB_STATE_ATTACHED; in irq_process_reset()1925 udc->usb_state = udc->resume_state; in handle_bus_resume()1940 udc->resume_state = udc->usb_state; in irq_process_suspend()[all …]
1416 u3d->usb_state = USB_STATE_DEFAULT; in mv_u3d_irq_process_link_change()1426 u3d->resume_state = u3d->usb_state; in mv_u3d_irq_process_link_change()1427 u3d->usb_state = USB_STATE_SUSPENDED; in mv_u3d_irq_process_link_change()1432 u3d->usb_state = u3d->resume_state; in mv_u3d_irq_process_link_change()1438 u3d->usb_state = USB_STATE_POWERED; in mv_u3d_irq_process_link_change()1443 u3d->usb_state = USB_STATE_DEFAULT; in mv_u3d_irq_process_link_change()1454 u3d->usb_state = USB_STATE_ATTACHED; in mv_u3d_irq_process_link_change()1472 if (u3d->usb_state != USB_STATE_DEFAULT) { in mv_u3d_ch9setaddress()1475 __func__, u3d->usb_state); in mv_u3d_ch9setaddress()1491 u3d->usb_state = USB_STATE_ADDRESS; in mv_u3d_ch9setaddress()[all …]
1321 udc->usb_state = USB_STATE_ADDRESS; in ch9setaddress()1524 if (udc->usb_state == USB_STATE_ADDRESS) { in ep0_req_complete()1748 udc->usb_state = USB_STATE_DEFAULT; in port_change_irq()1754 udc->resume_state = udc->usb_state; in suspend_irq()1755 udc->usb_state = USB_STATE_SUSPENDED; in suspend_irq()1764 udc->usb_state = udc->resume_state; in bus_resume()1840 udc->usb_state = USB_STATE_DEFAULT; in reset_irq()1854 udc->usb_state = USB_STATE_ATTACHED; in reset_irq()1879 if (udc->usb_state == USB_STATE_SUSPENDED) in fsl_udc_irq()1971 udc_controller->usb_state = USB_STATE_ATTACHED; in fsl_udc_start()[all …]
1928 udc->usb_state = USB_STATE_ADDRESS; in ch9setaddress()2102 udc->resume_state = udc->usb_state; in suspend_irq()2103 udc->usb_state = USB_STATE_SUSPENDED; in suspend_irq()2112 udc->usb_state = udc->resume_state; in resume_irq()2126 if ((udc->usb_state) != USB_STATE_SUSPENDED) in idle_irq()2129 if (udc->usb_state == USB_STATE_SUSPENDED) in idle_irq()2138 if (udc->usb_state == USB_STATE_DEFAULT) in reset_irq()2150 udc->usb_state = USB_STATE_DEFAULT; in reset_irq()2174 if ((udc->usb_state == USB_STATE_ADDRESS) in tx_irq()2298 udc->usb_state = USB_STATE_ATTACHED; in fsl_qe_start()[all …]
196 unsigned int usb_state; /* USB current state */ member
265 unsigned int usb_state; /* USB current state */ member
334 u32 usb_state; /* USB current state */ member
502 u32 usb_state; /* USB current state */ member
186 u32 usb_state; member1508 udc->usb_state = USB_STATE_SUSPENDED; in xudc_startup_handler()1517 bool condition = (udc->usb_state != USB_STATE_SUSPENDED); in xudc_startup_handler()1530 udc->usb_state = 0; in xudc_startup_handler()