Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/driver/pci/
Dpci_irq.rs53 cap_offset: u8,
61 cap_offset: u8,
123 if let Some(cap_offset) = self.msix_capability_offset() { in irq_init()
125 PciArch::read_config(&self.common_header().bus_device_function, cap_offset + 4); in irq_init()
128 PciArch::read_config(&self.common_header().bus_device_function, cap_offset + 4); in irq_init()
132 PciArch::read_config(&self.common_header().bus_device_function, cap_offset + 8); in irq_init()
141 cap_offset, in irq_init()
149 cap_offset, in irq_init()
155 if let Some(cap_offset) = self.msi_capability_offset() { in irq_init()
157 PciArch::read_config(&self.common_header().bus_device_function, cap_offset); in irq_init()
[all …]
Dpci.c510 uint32_t cap_offset; in pci_enumerate_capability_list() local
515cap_offset = ((struct pci_device_structure_general_device_t *)pci_dev)->Capabilities_Pointer; in pci_enumerate_capability_list()
519cap_offset = ((struct pci_device_structure_pci_to_pci_bridge_t *)pci_dev)->Capability_Pointer; in pci_enumerate_capability_list()
528 tmp = pci_read_config(pci_dev->bus, pci_dev->device, pci_dev->func, cap_offset); in pci_enumerate_capability_list()
533 cap_offset = (tmp & 0xff00)>>8; in pci_enumerate_capability_list()
540 return cap_offset; in pci_enumerate_capability_list()