Home
last modified time | relevance | path

Searched refs:slot (Results 1 – 4 of 4) sorted by relevance

/DragonOS-0.1.7/kernel/src/driver/pci/
Dpci.c40 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 …]
Dpci.h179 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.7/kernel/src/driver/disk/ahci/
Dahcidisk.rs71 let slot = port.find_cmdslot().unwrap_or(u32::MAX); in read_at() localVariable
73 if slot == u32::MAX { in read_at()
81 + slot as usize * size_of::<HbaCmdHeader>() as usize, in read_at()
167 volatile_set_bit!(port.ci, 1 << slot, true); // Issue command in read_at()
171 if (volatile_read!(port.ci) & (1 << slot)) == 0 { in read_at()
204 let slot = port.find_cmdslot().unwrap_or(u32::MAX); in write_at() localVariable
206 if slot == u32::MAX { in write_at()
215 + slot as usize * size_of::<HbaCmdHeader>() as usize, in write_at()
289 volatile_set_bit!(port.ci, 1 << slot, true); // Issue command in write_at()
293 if (volatile_read!(port.ci) & (1 << slot)) == 0 { in write_at()
/DragonOS-0.1.7/kernel/src/driver/usb/xhci/
Dxhci.c1006 struct xhci_slot_context_t slot; in xhci_set_address() local
1017 __read_from_slot(&slot, slot_vaddr); in xhci_set_address()
1020 …kdebug("slot.slot_state=%d, speed=%d, root hub port num=%d", slot.slot_state, slot.speed, slot.rh_… in xhci_set_address()
1023 __write_slot(input_ctx_buffer + xhci_hc[id].context_size, &slot); in xhci_set_address()
1733 struct xhci_slot_context_t slot; in xhci_configure_endpoint() local
1742 __read_from_slot(&slot, slot_context_vaddr); in xhci_configure_endpoint()
1744 slot.entries = (ep_num > slot.entries) ? ep_num : slot.entries; in xhci_configure_endpoint()
1746 __write_slot(input_ctx_buffer + xhci_hc[id].context_size, &slot); in xhci_configure_endpoint()