Lines Matching refs:CoherentAllocation
376 pub struct CoherentAllocation<T: AsBytes + FromBytes> { struct
384 impl<T: AsBytes + FromBytes> CoherentAllocation<T> { implementation
403 ) -> Result<CoherentAllocation<T>> { in alloc_attrs()
445 ) -> Result<CoherentAllocation<T>> { in alloc_coherent()
446 CoherentAllocation::alloc_attrs(dev, count, gfp_flags, Attrs(0)) in alloc_coherent()
645 impl<T: AsBytes + FromBytes> Drop for CoherentAllocation<T> { implementation
665 unsafe impl<T: AsBytes + FromBytes + Send> Send for CoherentAllocation<T> {} implementation
695 $crate::dma::CoherentAllocation::as_ptr(dma), $($proj)*
698 unsafe { $crate::dma::CoherentAllocation::field_read(dma, ptr) }
732 mut $crate::dma::CoherentAllocation::as_mut_ptr(dma), $($proj)*
736 unsafe { $crate::dma::CoherentAllocation::field_write(dma, ptr, val) }