Lines Matching refs:Device
65 let pdev = unsafe { &*pdev.cast::<Device<device::Core>>() }; in probe_callback()
167 fn probe(dev: &Device<device::Core>, id_info: Option<&Self::IdInfo>) in probe()
182 pub struct Device<Ctx: device::DeviceContext = device::Normal>( struct
187 impl Device { impl
193 impl Deref for Device<device::Core> { implementation
194 type Target = Device;
200 let ptr = ptr.cast::<Device>(); in deref()
207 impl From<&Device<device::Core>> for ARef<Device> {
208 fn from(dev: &Device<device::Core>) -> Self { in from()
214 unsafe impl crate::types::AlwaysRefCounted for Device { implementation
226 impl AsRef<device::Device> for Device { implementation
227 fn as_ref(&self) -> &device::Device { in as_ref() argument
233 unsafe { device::Device::as_ref(dev) } in as_ref()
238 unsafe impl Send for Device {} implementation
242 unsafe impl Sync for Device {} implementation