Lines Matching refs:bo_cache

201 	if (vc4->bo_cache.size_list_size <= page_index) {  in vc4_get_cache_list_for_size()
202 uint32_t new_size = max(vc4->bo_cache.size_list_size * 2, in vc4_get_cache_list_for_size()
215 for (i = 0; i < vc4->bo_cache.size_list_size; i++) { in vc4_get_cache_list_for_size()
217 &vc4->bo_cache.size_list[i]; in vc4_get_cache_list_for_size()
225 for (i = vc4->bo_cache.size_list_size; i < new_size; i++) in vc4_get_cache_list_for_size()
228 kfree(vc4->bo_cache.size_list); in vc4_get_cache_list_for_size()
229 vc4->bo_cache.size_list = new_list; in vc4_get_cache_list_for_size()
230 vc4->bo_cache.size_list_size = new_size; in vc4_get_cache_list_for_size()
233 return &vc4->bo_cache.size_list[page_index]; in vc4_get_cache_list_for_size()
241 while (!list_empty(&vc4->bo_cache.time_list)) { in vc4_bo_cache_purge()
242 struct vc4_bo *bo = list_last_entry(&vc4->bo_cache.time_list, in vc4_bo_cache_purge()
368 if (page_index >= vc4->bo_cache.size_list_size) in vc4_bo_get_from_cache()
371 if (list_empty(&vc4->bo_cache.size_list[page_index])) in vc4_bo_get_from_cache()
374 bo = list_first_entry(&vc4->bo_cache.size_list[page_index], in vc4_bo_get_from_cache()
525 while (!list_empty(&vc4->bo_cache.time_list)) { in vc4_bo_cache_free_old()
526 struct vc4_bo *bo = list_last_entry(&vc4->bo_cache.time_list, in vc4_bo_cache_free_old()
529 mod_timer(&vc4->bo_cache.time_timer, in vc4_bo_cache_free_old()
599 list_add(&bo->unref_head, &vc4->bo_cache.time_list); in vc4_free_object()
612 container_of(work, struct vc4_dev, bo_cache.time_work); in vc4_bo_cache_time_work()
682 struct vc4_dev *vc4 = from_timer(vc4, t, bo_cache.time_timer); in vc4_bo_cache_time_timer()
684 schedule_work(&vc4->bo_cache.time_work); in vc4_bo_cache_time_timer()
1033 INIT_LIST_HEAD(&vc4->bo_cache.time_list); in vc4_bo_cache_init()
1035 INIT_WORK(&vc4->bo_cache.time_work, vc4_bo_cache_time_work); in vc4_bo_cache_init()
1036 timer_setup(&vc4->bo_cache.time_timer, vc4_bo_cache_time_timer, 0); in vc4_bo_cache_init()
1046 del_timer(&vc4->bo_cache.time_timer); in vc4_bo_cache_destroy()
1047 cancel_work_sync(&vc4->bo_cache.time_work); in vc4_bo_cache_destroy()