Lines Matching refs:CoherentAllocation
359 pub struct CoherentAllocation<T: AsBytes + FromBytes> { struct
367 impl<T: AsBytes + FromBytes> CoherentAllocation<T> { argument
386 ) -> Result<CoherentAllocation<T>> { in alloc_attrs()
428 ) -> Result<CoherentAllocation<T>> { in alloc_coherent()
429 CoherentAllocation::alloc_attrs(dev, count, gfp_flags, Attrs(0)) in alloc_coherent()
632 impl<T: AsBytes + FromBytes> Drop for CoherentAllocation<T> { implementation
652 unsafe impl<T: AsBytes + FromBytes + Send> Send for CoherentAllocation<T> {} implementation
678 let item = $crate::dma::CoherentAllocation::item_from_index(&$dma, $idx)?;
685 $crate::dma::CoherentAllocation::field_read(&$dma, ptr_field)
728 let item = $crate::dma::CoherentAllocation::item_from_index(&$dma, $idx)?;
730 unsafe { $crate::dma::CoherentAllocation::field_write(&$dma, item, $val) }
736 let item = $crate::dma::CoherentAllocation::item_from_index(&$dma, $idx)?;
742 $crate::dma::CoherentAllocation::field_write(&$dma, ptr_field, $val)