Lines Matching +full:last +full:- +full:used
31 #include <linux/iosys-map.h>
32 #include <linux/dma-fence.h>
66 * If the manager can't fulfill the request -ENOSPC should be returned.
99 * Test if @res intersects with @place + @size. Used to judge if
115 * Test if @res compatible with @place + @size. Used to check of
127 * @printer: Prefix to be used in printout to identify the caller.
130 * type manager to aid debugging of out-of-memory conditions.
141 * @use_tt: If a TT object should be used for the backing store.
146 * @move: The fence of the last pipelined move operation.
149 * This structure is used to identify and manage memory types for a device.
168 * Protected by the bdev->lru_lock.
173 * @usage: How much of the resources are used, protected by the
174 * bdev->lru_lock.
206 * Structure indicating the placement and space resources used by a
218 * @lru: Least recently used list, see &ttm_resource_manager.lru
238 * @last: last res in the bulk move range
244 struct ttm_resource *last; member
250 * @pos: first/last lru entry for resources in the each domain/priority
252 * Container for the current bulk move state. Should be used with
260 * struct ttm_kmap_iter_iomap - Specialization for a struct io_mapping +
266 * sg_dma_address(st->sgl) - @start == 0 for @iomap start.
270 * @cache.end: Last index + 1 of @sg. PAGE_SIZE granularity.
287 * struct ttm_kmap_iter_linear_io - Iterator specialization for linear io
302 * @used: usage state to set.
305 * used for object placement.
308 ttm_resource_manager_set_used(struct ttm_resource_manager *man, bool used) in ttm_resource_manager_set_used() argument
313 WARN_ON(!list_empty(&man->lru[i])); in ttm_resource_manager_set_used()
314 man->use_type = used; in ttm_resource_manager_set_used()
320 * @man: Manager to get used state for
324 * true is used, false if not.
328 return man->use_type; in ttm_resource_manager_used()
341 dma_fence_put(man->move); in ttm_resource_manager_cleanup()
342 man->move = NULL; in ttm_resource_manager_cleanup()
397 * ttm_resource_manager_for_each_res - iterate over all resources