Lines Matching refs:Device
68 let pdev = unsafe { &*pdev.cast::<Device<device::CoreInternal>>() }; in probe_callback()
88 let pdev = unsafe { &*pdev.cast::<Device<device::CoreInternal>>() }; in remove_callback()
245 fn probe(dev: &Device<device::Core>, id_info: &Self::IdInfo) -> Result<Pin<KBox<Self>>>; in probe()
257 fn unbind(dev: &Device<device::Core>, this: Pin<&Self>) { in unbind()
273 pub struct Device<Ctx: device::DeviceContext = device::Normal>( struct
285 pdev: ARef<Device>,
291 fn new(pdev: &Device, num: u32, name: &CStr) -> Result<Self> { in new() argument
344 unsafe fn do_release(pdev: &Device, ioptr: usize, num: i32) { in do_release() argument
383 impl<Ctx: device::DeviceContext> Device<Ctx> { impls
389 impl Device { implementation
415 impl Device<device::Bound> { implementation
436 impl Device<device::Core> { implementation
452 kernel::impl_device_context_deref!(unsafe { Device });
453 kernel::impl_device_context_into_aref!(Device);
455 impl crate::dma::Device for Device<device::Core> {} implementation
458 unsafe impl crate::types::AlwaysRefCounted for Device { implementation
470 impl<Ctx: device::DeviceContext> AsRef<device::Device<Ctx>> for Device<Ctx> { implementation
471 fn as_ref(&self) -> &device::Device<Ctx> { in as_ref()
477 unsafe { device::Device::from_raw(dev) } in as_ref()
481 impl<Ctx: device::DeviceContext> TryFrom<&device::Device<Ctx>> for &Device<Ctx> { implementation
484 fn try_from(dev: &device::Device<Ctx>) -> Result<Self, Self::Error> { in try_from()
502 unsafe impl Send for Device {} implementation
506 unsafe impl Sync for Device {} implementation