Home
last modified time | relevance | path

Searched refs:madv (Results 1 – 23 of 23) sorted by relevance

/drivers/gpu/drm/msm/
Dmsm_gem.c193 if (WARN_ON(msm_obj->madv != MSM_MADV_WILLNEED)) { in msm_gem_get_pages()
271 if (WARN_ON(msm_obj->madv != MSM_MADV_WILLNEED)) { in msm_gem_fault()
431 if (WARN_ON(msm_obj->madv != MSM_MADV_WILLNEED)) in msm_gem_pin_iova()
552 static void *get_vaddr(struct drm_gem_object *obj, unsigned madv) in get_vaddr() argument
559 if (WARN_ON(msm_obj->madv > madv)) { in get_vaddr()
561 msm_obj->madv, madv); in get_vaddr()
626 int msm_gem_madvise(struct drm_gem_object *obj, unsigned madv) in msm_gem_madvise() argument
634 if (msm_obj->madv != __MSM_MADV_PURGED) in msm_gem_madvise()
635 msm_obj->madv = madv; in msm_gem_madvise()
637 madv = msm_obj->madv; in msm_gem_madvise()
[all …]
Dmsm_gem.h45 uint8_t madv; member
96 return (msm_obj->madv == MSM_MADV_DONTNEED) && msm_obj->sgt && in is_purgeable()
Dmsm_drv.h299 int msm_gem_madvise(struct drm_gem_object *obj, unsigned madv);
Dmsm_drv.c897 switch (args->madv) { in msm_ioctl_gem_madvise()
915 ret = msm_gem_madvise(obj, args->madv); in msm_ioctl_gem_madvise()
/drivers/gpu/drm/vc4/
Dvc4_bo.c292 WARN_ON(bo->madv != VC4_MADV_DONTNEED); in vc4_bo_purge()
298 bo->madv = __VC4_MADV_PURGED; in vc4_bo_purge()
331 if (bo->madv == VC4_MADV_DONTNEED && in vc4_bo_userspace_cache_purge()
394 bo->madv = VC4_MADV_WILLNEED; in vc4_create_object()
463 bo->madv = __VC4_MADV_NOTSUPP; in vc4_bo_create()
490 bo->madv = VC4_MADV_WILLNEED; in vc4_dumb_create()
532 if (bo->madv == VC4_MADV_DONTNEED && !refcount_read(&bo->usecnt)) in vc4_free_object()
573 bo->madv = __VC4_MADV_NOTSUPP; in vc4_free_object()
611 switch (bo->madv) { in vc4_bo_inc_usecnt()
646 bo->madv == VC4_MADV_DONTNEED) in vc4_bo_dec_usecnt()
[all …]
Dvc4_gem.c265 if (bo->madv == __VC4_MADV_NOTSUPP) in vc4_save_hang_state()
269 if (!WARN_ON(bo->madv == __VC4_MADV_PURGED)) in vc4_save_hang_state()
270 bo->madv = VC4_MADV_WILLNEED; in vc4_save_hang_state()
1321 switch (args->madv) { in vc4_gem_madvise_ioctl()
1341 if (bo->madv == __VC4_MADV_NOTSUPP) { in vc4_gem_madvise_ioctl()
1358 if (args->madv == VC4_MADV_DONTNEED && bo->madv == VC4_MADV_WILLNEED && in vc4_gem_madvise_ioctl()
1365 } else if (args->madv == VC4_MADV_WILLNEED && in vc4_gem_madvise_ioctl()
1366 bo->madv == VC4_MADV_DONTNEED && in vc4_gem_madvise_ioctl()
1375 args->retained = bo->madv != __VC4_MADV_PURGED; in vc4_gem_madvise_ioctl()
1378 if (bo->madv != __VC4_MADV_PURGED) in vc4_gem_madvise_ioctl()
[all …]
Dvc4_drv.h279 u32 madv; member
/drivers/gpu/drm/
Ddrm_gem_shmem_helper.c369 int drm_gem_shmem_madvise(struct drm_gem_object *obj, int madv) in drm_gem_shmem_madvise() argument
375 if (shmem->madv >= 0) in drm_gem_shmem_madvise()
376 shmem->madv = madv; in drm_gem_shmem_madvise()
378 madv = shmem->madv; in drm_gem_shmem_madvise()
382 return (madv >= 0); in drm_gem_shmem_madvise()
401 shmem->madv = -1; in drm_gem_shmem_purge_locked()
/drivers/gpu/drm/i915/gem/
Di915_gem_shmem.c226 obj->mm.madv = __I915_MADV_PURGED; in shmem_truncate()
280 GEM_BUG_ON(obj->mm.madv == __I915_MADV_PURGED); in __i915_gem_object_release_shmem()
282 if (obj->mm.madv == I915_MADV_DONTNEED) in __i915_gem_object_release_shmem()
314 if (obj->mm.madv == I915_MADV_WILLNEED) in shmem_put_pages()
352 if (obj->mm.madv != I915_MADV_WILLNEED) in shmem_pwrite()
Di915_gem_internal.c125 obj->mm.madv = I915_MADV_DONTNEED; in i915_gem_object_get_pages_internal()
146 obj->mm.madv = I915_MADV_WILLNEED; in i915_gem_object_put_pages_internal()
Di915_gem_phys.c122 if (obj->mm.madv == I915_MADV_WILLNEED) in i915_gem_object_put_pages_phys()
168 if (obj->mm.madv != I915_MADV_WILLNEED) { in i915_gem_object_attach_phys()
Di915_gem_object_types.h212 unsigned int madv:2; member
Di915_gem_pages.c68 if (obj->mm.madv != I915_MADV_WILLNEED) in __i915_gem_object_set_pages()
82 if (unlikely(obj->mm.madv != I915_MADV_WILLNEED)) { in ____i915_gem_object_get_pages()
Di915_gem_shrinker.c88 return swap_available() || obj->mm.madv == I915_MADV_DONTNEED; in can_release_pages()
109 switch (obj->mm.madv) { in try_to_writeback()
Di915_gem_object.c65 obj->mm.madv = I915_MADV_WILLNEED; in i915_gem_object_init()
Di915_gem_tiling.c252 obj->mm.madv == I915_MADV_WILLNEED && in i915_gem_object_set_tiling()
Di915_gem_domain.c503 if (obj->mm.madv == I915_MADV_WILLNEED) in i915_gem_object_bump_inactive_ggtt()
/drivers/gpu/drm/i915/
Di915_gem.c1071 switch (args->madv) { in i915_gem_madvise_ioctl()
1090 if (obj->mm.madv == I915_MADV_WILLNEED) { in i915_gem_madvise_ioctl()
1095 if (args->madv == I915_MADV_WILLNEED) { in i915_gem_madvise_ioctl()
1102 if (obj->mm.madv != __I915_MADV_PURGED) in i915_gem_madvise_ioctl()
1103 obj->mm.madv = args->madv; in i915_gem_madvise_ioctl()
1113 if (obj->mm.madv != I915_MADV_WILLNEED) in i915_gem_madvise_ioctl()
1124 if (obj->mm.madv == I915_MADV_DONTNEED && in i915_gem_madvise_ioctl()
1128 args->retained = obj->mm.madv != __I915_MADV_PURGED; in i915_gem_madvise_ioctl()
Di915_debugfs.c154 obj->mm.madv == I915_MADV_DONTNEED ? " purgeable" : ""); in describe_obj()
/drivers/gpu/drm/panfrost/
Dpanfrost_drv.c404 if (args->madv == PANFROST_MADV_DONTNEED) { in panfrost_ioctl_madvise()
426 args->retained = drm_gem_shmem_madvise(gem_obj, args->madv); in panfrost_ioctl_madvise()
429 if (args->madv == PANFROST_MADV_DONTNEED) in panfrost_ioctl_madvise()
432 else if (args->madv == PANFROST_MADV_WILLNEED) in panfrost_ioctl_madvise()
Dpanfrost_gem.c163 WARN_ON(bo->base.madv != PANFROST_MADV_WILLNEED); in panfrost_gem_open()
/drivers/gpu/drm/i915/gem/selftests/
Dhuge_pages.c116 obj->mm.madv = I915_MADV_DONTNEED; in get_huge_pages()
138 obj->mm.madv = I915_MADV_WILLNEED; in put_huge_pages()
230 obj->mm.madv = I915_MADV_DONTNEED; in fake_get_huge_pages()
264 obj->mm.madv = I915_MADV_DONTNEED; in fake_get_huge_pages_single()
284 obj->mm.madv = I915_MADV_WILLNEED; in fake_put_huge_pages()
/drivers/gpu/drm/i915/selftests/
Di915_gem_gtt.c91 obj->mm.madv = I915_MADV_DONTNEED; in fake_get_pages()
104 obj->mm.madv = I915_MADV_WILLNEED; in fake_put_pages()