Lines Matching full:valid
56 /// `self.dev` is a valid instance of a `struct device`.
105 // - `dev` is valid by its type invarants, in new()
117 // SAFETY: `raw_drm` is a valid pointer to `Self`. in new()
121 // - `raw_data` is a valid pointer to uninitialized memory. in new()
124 // SAFETY: `raw_drm` is a valid pointer to `Self`, given that `__drm_dev_alloc` was in new()
128 // SAFETY: `__drm_dev_alloc()` was successful, hence `drm_dev` must be valid and the in new()
144 /// `ptr` must be a valid pointer to a `struct device` embedded in `Self`.
146 // SAFETY: By the safety requirements of this function `ptr` is a valid pointer to a in from_drm_device()
153 /// `ptr` must be a valid pointer to `Self`.
155 // SAFETY: By the safety requirements of this function, `ptr` is a valid pointer to `Self`. in into_drm_device()
163 /// Callers must ensure that `ptr` is valid, non-null, and has a non-zero reference count,
172 // SAFETY: By the safety requirements of this function `ptr` is a valid pointer to a in from_raw()
176 // SAFETY: `ptr` is valid by the safety requirements of this function. in from_raw()
181 // SAFETY: `ptr` is a valid pointer to a `struct drm_device` and embedded in `Self`. in release()
186 // - `this` is valid for dropping. in release()
208 // SAFETY: `obj` is a valid pointer to `Self`. in dec_ref()
218 // SAFETY: `bindings::drm_device::dev` is valid as long as the DRM device itself is valid, in as_ref()