Lines Matching refs:struct_info
124 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()
479 + struct_info.offset as usize; in get_bar_region()
495 struct_info: &VirtioCapabilityInfo, in get_bar_region_slice()
497 let ptr = get_bar_region::<T>(device_bar, struct_info)?; in get_bar_region_slice()
502 struct_info.length as usize / size_of::<T>(), in get_bar_region_slice()