Lines Matching +full:last +full:- +full:used
31 #include <linux/iosys-map.h>
32 #include <linux/dma-fence.h>
54 * enum ttm_lru_item_type - enumerate ttm_lru_item subclasses
64 * struct ttm_lru_item - The TTM lru list node base class
74 * ttm_lru_item_init() - initialize a struct ttm_lru_item
81 item->type = type; in ttm_lru_item_init()
82 INIT_LIST_HEAD(&item->link); in ttm_lru_item_init()
87 return item->type == TTM_LRU_RESOURCE; in ttm_lru_item_is_res()
104 * If the manager can't fulfill the request -ENOSPC should be returned.
137 * Test if @res intersects with @place + @size. Used to judge if
153 * Test if @res compatible with @place + @size. Used to check of
165 * @printer: Prefix to be used in printout to identify the caller.
168 * type manager to aid debugging of out-of-memory conditions.
179 * @use_tt: If a TT object should be used for the backing store.
184 * @move: The fence of the last pipelined move operation.
187 * This structure is used to identify and manage memory types for a device.
206 * Protected by the bdev->lru_lock.
211 * @usage: How much of the resources are used, protected by the
212 * bdev->lru_lock.
217 * @cg: &dmem_cgroup_region used for memory accounting, if not NULL.
250 * Structure indicating the placement and space resources used by a
264 * @lru: Least recently used list, see &ttm_resource_manager.lru
270 * ttm_lru_item_to_res() - Downcast a struct ttm_lru_item to a struct ttm_resource
285 * @last: last res in the bulk move range
291 struct ttm_resource *last; member
296 * @pos: first/last lru entry for resources in the each domain/priority
300 * Container for the current bulk move state. Should be used with
340 * struct ttm_kmap_iter_iomap - Specialization for a struct io_mapping +
346 * sg_dma_address(st->sgl) - @start == 0 for @iomap start.
350 * @cache.end: Last index + 1 of @sg. PAGE_SIZE granularity.
367 * struct ttm_kmap_iter_linear_io - Iterator specialization for linear io
382 * @used: usage state to set.
385 * used for object placement.
388 ttm_resource_manager_set_used(struct ttm_resource_manager *man, bool used) in ttm_resource_manager_set_used() argument
393 WARN_ON(!list_empty(&man->lru[i])); in ttm_resource_manager_set_used()
394 man->use_type = used; in ttm_resource_manager_set_used()
400 * @man: Manager to get used state for
404 * true is used, false if not.
408 return man->use_type; in ttm_resource_manager_used()
421 dma_fence_put(man->move); in ttm_resource_manager_cleanup()
422 man->move = NULL; in ttm_resource_manager_cleanup()
478 * ttm_resource_manager_for_each_res - iterate over all resources