Lines Matching refs:Device
65 let adev = unsafe { &*adev.cast::<Device<device::CoreInternal>>() }; in probe_callback()
85 let adev = unsafe { &*adev.cast::<Device<device::CoreInternal>>() }; in remove_callback()
189 fn probe(dev: &Device<device::Core>, id_info: &Self::IdInfo) -> impl PinInit<Self, Error>; in probe()
203 pub struct Device<Ctx: device::DeviceContext = device::Normal>( struct
208 impl<Ctx: device::DeviceContext> Device<Ctx> { implementation
221 impl Device<device::Bound> { impl
223 pub fn parent(&self) -> &device::Device<device::Bound> { in parent()
231 impl Device { implementation
233 pub fn parent(&self) -> &device::Device { in parent() argument
251 unsafe impl<Ctx: device::DeviceContext> device::AsBusDevice<Ctx> for Device<Ctx> { implementation
257 kernel::impl_device_context_deref!(unsafe { Device });
258 kernel::impl_device_context_into_aref!(Device);
261 unsafe impl crate::sync::aref::AlwaysRefCounted for Device { implementation
280 impl<Ctx: device::DeviceContext> AsRef<device::Device<Ctx>> for Device<Ctx> { implementation
281 fn as_ref(&self) -> &device::Device<Ctx> { in as_ref()
287 unsafe { device::Device::from_raw(dev) } in as_ref()
292 unsafe impl Send for Device {} implementation
296 unsafe impl Sync for Device {} implementation
312 parent: &'a device::Device<device::Bound>, in new()
324 (*adev).dev.release = Some(Device::release); in new()