Lines Matching refs:Device
92 let pdev = unsafe { &*pdev.cast::<Device<device::CoreInternal>>() }; in probe_callback()
112 let pdev = unsafe { &*pdev.cast::<Device<device::CoreInternal>>() }; in remove_callback()
294 fn probe(dev: &Device<device::Core>, id_info: &Self::IdInfo) -> impl PinInit<Self, Error>; in probe()
306 fn unbind(dev: &Device<device::Core>, this: Pin<&Self>) { in unbind()
322 pub struct Device<Ctx: device::DeviceContext = device::Normal>( struct
327 impl<Ctx: device::DeviceContext> Device<Ctx> { implementation
334 impl Device { implementation
432 impl Device<device::Core> { implementation
449 unsafe impl<Ctx: device::DeviceContext> device::AsBusDevice<Ctx> for Device<Ctx> { implementation
455 kernel::impl_device_context_deref!(unsafe { Device });
456 kernel::impl_device_context_into_aref!(Device);
458 impl crate::dma::Device for Device<device::Core> {} implementation
461 unsafe impl crate::sync::aref::AlwaysRefCounted for Device { implementation
473 impl<Ctx: device::DeviceContext> AsRef<device::Device<Ctx>> for Device<Ctx> { implementation
474 fn as_ref(&self) -> &device::Device<Ctx> { in as_ref()
480 unsafe { device::Device::from_raw(dev) } in as_ref()
484 impl<Ctx: device::DeviceContext> TryFrom<&device::Device<Ctx>> for &Device<Ctx> { implementation
487 fn try_from(dev: &device::Device<Ctx>) -> Result<Self, Self::Error> { in try_from()
505 unsafe impl Send for Device {} implementation
509 unsafe impl Sync for Device {} implementation