Lines Matching refs:Device
108 let pdev = unsafe { &*pdev.cast::<Device<device::CoreInternal>>() }; in probe_callback()
128 let pdev = unsafe { &*pdev.cast::<Device<device::CoreInternal>>() }; in remove_callback()
310 fn probe(dev: &Device<device::Core>, id_info: &Self::IdInfo) -> impl PinInit<Self, Error>; in probe()
322 fn unbind(dev: &Device<device::Core>, this: Pin<&Self>) { in unbind()
338 pub struct Device<Ctx: device::DeviceContext = device::Normal>( struct
343 impl<Ctx: device::DeviceContext> Device<Ctx> { implementation
350 impl Device { implementation
448 impl Device<device::Core> { impl
465 unsafe impl<Ctx: device::DeviceContext> device::AsBusDevice<Ctx> for Device<Ctx> { implementation
471 kernel::impl_device_context_deref!(unsafe { Device });
472 kernel::impl_device_context_into_aref!(Device);
474 impl crate::dma::Device for Device<device::Core> {} implementation
477 unsafe impl crate::sync::aref::AlwaysRefCounted for Device { implementation
489 impl<Ctx: device::DeviceContext> AsRef<device::Device<Ctx>> for Device<Ctx> { implementation
490 fn as_ref(&self) -> &device::Device<Ctx> { in as_ref()
496 unsafe { device::Device::from_raw(dev) } in as_ref()
500 impl<Ctx: device::DeviceContext> TryFrom<&device::Device<Ctx>> for &Device<Ctx> { implementation
503 fn try_from(dev: &device::Device<Ctx>) -> Result<Self, Self::Error> { in try_from()
521 unsafe impl Send for Device {} implementation
525 unsafe impl Sync for Device {} implementation