Lines Matching refs:CoherentAllocation
132 pub struct CoherentAllocation<T: AsBytes + FromBytes> { struct
140 impl<T: AsBytes + FromBytes> CoherentAllocation<T> { argument
159 ) -> Result<CoherentAllocation<T>> { in alloc_attrs()
200 ) -> Result<CoherentAllocation<T>> { in alloc_coherent()
201 CoherentAllocation::alloc_attrs(dev, count, gfp_flags, Attrs(0)) in alloc_coherent()
286 impl<T: AsBytes + FromBytes> Drop for CoherentAllocation<T> { implementation
306 unsafe impl<T: AsBytes + FromBytes + Send> Send for CoherentAllocation<T> {} implementation
331 let item = $crate::dma::CoherentAllocation::item_from_index(&$dma, $idx)?;
337 $crate::dma::CoherentAllocation::field_read(&$dma, ptr_field)
377 let item = $crate::dma::CoherentAllocation::item_from_index(&$dma, $idx)?;
379 unsafe { $crate::dma::CoherentAllocation::field_write(&$dma, item, $val) }
382 let item = $crate::dma::CoherentAllocation::item_from_index(&$dma, $idx)?;
388 $crate::dma::CoherentAllocation::field_write(&$dma, ptr_field, $val)