Lines Matching full:shmem
22 struct drm_gem_shmem_object *shmem; in panfrost_gem_shrinker_count() local
28 list_for_each_entry(shmem, &pfdev->shrinker_list, madv_list) { in panfrost_gem_shrinker_count()
29 if (drm_gem_shmem_is_purgeable(shmem)) in panfrost_gem_shrinker_count()
30 count += shmem->base.size >> PAGE_SHIFT; in panfrost_gem_shrinker_count()
40 struct drm_gem_shmem_object *shmem = to_drm_gem_shmem_obj(obj); in panfrost_gem_purge() local
50 if (!dma_resv_trylock(shmem->base.resv)) in panfrost_gem_purge()
57 dma_resv_unlock(shmem->base.resv); in panfrost_gem_purge()
68 struct drm_gem_shmem_object *shmem, *tmp; in panfrost_gem_shrinker_scan() local
74 list_for_each_entry_safe(shmem, tmp, &pfdev->shrinker_list, madv_list) { in panfrost_gem_shrinker_scan()
77 if (drm_gem_shmem_is_purgeable(shmem) && in panfrost_gem_shrinker_scan()
78 panfrost_gem_purge(&shmem->base)) { in panfrost_gem_shrinker_scan()
79 freed += shmem->base.size >> PAGE_SHIFT; in panfrost_gem_shrinker_scan()
80 list_del_init(&shmem->madv_list); in panfrost_gem_shrinker_scan()