Lines Matching refs:Device
166 pub struct Device<Ctx: DeviceContext = Normal>(Opaque<bindings::device>, PhantomData<Ctx>); struct
168 impl Device { impl
190 pub unsafe fn as_bound(&self) -> &Device<Bound> { in as_bound()
204 impl Device<CoreInternal> { implementation
269 impl Device<Bound> { implementation
330 impl<Ctx: DeviceContext> Device<Ctx> { impl
338 pub(crate) fn parent(&self) -> Option<&Device> { in parent() argument
351 Some(unsafe { Device::from_raw(parent) }) in parent()
490 kernel::impl_device_context_deref!(unsafe { Device });
491 kernel::impl_device_context_into_aref!(Device);
494 unsafe impl crate::sync::aref::AlwaysRefCounted for Device { implementation
507 unsafe impl Send for Device {} implementation
511 unsafe impl Sync for Device {} implementation
609 pub unsafe trait AsBusDevice<Ctx: DeviceContext>: AsRef<Device<Ctx>> {
620 unsafe fn from_device(dev: &Device<Ctx>) -> &Self in from_device()