Searched refs:slot (Results 1 – 4 of 4) sorted by relevance
/DragonOS-0.1.3/kernel/src/driver/pci/ |
D | pci.c | 40 uint32_t pci_read_config(uchar bus, uchar slot, uchar func, uchar offset) in pci_read_config() argument 43 uint lslot = (uint)slot; in pci_read_config() 64 uint pci_write_config(uchar bus, uchar slot, uchar func, uchar offset, uint32_t data) in pci_write_config() argument 67 uint lslot = (uint)slot; in pci_write_config() 88 …ice_header(struct pci_device_structure_general_device_t *header, uchar bus, uchar slot, uchar func) in pci_read_general_device_header() argument 91 header->BAR0 = pci_read_config(bus, slot, func, 0x10); in pci_read_general_device_header() 92 header->BAR1 = pci_read_config(bus, slot, func, 0x14); in pci_read_general_device_header() 93 header->BAR2 = pci_read_config(bus, slot, func, 0x18); in pci_read_general_device_header() 94 header->BAR3 = pci_read_config(bus, slot, func, 0x1c); in pci_read_general_device_header() 95 header->BAR4 = pci_read_config(bus, slot, func, 0x20); in pci_read_general_device_header() [all …]
|
D | pci.h | 179 uint32_t pci_read_config(uchar bus, uchar slot, uchar func, uchar offset); 190 uint pci_write_config(uchar bus, uchar slot, uchar func, uchar offset, uint32_t data); 201 void *pci_read_header(int *type, uchar bus, uchar slot, uchar func, bool add_to_list);
|
/DragonOS-0.1.3/kernel/src/driver/disk/ahci/ |
D | ahci.c | 343 int slot = ahci_find_cmdslot(port); in ahci_read() local 345 if (slot == -1) in ahci_read() 349 cmdheader += slot; in ahci_read() 403 port->ci = 1 << slot; // Issue command in ahci_read() 413 if ((port->ci & (1 << slot)) == 0) in ahci_read() 438 int slot = ahci_find_cmdslot(port); in ahci_write() local 439 if (slot == -1) in ahci_write() 444 cmdheader += slot; in ahci_write() 492 if ((port->ci & (1 << slot)) == 0) in ahci_write()
|
/DragonOS-0.1.3/kernel/src/driver/usb/xhci/ |
D | xhci.c | 1004 struct xhci_slot_context_t slot; in xhci_set_address() local 1015 __read_from_slot(&slot, slot_vaddr); in xhci_set_address() 1018 …kdebug("slot.slot_state=%d, speed=%d, root hub port num=%d", slot.slot_state, slot.speed, slot.rh_… in xhci_set_address() 1021 __write_slot(input_ctx_buffer + xhci_hc[id].context_size, &slot); in xhci_set_address() 1731 struct xhci_slot_context_t slot; in xhci_configure_endpoint() local 1740 __read_from_slot(&slot, slot_context_vaddr); in xhci_configure_endpoint() 1742 slot.entries = (ep_num > slot.entries) ? ep_num : slot.entries; in xhci_configure_endpoint() 1744 __write_slot(input_ctx_buffer + xhci_hc[id].context_size, &slot); in xhci_configure_endpoint()
|