Lines Matching refs:auxiliary_device

84         adev: *mut bindings::auxiliary_device,
88 // `struct auxiliary_device`.
106 extern "C" fn remove_callback(adev: *mut bindings::auxiliary_device) {
108 // `struct auxiliary_device`.
237 /// This structure represents the Rust abstraction for a C `struct auxiliary_device`. The
238 /// implementation abstracts the usage of an already existing C `struct auxiliary_device` within
243 /// A [`Device`] instance represents a valid `struct auxiliary_device` created by the C portion of
247 Opaque<bindings::auxiliary_device>,
252 fn as_raw(&self) -> *mut bindings::auxiliary_device {
259 // `struct auxiliary_device`.
285 // SAFETY: By the type invariant, `self.as_raw()` is a valid `struct auxiliary_device`.
320 // SAFETY: A `struct auxiliary_device` always has a parent.
326 // embedded in `struct auxiliary_device`.
327 let adev = unsafe { container_of!(dev, bindings::auxiliary_device, dev) };
330 // `KBox::new(Opaque::<bindings::auxiliary_device>::zeroed(), GFP_KERNEL)`.
331 let _ = unsafe { KBox::<Opaque<bindings::auxiliary_device>>::from_raw(adev.cast()) };
335 // SAFETY: `auxiliary::Device` is a transparent wrapper of `struct auxiliary_device`.
338 const OFFSET: usize = offset_of!(bindings::auxiliary_device, dev);
354 // CAST: `Self` a transparent wrapper of `bindings::auxiliary_device`.
355 let adev: *mut bindings::auxiliary_device = obj.cast().as_ptr();
358 // `struct auxiliary_device`.
369 // `struct auxiliary_device`.
384 // SAFETY: Same as `Device<Normal>` -- the underlying `struct auxiliary_device` is the same;
399 /// This type represents the registration of a [`struct auxiliary_device`]. When its parent device
409 /// [`struct auxiliary_device`] whose `registration_data_rust` field points to a
412 adev: NonNull<bindings::auxiliary_device>,
456 let boxed: KBox<Opaque<bindings::auxiliary_device>> = KBox::zeroed(GFP_KERNEL)?;
459 // SAFETY: It's safe to set the fields of `struct auxiliary_device` on initialization.
468 // SAFETY: `adev` is guaranteed to be a valid pointer to a `struct auxiliary_device`,
473 // freed by `Device::release` when the last reference to the `struct auxiliary_device`
478 // - `adev` is guaranteed to be a valid pointer to a `struct auxiliary_device`, which
491 // `struct auxiliary_device`, which has been initialized.
531 // `struct auxiliary_device`.
544 // `struct auxiliary_device`.
549 // SAFETY: A `Registration` of a `struct auxiliary_device` can be released from any thread.