Lines Matching refs:Result
10 error::{to_result, Result},
42 unsafe fn dma_set_mask(&self, mask: DmaMask) -> Result { in dma_set_mask() argument
59 unsafe fn dma_set_coherent_mask(&self, mask: DmaMask) -> Result { in dma_set_coherent_mask() argument
78 unsafe fn dma_set_mask_and_coherent(&self, mask: DmaMask) -> Result { in dma_set_mask_and_coherent() argument
154 pub const fn try_new(n: u32) -> Result<Self> { in try_new()
385 ) -> Result<CoherentAllocation<T>> { in alloc_attrs()
427 ) -> Result<CoherentAllocation<T>> { in alloc_coherent()
467 pub fn dma_handle_with_offset(&self, offset: usize) -> Result<DmaAddress> { in dma_handle_with_offset()
479 fn validate_range(&self, offset: usize, count: usize) -> Result { in validate_range() argument
499 pub unsafe fn as_slice(&self, offset: usize, count: usize) -> Result<&[T]> { in as_slice()
519 pub unsafe fn as_slice_mut(&mut self, offset: usize, count: usize) -> Result<&mut [T]> { in as_slice_mut()
551 pub unsafe fn write(&mut self, src: &[T], offset: usize) -> Result { in write() argument
573 pub fn item_from_index(&self, offset: usize) -> Result<*mut T> { in item_from_index()
678 (|| -> ::core::result::Result<_, $crate::error::Error> {
685 ::core::result::Result::Ok(
728 (|| -> ::core::result::Result<_, $crate::error::Error> {
732 ::core::result::Result::Ok(())
736 (|| -> ::core::result::Result<_, $crate::error::Error> {
745 ::core::result::Result::Ok(())