Lines Matching refs:bulk
37 * ttm_lru_bulk_move_init - initialize a bulk move structure
38 * @bulk: the structure to init
42 void ttm_lru_bulk_move_init(struct ttm_lru_bulk_move *bulk)
44 memset(bulk, 0, sizeof(*bulk));
49 * ttm_lru_bulk_move_tail - bulk move range of resources to the LRU tail.
51 * @bulk: bulk move structure
56 void ttm_lru_bulk_move_tail(struct ttm_lru_bulk_move *bulk)
62 struct ttm_lru_bulk_move_pos *pos = &bulk->pos[i][j];
80 /* Return the bulk move pos object for this resource */
82 ttm_lru_bulk_move_pos(struct ttm_lru_bulk_move *bulk, struct ttm_resource *res)
84 return &bulk->pos[res->mem_type][res->bo->priority];
87 /* Move the resource to the tail of the bulk move range */
100 static void ttm_lru_bulk_move_add(struct ttm_lru_bulk_move *bulk,
103 struct ttm_lru_bulk_move_pos *pos = ttm_lru_bulk_move_pos(bulk, res);
115 static void ttm_lru_bulk_move_del(struct ttm_lru_bulk_move *bulk,
118 struct ttm_lru_bulk_move_pos *pos = ttm_lru_bulk_move_pos(bulk, res);
133 /* Add the resource to a bulk move if the BO is configured for it */
141 /* Remove the resource from a bulk move if the BO is configured for it */
149 /* Move a resource to the LRU or bulk tail */