Searched refs:bus_device_function (Results 1 – 4 of 4) sorted by relevance
/DragonOS-0.1.7/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.7/kernel/src/driver/pci/ |
D | pci.rs | 314 &common_header.bus_device_function, in set_command() 345 pub bus_device_function: BusDeviceFunction, field 401 bus_device_function: self.common_header.bus_device_function, in capabilities() 407 match pci_bar_init(common_header.bus_device_function) { in bar_init() 576 fn cam_offset(&self, bus_device_function: BusDeviceFunction, register_offset: u16) -> u32 { in cam_offset() 577 assert!(bus_device_function.valid()); in cam_offset() 578 let bdf = ((bus_device_function.bus - self.bus_begin) as u32) << 8 in cam_offset() 579 | (bus_device_function.device as u32) << 3 in cam_offset() 580 | bus_device_function.function as u32; in cam_offset() 590 pub fn read_config(&self, bus_device_function: BusDeviceFunction, register_offset: u16) -> u32 { in read_config() [all …]
|
/DragonOS-0.1.7/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.7/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()
|