Lines Matching refs:DeviceId
88 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `struct usb_device_id` and
90 let id = unsafe { &*id.cast::<DeviceId>() };
124 pub struct DeviceId(bindings::usb_device_id);
126 impl DeviceId {
236 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `usb_device_id` and does not add
238 unsafe impl RawDeviceId for DeviceId {
243 unsafe impl RawDeviceIdIndex for DeviceId {
252 pub type IdTable<T> = &'static dyn kernel::device_id::IdTable<DeviceId, T>;
259 $crate::usb::DeviceId,
283 /// (usb::DeviceId::from_id(0x1234, 0x5678), ()),
284 /// (usb::DeviceId::from_id(0xabcd, 0xef01), ()),
294 /// _id: &usb::DeviceId,
316 id: &DeviceId,