Searched refs:KnownSize (Results 1 – 4 of 4) sorted by relevance
| /linux/rust/kernel/ |
| H A D | io.rs | 17 KnownSize, // 86 impl<const SIZE: usize> KnownSize for Region<SIZE> { 162 impl<T: ?Sized + KnownSize> MmioRaw<T> { 172 KnownSize::size(self.ptr) in size() 219 if !offset_valid::<U>(ptr.addr(), offset, KnownSize::size(ptr)) { in io_view() 243 type View<'a, T: ?Sized + KnownSize>: IoBase<'a, Backend = Self, Target = T>; 249 fn as_ptr<'a, T: ?Sized + KnownSize>(view: Self::View<'a, T>) -> *mut T; in as_ptr() 258 unsafe fn project_view<'a, T: ?Sized + KnownSize, U: ?Sized + KnownSize>( in project_view() argument 402 type Target: ?Sized + KnownSize; 419 KnownSize::size(Self::Backend::as_ptr(self.as_view())) in size() [all …]
|
| H A D | dma.rs | 26 ptr::KnownSize, 418 pub struct CoherentBox<T: KnownSize + ?Sized>(Coherent<T>); in zeroed_slice_with_attrs() 544 impl<T: KnownSize + ?Sized> Deref for CoherentBox<T> { in deref() 557 impl<T: AsBytes + FromBytes + KnownSize + ?Sized> DerefMut for CoherentBox<T> { in deref_mut() 568 impl<T: AsBytes + FromBytes + KnownSize + ?Sized> From<CoherentBox<T>> for Coherent<T> { 603 pub struct Coherent<T: KnownSize + ?Sized> { 610 impl<T: KnownSize + ?Sized> Coherent<T> { 925 impl<T: KnownSize + ?Sized> Drop for Coherent<T> { in from_slice_with_attrs() 945 unsafe impl<T: KnownSize + Send + ?Sized> Send for Coherent<T> {} in from_slice() 951 unsafe impl<T: KnownSize [all...] |
| H A D | ptr.rs | 237 pub trait KnownSize { interface 248 impl<T> KnownSize for T { 258 impl<T> KnownSize for [T] { 249 impl<T> KnownSize for [T] { global() impl
|
| H A D | uaccess.rs | 15 ptr::KnownSize, 528 pub fn write_dma<T: KnownSize + AsBytes + ?Sized>( in write_dma()
|