pub struct KernelDmaOp;Trait Implementations§
Source§impl DmaOp for KernelDmaOp
impl DmaOp for KernelDmaOp
fn page_size(&self) -> usize
Source§unsafe fn map_single(
&self,
dma_mask: u64,
addr: NonNull<u8>,
size: NonZeroUsize,
align: usize,
_direction: DmaDirection,
) -> Result<DmaMapHandle, DmaError>
unsafe fn map_single( &self, dma_mask: u64, addr: NonNull<u8>, size: NonZeroUsize, align: usize, _direction: DmaDirection, ) -> Result<DmaMapHandle, DmaError>
将虚拟地址映射到 DMA 地址 Read more
Source§unsafe fn unmap_single(&self, _handle: DmaMapHandle)
unsafe fn unmap_single(&self, _handle: DmaMapHandle)
解除 DMA 映射 Read more
Source§unsafe fn alloc_coherent(
&self,
dma_mask: u64,
layout: Layout,
) -> Option<DmaHandle>
unsafe fn alloc_coherent( &self, dma_mask: u64, layout: Layout, ) -> Option<DmaHandle>
分配 DMA 可访问内存 Read more
Source§unsafe fn dealloc_coherent(&self, handle: DmaHandle)
unsafe fn dealloc_coherent(&self, handle: DmaHandle)
释放 DMA 内存 Read more
fn flush_invalidate(&self, addr: NonNull<u8>, size: usize)
fn prepare_read( &self, handle: &DmaMapHandle, offset: usize, size: usize, direction: DmaDirection, )
fn confirm_write( &self, handle: &DmaMapHandle, offset: usize, size: usize, direction: DmaDirection, )
Auto Trait Implementations§
impl Freeze for KernelDmaOp
impl RefUnwindSafe for KernelDmaOp
impl Send for KernelDmaOp
impl Sync for KernelDmaOp
impl Unpin for KernelDmaOp
impl UnsafeUnpin for KernelDmaOp
impl UnwindSafe for KernelDmaOp
Blanket Implementations§
Source§impl<T> Background for T
impl<T> Background for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more