Lines Matching refs:Device
69 let pdev = unsafe { &*pdev.cast::<Device<device::Core>>() }; in probe_callback()
240 fn probe(dev: &Device<device::Core>, id_info: &Self::IdInfo) -> Result<Pin<KBox<Self>>>; in probe()
253 pub struct Device<Ctx: device::DeviceContext = device::Normal>( struct
265 pdev: ARef<Device>,
271 fn new(pdev: &Device, num: u32, name: &CStr) -> Result<Self> { in new() argument
324 unsafe fn do_release(pdev: &Device, ioptr: usize, num: i32) { in do_release() argument
363 impl Device { implementation
411 impl Device<device::Core> { impl
425 impl Deref for Device<device::Core> { implementation
426 type Target = Device;
432 let ptr = ptr.cast::<Device>(); in deref()
439 impl From<&Device<device::Core>> for ARef<Device> {
440 fn from(dev: &Device<device::Core>) -> Self { in from()
446 unsafe impl crate::types::AlwaysRefCounted for Device { implementation
458 impl AsRef<device::Device> for Device { implementation
459 fn as_ref(&self) -> &device::Device { in as_ref() argument
465 unsafe { device::Device::as_ref(dev) } in as_ref()
470 unsafe impl Send for Device {} implementation
474 unsafe impl Sync for Device {} implementation