Searched refs:bus_device_function (Results 1 – 5 of 5) sorted by relevance
/DragonOS-0.1.8/kernel/src/arch/x86_64/pci/ |
D | pci.rs | 15 fn read_config(bus_device_function: &BusDeviceFunction, offset: u8) -> u32 { in read_config() 17 let address = ((bus_device_function.bus as u32) << 16) in read_config() 18 | ((bus_device_function.device as u32) << 11) in read_config() 19 | ((bus_device_function.function as u32 & 7) << 8) in read_config() 30 fn write_config(bus_device_function: &BusDeviceFunction, offset: u8, data: u32) { in write_config() 31 let address = ((bus_device_function.bus as u32) << 16) in write_config() 32 | ((bus_device_function.device as u32) << 11) in write_config() 33 | ((bus_device_function.function as u32 & 7) << 8) in write_config()
|
/DragonOS-0.1.8/kernel/src/driver/pci/ |
D | pci.rs | 327 &common_header.bus_device_function, in set_command() 380 pub bus_device_function: BusDeviceFunction, field 444 bus_device_function: self.common_header.bus_device_function, in capabilities() 450 match pci_bar_init(common_header.bus_device_function) { in bar_ioremap() 666 fn cam_offset(&self, bus_device_function: BusDeviceFunction, register_offset: u16) -> u32 { in cam_offset() 667 assert!(bus_device_function.valid()); in cam_offset() 668 let bdf = ((bus_device_function.bus - self.bus_begin) as u32) << 8 in cam_offset() 669 | (bus_device_function.device as u32) << 3 in cam_offset() 670 | bus_device_function.function as u32; in cam_offset() 680 pub fn read_config(&self, bus_device_function: BusDeviceFunction, register_offset: u16) -> u32 { in read_config() [all …]
|
D | pci_irq.rs | 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() 157 PciArch::read_config(&self.common_header().bus_device_function, cap_offset); in irq_init() 214 PciArch::read_config(&self.common_header().bus_device_function, cap_offset); in msix_enable() 221 &self.common_header().bus_device_function, in msix_enable() 245 PciArch::read_config(&self.common_header().bus_device_function, cap_offset); in msi_enable() 252 &self.common_header().bus_device_function, in msi_enable() 356 &self.common_header().bus_device_function, in msi_install() 361 &self.common_header().bus_device_function, in msi_install() [all …]
|
/DragonOS-0.1.8/kernel/src/arch/ |
D | mod.rs | 13 fn read_config(bus_device_function: &BusDeviceFunction, offset: u8) -> u32; in read_config() 18 fn write_config(bus_device_function: &BusDeviceFunction, offset: u8, data: u32); in write_config()
|
/DragonOS-0.1.8/kernel/src/driver/virtio/ |
D | transport_pci.rs | 80 bus_device_function: BusDeviceFunction, field 101 let bus_device_function = header.bus_device_function; in new() localVariable 125 bar: PciArch::read_config(&bus_device_function, capability.offset + CAP_BAR_OFFSET) in new() 128 &bus_device_function, in new() 132 &bus_device_function, in new() 144 &bus_device_function, in new() 185 bus_device_function, in new()
|