Lines Matching refs:Device
100 let pdev = unsafe { &*pdev.cast::<Device<device::CoreInternal>>() }; in probe_callback()
116 let pdev = unsafe { &*pdev.cast::<Device<device::CoreInternal>>() }; in remove_callback()
226 dev: &Device<device::Core>, in probe()
240 fn unbind(dev: &Device<device::Core>, this: Pin<&Self>) { in unbind()
256 pub struct Device<Ctx: device::DeviceContext = device::Normal>( struct
261 impl<Ctx: device::DeviceContext> Device<Ctx> { impl
304 impl Device<Bound> { impl
324 unsafe impl<Ctx: device::DeviceContext> device::AsBusDevice<Ctx> for Device<Ctx> { implementation
386 impl Device<Bound> { implementation
509 kernel::impl_device_context_deref!(unsafe { Device });
510 kernel::impl_device_context_into_aref!(Device);
512 impl crate::dma::Device for Device<device::Core> {} implementation
515 unsafe impl crate::sync::aref::AlwaysRefCounted for Device { implementation
527 impl<Ctx: device::DeviceContext> AsRef<device::Device<Ctx>> for Device<Ctx> { implementation
528 fn as_ref(&self) -> &device::Device<Ctx> { in as_ref()
534 unsafe { device::Device::from_raw(dev) } in as_ref()
538 impl<Ctx: device::DeviceContext> TryFrom<&device::Device<Ctx>> for &Device<Ctx> { implementation
541 fn try_from(dev: &device::Device<Ctx>) -> Result<Self, Self::Error> { in try_from()
559 unsafe impl Send for Device {} implementation
563 unsafe impl Sync for Device {} implementation