Home
last modified time | relevance | path

Searched refs:usb_state (Results 1 – 14 of 14) sorted by relevance

/drivers/staging/gdm724x/
Dgdm_mux.c257 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()
Dgdm_usb.c308 udev->usb_state = PM_NORMAL; in init_usb()
469 if (urb->status && udev->usb_state == PM_NORMAL) in gdm_usb_rcv_complete()
648 if (udev->usb_state == PM_SUSPEND) in do_tx()
913 if (udev->usb_state != PM_NORMAL) { in gdm_usb_suspend()
918 udev->usb_state = PM_SUSPEND; in gdm_usb_suspend()
949 if (udev->usb_state != PM_SUSPEND) { in gdm_usb_resume()
953 udev->usb_state = PM_NORMAL; in gdm_usb_resume()
Dgdm_mux.h75 int usb_state; member
Dgdm_usb.h95 int usb_state; member
/drivers/power/supply/
Dab8500_charger.c289 struct ab8500_charger_usb_state usb_state; member
1056 switch (di->usb_state.usb_current) { in ab8500_charger_get_usb_cur()
1244 if (di->usb_state.usb_current >= 0) in ab8500_charger_set_vbus_in_curr()
1245 min_value = min(di->usb_state.usb_current, min_value); in ab8500_charger_set_vbus_in_curr()
2381 spin_lock_irqsave(&di->usb_state.usb_lock, flags); in ab8500_charger_usb_state_changed_work()
2382 di->usb_state.state = di->usb_state.state_tmp; in ab8500_charger_usb_state_changed_work()
2383 di->usb_state.usb_current = di->usb_state.usb_current_tmp; in ab8500_charger_usb_state_changed_work()
2384 spin_unlock_irqrestore(&di->usb_state.usb_lock, flags); in ab8500_charger_usb_state_changed_work()
2387 __func__, di->usb_state.state, di->usb_state.usb_current); in ab8500_charger_usb_state_changed_work()
2389 switch (di->usb_state.state) { in ab8500_charger_usb_state_changed_work()
[all …]
/drivers/usb/gadget/udc/
Dmv_udc_core.c1364 udc->usb_state = USB_STATE_ATTACHED; in mv_udc_start()
1519 udc->usb_state = USB_STATE_ADDRESS; in ch9setaddress()
1620 if (udc->usb_state != USB_STATE_CONFIGURED in ch9setfeature()
1621 && udc->usb_state != USB_STATE_ADDRESS in ch9setfeature()
1622 && udc->usb_state != USB_STATE_DEFAULT) in ch9setfeature()
1726 if (udc->usb_state == USB_STATE_ADDRESS) { in ep0_req_complete()
1896 udc->usb_state = USB_STATE_DEFAULT; in irq_process_reset()
1918 udc->usb_state = USB_STATE_ATTACHED; in irq_process_reset()
1924 udc->usb_state = udc->resume_state; in handle_bus_resume()
1939 udc->resume_state = udc->usb_state; in irq_process_suspend()
[all …]
Dmv_u3d_core.c1415 u3d->usb_state = USB_STATE_DEFAULT; in mv_u3d_irq_process_link_change()
1425 u3d->resume_state = u3d->usb_state; in mv_u3d_irq_process_link_change()
1426 u3d->usb_state = USB_STATE_SUSPENDED; in mv_u3d_irq_process_link_change()
1431 u3d->usb_state = u3d->resume_state; in mv_u3d_irq_process_link_change()
1437 u3d->usb_state = USB_STATE_POWERED; in mv_u3d_irq_process_link_change()
1442 u3d->usb_state = USB_STATE_DEFAULT; in mv_u3d_irq_process_link_change()
1453 u3d->usb_state = USB_STATE_ATTACHED; in mv_u3d_irq_process_link_change()
1471 if (u3d->usb_state != USB_STATE_DEFAULT) { in mv_u3d_ch9setaddress()
1474 __func__, u3d->usb_state); in mv_u3d_ch9setaddress()
1490 u3d->usb_state = USB_STATE_ADDRESS; in mv_u3d_ch9setaddress()
[all …]
Dfsl_udc_core.c1321 udc->usb_state = USB_STATE_ADDRESS; in ch9setaddress()
1524 if (udc->usb_state == USB_STATE_ADDRESS) { in ep0_req_complete()
1751 udc->usb_state = USB_STATE_DEFAULT; in port_change_irq()
1757 udc->resume_state = udc->usb_state; in suspend_irq()
1758 udc->usb_state = USB_STATE_SUSPENDED; in suspend_irq()
1767 udc->usb_state = udc->resume_state; in bus_resume()
1843 udc->usb_state = USB_STATE_DEFAULT; in reset_irq()
1857 udc->usb_state = USB_STATE_ATTACHED; in reset_irq()
1882 if (udc->usb_state == USB_STATE_SUSPENDED) in fsl_udc_irq()
1974 udc_controller->usb_state = USB_STATE_ATTACHED; in fsl_udc_start()
[all …]
Dfsl_qe_udc.c1919 udc->usb_state = USB_STATE_ADDRESS; in ch9setaddress()
2093 udc->resume_state = udc->usb_state; in suspend_irq()
2094 udc->usb_state = USB_STATE_SUSPENDED; in suspend_irq()
2103 udc->usb_state = udc->resume_state; in resume_irq()
2117 if ((udc->usb_state) != USB_STATE_SUSPENDED) in idle_irq()
2120 if (udc->usb_state == USB_STATE_SUSPENDED) in idle_irq()
2129 if (udc->usb_state == USB_STATE_DEFAULT) in reset_irq()
2141 udc->usb_state = USB_STATE_DEFAULT; in reset_irq()
2165 if ((udc->usb_state == USB_STATE_ADDRESS) in tx_irq()
2289 udc->usb_state = USB_STATE_ATTACHED; in fsl_qe_start()
[all …]
Dmv_udc.h196 unsigned int usb_state; /* USB current state */ member
Dmv_u3d.h265 unsigned int usb_state; /* USB current state */ member
Dfsl_qe_udc.h334 u32 usb_state; /* USB current state */ member
Dudc-xilinx.c184 u32 usb_state; member
1503 udc->usb_state = USB_STATE_SUSPENDED; in xudc_startup_handler()
1512 bool condition = (udc->usb_state != USB_STATE_SUSPENDED); in xudc_startup_handler()
1525 udc->usb_state = 0; in xudc_startup_handler()
Dfsl_usb2_udc.h502 u32 usb_state; /* USB current state */ member