Lines Matching refs:slot_id
364 int slot_id; in xhci_find_slot_id_by_port() local
368 slot_id = 0; in xhci_find_slot_id_by_port()
375 slot_id = i; in xhci_find_slot_id_by_port()
380 return slot_id; in xhci_find_slot_id_by_port()
389 static int xhci_stop_device(struct xhci_hcd *xhci, int slot_id, int suspend) in xhci_stop_device() argument
398 virt_dev = xhci->devs[slot_id]; in xhci_stop_device()
427 ret = xhci_queue_stop_endpoint(xhci, command, slot_id, in xhci_stop_device()
436 ret = xhci_queue_stop_endpoint(xhci, cmd, slot_id, 0, suspend); in xhci_stop_device()
462 void xhci_ring_device(struct xhci_hcd *xhci, int slot_id) in xhci_ring_device() argument
468 ep = &xhci->devs[slot_id]->eps[i]; in xhci_ring_device()
472 xhci_ring_ep_doorbell(xhci, slot_id, i, s); in xhci_ring_device()
474 xhci_ring_ep_doorbell(xhci, slot_id, i, 0); in xhci_ring_device()
828 int slot_id; in xhci_handle_usb2_port_link_resume() local
884 slot_id = xhci_find_slot_id_by_port(hcd, xhci, in xhci_handle_usb2_port_link_resume()
886 if (!slot_id) { in xhci_handle_usb2_port_link_resume()
891 xhci_ring_device(xhci, slot_id); in xhci_handle_usb2_port_link_resume()
1103 int slot_id; in xhci_hub_control() local
1226 slot_id = xhci_find_slot_id_by_port(hcd, xhci, in xhci_hub_control()
1228 if (!slot_id) { in xhci_hub_control()
1234 xhci_stop_device(xhci, slot_id, 1); in xhci_hub_control()
1361 slot_id = xhci_find_slot_id_by_port(hcd, xhci, in xhci_hub_control()
1363 if (slot_id) { in xhci_hub_control()
1368 xhci_stop_device(xhci, slot_id, 1); in xhci_hub_control()
1482 slot_id = xhci_find_slot_id_by_port(hcd, xhci, in xhci_hub_control()
1484 if (!slot_id) { in xhci_hub_control()
1488 xhci_ring_device(xhci, slot_id); in xhci_hub_control()
1717 int slot_id; in xhci_bus_suspend() local
1719 slot_id = xhci_find_slot_id_by_port(hcd, xhci, in xhci_bus_suspend()
1721 if (slot_id) { in xhci_bus_suspend()
1723 xhci_stop_device(xhci, slot_id, 1); in xhci_bus_suspend()
1773 int slot_id; in xhci_bus_resume() local
1866 slot_id = xhci_find_slot_id_by_port(hcd, xhci, port_index + 1); in xhci_bus_resume()
1867 if (slot_id) in xhci_bus_resume()
1868 xhci_ring_device(xhci, slot_id); in xhci_bus_resume()