Lines Matching full:bulk
33 * ttm_lru_bulk_move_init - initialize a bulk move structure
34 * @bulk: the structure to init
38 void ttm_lru_bulk_move_init(struct ttm_lru_bulk_move *bulk) in ttm_lru_bulk_move_init() argument
40 memset(bulk, 0, sizeof(*bulk)); in ttm_lru_bulk_move_init()
45 * ttm_lru_bulk_move_tail - bulk move range of resources to the LRU tail.
47 * @bulk: bulk move structure
49 * Bulk move BOs to the LRU tail, only valid to use when driver makes sure that
52 void ttm_lru_bulk_move_tail(struct ttm_lru_bulk_move *bulk) in ttm_lru_bulk_move_tail() argument
58 struct ttm_lru_bulk_move_pos *pos = &bulk->pos[i][j]; in ttm_lru_bulk_move_tail()
76 /* Return the bulk move pos object for this resource */
78 ttm_lru_bulk_move_pos(struct ttm_lru_bulk_move *bulk, struct ttm_resource *res) in ttm_lru_bulk_move_pos() argument
80 return &bulk->pos[res->mem_type][res->bo->priority]; in ttm_lru_bulk_move_pos()
83 /* Move the resource to the tail of the bulk move range */
94 static void ttm_lru_bulk_move_add(struct ttm_lru_bulk_move *bulk, in ttm_lru_bulk_move_add() argument
97 struct ttm_lru_bulk_move_pos *pos = ttm_lru_bulk_move_pos(bulk, res); in ttm_lru_bulk_move_add()
108 static void ttm_lru_bulk_move_del(struct ttm_lru_bulk_move *bulk, in ttm_lru_bulk_move_del() argument
111 struct ttm_lru_bulk_move_pos *pos = ttm_lru_bulk_move_pos(bulk, res); in ttm_lru_bulk_move_del()
125 /* Add the resource to a bulk move if the BO is configured for it */
133 /* Remove the resource from a bulk move if the BO is configured for it */
141 /* Move a resource to the LRU or bulk tail */