Searched refs:device_function (Results 1 – 3 of 3) sorted by relevance
/DragonOS-0.1.5/kernel/src/driver/pci/ |
D | pci.rs | 78 pub fn capabilities_offset(device_function: DeviceFunction) -> Option<u8> { in capabilities_offset() 81 device_function.bus, in capabilities_offset() 82 device_function.device, in capabilities_offset() 83 device_function.function, in capabilities_offset() 91 device_function.bus, in capabilities_offset() 92 device_function.device, in capabilities_offset() 93 device_function.function, in capabilities_offset() 310 pub fn pci_bar_init(device_function: DeviceFunction) -> Result<PciDeviceBar, PciError> { in pci_bar_init() 321 device_function.bus, in pci_bar_init() 322 device_function.device, in pci_bar_init() [all …]
|
/DragonOS-0.1.5/kernel/src/driver/virtio/ |
D | transport_pci.rs | 78 device_function: DeviceFunction, field 95 pub fn new<H: Hal>(device_function: DeviceFunction) -> Result<Self, VirtioPciError> { in new() 98 device_function.bus, in new() 99 device_function.device, in new() 100 device_function.function, in new() 119 device_function: device_function, in new() 120 next_capability_offset: capabilities_offset(device_function), in new() 122 let device_bar = pci_bar_init(device_function)?; in new() 136 device_function.bus, in new() 137 device_function.device, in new() [all …]
|
D | virtio.rs | 19 for device_function in virtio_list { in c_virtio_probe() 20 match PciTransport::new::<HalImpl>(*device_function) { in c_virtio_probe() 42 for device_function in virtio_list { in virtio_probe() 43 match PciTransport::new::<HalImpl>(*device_function) { in virtio_probe() 129 let device_function = DeviceFunction { in virtio_device_search() localVariable 134 virtio_list.push_back(Box::new(device_function)); in virtio_device_search()
|