Home
last modified time | relevance | path

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

/Linux-v6.1/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.c312 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()
Dgdm_mux.h75 int usb_state; member
Dgdm_usb.h95 int usb_state; member
/Linux-v6.1/drivers/power/supply/
Dab8500_charger.c297 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()
[all …]
/Linux-v6.1/drivers/usb/gadget/udc/
Dmv_udc_core.c1365 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 …]
Dmv_u3d_core.c1416 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 …]
Dfsl_udc_core.c1321 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 …]
Dfsl_qe_udc.c1928 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 …]
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
Dfsl_usb2_udc.h502 u32 usb_state; /* USB current state */ member
Dudc-xilinx.c186 u32 usb_state; member
1508 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()