Lines Matching refs:bulk

45 	cursor->bulk = NULL;  in ttm_resource_cursor_clear_bulk()
50 static void ttm_resource_cursor_move_bulk_tail(struct ttm_lru_bulk_move *bulk, in ttm_resource_cursor_move_bulk_tail() argument
57 if (WARN_ON_ONCE(bulk != cursor->bulk)) { in ttm_resource_cursor_move_bulk_tail()
62 pos = &bulk->pos[cursor->mem_type][cursor->priority]; in ttm_resource_cursor_move_bulk_tail()
69 static void ttm_bulk_move_adjust_cursors(struct ttm_lru_bulk_move *bulk) in ttm_bulk_move_adjust_cursors() argument
73 list_for_each_entry_safe(cursor, next, &bulk->cursor_list, bulk_link) in ttm_bulk_move_adjust_cursors()
74 ttm_resource_cursor_move_bulk_tail(bulk, cursor); in ttm_bulk_move_adjust_cursors()
78 static void ttm_bulk_move_drop_cursors(struct ttm_lru_bulk_move *bulk) in ttm_bulk_move_drop_cursors() argument
82 list_for_each_entry_safe(cursor, next, &bulk->cursor_list, bulk_link) in ttm_bulk_move_drop_cursors()
124 void ttm_lru_bulk_move_init(struct ttm_lru_bulk_move *bulk) in ttm_lru_bulk_move_init() argument
126 memset(bulk, 0, sizeof(*bulk)); in ttm_lru_bulk_move_init()
127 INIT_LIST_HEAD(&bulk->cursor_list); in ttm_lru_bulk_move_init()
140 struct ttm_lru_bulk_move *bulk) in ttm_lru_bulk_move_fini() argument
143 ttm_bulk_move_drop_cursors(bulk); in ttm_lru_bulk_move_fini()
156 void ttm_lru_bulk_move_tail(struct ttm_lru_bulk_move *bulk) in ttm_lru_bulk_move_tail() argument
160 ttm_bulk_move_adjust_cursors(bulk); in ttm_lru_bulk_move_tail()
163 struct ttm_lru_bulk_move_pos *pos = &bulk->pos[i][j]; in ttm_lru_bulk_move_tail()
183 ttm_lru_bulk_move_pos(struct ttm_lru_bulk_move *bulk, struct ttm_resource *res) in ttm_lru_bulk_move_pos() argument
185 return &bulk->pos[res->mem_type][res->bo->priority]; in ttm_lru_bulk_move_pos()
225 static void ttm_lru_bulk_move_add(struct ttm_lru_bulk_move *bulk, in ttm_lru_bulk_move_add() argument
228 struct ttm_lru_bulk_move_pos *pos = ttm_lru_bulk_move_pos(bulk, res); in ttm_lru_bulk_move_add()
240 static void ttm_lru_bulk_move_del(struct ttm_lru_bulk_move *bulk, in ttm_lru_bulk_move_del() argument
243 struct ttm_lru_bulk_move_pos *pos = ttm_lru_bulk_move_pos(bulk, res); in ttm_lru_bulk_move_del()
620 struct ttm_lru_bulk_move *bulk = NULL; in ttm_resource_cursor_check_bulk() local
624 bulk = bo->bulk_move; in ttm_resource_cursor_check_bulk()
626 if (cursor->bulk != bulk) { in ttm_resource_cursor_check_bulk()
627 if (bulk) { in ttm_resource_cursor_check_bulk()
628 list_move_tail(&cursor->bulk_link, &bulk->cursor_list); in ttm_resource_cursor_check_bulk()
633 cursor->bulk = bulk; in ttm_resource_cursor_check_bulk()