Home
last modified time | relevance | path

Searched refs:xhci_hc (Results 1 – 2 of 2) sorted by relevance

/DragonOS-0.1.7/kernel/src/driver/usb/xhci/
Dinternal.h13 #define xhci_read_cap_reg32(id, offset) (__read4b(xhci_hc[id].vbase + (offset)))
14 #define xhci_get_ptr_cap_reg32(id, offset) ((uint32_t *)(xhci_hc[id].vbase + (offset)))
15 #define xhci_write_cap_reg32(id, offset, value) (__write4b(xhci_hc[id].vbase + (offset), (value)))
17 #define xhci_read_cap_reg64(id, offset) (__read8b(xhci_hc[id].vbase + (offset)))
18 #define xhci_get_ptr_reg64(id, offset) ((uint64_t *)(xhci_hc[id].vbase + (offset)))
19 #define xhci_write_cap_reg64(id, offset, value) (__write8b(xhci_hc[id].vbase + (offset), (value)))
21 #define xhci_read_op_reg8(id, offset) (*(uint8_t *)(xhci_hc[id].vbase_op + (offset)))
22 #define xhci_get_ptr_op_reg8(id, offset) ((uint8_t *)(xhci_hc[id].vbase_op + (offset)))
23 #define xhci_write_op_reg8(id, offset, value) (*(uint8_t *)(xhci_hc[id].vbase_op + (offset)) = (uin…
25 #define xhci_read_op_reg32(id, offset) (__read4b(xhci_hc[id].vbase_op + (offset)))
[all …]
Dxhci.c21 static struct xhci_host_controller_t xhci_hc[XHCI_MAX_HOST_CONTROLLERS] = {0}; variable
97 if (xhci_hc[i].pci_dev_hdr == NULL) in xhci_hc_find_available_id()
139 …memcpy((void *)(slot_vaddr + ep_num * xhci_hc[id].context_size), ep, sizeof(struct xhci_ep_context… in __write_ep()
152 …memcpy(ep, (void *)(slot_vaddr + ep_num * xhci_hc[id].context_size), sizeof(struct xhci_ep_context… in __read_from_ep()
189 xhci_write_cap_reg32(id, xhci_hc[id].db_offset + slot_id * sizeof(uint32_t), value); in __xhci_write_doorbell()
226 … __read8b(xhci_hc[id].dcbaap_vaddr + (xhci_hc[id].ports[port_id].slot_id * sizeof(uint64_t)))); in xhci_get_device_context_vaddr()
304 uint64_t current_offset = xhci_hc[id].ext_caps_off; in xhci_hc_stop_legacy()
428 xhci_hc[id].port_num = hcs1.max_ports; in xhci_hc_pair_ports()
432 xhci_hc[id].port_num_u2 = 0; in xhci_hc_pair_ports()
433 xhci_hc[id].port_num_u3 = 0; in xhci_hc_pair_ports()
[all …]