Lines Matching refs:Device
74 let pdev = unsafe { &*pdev.cast::<Device<device::CoreInternal>>() }; in probe_callback()
90 let pdev = unsafe { &*pdev.cast::<Device<device::CoreInternal>>() }; in remove_callback()
195 dev: &Device<device::Core>, in probe()
209 fn unbind(dev: &Device<device::Core>, this: Pin<&Self>) { in unbind()
225 pub struct Device<Ctx: device::DeviceContext = device::Normal>( struct
230 impl<Ctx: device::DeviceContext> Device<Ctx> { implementation
273 impl Device<Bound> { implementation
293 unsafe impl<Ctx: device::DeviceContext> device::AsBusDevice<Ctx> for Device<Ctx> { implementation
355 impl Device<Bound> { implementation
478 kernel::impl_device_context_deref!(unsafe { Device });
479 kernel::impl_device_context_into_aref!(Device);
481 impl crate::dma::Device for Device<device::Core> {} implementation
484 unsafe impl crate::sync::aref::AlwaysRefCounted for Device { implementation
496 impl<Ctx: device::DeviceContext> AsRef<device::Device<Ctx>> for Device<Ctx> { implementation
497 fn as_ref(&self) -> &device::Device<Ctx> { in as_ref()
503 unsafe { device::Device::from_raw(dev) } in as_ref()
507 impl<Ctx: device::DeviceContext> TryFrom<&device::Device<Ctx>> for &Device<Ctx> { implementation
510 fn try_from(dev: &device::Device<Ctx>) -> Result<Self, Self::Error> { in try_from()
528 unsafe impl Send for Device {} implementation
532 unsafe impl Sync for Device {} implementation