Lines Matching refs:Result
10 error::{to_result, Result},
31 unsafe fn dma_set_mask(&self, mask: DmaMask) -> Result { in dma_set_mask() argument
48 unsafe fn dma_set_coherent_mask(&self, mask: DmaMask) -> Result { in dma_set_coherent_mask() argument
67 unsafe fn dma_set_mask_and_coherent(&self, mask: DmaMask) -> Result { in dma_set_mask_and_coherent() argument
143 pub const fn try_new(n: u32) -> Result<Self> { in try_new()
303 ) -> Result<CoherentAllocation<T>> { in alloc_attrs()
347 ) -> Result<CoherentAllocation<T>> { in alloc_coherent()
387 pub fn dma_handle_with_offset(&self, offset: usize) -> Result<bindings::dma_addr_t> { in dma_handle_with_offset()
399 fn validate_range(&self, offset: usize, count: usize) -> Result { in validate_range() argument
419 pub unsafe fn as_slice(&self, offset: usize, count: usize) -> Result<&[T]> { in as_slice()
439 pub unsafe fn as_slice_mut(&mut self, offset: usize, count: usize) -> Result<&mut [T]> { in as_slice_mut()
471 pub unsafe fn write(&mut self, src: &[T], offset: usize) -> Result { in write() argument
489 pub fn item_from_index(&self, offset: usize) -> Result<*mut T> { in item_from_index()
594 (|| -> ::core::result::Result<_, $crate::error::Error> {
601 ::core::result::Result::Ok(
644 (|| -> ::core::result::Result<_, $crate::error::Error> {
648 ::core::result::Result::Ok(())
652 (|| -> ::core::result::Result<_, $crate::error::Error> {
661 ::core::result::Result::Ok(())