Lines Matching full:safety
122 // SAFETY: All GEM objects are thread-safe.
125 // SAFETY: All GEM objects are thread-safe.
145 // SAFETY: `drm_gem_shmem_vm_ops` is a valid, static const on the C side.
157 // SAFETY: `dev` will have been initialized in `Self::new()` by `drm_gem_shmem_init()`.
162 // SAFETY:
168 // SAFETY:
176 // SAFETY:
182 // SAFETY:
187 // SAFETY: We're recovering the Kbox<> we created in gem_create_object()
204 // SAFETY: `drm_gem_shmem_vmap()` can be called with the DMA reservation lock held.
213 // SAFETY: The call to `drm_gem_shmem_vmap_locked()` succeeded above, so we are guaranteed
219 // SAFETY: The vmap operation above succeeded, guaranteeing that `map` points to a valid
228 // SAFETY: We checked that this is not an iomem allocation, making it safe to read
238 /// # Safety
246 // SAFETY:
292 // SAFETY: We just populated sgt_res above.
319 // SAFETY: `obj.as_raw()` is guaranteed to be valid by the initialization above.
322 // SAFETY: The arguments are all valid via the type invariants.
325 // SAFETY: We never move out of `self`.
328 // SAFETY: We're taking over the owned refcount from `drm_gem_shmem_init`.
333 // SAFETY: We have yet to expose the new gem object outside of this function, so it is
338 // SAFETY: We have yet to expose this object outside of this function, so we're guaranteed
371 // SAFETY:
378 // SAFETY: The safety contract of from_gem_obj() guarantees that `obj` is contained within
412 // SAFETY: This lock is initialized throughout the lifetime of `object`.
422 // SAFETY: We are releasing the lock grabbed during the creation of this object.
472 // SAFETY: Per type invariants of `VMap`:
488 // SAFETY:
501 // SAFETY: `addr` points to a valid memory address for as long as `owner` exists, meaning that so
510 // SAFETY: `addr` points to a valid memory address for as long as `owner` exists, meaning that so
539 // SAFETY:
548 // SAFETY: `obj` is always valid via our type invariants
552 // SAFETY: We acquired the lock needed for calling this function above
562 // SAFETY:
570 // SAFETY: The NonNull in SGTableMap is guaranteed valid by our type invariants, and the GEM object
573 // SAFETY: The NonNull in SGTableMap is guaranteed valid by our type invariants, and the GEM object