/drivers/gpu/drm/msm/ |
D | msm_gem.c | 193 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 …]
|
D | msm_gem.h | 45 uint8_t madv; member 96 return (msm_obj->madv == MSM_MADV_DONTNEED) && msm_obj->sgt && in is_purgeable()
|
D | msm_drv.h | 299 int msm_gem_madvise(struct drm_gem_object *obj, unsigned madv);
|
D | msm_drv.c | 897 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/ |
D | vc4_bo.c | 292 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 …]
|
D | vc4_gem.c | 265 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 …]
|
D | vc4_drv.h | 279 u32 madv; member
|
/drivers/gpu/drm/ |
D | drm_gem_shmem_helper.c | 369 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/ |
D | i915_gem_shmem.c | 226 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()
|
D | i915_gem_internal.c | 125 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()
|
D | i915_gem_phys.c | 122 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()
|
D | i915_gem_object_types.h | 212 unsigned int madv:2; member
|
D | i915_gem_pages.c | 68 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()
|
D | i915_gem_shrinker.c | 88 return swap_available() || obj->mm.madv == I915_MADV_DONTNEED; in can_release_pages() 109 switch (obj->mm.madv) { in try_to_writeback()
|
D | i915_gem_object.c | 65 obj->mm.madv = I915_MADV_WILLNEED; in i915_gem_object_init()
|
D | i915_gem_tiling.c | 252 obj->mm.madv == I915_MADV_WILLNEED && in i915_gem_object_set_tiling()
|
D | i915_gem_domain.c | 503 if (obj->mm.madv == I915_MADV_WILLNEED) in i915_gem_object_bump_inactive_ggtt()
|
/drivers/gpu/drm/i915/ |
D | i915_gem.c | 1071 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()
|
D | i915_debugfs.c | 154 obj->mm.madv == I915_MADV_DONTNEED ? " purgeable" : ""); in describe_obj()
|
/drivers/gpu/drm/panfrost/ |
D | panfrost_drv.c | 404 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()
|
D | panfrost_gem.c | 163 WARN_ON(bo->base.madv != PANFROST_MADV_WILLNEED); in panfrost_gem_open()
|
/drivers/gpu/drm/i915/gem/selftests/ |
D | huge_pages.c | 116 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/ |
D | i915_gem_gtt.c | 91 obj->mm.madv = I915_MADV_DONTNEED; in fake_get_pages() 104 obj->mm.madv = I915_MADV_WILLNEED; in fake_put_pages()
|