Lines Matching refs:DeviceId
38 pub struct DeviceId(bindings::i2c_device_id);
40 impl DeviceId {
59 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `i2c_device_id` and does not add
61 unsafe impl RawDeviceId for DeviceId {
66 unsafe impl RawDeviceIdIndex for DeviceId {
75 pub type IdTable<T> = &'static dyn kernel::device_id::IdTable<DeviceId, T>;
82 $crate::i2c::DeviceId,
217 // SAFETY: `DeviceId` is a `#[repr(transparent)` wrapper of `struct i2c_device_id` and
219 let id = unsafe { &*raw_id.cast::<DeviceId>() };
221 Some(table.info(<DeviceId as RawDeviceIdIndex>::index(id)))
273 /// (acpi::DeviceId::new(c"LNUXBEEF"), ())
282 /// (i2c::DeviceId::new(c"rust_driver_i2c"), ())
291 /// (of::DeviceId::new(c"test,device"), ())