Lines Matching defs:DeviceId
65 // SAFETY: `DeviceId` is a `#[repr(transparent)`] wrapper of `struct auxiliary_device_id`
67 let id = unsafe { &*id.cast::<DeviceId>() };
103 pub struct DeviceId(bindings::auxiliary_device_id);
105 impl DeviceId {
106 /// Create a new [`DeviceId`] from name.
137 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `auxiliary_device_id` and does not add
139 unsafe impl RawDeviceId for DeviceId {
144 unsafe impl RawDeviceIdIndex for DeviceId {
154 pub type IdTable<T> = &'static dyn kernel::device_id::IdTable<DeviceId, T>;
161 $crate::auxiliary::DeviceId,