Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/driver/virtio/
Dtransport_pci.rs124 let struct_info = VirtioCapabilityInfo { in new() localVariable
139 common_cfg = Some(struct_info); in new()
142 notify_cfg = Some(struct_info); in new()
149 isr_cfg = Some(struct_info); in new()
152 device_cfg = Some(struct_info); in new()
461 struct_info: &VirtioCapabilityInfo, in get_bar_region()
463 let bar_info = device_bar.get_bar(struct_info.bar)?; in get_bar_region()
468 return Err(VirtioPciError::BarNotAllocated(struct_info.bar)); in get_bar_region()
470 if struct_info.offset + struct_info.length > bar_size in get_bar_region()
471 || size_of::<T>() > struct_info.length as usize in get_bar_region()
[all …]