Lines Matching defs:auxiliary_device

56         adev: *mut bindings::auxiliary_device,
60 // `struct auxiliary_device`.
78 extern "C" fn remove_callback(adev: *mut bindings::auxiliary_device) {
80 // `struct auxiliary_device`.
192 /// This structure represents the Rust abstraction for a C `struct auxiliary_device`. The
193 /// implementation abstracts the usage of an already existing C `struct auxiliary_device` within
198 /// A [`Device`] instance represents a valid `struct auxiliary_device` created by the C portion of
202 Opaque<bindings::auxiliary_device>,
207 fn as_raw(&self) -> *mut bindings::auxiliary_device {
214 // `struct auxiliary_device`.
233 // embedded in `struct auxiliary_device`.
234 let adev = unsafe { container_of!(dev, bindings::auxiliary_device, dev) };
237 // `KBox::new(Opaque::<bindings::auxiliary_device>::zeroed(), GFP_KERNEL)`.
238 let _ = unsafe { KBox::<Opaque<bindings::auxiliary_device>>::from_raw(adev.cast()) };
255 // CAST: `Self` a transparent wrapper of `bindings::auxiliary_device`.
256 let adev: *mut bindings::auxiliary_device = obj.cast().as_ptr();
259 // `struct auxiliary_device`.
270 // `struct auxiliary_device`.
287 /// This type represents the registration of a [`struct auxiliary_device`]. When an instance of this
293 /// [`struct auxiliary_device`].
294 pub struct Registration(NonNull<bindings::auxiliary_device>);
299 let boxed = KBox::new(Opaque::<bindings::auxiliary_device>::zeroed(), GFP_KERNEL)?;
302 // SAFETY: It's safe to set the fields of `struct auxiliary_device` on initialization.
310 // SAFETY: `adev` is guaranteed to be a valid pointer to a `struct auxiliary_device`,
315 // by `Device::release` when the last reference to the `struct auxiliary_device` is dropped.
319 // - `adev` is guaranteed to be a valid pointer to a `struct auxiliary_device`, which has
324 // SAFETY: `adev` is guaranteed to be a valid pointer to a `struct auxiliary_device`,
342 // `struct auxiliary_device`.
348 // `struct auxiliary_device`.
353 // SAFETY: A `Registration` of a `struct auxiliary_device` can be released from any thread.