Lines Matching refs:T
337 fn config_space<T>(&self) -> Result<NonNull<T>, Error> { in config_space() argument
339 if size_of::<T>() > config_space.len() * size_of::<u32>() { in config_space()
341 } else if align_of::<T>() > 4 { in config_space()
345 align_of::<T>() in config_space()
475 fn get_bar_region<T>( in get_bar_region()
478 ) -> Result<NonNull<T>, VirtioPciError> { in get_bar_region() argument
487 || size_of::<T>() > struct_info.length as usize in get_bar_region()
495 if vaddr % align_of::<T>() != 0 { in get_bar_region()
498 alignment: align_of::<T>(), in get_bar_region()
507 fn get_bar_region_slice<T>( in get_bar_region_slice()
510 ) -> Result<NonNull<[T]>, VirtioPciError> { in get_bar_region_slice() argument
511 let ptr = get_bar_region::<T>(device_bar, struct_info)?; in get_bar_region_slice()
513 ptr::slice_from_raw_parts_mut(ptr.as_ptr(), struct_info.length as usize / size_of::<T>()); in get_bar_region_slice()