Lines Matching defs:slot_id

22 static zx_status_t xhci_reset_dequeue_ptr_locked(xhci_t* xhci, uint32_t slot_id,
24 xhci_slot_t* slot = &xhci->slots[slot_id];
33 uint32_t control = (slot_id << TRB_SLOT_ID_START) |
49 zx_status_t xhci_reset_endpoint(xhci_t* xhci, uint32_t slot_id, uint8_t ep_address) {
50 xhci_slot_t* slot = &xhci->slots[slot_id];
65 zxlogf(TRACE, "xhci_reset_endpoint %d %d ep_ctx_state %d\n", slot_id, ep_index, ep_ctx_state);
77 uint32_t control = (slot_id << TRB_SLOT_ID_START) |
96 xhci_control_request(xhci, slot_id, USB_DIR_OUT | USB_TYPE_STANDARD | USB_RECIP_ENDPOINT,
105 zx_status_t status = xhci_reset_dequeue_ptr_locked(xhci, slot_id, ep_index);
355 uint32_t slot_id = req->header.device_id;
359 zxlogf(LSPEW, "xhci_queue_transfer slot_id: %d setup: %p ep_index: %d length: %lu\n",
360 slot_id, setup, ep_index, req->header.length);
362 int rh_index = xhci_get_root_hub_index(xhci, slot_id);
367 if (slot_id < 1 || slot_id > xhci->max_slots) {
374 xhci_slot_t* slot = &xhci->slots[slot_id];
428 zx_status_t xhci_cancel_transfers(xhci_t* xhci, uint32_t slot_id, uint32_t ep_index) {
429 zxlogf(TRACE, "xhci_cancel_transfers slot_id: %d ep_index: %d\n", slot_id, ep_index);
431 if (slot_id < 1 || slot_id > xhci->max_slots) {
438 xhci_slot_t* slot = &xhci->slots[slot_id];
462 uint32_t control = (slot_id << TRB_SLOT_ID_START) |
489 status = xhci_reset_dequeue_ptr_locked(xhci, slot_id, ep_index);
517 int xhci_control_request(xhci_t* xhci, uint32_t slot_id, uint8_t request_type, uint8_t request,
520 zxlogf(LTRACE, "xhci_control_request slot_id: %d type: 0x%02X req: %d value: %d index: %d "
521 "length: %d\n", slot_id, request_type, request, value, index, length);
538 req->header.device_id = slot_id;
557 status = xhci_cancel_transfers(xhci, slot_id, 0);
578 zx_status_t xhci_get_descriptor(xhci_t* xhci, uint32_t slot_id, uint8_t type, uint16_t value,
580 return xhci_control_request(xhci, slot_id, USB_DIR_IN | type | USB_RECIP_DEVICE,
590 uint32_t slot_id = READ_FIELD(control, TRB_SLOT_ID_START, TRB_SLOT_ID_BITS);
593 xhci_slot_t* slot = &xhci->slots[slot_id];