Lines Matching +full:sg +full:- +full:micro

2  * Copyright 2020 Advanced Micro Devices, Inc.
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.
168 * type manager to aid debugging of out-of-memory conditions.
206 * Protected by the bdev->lru_lock.
212 * bdev->lru_lock.
270 * ttm_lru_item_to_res() - Downcast a struct ttm_lru_item to a struct ttm_resource
340 * struct ttm_kmap_iter_iomap - Specialization for a struct io_mapping +
346 * sg_dma_address(st->sgl) - @start == 0 for @iomap start.
348 * @cache.sg: Pointer to the currently cached scatterlist segment.
349 * @cache.i: First index of @sg. PAGE_SIZE granularity.
350 * @cache.end: Last index + 1 of @sg. PAGE_SIZE granularity.
351 * @cache.offs: First offset into @iomap of @sg. PAGE_SIZE granularity.
359 struct scatterlist *sg; member
367 * struct ttm_kmap_iter_linear_io - Iterator specialization for linear io
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()
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