Lines Matching defs:as_ref
62 // - By the type invariant of `device::Device`, `self.as_ref().as_raw()` is valid.
65 to_result(unsafe { bindings::dma_set_mask(self.as_ref().as_raw(), mask.value()) })
79 // - By the type invariant of `device::Device`, `self.as_ref().as_raw()` is valid.
82 to_result(unsafe { bindings::dma_set_coherent_mask(self.as_ref().as_raw(), mask.value()) })
98 // - By the type invariant of `device::Device`, `self.as_ref().as_raw()` is valid.
102 bindings::dma_set_mask_and_coherent(self.as_ref().as_raw(), mask.value())
117 // - By the type invariant of `device::Device`, `self.as_ref().as_raw()` is valid.
120 unsafe { bindings::dma_set_max_seg_size(self.as_ref().as_raw(), size) }
545 unsafe { self.0.as_ref() }
638 pub unsafe fn as_ref(&self) -> &T {