pub struct DeviceDma { /* private fields */ }Implementations§
Source§impl DeviceDma
impl DeviceDma
pub const fn new(info: DmaDeviceInfo, op: &'static dyn DmaOp) -> Self
pub fn with_constraints(&self, constraints: DmaConstraints) -> Self
pub const fn info(&self) -> DmaDeviceInfo
pub fn page_size(&self) -> usize
pub fn coherent_array_zero<T: DmaPod>( &self, len: usize, ) -> Result<CoherentArray<T>, DmaError>
pub fn coherent_array_zero_with_align<T: DmaPod>( &self, len: usize, align: usize, ) -> Result<CoherentArray<T>, DmaError>
pub fn contiguous_array_zero<T: DmaPod>( &self, len: usize, direction: DmaDirection, ) -> Result<ContiguousArray<T>, DmaError>
pub fn contiguous_array_zero_with_align<T: DmaPod>( &self, len: usize, align: usize, direction: DmaDirection, ) -> Result<ContiguousArray<T>, DmaError>
pub fn coherent_box_zero<T: DmaPod>(&self) -> Result<CoherentBox<T>, DmaError>
pub fn coherent_box_zero_with_align<T: DmaPod>( &self, align: usize, ) -> Result<CoherentBox<T>, DmaError>
pub fn contiguous_box_zero<T: DmaPod>( &self, direction: DmaDirection, ) -> Result<ContiguousBox<T>, DmaError>
pub fn contiguous_box_zero_with_align<T: DmaPod>( &self, align: usize, direction: DmaDirection, ) -> Result<ContiguousBox<T>, DmaError>
pub fn map_streaming_slice<T: DmaPod>( &self, buff: &mut [T], align: usize, direction: DmaDirection, ) -> Result<StreamingMap<T>, DmaError>
pub fn map_streaming_slice_for_device<T: DmaPod>( &self, buff: &mut [T], align: usize, direction: DmaDirection, ) -> Result<StreamingMap<T>, DmaError>
pub fn contiguous_buffer_pool( &self, layout: Layout, direction: DmaDirection, cap: usize, ) -> ContiguousBufferPool
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DeviceDma
impl !UnwindSafe for DeviceDma
impl Freeze for DeviceDma
impl Send for DeviceDma
impl Sync for DeviceDma
impl Unpin for DeviceDma
impl UnsafeUnpin for DeviceDma
Blanket Implementations§
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