Searched refs:CoherentAllocation (Results 1 – 2 of 2) sorted by relevance
| /linux-6.15/rust/kernel/ |
| H A D | dma.rs | 132 pub struct CoherentAllocation<T: AsBytes + FromBytes> { struct 140 impl<T: AsBytes + FromBytes> CoherentAllocation<T> { implementation 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)?; [all …]
|
| /linux-6.15/samples/rust/ |
| H A D | rust_dma.rs | 7 use kernel::{bindings, device::Core, dma::CoherentAllocation, pci, prelude::*, types::ARef}; 11 ca: CoherentAllocation<MyStruct>, 54 let ca: CoherentAllocation<MyStruct> = in probe() 55 CoherentAllocation::alloc_coherent(pdev.as_ref(), TEST_VALUES.len(), GFP_KERNEL)?; in probe()
|