Lines Matching full:valid
55 /// `self.dev` is a valid instance of a `struct device`.
104 // - `dev` is valid by its type invarants, in new()
116 // SAFETY: `raw_drm` is a valid pointer to `Self`. in new()
120 // - `raw_data` is a valid pointer to uninitialized memory. in new()
123 // SAFETY: `raw_drm` is a valid pointer to `Self`, given that `__drm_dev_alloc` was in new()
127 // SAFETY: `__drm_dev_alloc()` was successful, hence `drm_dev` must be valid and the in new()
143 /// `ptr` must be a valid pointer to a `struct device` embedded in `Self`.
145 // SAFETY: By the safety requirements of this function `ptr` is a valid pointer to a in from_drm_device()
152 /// `ptr` must be a valid pointer to `Self`.
154 // SAFETY: By the safety requirements of this function, `ptr` is a valid pointer to `Self`. in into_drm_device()
162 /// Callers must ensure that `ptr` is valid, non-null, and has a non-zero reference count,
171 // SAFETY: By the safety requirements of this function `ptr` is a valid pointer to a in from_raw()
175 // SAFETY: `ptr` is valid by the safety requirements of this function. in from_raw()
180 // SAFETY: `ptr` is a valid pointer to a `struct drm_device` and embedded in `Self`. in release()
185 // - `this` is valid for dropping. in release()
207 // SAFETY: `obj` is a valid pointer to `Self`. in dec_ref()
217 // SAFETY: `bindings::drm_device::dev` is valid as long as the DRM device itself is valid, in as_ref()