Home
last modified time | relevance | path

Searched refs:RawType (Results 1 – 5 of 5) sorted by relevance

/linux/rust/kernel/
H A Ddevice_id.rs20 /// Implementers must ensure that `Self` is layout-compatible with [`RawDeviceId::RawType`];
21 /// i.e. it's safe to transmute to `RawType`.
23 /// This requirement is needed so `IdArray::new` can convert `Self` to `RawType` when building
33 type RawType: Copy;
47 /// Ideally, the data should be added during `Self` to `RawType` conversion,
92 // This is `MaybeUninit<T::RawType>` so any bytes inside it can carry provenance in CTFE.
93 // If this were `T::RawType`, integer fields would not be able to contain pointers.
94 ids: [MaybeUninit<T::RawType>; N],
95 sentinel: MaybeUninit<T::RawType>,
112 let mut raw_ids = [const { MaybeUninit::<T::RawType>
30 type RawType: Copy; global() typedef
167 as_ptr(&self) -> *const T::RawType as_ptr() argument
170 id(&self, index: usize) -> &T::RawType id() argument
177 as_ptr(&self) -> *const T::RawType as_ptr() argument
183 id(&self, index: usize) -> &T::RawType id() argument
[all...]
H A Dauxiliary.rs166 // additional invariants, so it's safe to transmute to `RawType`.
168 type RawType = bindings::auxiliary_device_id; in index()
159 type RawType = bindings::auxiliary_device_id; global() typedef
H A Dpci.rs234 // additional invariants, so it's safe to transmute to `RawType`.
236 type RawType = bindings::pci_device_id;
230 type RawType = bindings::pci_device_id; global() typedef
H A Dusb.rs229 // additional invariants, so it's safe to transmute to `RawType`. in from_device_and_interface_info()
231 type RawType = bindings::usb_device_id; in from_device_and_interface_info()
241 type RawType = bindings::usb_device_id; global() typedef
H A Di2c.rs62 type RawType = bindings::i2c_device_id; typedef