Lines Matching refs:dum_hcd
369 static void set_link_state_by_speed(struct dummy_hcd *dum_hcd) in set_link_state_by_speed() argument
371 struct dummy *dum = dum_hcd->dum; in set_link_state_by_speed()
373 if (dummy_hcd_to_hcd(dum_hcd)->speed == HCD_USB3) { in set_link_state_by_speed()
374 if ((dum_hcd->port_status & USB_SS_PORT_STAT_POWER) == 0) { in set_link_state_by_speed()
375 dum_hcd->port_status = 0; in set_link_state_by_speed()
378 dum_hcd->port_status &= ~(USB_PORT_STAT_CONNECTION | in set_link_state_by_speed()
380 if ((dum_hcd->old_status & in set_link_state_by_speed()
382 dum_hcd->port_status |= in set_link_state_by_speed()
386 dum_hcd->port_status |= (USB_PORT_STAT_CONNECTION | in set_link_state_by_speed()
388 if ((dum_hcd->old_status & in set_link_state_by_speed()
390 dum_hcd->port_status |= in set_link_state_by_speed()
392 if ((dum_hcd->port_status & USB_PORT_STAT_ENABLE) && in set_link_state_by_speed()
393 (dum_hcd->port_status & in set_link_state_by_speed()
395 dum_hcd->rh_state != DUMMY_RH_SUSPENDED) in set_link_state_by_speed()
396 dum_hcd->active = 1; in set_link_state_by_speed()
399 if ((dum_hcd->port_status & USB_PORT_STAT_POWER) == 0) { in set_link_state_by_speed()
400 dum_hcd->port_status = 0; in set_link_state_by_speed()
403 dum_hcd->port_status &= ~(USB_PORT_STAT_CONNECTION | in set_link_state_by_speed()
408 if ((dum_hcd->old_status & in set_link_state_by_speed()
410 dum_hcd->port_status |= in set_link_state_by_speed()
413 dum_hcd->port_status |= USB_PORT_STAT_CONNECTION; in set_link_state_by_speed()
414 if ((dum_hcd->old_status & in set_link_state_by_speed()
416 dum_hcd->port_status |= in set_link_state_by_speed()
418 if ((dum_hcd->port_status & USB_PORT_STAT_ENABLE) == 0) in set_link_state_by_speed()
419 dum_hcd->port_status &= ~USB_PORT_STAT_SUSPEND; in set_link_state_by_speed()
420 else if ((dum_hcd->port_status & in set_link_state_by_speed()
422 dum_hcd->rh_state != DUMMY_RH_SUSPENDED) in set_link_state_by_speed()
423 dum_hcd->active = 1; in set_link_state_by_speed()
429 static void set_link_state(struct dummy_hcd *dum_hcd) in set_link_state() argument
432 struct dummy *dum = dum_hcd->dum; in set_link_state()
435 dum_hcd->active = 0; in set_link_state()
437 if ((dummy_hcd_to_hcd(dum_hcd)->speed == HCD_USB3 && in set_link_state()
439 (dummy_hcd_to_hcd(dum_hcd)->speed != HCD_USB3 && in set_link_state()
443 set_link_state_by_speed(dum_hcd); in set_link_state()
444 power_bit = (dummy_hcd_to_hcd(dum_hcd)->speed == HCD_USB3 ? in set_link_state()
447 if ((dum_hcd->port_status & USB_PORT_STAT_ENABLE) == 0 || in set_link_state()
448 dum_hcd->active) in set_link_state()
449 dum_hcd->resuming = 0; in set_link_state()
452 if ((dum_hcd->port_status & power_bit) == 0 || in set_link_state()
453 (dum_hcd->port_status & USB_PORT_STAT_RESET) != 0) { in set_link_state()
455 dum_hcd->old_status & (~dum_hcd->port_status); in set_link_state()
457 (~dum_hcd->old_status) & dum_hcd->port_status; in set_link_state()
471 } else if (dum_hcd->active != dum_hcd->old_active && in set_link_state()
475 if (dum_hcd->old_active && dum->driver->suspend) in set_link_state()
477 else if (!dum_hcd->old_active && dum->driver->resume) in set_link_state()
483 dum_hcd->old_status = dum_hcd->port_status; in set_link_state()
484 dum_hcd->old_active = dum_hcd->active; in set_link_state()
503 struct dummy_hcd *dum_hcd; in dummy_enable() local
516 dum_hcd = gadget_to_dummy_hcd(&dum->gadget); in dummy_enable()
517 if (!is_enabled(dum_hcd)) in dummy_enable()
696 struct dummy_hcd *dum_hcd; in dummy_queue() local
708 dum_hcd = gadget_to_dummy_hcd(&dum->gadget); in dummy_queue()
709 if (!dum->driver || !is_enabled(dum_hcd)) in dummy_queue()
853 struct dummy_hcd *dum_hcd; in dummy_wakeup() local
855 dum_hcd = gadget_to_dummy_hcd(_gadget); in dummy_wakeup()
856 if (!(dum_hcd->dum->devstatus & ((1 << USB_DEVICE_B_HNP_ENABLE) in dummy_wakeup()
859 if ((dum_hcd->port_status & USB_PORT_STAT_CONNECTION) == 0) in dummy_wakeup()
861 if ((dum_hcd->port_status & USB_PORT_STAT_SUSPEND) == 0 && in dummy_wakeup()
862 dum_hcd->rh_state != DUMMY_RH_SUSPENDED) in dummy_wakeup()
868 dum_hcd->resuming = 1; in dummy_wakeup()
869 dum_hcd->re_timeout = jiffies + msecs_to_jiffies(20); in dummy_wakeup()
870 mod_timer(&dummy_hcd_to_hcd(dum_hcd)->rh_timer, dum_hcd->re_timeout); in dummy_wakeup()
897 struct dummy_hcd *dum_hcd; in dummy_pullup() local
902 dum_hcd = gadget_to_dummy_hcd(_gadget); in dummy_pullup()
906 set_link_state(dum_hcd); in dummy_pullup()
924 usb_hcd_poll_rh_status(dummy_hcd_to_hcd(dum_hcd)); in dummy_pullup()
995 struct dummy_hcd *dum_hcd = gadget_to_dummy_hcd(g); in dummy_udc_start() local
996 struct dummy *dum = dum_hcd->dum; in dummy_udc_start()
1006 dev_err(dummy_dev(dum_hcd), "Unsupported driver max speed %d\n", in dummy_udc_start()
1026 struct dummy_hcd *dum_hcd = gadget_to_dummy_hcd(g); in dummy_udc_stop() local
1027 struct dummy *dum = dum_hcd->dum; in dummy_udc_stop()
1120 static void dummy_udc_pm(struct dummy *dum, struct dummy_hcd *dum_hcd, in dummy_udc_pm() argument
1125 set_link_state(dum_hcd); in dummy_udc_pm()
1132 struct dummy_hcd *dum_hcd = gadget_to_dummy_hcd(&dum->gadget); in dummy_udc_suspend() local
1135 dummy_udc_pm(dum, dum_hcd, 1); in dummy_udc_suspend()
1136 usb_hcd_poll_rh_status(dummy_hcd_to_hcd(dum_hcd)); in dummy_udc_suspend()
1143 struct dummy_hcd *dum_hcd = gadget_to_dummy_hcd(&dum->gadget); in dummy_udc_resume() local
1146 dummy_udc_pm(dum, dum_hcd, 0); in dummy_udc_resume()
1147 usb_hcd_poll_rh_status(dummy_hcd_to_hcd(dum_hcd)); in dummy_udc_resume()
1185 static int dummy_ep_stream_en(struct dummy_hcd *dum_hcd, struct urb *urb) in dummy_ep_stream_en() argument
1194 return (1 << index) & dum_hcd->stream_en_ep; in dummy_ep_stream_en()
1204 static int get_max_streams_for_pipe(struct dummy_hcd *dum_hcd, in get_max_streams_for_pipe() argument
1209 max_streams = dum_hcd->num_stream[usb_pipeendpoint(pipe)]; in get_max_streams_for_pipe()
1218 static void set_max_streams_for_pipe(struct dummy_hcd *dum_hcd, in set_max_streams_for_pipe() argument
1224 max_streams = dum_hcd->num_stream[usb_pipeendpoint(pipe)]; in set_max_streams_for_pipe()
1232 dum_hcd->num_stream[usb_pipeendpoint(pipe)] = max_streams; in set_max_streams_for_pipe()
1235 static int dummy_validate_stream(struct dummy_hcd *dum_hcd, struct urb *urb) in dummy_validate_stream() argument
1240 enabled = dummy_ep_stream_en(dum_hcd, urb); in dummy_validate_stream()
1249 max_streams = get_max_streams_for_pipe(dum_hcd, in dummy_validate_stream()
1252 dev_err(dummy_dev(dum_hcd), "Stream id %d is out of range.\n", in dummy_validate_stream()
1265 struct dummy_hcd *dum_hcd; in dummy_urb_enqueue() local
1276 dum_hcd = hcd_to_dummy_hcd(hcd); in dummy_urb_enqueue()
1277 spin_lock_irqsave(&dum_hcd->dum->lock, flags); in dummy_urb_enqueue()
1279 rc = dummy_validate_stream(dum_hcd, urb); in dummy_urb_enqueue()
1291 if (!dum_hcd->udev) { in dummy_urb_enqueue()
1292 dum_hcd->udev = urb->dev; in dummy_urb_enqueue()
1293 usb_get_dev(dum_hcd->udev); in dummy_urb_enqueue()
1294 } else if (unlikely(dum_hcd->udev != urb->dev)) in dummy_urb_enqueue()
1295 dev_err(dummy_dev(dum_hcd), "usb_device address has changed!\n"); in dummy_urb_enqueue()
1297 list_add_tail(&urbp->urbp_list, &dum_hcd->urbp_list); in dummy_urb_enqueue()
1299 if (!dum_hcd->next_frame_urbp) in dummy_urb_enqueue()
1300 dum_hcd->next_frame_urbp = urbp; in dummy_urb_enqueue()
1305 if (!timer_pending(&dum_hcd->timer)) in dummy_urb_enqueue()
1306 mod_timer(&dum_hcd->timer, jiffies + 1); in dummy_urb_enqueue()
1309 spin_unlock_irqrestore(&dum_hcd->dum->lock, flags); in dummy_urb_enqueue()
1315 struct dummy_hcd *dum_hcd; in dummy_urb_dequeue() local
1321 dum_hcd = hcd_to_dummy_hcd(hcd); in dummy_urb_dequeue()
1322 spin_lock_irqsave(&dum_hcd->dum->lock, flags); in dummy_urb_dequeue()
1325 if (!rc && dum_hcd->rh_state != DUMMY_RH_RUNNING && in dummy_urb_dequeue()
1326 !list_empty(&dum_hcd->urbp_list)) in dummy_urb_dequeue()
1327 mod_timer(&dum_hcd->timer, jiffies); in dummy_urb_dequeue()
1329 spin_unlock_irqrestore(&dum_hcd->dum->lock, flags); in dummy_urb_dequeue()
1400 static int transfer(struct dummy_hcd *dum_hcd, struct urb *urb, in transfer() argument
1403 struct dummy *dum = dum_hcd->dum; in transfer()
1414 if (dummy_ep_stream_en(dum_hcd, urb)) { in transfer()
1564 #define is_active(dum_hcd) ((dum_hcd->port_status & \ argument
1613 static int handle_control_request(struct dummy_hcd *dum_hcd, struct urb *urb, in handle_control_request() argument
1618 struct dummy *dum = dum_hcd->dum; in handle_control_request()
1651 if (dummy_hcd_to_hcd(dum_hcd)->speed == in handle_control_request()
1658 if (dummy_hcd_to_hcd(dum_hcd)->speed == in handle_control_request()
1665 if (dummy_hcd_to_hcd(dum_hcd)->speed == in handle_control_request()
1698 if (dummy_hcd_to_hcd(dum_hcd)->speed == in handle_control_request()
1705 if (dummy_hcd_to_hcd(dum_hcd)->speed == in handle_control_request()
1712 if (dummy_hcd_to_hcd(dum_hcd)->speed == in handle_control_request()
1783 struct dummy_hcd *dum_hcd = from_timer(dum_hcd, t, timer); in dummy_timer() local
1784 struct dummy *dum = dum_hcd->dum; in dummy_timer()
1807 dev_err(dummy_dev(dum_hcd), "bogus device speed\n"); in dummy_timer()
1817 if (!dum_hcd->udev) { in dummy_timer()
1818 dev_err(dummy_dev(dum_hcd), in dummy_timer()
1823 dum_hcd->next_frame_urbp = NULL; in dummy_timer()
1832 list_for_each_entry_safe(urbp, tmp, &dum_hcd->urbp_list, urbp_list) { in dummy_timer()
1840 if (urbp == dum_hcd->next_frame_urbp) in dummy_timer()
1846 else if (dum_hcd->rh_state != DUMMY_RH_RUNNING) in dummy_timer()
1860 dev_dbg(dummy_dev(dum_hcd), in dummy_timer()
1876 dev_dbg(dummy_dev(dum_hcd), "ep %s halted, urb %p\n", in dummy_timer()
1911 value = handle_control_request(dum_hcd, urb, &setup, in dummy_timer()
1972 total -= transfer(dum_hcd, urb, ep, limit, &status); in dummy_timer()
1986 usb_hcd_unlink_urb_from_ep(dummy_hcd_to_hcd(dum_hcd), urb); in dummy_timer()
1988 usb_hcd_giveback_urb(dummy_hcd_to_hcd(dum_hcd), urb, status); in dummy_timer()
1994 if (list_empty(&dum_hcd->urbp_list)) { in dummy_timer()
1995 usb_put_dev(dum_hcd->udev); in dummy_timer()
1996 dum_hcd->udev = NULL; in dummy_timer()
1997 } else if (dum_hcd->rh_state == DUMMY_RH_RUNNING) { in dummy_timer()
1999 mod_timer(&dum_hcd->timer, jiffies + msecs_to_jiffies(1)); in dummy_timer()
2016 struct dummy_hcd *dum_hcd; in dummy_hub_status() local
2020 dum_hcd = hcd_to_dummy_hcd(hcd); in dummy_hub_status()
2022 spin_lock_irqsave(&dum_hcd->dum->lock, flags); in dummy_hub_status()
2026 if (dum_hcd->resuming && time_after_eq(jiffies, dum_hcd->re_timeout)) { in dummy_hub_status()
2027 dum_hcd->port_status |= (USB_PORT_STAT_C_SUSPEND << 16); in dummy_hub_status()
2028 dum_hcd->port_status &= ~USB_PORT_STAT_SUSPEND; in dummy_hub_status()
2029 set_link_state(dum_hcd); in dummy_hub_status()
2032 if ((dum_hcd->port_status & PORT_C_MASK) != 0) { in dummy_hub_status()
2034 dev_dbg(dummy_dev(dum_hcd), "port status 0x%08x has changes\n", in dummy_hub_status()
2035 dum_hcd->port_status); in dummy_hub_status()
2037 if (dum_hcd->rh_state == DUMMY_RH_SUSPENDED) in dummy_hub_status()
2041 spin_unlock_irqrestore(&dum_hcd->dum->lock, flags); in dummy_hub_status()
2101 struct dummy_hcd *dum_hcd; in dummy_hub_control() local
2108 dum_hcd = hcd_to_dummy_hcd(hcd); in dummy_hub_control()
2110 spin_lock_irqsave(&dum_hcd->dum->lock, flags); in dummy_hub_control()
2118 dev_dbg(dummy_dev(dum_hcd), in dummy_hub_control()
2123 if (dum_hcd->port_status & USB_PORT_STAT_SUSPEND) { in dummy_hub_control()
2125 dum_hcd->resuming = 1; in dummy_hub_control()
2126 dum_hcd->re_timeout = jiffies + in dummy_hub_control()
2131 dev_dbg(dummy_dev(dum_hcd), "power-off\n"); in dummy_hub_control()
2133 dum_hcd->port_status &= ~USB_SS_PORT_STAT_POWER; in dummy_hub_control()
2135 dum_hcd->port_status &= ~USB_PORT_STAT_POWER; in dummy_hub_control()
2136 set_link_state(dum_hcd); in dummy_hub_control()
2147 dum_hcd->port_status &= ~(1 << wValue); in dummy_hub_control()
2148 set_link_state(dum_hcd); in dummy_hub_control()
2159 dev_dbg(dummy_dev(dum_hcd), in dummy_hub_control()
2191 if (dum_hcd->resuming && in dummy_hub_control()
2192 time_after_eq(jiffies, dum_hcd->re_timeout)) { in dummy_hub_control()
2193 dum_hcd->port_status |= (USB_PORT_STAT_C_SUSPEND << 16); in dummy_hub_control()
2194 dum_hcd->port_status &= ~USB_PORT_STAT_SUSPEND; in dummy_hub_control()
2196 if ((dum_hcd->port_status & USB_PORT_STAT_RESET) != 0 && in dummy_hub_control()
2197 time_after_eq(jiffies, dum_hcd->re_timeout)) { in dummy_hub_control()
2198 dum_hcd->port_status |= (USB_PORT_STAT_C_RESET << 16); in dummy_hub_control()
2199 dum_hcd->port_status &= ~USB_PORT_STAT_RESET; in dummy_hub_control()
2200 if (dum_hcd->dum->pullup) { in dummy_hub_control()
2201 dum_hcd->port_status |= USB_PORT_STAT_ENABLE; in dummy_hub_control()
2204 switch (dum_hcd->dum->gadget.speed) { in dummy_hub_control()
2206 dum_hcd->port_status |= in dummy_hub_control()
2210 dum_hcd->dum->gadget.ep0-> in dummy_hub_control()
2212 dum_hcd->port_status |= in dummy_hub_control()
2221 set_link_state(dum_hcd); in dummy_hub_control()
2222 ((__le16 *) buf)[0] = cpu_to_le16(dum_hcd->port_status); in dummy_hub_control()
2223 ((__le16 *) buf)[1] = cpu_to_le16(dum_hcd->port_status >> 16); in dummy_hub_control()
2232 dev_dbg(dummy_dev(dum_hcd), in dummy_hub_control()
2246 dev_dbg(dummy_dev(dum_hcd), in dummy_hub_control()
2255 dev_dbg(dummy_dev(dum_hcd), in dummy_hub_control()
2260 if (dum_hcd->active) { in dummy_hub_control()
2261 dum_hcd->port_status |= USB_PORT_STAT_SUSPEND; in dummy_hub_control()
2266 set_link_state(dum_hcd); in dummy_hub_control()
2268 & dum_hcd->dum->devstatus) != 0) in dummy_hub_control()
2269 dev_dbg(dummy_dev(dum_hcd), in dummy_hub_control()
2275 dum_hcd->port_status |= USB_SS_PORT_STAT_POWER; in dummy_hub_control()
2277 dum_hcd->port_status |= USB_PORT_STAT_POWER; in dummy_hub_control()
2278 set_link_state(dum_hcd); in dummy_hub_control()
2283 dev_dbg(dummy_dev(dum_hcd), in dummy_hub_control()
2290 if (!(dum_hcd->port_status & USB_PORT_STAT_CONNECTION)) in dummy_hub_control()
2294 dum_hcd->port_status = in dummy_hub_control()
2299 dum_hcd->port_status &= ~(USB_PORT_STAT_ENABLE in dummy_hub_control()
2302 dum_hcd->port_status |= USB_PORT_STAT_RESET; in dummy_hub_control()
2308 dum_hcd->dum->devstatus &= in dummy_hub_control()
2314 dum_hcd->re_timeout = jiffies + msecs_to_jiffies(50); in dummy_hub_control()
2315 set_link_state(dum_hcd); in dummy_hub_control()
2332 dev_dbg(dummy_dev(dum_hcd), in dummy_hub_control()
2342 dev_dbg(dummy_dev(dum_hcd), in dummy_hub_control()
2349 dev_dbg(dummy_dev(dum_hcd), in dummy_hub_control()
2356 spin_unlock_irqrestore(&dum_hcd->dum->lock, flags); in dummy_hub_control()
2358 if ((dum_hcd->port_status & PORT_C_MASK) != 0) in dummy_hub_control()
2365 struct dummy_hcd *dum_hcd = hcd_to_dummy_hcd(hcd); in dummy_bus_suspend() local
2369 spin_lock_irq(&dum_hcd->dum->lock); in dummy_bus_suspend()
2370 dum_hcd->rh_state = DUMMY_RH_SUSPENDED; in dummy_bus_suspend()
2371 set_link_state(dum_hcd); in dummy_bus_suspend()
2373 spin_unlock_irq(&dum_hcd->dum->lock); in dummy_bus_suspend()
2379 struct dummy_hcd *dum_hcd = hcd_to_dummy_hcd(hcd); in dummy_bus_resume() local
2384 spin_lock_irq(&dum_hcd->dum->lock); in dummy_bus_resume()
2388 dum_hcd->rh_state = DUMMY_RH_RUNNING; in dummy_bus_resume()
2389 set_link_state(dum_hcd); in dummy_bus_resume()
2390 if (!list_empty(&dum_hcd->urbp_list)) in dummy_bus_resume()
2391 mod_timer(&dum_hcd->timer, jiffies); in dummy_bus_resume()
2394 spin_unlock_irq(&dum_hcd->dum->lock); in dummy_bus_resume()
2448 struct dummy_hcd *dum_hcd = hcd_to_dummy_hcd(hcd); in urbs_show() local
2453 spin_lock_irqsave(&dum_hcd->dum->lock, flags); in urbs_show()
2454 list_for_each_entry(urbp, &dum_hcd->urbp_list, urbp_list) { in urbs_show()
2461 spin_unlock_irqrestore(&dum_hcd->dum->lock, flags); in urbs_show()
2467 static int dummy_start_ss(struct dummy_hcd *dum_hcd) in dummy_start_ss() argument
2469 timer_setup(&dum_hcd->timer, dummy_timer, 0); in dummy_start_ss()
2470 dum_hcd->rh_state = DUMMY_RH_RUNNING; in dummy_start_ss()
2471 dum_hcd->stream_en_ep = 0; in dummy_start_ss()
2472 INIT_LIST_HEAD(&dum_hcd->urbp_list); in dummy_start_ss()
2473 dummy_hcd_to_hcd(dum_hcd)->power_budget = POWER_BUDGET_3; in dummy_start_ss()
2474 dummy_hcd_to_hcd(dum_hcd)->state = HC_STATE_RUNNING; in dummy_start_ss()
2475 dummy_hcd_to_hcd(dum_hcd)->uses_new_polling = 1; in dummy_start_ss()
2477 dummy_hcd_to_hcd(dum_hcd)->self.otg_port = 1; in dummy_start_ss()
2482 return device_create_file(dummy_dev(dum_hcd), &dev_attr_urbs); in dummy_start_ss()
2487 struct dummy_hcd *dum_hcd = hcd_to_dummy_hcd(hcd); in dummy_start() local
2495 return dummy_start_ss(dum_hcd); in dummy_start()
2497 spin_lock_init(&dum_hcd->dum->lock); in dummy_start()
2498 timer_setup(&dum_hcd->timer, dummy_timer, 0); in dummy_start()
2499 dum_hcd->rh_state = DUMMY_RH_RUNNING; in dummy_start()
2501 INIT_LIST_HEAD(&dum_hcd->urbp_list); in dummy_start()
2512 return device_create_file(dummy_dev(dum_hcd), &dev_attr_urbs); in dummy_start()
2558 struct dummy_hcd *dum_hcd = hcd_to_dummy_hcd(hcd); in dummy_alloc_streams() local
2568 spin_lock_irqsave(&dum_hcd->dum->lock, flags); in dummy_alloc_streams()
2571 if ((1 << index) & dum_hcd->stream_en_ep) { in dummy_alloc_streams()
2581 dev_dbg(dummy_dev(dum_hcd), "Ep 0x%x only supports %u " in dummy_alloc_streams()
2591 dum_hcd->stream_en_ep |= 1 << index; in dummy_alloc_streams()
2592 set_max_streams_for_pipe(dum_hcd, in dummy_alloc_streams()
2596 spin_unlock_irqrestore(&dum_hcd->dum->lock, flags); in dummy_alloc_streams()
2605 struct dummy_hcd *dum_hcd = hcd_to_dummy_hcd(hcd); in dummy_free_streams() local
2611 spin_lock_irqsave(&dum_hcd->dum->lock, flags); in dummy_free_streams()
2614 if (!((1 << index) & dum_hcd->stream_en_ep)) { in dummy_free_streams()
2622 dum_hcd->stream_en_ep &= ~(1 << index); in dummy_free_streams()
2623 set_max_streams_for_pipe(dum_hcd, in dummy_free_streams()
2628 spin_unlock_irqrestore(&dum_hcd->dum->lock, flags); in dummy_free_streams()
2727 struct dummy_hcd *dum_hcd; in dummy_hcd_suspend() local
2733 dum_hcd = hcd_to_dummy_hcd(hcd); in dummy_hcd_suspend()
2734 if (dum_hcd->rh_state == DUMMY_RH_RUNNING) { in dummy_hcd_suspend()