Lines Matching defs:Self

46     unsafe fn from_raw(raw: *mut bindings::fwnode_handle) -> ARef<Self> {
67 // SAFETY: The type invariant of `Self` guarantees that `self.as_raw() is a pointer to a
168 /// method [`Self::property_read_array_vec`], because it takes an
172 /// [`Self::property_read_bool`], because this operation is infallible.
203 pub fn get_child_by_name(&self, name: &CStr) -> Option<ARef<Self>> {
215 Some(unsafe { Self::from_raw(child) })
251 // `ARef<Self>`.
369 unsafe fn dec_ref(obj: ptr::NonNull<Self>) {
439 fn read_from_fwnode_property(fwnode: &FwNode, name: &CStr) -> Result<Self>;
445 fn read_from_fwnode_property(fwnode: &FwNode, name: &CStr) -> Result<Self> {
480 out: &'a mut [MaybeUninit<Self>],
481 ) -> Result<&'a mut [Self]>;
500 out: &'a mut [MaybeUninit<Self>],
501 ) -> Result<&'a mut [Self]> {
518 // SAFETY: Transmuting from `&'a mut [MaybeUninit<Self>]` to
519 // `&'a mut [Self]` is sound, because the previous call to a
522 Ok(unsafe { core::mem::transmute::<&mut [MaybeUninit<Self>], &mut [Self]>(out) })
545 fn read_from_fwnode_property(fwnode: &FwNode, name: &CStr) -> Result<Self> {
552 fn read_from_fwnode_property(fwnode: &FwNode, name: &CStr) -> Result<Self> {
577 /// Use [`Self::required_by`] if a missing property is considered a bug and
578 /// [`Self::optional`] otherwise.
580 /// For convenience, [`Self::or`] and [`Self::or_default`] are provided.
594 /// missing property is not an error, use [`Self::optional`] instead. The
610 /// In contrast to [`Self::required_by`], no error message is logged if
619 /// Use [`Self::required_by`] or [`Self::optional`] instead.
628 /// Use [`Self::or`] to specify a custom default value.