Lines Matching refs:device
9 device::{self, Bound},
72 let pdev = unsafe { &*pdev.cast::<Device<device::CoreInternal>>() }; in probe_callback()
88 let pdev = unsafe { &*pdev.cast::<Device<device::CoreInternal>>() }; in remove_callback()
192 fn probe(dev: &Device<device::Core>, id_info: Option<&Self::IdInfo>) in probe()
205 fn unbind(dev: &Device<device::Core>, this: Pin<&Self>) { in unbind()
221 pub struct Device<Ctx: device::DeviceContext = device::Normal>(
226 impl<Ctx: device::DeviceContext> Device<Ctx> {
292 impl crate::dma::Device for Device<device::Core> {}
307 impl<Ctx: device::DeviceContext> AsRef<device::Device<Ctx>> for Device<Ctx> {
308 fn as_ref(&self) -> &device::Device<Ctx> { in as_ref()
314 unsafe { device::Device::from_raw(dev) } in as_ref()
318 impl<Ctx: device::DeviceContext> TryFrom<&device::Device<Ctx>> for &Device<Ctx> {
321 fn try_from(dev: &device::Device<Ctx>) -> Result<Self, Self::Error> { in try_from()