Lines Matching full:bulk
34 * ttm_lru_bulk_move_init - initialize a bulk move structure
35 * @bulk: the structure to init
39 void ttm_lru_bulk_move_init(struct ttm_lru_bulk_move *bulk) in ttm_lru_bulk_move_init() argument
41 memset(bulk, 0, sizeof(*bulk)); in ttm_lru_bulk_move_init()
46 * ttm_lru_bulk_move_tail - bulk move range of resources to the LRU tail.
48 * @bulk: bulk move structure
50 * Bulk move BOs to the LRU tail, only valid to use when driver makes sure that
53 void ttm_lru_bulk_move_tail(struct ttm_lru_bulk_move *bulk) in ttm_lru_bulk_move_tail() argument
59 struct ttm_lru_bulk_move_pos *pos = &bulk->pos[i][j]; in ttm_lru_bulk_move_tail()
77 /* Return the bulk move pos object for this resource */
79 ttm_lru_bulk_move_pos(struct ttm_lru_bulk_move *bulk, struct ttm_resource *res) in ttm_lru_bulk_move_pos() argument
81 return &bulk->pos[res->mem_type][res->bo->priority]; in ttm_lru_bulk_move_pos()
84 /* Move the resource to the tail of the bulk move range */
97 static void ttm_lru_bulk_move_add(struct ttm_lru_bulk_move *bulk, in ttm_lru_bulk_move_add() argument
100 struct ttm_lru_bulk_move_pos *pos = ttm_lru_bulk_move_pos(bulk, res); in ttm_lru_bulk_move_add()
111 static void ttm_lru_bulk_move_del(struct ttm_lru_bulk_move *bulk, in ttm_lru_bulk_move_del() argument
114 struct ttm_lru_bulk_move_pos *pos = ttm_lru_bulk_move_pos(bulk, res); in ttm_lru_bulk_move_del()
129 /* Add the resource to a bulk move if the BO is configured for it */
137 /* Remove the resource from a bulk move if the BO is configured for it */
145 /* Move a resource to the LRU or bulk tail */