Searched refs:rh_state (Results 1 - 23 of 23) sorted by relevance

/linux-4.4.14/drivers/usb/host/
H A Duhci-debug.c280 char *rh_state; uhci_show_root_hub_state() local
282 switch (uhci->rh_state) { uhci_show_root_hub_state()
284 rh_state = "reset"; break; uhci_show_root_hub_state()
286 rh_state = "suspended"; break; uhci_show_root_hub_state()
288 rh_state = "auto-stopped"; break; uhci_show_root_hub_state()
290 rh_state = "resuming"; break; uhci_show_root_hub_state()
292 rh_state = "suspending"; break; uhci_show_root_hub_state()
294 rh_state = "running"; break; uhci_show_root_hub_state()
296 rh_state = "running, no devs"; break; uhci_show_root_hub_state()
298 rh_state = "?"; break; uhci_show_root_hub_state()
301 rh_state, uhci->fsbr_is_on); uhci_show_root_hub_state()
H A Dehci-timer.c109 if (ehci->rh_state != EHCI_RH_RUNNING) ehci_poll_ASS()
155 if (ehci->rh_state != EHCI_RH_RUNNING) ehci_poll_PSS()
210 ehci->rh_state = EHCI_RH_HALTED; ehci_handle_controller_death()
222 bool stopped = (ehci->rh_state < EHCI_RH_RUNNING); ehci_handle_start_intr_unlinks()
253 bool stopped = (ehci->rh_state < EHCI_RH_RUNNING); ehci_handle_intr_unlinks()
303 if (ehci->rh_state < EHCI_RH_RUNNING) { end_free_itds()
338 if (!ehci->iaa_in_progress || ehci->rh_state != EHCI_RH_RUNNING) ehci_iaa_watchdog()
371 if (ehci->rh_state != EHCI_RH_RUNNING || turn_on_io_watchdog()
H A Dohci-hcd.c216 if (ohci->rh_state != OHCI_RH_RUNNING) { ohci_urb_enqueue()
330 if (ohci->rh_state != OHCI_RH_RUNNING) { ohci_urb_dequeue()
362 if (ohci->rh_state != OHCI_RH_RUNNING) { ohci_endpoint_disable()
411 ohci->rh_state = OHCI_RH_HALTED; ohci_usb_reset()
432 ohci->rh_state = OHCI_RH_HALTED; ohci_shutdown()
452 ohci->rh_state = OHCI_RH_HALTED; ohci_init()
531 ohci->rh_state = OHCI_RH_HALTED; ohci_run()
644 ohci->rh_state = OHCI_RH_RUNNING; ohci_run()
809 if (ohci->rh_state == OHCI_RH_RUNNING) { io_watchdog_func()
869 ohci->rh_state = OHCI_RH_HALTED; ohci_irq()
879 if (ints == 0 || unlikely(ohci->rh_state == OHCI_RH_HALTED)) ohci_irq()
895 ohci->rh_state = OHCI_RH_HALTED; ohci_irq()
948 && ohci->rh_state == OHCI_RH_RUNNING) ohci_irq()
951 if (ohci->rh_state == OHCI_RH_RUNNING) { ohci_irq()
1009 ohci->rh_state = OHCI_RH_HALTED; ohci_restart()
H A Duhci-hub.c200 switch (uhci->rh_state) { uhci_hub_status_data()
218 uhci->rh_state = UHCI_RH_RUNNING_NODEVS; uhci_hub_status_data()
226 uhci->rh_state = UHCI_RH_RUNNING; uhci_hub_status_data()
H A Duhci-hcd.c142 uhci->rh_state = UHCI_RH_RESET; finish_reset()
354 uhci->rh_state = UHCI_RH_SUSPENDING;
366 uhci->rh_state = new_state;
394 uhci->rh_state = UHCI_RH_RUNNING; start_rh()
404 uhci->rh_state == UHCI_RH_AUTO_STOPPED ?
411 if (uhci->rh_state == UHCI_RH_SUSPENDED) {
416 uhci->rh_state = UHCI_RH_RESUMING;
465 if (uhci->rh_state >= UHCI_RH_RUNNING) { uhci_irq()
H A Dehci-hcd.c255 ehci->rh_state = EHCI_RH_HALTED; ehci_reset()
288 if (ehci->rh_state != EHCI_RH_RUNNING) ehci_quiesce()
352 ehci->rh_state = EHCI_RH_HALTED; ehci_silence_controller()
373 ehci->rh_state = EHCI_RH_STOPPING; ehci_shutdown()
630 ehci->rh_state = EHCI_RH_RUNNING; ehci_run()
719 if (!masked_status || unlikely(ehci->rh_state == EHCI_RH_HALTED)) { ehci_irq()
771 if (ehci->rh_state == EHCI_RH_SUSPENDED) ehci_irq()
819 ehci->rh_state = EHCI_RH_STOPPING; ehci_irq()
1167 ehci->rh_state = EHCI_RH_SUSPENDED; ehci_resume()
H A Dehci-q.c155 && ehci->rh_state == EHCI_RH_RUNNING) ehci_clear_tt_buffer_complete()
411 && ehci->rh_state >= EHCI_RH_RUNNING)) { qh_completions()
419 if (ehci->rh_state < EHCI_RH_RUNNING) qh_completions()
1283 if (unlikely(ehci->rh_state < EHCI_RH_RUNNING)) { start_iaa_cycle()
1287 } else if (likely(ehci->rh_state == EHCI_RH_RUNNING)) { start_iaa_cycle()
1325 if (ehci->rh_state < EHCI_RH_RUNNING) end_unlink_async()
1366 ehci->rh_state == EHCI_RH_RUNNING) end_unlink_async()
1470 if (check_unlinks_later && ehci->rh_state == EHCI_RH_RUNNING && scan_async()
H A Dfotg210-hcd.c637 switch (fotg210->rh_state) { rh_state_string()
968 fotg210->rh_state = FOTG210_RH_HALTED; fotg210_reset()
991 if (fotg210->rh_state != FOTG210_RH_RUNNING) fotg210_quiesce()
1102 if (fotg210->rh_state != FOTG210_RH_RUNNING) fotg210_poll_ASS()
1150 if (fotg210->rh_state != FOTG210_RH_RUNNING) fotg210_poll_PSS()
1208 fotg210->rh_state = FOTG210_RH_HALTED; fotg210_handle_controller_death()
1220 bool stopped = (fotg210->rh_state < FOTG210_RH_RUNNING); fotg210_handle_intr_unlinks()
1267 if (fotg210->rh_state < FOTG210_RH_RUNNING) end_free_itds()
1285 if (fotg210->rh_state != FOTG210_RH_RUNNING) fotg210_iaa_watchdog()
1330 if (fotg210->rh_state != FOTG210_RH_RUNNING || turn_on_io_watchdog()
2128 && fotg210->rh_state == FOTG210_RH_RUNNING) fotg210_clear_tt_buffer_complete()
2397 && fotg210->rh_state >= FOTG210_RH_RUNNING)) { qh_completions()
2405 if (fotg210->rh_state < FOTG210_RH_RUNNING) qh_completions()
3139 if (unlikely(fotg210->rh_state < FOTG210_RH_RUNNING)) { start_iaa_cycle()
3144 } else if (likely(fotg210->rh_state == FOTG210_RH_RUNNING)) { start_iaa_cycle()
3175 fotg210->rh_state == FOTG210_RH_RUNNING) end_unlink_async()
3184 if (unlikely(fotg210->rh_state < FOTG210_RH_RUNNING)) end_unlink_async()
3192 bool stopped = (fotg210->rh_state < FOTG210_RH_RUNNING); unlink_empty_async()
3283 if (check_unlinks_later && fotg210->rh_state == FOTG210_RH_RUNNING && scan_async()
3661 else if (fotg210->rh_state < FOTG210_RH_RUNNING) start_unlink_intr()
3682 fotg210->rh_state == FOTG210_RH_RUNNING) { end_unlink_intr()
4691 if (fotg210->rh_state >= FOTG210_RH_RUNNING) { scan_isoc()
4838 fotg210->rh_state = FOTG210_RH_HALTED; fotg210_silence_controller()
4853 fotg210->rh_state = FOTG210_RH_STOPPING; fotg210_shutdown()
5097 fotg210->rh_state = FOTG210_RH_RUNNING; fotg210_run()
5179 unlikely(fotg210->rh_state == FOTG210_RH_HALTED)) { fotg210_irq()
5239 if (fotg210->rh_state == FOTG210_RH_SUSPENDED) fotg210_irq()
5272 fotg210->rh_state = FOTG210_RH_STOPPING; fotg210_irq()
5436 if (fotg210->rh_state < FOTG210_RH_RUNNING) fotg210_endpoint_disable()
H A Dohci-hub.c132 ohci->rh_state = OHCI_RH_SUSPENDED;
162 if (ohci->rh_state != OHCI_RH_RUNNING) {
296 ohci->rh_state = OHCI_RH_RUNNING;
H A Dehci-hub.c242 if (ehci->rh_state < EHCI_RH_RUNNING) ehci_bus_suspend()
346 if (ehci->rh_state != EHCI_RH_RUNNING) ehci_bus_suspend()
348 ehci->rh_state = EHCI_RH_SUSPENDED; ehci_bus_suspend()
419 ehci->rh_state = EHCI_RH_RUNNING; ehci_bus_resume()
H A Dohci-q.c987 if (likely(ohci->rh_state == OHCI_RH_RUNNING) && finish_unlinks()
1002 ohci->rh_state == OHCI_RH_RUNNING) finish_unlinks()
1087 } else if (ohci->rh_state == OHCI_RH_RUNNING) { finish_unlinks()
1100 if (ohci->rh_state == OHCI_RH_RUNNING && !ohci->ed_rm_list) { finish_unlinks()
H A Duhci-pci.c234 if (uhci->rh_state == UHCI_RH_RESET) uhci_pci_resume()
H A Dehci-fsl.c420 ehci->rh_state = EHCI_RH_SUSPENDED; ehci_fsl_mpc512x_drv_suspend()
511 ehci->rh_state = EHCI_RH_RUNNING; ehci_fsl_mpc512x_drv_resume()
H A Dohci.h398 enum ohci_rh_state rh_state; member in struct:ohci_hcd
711 hc->rh_state = OHCI_RH_HALTED; \
H A Dmax3421-hcd.c126 enum max3421_rh_state rh_state; member in struct:max3421_hcd
1509 max3421_hcd->rh_state = MAX3421_RH_RUNNING; max3421_start()
1647 if (max3421_hcd->rh_state == MAX3421_RH_SUSPENDED) max3421_hub_status_data()
H A Dohci-at91.c623 ohci->rh_state = OHCI_RH_HALTED; ohci_hcd_at91_drv_suspend()
H A Dehci-sched.c699 else if (ehci->rh_state < EHCI_RH_RUNNING) start_unlink_intr()
720 if (ehci->rh_state < EHCI_RH_RUNNING) start_unlink_intr_wait()
740 if (!list_empty(&qh->qtd_list) && ehci->rh_state == EHCI_RH_RUNNING) { end_unlink_intr()
2391 if (ehci->rh_state >= EHCI_RH_RUNNING) { scan_isoc()
H A Dfotg210.h93 enum fotg210_rh_state rh_state; member in struct:fotg210_hcd
H A Dohci-dbg.c87 switch (ohci->rh_state) { rh_state_string()
H A Duhci-hcd.h403 enum uhci_rh_state rh_state; member in struct:uhci_hcd
H A Dehci-dbg.c766 switch (ehci->rh_state) { rh_state_string()
H A Dehci.h141 enum ehci_rh_state rh_state; member in struct:ehci_hcd
/linux-4.4.14/drivers/usb/gadget/udc/
H A Ddummy_hcd.c232 enum dummy_rh_state rh_state; member in struct:dummy_hcd
382 dum_hcd->rh_state != DUMMY_RH_SUSPENDED) set_link_state_by_speed()
409 dum_hcd->rh_state != DUMMY_RH_SUSPENDED) set_link_state_by_speed()
853 dum_hcd->rh_state != DUMMY_RH_SUSPENDED) dummy_wakeup()
1271 if (!rc && dum_hcd->rh_state != DUMMY_RH_RUNNING && dummy_urb_dequeue()
1783 else if (dum_hcd->rh_state != DUMMY_RH_RUNNING) dummy_timer()
1932 } else if (dum_hcd->rh_state == DUMMY_RH_RUNNING) { dummy_timer()
1972 if (dum_hcd->rh_state == DUMMY_RH_SUSPENDED) dummy_hub_status()
2296 dum_hcd->rh_state = DUMMY_RH_SUSPENDED; dummy_bus_suspend()
2314 dum_hcd->rh_state = DUMMY_RH_RUNNING; dummy_bus_resume()
2398 dum_hcd->rh_state = DUMMY_RH_RUNNING;
2429 dum_hcd->rh_state = DUMMY_RH_RUNNING;
2665 if (dum_hcd->rh_state == DUMMY_RH_RUNNING) {

Completed in 606 milliseconds