madv 369 drivers/gpu/drm/drm_gem_shmem_helper.c int drm_gem_shmem_madvise(struct drm_gem_object *obj, int madv) madv 375 drivers/gpu/drm/drm_gem_shmem_helper.c if (shmem->madv >= 0) madv 376 drivers/gpu/drm/drm_gem_shmem_helper.c shmem->madv = madv; madv 378 drivers/gpu/drm/drm_gem_shmem_helper.c madv = shmem->madv; madv 382 drivers/gpu/drm/drm_gem_shmem_helper.c return (madv >= 0); madv 401 drivers/gpu/drm/drm_gem_shmem_helper.c shmem->madv = -1; madv 503 drivers/gpu/drm/i915/gem/i915_gem_domain.c if (obj->mm.madv == I915_MADV_WILLNEED) madv 125 drivers/gpu/drm/i915/gem/i915_gem_internal.c obj->mm.madv = I915_MADV_DONTNEED; madv 146 drivers/gpu/drm/i915/gem/i915_gem_internal.c obj->mm.madv = I915_MADV_WILLNEED; madv 65 drivers/gpu/drm/i915/gem/i915_gem_object.c obj->mm.madv = I915_MADV_WILLNEED; madv 212 drivers/gpu/drm/i915/gem/i915_gem_object_types.h unsigned int madv:2; madv 68 drivers/gpu/drm/i915/gem/i915_gem_pages.c if (obj->mm.madv != I915_MADV_WILLNEED) madv 82 drivers/gpu/drm/i915/gem/i915_gem_pages.c if (unlikely(obj->mm.madv != I915_MADV_WILLNEED)) { madv 121 drivers/gpu/drm/i915/gem/i915_gem_phys.c if (obj->mm.madv == I915_MADV_WILLNEED) madv 170 drivers/gpu/drm/i915/gem/i915_gem_phys.c if (obj->mm.madv != I915_MADV_WILLNEED) { madv 226 drivers/gpu/drm/i915/gem/i915_gem_shmem.c obj->mm.madv = __I915_MADV_PURGED; madv 280 drivers/gpu/drm/i915/gem/i915_gem_shmem.c GEM_BUG_ON(obj->mm.madv == __I915_MADV_PURGED); madv 282 drivers/gpu/drm/i915/gem/i915_gem_shmem.c if (obj->mm.madv == I915_MADV_DONTNEED) madv 314 drivers/gpu/drm/i915/gem/i915_gem_shmem.c if (obj->mm.madv == I915_MADV_WILLNEED) madv 352 drivers/gpu/drm/i915/gem/i915_gem_shmem.c if (obj->mm.madv != I915_MADV_WILLNEED) madv 88 drivers/gpu/drm/i915/gem/i915_gem_shrinker.c return swap_available() || obj->mm.madv == I915_MADV_DONTNEED; madv 109 drivers/gpu/drm/i915/gem/i915_gem_shrinker.c switch (obj->mm.madv) { madv 252 drivers/gpu/drm/i915/gem/i915_gem_tiling.c obj->mm.madv == I915_MADV_WILLNEED && madv 116 drivers/gpu/drm/i915/gem/selftests/huge_pages.c obj->mm.madv = I915_MADV_DONTNEED; madv 138 drivers/gpu/drm/i915/gem/selftests/huge_pages.c obj->mm.madv = I915_MADV_WILLNEED; madv 230 drivers/gpu/drm/i915/gem/selftests/huge_pages.c obj->mm.madv = I915_MADV_DONTNEED; madv 264 drivers/gpu/drm/i915/gem/selftests/huge_pages.c obj->mm.madv = I915_MADV_DONTNEED; madv 284 drivers/gpu/drm/i915/gem/selftests/huge_pages.c obj->mm.madv = I915_MADV_WILLNEED; madv 154 drivers/gpu/drm/i915/i915_debugfs.c obj->mm.madv == I915_MADV_DONTNEED ? " purgeable" : ""); madv 1071 drivers/gpu/drm/i915/i915_gem.c switch (args->madv) { madv 1090 drivers/gpu/drm/i915/i915_gem.c if (obj->mm.madv == I915_MADV_WILLNEED) { madv 1095 drivers/gpu/drm/i915/i915_gem.c if (args->madv == I915_MADV_WILLNEED) { madv 1102 drivers/gpu/drm/i915/i915_gem.c if (obj->mm.madv != __I915_MADV_PURGED) madv 1103 drivers/gpu/drm/i915/i915_gem.c obj->mm.madv = args->madv; madv 1113 drivers/gpu/drm/i915/i915_gem.c if (obj->mm.madv != I915_MADV_WILLNEED) madv 1124 drivers/gpu/drm/i915/i915_gem.c if (obj->mm.madv == I915_MADV_DONTNEED && madv 1128 drivers/gpu/drm/i915/i915_gem.c args->retained = obj->mm.madv != __I915_MADV_PURGED; madv 91 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c obj->mm.madv = I915_MADV_DONTNEED; madv 104 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c obj->mm.madv = I915_MADV_WILLNEED; madv 905 drivers/gpu/drm/msm/msm_drv.c switch (args->madv) { madv 923 drivers/gpu/drm/msm/msm_drv.c ret = msm_gem_madvise(obj, args->madv); madv 299 drivers/gpu/drm/msm/msm_drv.h int msm_gem_madvise(struct drm_gem_object *obj, unsigned madv); madv 193 drivers/gpu/drm/msm/msm_gem.c if (WARN_ON(msm_obj->madv != MSM_MADV_WILLNEED)) { madv 271 drivers/gpu/drm/msm/msm_gem.c if (WARN_ON(msm_obj->madv != MSM_MADV_WILLNEED)) { madv 431 drivers/gpu/drm/msm/msm_gem.c if (WARN_ON(msm_obj->madv != MSM_MADV_WILLNEED)) madv 552 drivers/gpu/drm/msm/msm_gem.c static void *get_vaddr(struct drm_gem_object *obj, unsigned madv) madv 559 drivers/gpu/drm/msm/msm_gem.c if (WARN_ON(msm_obj->madv > madv)) { madv 561 drivers/gpu/drm/msm/msm_gem.c msm_obj->madv, madv); madv 626 drivers/gpu/drm/msm/msm_gem.c int msm_gem_madvise(struct drm_gem_object *obj, unsigned madv) madv 634 drivers/gpu/drm/msm/msm_gem.c if (msm_obj->madv != __MSM_MADV_PURGED) madv 635 drivers/gpu/drm/msm/msm_gem.c msm_obj->madv = madv; madv 637 drivers/gpu/drm/msm/msm_gem.c madv = msm_obj->madv; madv 641 drivers/gpu/drm/msm/msm_gem.c return (madv != __MSM_MADV_PURGED); madv 661 drivers/gpu/drm/msm/msm_gem.c msm_obj->madv = __MSM_MADV_PURGED; madv 740 drivers/gpu/drm/msm/msm_gem.c WARN_ON(msm_obj->madv != MSM_MADV_WILLNEED); madv 807 drivers/gpu/drm/msm/msm_gem.c const char *madv; madv 811 drivers/gpu/drm/msm/msm_gem.c switch (msm_obj->madv) { madv 813 drivers/gpu/drm/msm/msm_gem.c madv = " purged"; madv 816 drivers/gpu/drm/msm/msm_gem.c madv = " purgeable"; madv 820 drivers/gpu/drm/msm/msm_gem.c madv = ""; madv 829 drivers/gpu/drm/msm/msm_gem.c seq_printf(m, " %08zu %9s %-32s\n", obj->size, madv, msm_obj->name); madv 1004 drivers/gpu/drm/msm/msm_gem.c msm_obj->madv = MSM_MADV_WILLNEED; madv 45 drivers/gpu/drm/msm/msm_gem.h uint8_t madv; madv 96 drivers/gpu/drm/msm/msm_gem.h return (msm_obj->madv == MSM_MADV_DONTNEED) && msm_obj->sgt && madv 405 drivers/gpu/drm/panfrost/panfrost_drv.c if (args->madv == PANFROST_MADV_DONTNEED) { madv 427 drivers/gpu/drm/panfrost/panfrost_drv.c args->retained = drm_gem_shmem_madvise(gem_obj, args->madv); madv 430 drivers/gpu/drm/panfrost/panfrost_drv.c if (args->madv == PANFROST_MADV_DONTNEED) madv 433 drivers/gpu/drm/panfrost/panfrost_drv.c else if (args->madv == PANFROST_MADV_WILLNEED) madv 163 drivers/gpu/drm/panfrost/panfrost_gem.c WARN_ON(bo->base.madv != PANFROST_MADV_WILLNEED); madv 292 drivers/gpu/drm/vc4/vc4_bo.c WARN_ON(bo->madv != VC4_MADV_DONTNEED); madv 298 drivers/gpu/drm/vc4/vc4_bo.c bo->madv = __VC4_MADV_PURGED; madv 331 drivers/gpu/drm/vc4/vc4_bo.c if (bo->madv == VC4_MADV_DONTNEED && madv 394 drivers/gpu/drm/vc4/vc4_bo.c bo->madv = VC4_MADV_WILLNEED; madv 463 drivers/gpu/drm/vc4/vc4_bo.c bo->madv = __VC4_MADV_NOTSUPP; madv 490 drivers/gpu/drm/vc4/vc4_bo.c bo->madv = VC4_MADV_WILLNEED; madv 532 drivers/gpu/drm/vc4/vc4_bo.c if (bo->madv == VC4_MADV_DONTNEED && !refcount_read(&bo->usecnt)) madv 573 drivers/gpu/drm/vc4/vc4_bo.c bo->madv = __VC4_MADV_NOTSUPP; madv 611 drivers/gpu/drm/vc4/vc4_bo.c switch (bo->madv) { madv 646 drivers/gpu/drm/vc4/vc4_bo.c bo->madv == VC4_MADV_DONTNEED) madv 697 drivers/gpu/drm/vc4/vc4_bo.c WARN_ON(bo->madv != __VC4_MADV_PURGED); madv 722 drivers/gpu/drm/vc4/vc4_bo.c if (bo->madv != VC4_MADV_WILLNEED) { madv 724 drivers/gpu/drm/vc4/vc4_bo.c bo->madv == VC4_MADV_DONTNEED ? madv 834 drivers/gpu/drm/vc4/vc4_bo.c bo->madv = VC4_MADV_WILLNEED; madv 895 drivers/gpu/drm/vc4/vc4_bo.c bo->madv = VC4_MADV_WILLNEED; madv 279 drivers/gpu/drm/vc4/vc4_drv.h u32 madv; madv 265 drivers/gpu/drm/vc4/vc4_gem.c if (bo->madv == __VC4_MADV_NOTSUPP) madv 269 drivers/gpu/drm/vc4/vc4_gem.c if (!WARN_ON(bo->madv == __VC4_MADV_PURGED)) madv 270 drivers/gpu/drm/vc4/vc4_gem.c bo->madv = VC4_MADV_WILLNEED; madv 1321 drivers/gpu/drm/vc4/vc4_gem.c switch (args->madv) { madv 1341 drivers/gpu/drm/vc4/vc4_gem.c if (bo->madv == __VC4_MADV_NOTSUPP) { madv 1358 drivers/gpu/drm/vc4/vc4_gem.c if (args->madv == VC4_MADV_DONTNEED && bo->madv == VC4_MADV_WILLNEED && madv 1365 drivers/gpu/drm/vc4/vc4_gem.c } else if (args->madv == VC4_MADV_WILLNEED && madv 1366 drivers/gpu/drm/vc4/vc4_gem.c bo->madv == VC4_MADV_DONTNEED && madv 1375 drivers/gpu/drm/vc4/vc4_gem.c args->retained = bo->madv != __VC4_MADV_PURGED; madv 1378 drivers/gpu/drm/vc4/vc4_gem.c if (bo->madv != __VC4_MADV_PURGED) madv 1379 drivers/gpu/drm/vc4/vc4_gem.c bo->madv = args->madv; madv 54 include/drm/drm_gem_shmem_helper.h int madv; madv 140 include/drm/drm_gem_shmem_helper.h int drm_gem_shmem_madvise(struct drm_gem_object *obj, int madv); madv 144 include/drm/drm_gem_shmem_helper.h return (shmem->madv > 0) && madv 1365 include/uapi/drm/i915_drm.h __u32 madv; madv 273 include/uapi/drm/msm_drm.h __u32 madv; /* in, MSM_MADV_x */ madv 222 include/uapi/drm/panfrost_drm.h __u32 madv; /* in, PANFROST_MADV_x */ madv 373 include/uapi/drm/vc4_drm.h __u32 madv; madv 1365 tools/include/uapi/drm/i915_drm.h __u32 madv;