Lines Matching full:safety
122 // SAFETY:
136 // SAFETY: `raw_drm` is a valid pointer to `Self`.
139 // SAFETY:
143 // SAFETY: `raw_drm` is a valid pointer to `Self`, given that `__drm_dev_alloc` was
147 // SAFETY: `__drm_dev_alloc()` was successful, hence `drm_dev` must be valid and the
152 // SAFETY: The reference count is one, and now we take ownership of that reference as a
161 /// # Safety
165 // SAFETY: By the safety requirements of this function `ptr` is a valid pointer to a
170 /// # Safety
174 // SAFETY: By the safety requirements of this function, `ptr` is a valid pointer to `Self`.
180 /// # Safety
191 // SAFETY: By the safety requirements of this function `ptr` is a valid pointer to a
195 // SAFETY: `ptr` is valid by the safety requirements of this function.
200 // SAFETY: `ptr` is a valid pointer to a `struct drm_device` and embedded in `Self`.
203 // SAFETY:
218 // SAFETY: DRM device objects are always reference counted and the get/put functions
222 // SAFETY: The existence of a shared reference guarantees that the refcount is non-zero.
227 // SAFETY: `obj` is a valid pointer to `Self`.
230 // SAFETY: The safety requirements guarantee that the refcount is non-zero.
237 // SAFETY: `bindings::drm_device::dev` is valid as long as the DRM device itself is valid,
243 // SAFETY: A `drm::Device` can be released from any thread.
246 // SAFETY: A `drm::Device` can be shared among threads because all immutable methods are protected
263 // SAFETY:
279 // SAFETY: The caller promises that `ptr` points to a valid `Device<T>`.
282 // SAFETY: `data_ptr` is a valid pointer to `T::Data`.
287 // SAFETY: The caller promises that `ptr` points at a `Work` field in
291 // SAFETY: `T::Data` is stored as the `data` field in `Device<T>`.
296 // SAFETY: Our `HasWork<T, ID>` implementation returns a `work_struct` that is