Lines Matching refs:Device
85 let adev = unsafe { &*adev.cast::<Device<device::CoreInternal>>() }; in probe_callback()
105 let adev = unsafe { &*adev.cast::<Device<device::CoreInternal>>() }; in remove_callback()
206 fn probe(dev: &Device<device::Core>, id_info: &Self::IdInfo) -> impl PinInit<Self, Error>; in probe()
218 fn unbind(dev: &Device<device::Core>, this: Pin<&Self>) { in unbind()
234 pub struct Device<Ctx: device::DeviceContext = device::Normal>( struct
239 impl<Ctx: device::DeviceContext> Device<Ctx> { impl
252 impl Device<device::Bound> { impl
254 pub fn parent(&self) -> &device::Device<device::Bound> { in parent()
262 impl Device { implementation
264 pub fn parent(&self) -> &device::Device { in parent() argument
282 unsafe impl<Ctx: device::DeviceContext> device::AsBusDevice<Ctx> for Device<Ctx> { implementation
288 kernel::impl_device_context_deref!(unsafe { Device });
289 kernel::impl_device_context_into_aref!(Device);
292 unsafe impl crate::sync::aref::AlwaysRefCounted for Device { implementation
311 impl<Ctx: device::DeviceContext> AsRef<device::Device<Ctx>> for Device<Ctx> { implementation
312 fn as_ref(&self) -> &device::Device<Ctx> { in as_ref()
318 unsafe { device::Device::from_raw(dev) } in as_ref()
323 unsafe impl Send for Device {} implementation
327 unsafe impl Sync for Device {} implementation
343 parent: &'a device::Device<device::Bound>, in new()
355 (*adev).dev.release = Some(Device::release); in new()