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()
1100 int slot_id; in xhci_hub_control() local
1223 slot_id = xhci_find_slot_id_by_port(hcd, xhci, in xhci_hub_control()
1225 if (!slot_id) { in xhci_hub_control()
1231 xhci_stop_device(xhci, slot_id, 1); in xhci_hub_control()
1358 slot_id = xhci_find_slot_id_by_port(hcd, xhci, in xhci_hub_control()
1360 if (slot_id) { in xhci_hub_control()
1365 xhci_stop_device(xhci, slot_id, 1); in xhci_hub_control()
1479 slot_id = xhci_find_slot_id_by_port(hcd, xhci, in xhci_hub_control()
1481 if (!slot_id) { in xhci_hub_control()
1485 xhci_ring_device(xhci, slot_id); in xhci_hub_control()
1703 int slot_id; in xhci_bus_suspend() local
1705 slot_id = xhci_find_slot_id_by_port(hcd, xhci, in xhci_bus_suspend()
1707 if (slot_id) { in xhci_bus_suspend()
1709 xhci_stop_device(xhci, slot_id, 1); in xhci_bus_suspend()
1759 int slot_id; in xhci_bus_resume() local
1852 slot_id = xhci_find_slot_id_by_port(hcd, xhci, port_index + 1); in xhci_bus_resume()
1853 if (slot_id) in xhci_bus_resume()
1854 xhci_ring_device(xhci, slot_id); in xhci_bus_resume()