Searched refs:slot (Results 1 – 3 of 3) sorted by relevance
/DragonOS-0.1.8/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.8/kernel/src/driver/disk/ahci/ |
D | ahcidisk.rs | 72 let slot = port.find_cmdslot().unwrap_or(u32::MAX); in read_at() localVariable 74 if slot == u32::MAX { in read_at() 82 + slot as usize * size_of::<HbaCmdHeader>() as usize, in read_at() 190 volatile_set_bit!(port.ci, 1 << slot, true); // Issue command in read_at() 194 if (volatile_read!(port.ci) & (1 << slot)) == 0 { in read_at() 231 let slot = port.find_cmdslot().unwrap_or(u32::MAX); in write_at() localVariable 233 if slot == u32::MAX { in write_at() 242 + slot as usize * size_of::<HbaCmdHeader>() as usize, in write_at() 337 volatile_set_bit!(port.ci, 1 << slot, true); // Issue command in write_at() 341 if (volatile_read!(port.ci) & (1 << slot)) == 0 { in write_at()
|