Lines Matching full:valid
67 /// Callers must ensure that the `struct scatterlist` pointed to by `ptr` is valid for the
71 // SAFETY: The safety requirements of this function guarantee that `ptr` is a valid pointer
87 // SAFETY: `self.as_raw()` is a valid pointer to a `struct scatterlist`.
95 // SAFETY: `self.as_raw()` is a valid pointer to a `struct scatterlist`.
142 /// - the `struct sg_table` pointed to by `ptr` is valid for the entire lifetime of `'a`,
146 // SAFETY: The safety requirements of this function guarantee that `ptr` is a valid pointer
158 // SAFETY: `self.as_raw()` is a valid pointer to a `struct sg_table`.
162 // SAFETY: `self.as_raw()` is a valid pointer to a `struct sg_table`.
165 // SAFETY: `ptr` is guaranteed to be a valid pointer to a `struct scatterlist`.
181 /// - `sgt` is a valid pointer to a `struct sg_table` for the entire lifetime of the
199 /// - `sgt` must be a valid pointer to a `struct sg_table` for the entire lifetime of the
209 // - `dev.as_raw()` is a valid pointer to a `struct device`, which is guaranteed to be
211 // - `sgt` is a valid pointer to a `struct sg_table`.
217 // valid for the entire lifetime of this object instance.
230 // - `self.dev.as_raw()` is a pointer to a valid `struct device`.
232 // - `self.sgt.as_ptr()` is a valid pointer to a `struct sg_table` by the type invariants
258 /// - `pages` must be a slice of valid `struct page *`.
259 /// - The pages pointed to by `pages` must remain valid for the entire lifetime of the returned
275 // - `sgt.get()` is a valid pointer to uninitialized memory.
301 // SAFETY: `sgt` is a valid and initialized `struct sg_table`.
356 // SAFETY: `dev.as_raw()` is a valid pointer to a `struct device`.
364 // - `page_vec` is a `KVec` of valid `struct page *` obtained from `pages`.
365 // - The pages contained in `pages` remain valid for the entire lifetime of the
369 // SAFETY: `this` is a valid pointer to uninitialized memory.
450 // - `self.inner.sgt.as_raw()` is a valid pointer to a `struct sg_table` for the entire
481 // SAFETY: `entry.as_raw()` is a valid pointer to a `struct scatterlist`.
485 // SAFETY: If `next` is not NULL, `sg_next()` guarantees to return a valid pointer to