Lines Matching defs:usb_device_id
79 id: *const bindings::usb_device_id,
82 // `struct usb_interface` and `struct usb_device_id`.
88 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `struct usb_device_id` and
119 /// Abstraction for the USB device ID structure, i.e. [`struct usb_device_id`].
121 /// [`struct usb_device_id`]: https://docs.kernel.org/driver-api/basics.html#c.usb_device_id
124 pub struct DeviceId(bindings::usb_device_id);
129 Self(bindings::usb_device_id {
133 // SAFETY: It is safe to use all zeroes for the other fields of `usb_device_id`.
140 Self(bindings::usb_device_id {
146 // SAFETY: It is safe to use all zeroes for the other fields of `usb_device_id`.
153 Self(bindings::usb_device_id {
158 // SAFETY: It is safe to use all zeroes for the other fields of `usb_device_id`.
165 Self(bindings::usb_device_id {
170 // SAFETY: It is safe to use all zeroes for the other fields of `usb_device_id`.
177 Self(bindings::usb_device_id {
183 // SAFETY: It is safe to use all zeroes for the other fields of `usb_device_id`.
190 Self(bindings::usb_device_id {
196 // SAFETY: It is safe to use all zeroes for the other fields of `usb_device_id`.
203 Self(bindings::usb_device_id {
209 // SAFETY: It is safe to use all zeroes for the other fields of `usb_device_id`.
222 Self(bindings::usb_device_id {
230 // SAFETY: It is safe to use all zeroes for the other fields of `usb_device_id`.
236 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `usb_device_id` and does not add
239 type RawType = bindings::usb_device_id;
244 const DRIVER_DATA_OFFSET: usize = core::mem::offset_of!(bindings::usb_device_id, driver_info);