Lines Matching defs:Self
30 adrv: &Opaque<Self::RegType>,
37 (*adrv.get()).probe = Some(Self::probe_callback);
38 (*adrv.get()).remove = Some(Self::remove_callback);
48 unsafe fn unregister(adrv: &Opaque<Self::RegType>) {
107 pub const fn new(modname: &'static CStr, name: &'static CStr) -> Self {
133 Self(id)
182 const ID_TABLE: IdTable<Self::IdInfo>;
187 fn probe(dev: &Device<device::Core>, id_info: &Self::IdInfo) -> Result<Pin<KBox<Self>>>;
220 let ptr: *const Self = self;
254 unsafe fn dec_ref(obj: NonNull<Self>) {
255 // CAST: `Self` a transparent wrapper of `bindings::auxiliary_device`.
258 // SAFETY: By the type invariant of `Self`, `adev` is a pointer to a valid
269 // SAFETY: By the type invariant of `Self`, `self.as_raw()` is a pointer to a valid
298 pub fn new(parent: &device::Device, name: &CStr, id: u32, modname: &CStr) -> Result<Self> {
334 // which happens in `Self::drop()`.
335 Ok(Self(unsafe { NonNull::new_unchecked(adev) }))
341 // SAFETY: By the type invariant of `Self`, `self.0.as_ptr()` is a valid registered
347 // SAFETY: By the type invariant of `Self`, `self.0.as_ptr()` is a valid registered