Lines Matching defs:as_raw
252 fn as_raw(&self) -> *mut bindings::auxiliary_device {
258 // SAFETY: By the type invariant `self.as_raw()` is a valid pointer to a
260 unsafe { (*self.as_raw()).id }
285 // SAFETY: By the type invariant, `self.as_raw()` is a valid `struct auxiliary_device`.
286 let ptr = unsafe { (*self.as_raw()).registration_data_rust };
325 // SAFETY: By the type invariant `self.0.as_raw` is a pointer to the `struct device`
350 unsafe { bindings::get_device(self.as_ref().as_raw()) };
368 // SAFETY: By the type invariant of `Self`, `self.as_raw()` is a pointer to a valid
370 let dev = unsafe { addr_of_mut!((*self.as_raw()).dev) };
461 (*adev).dev.parent = parent.as_raw();