Lines Matching refs:madv
188 if (GEM_WARN_ON(msm_obj->madv != MSM_MADV_WILLNEED)) { in msm_gem_pin_pages_locked()
247 if (GEM_WARN_ON(msm_obj->madv != MSM_MADV_WILLNEED)) { in msm_gem_fault()
433 if (GEM_WARN_ON(msm_obj->madv != MSM_MADV_WILLNEED)) in msm_gem_pin_vma_locked()
628 static void *get_vaddr(struct drm_gem_object *obj, unsigned madv) in get_vaddr() argument
638 if (GEM_WARN_ON(msm_obj->madv > madv)) { in get_vaddr()
640 msm_obj->madv, madv); in get_vaddr()
722 int msm_gem_madvise(struct drm_gem_object *obj, unsigned madv) in msm_gem_madvise() argument
728 if (msm_obj->madv != __MSM_MADV_PURGED) in msm_gem_madvise()
729 msm_obj->madv = madv; in msm_gem_madvise()
731 madv = msm_obj->madv; in msm_gem_madvise()
740 return (madv != __MSM_MADV_PURGED); in msm_gem_madvise()
762 msm_obj->madv = __MSM_MADV_PURGED; in msm_gem_purge()
823 } else if (msm_obj->madv == MSM_MADV_WILLNEED) { in update_lru()
826 GEM_WARN_ON(msm_obj->madv != MSM_MADV_DONTNEED); in update_lru()
875 const char *madv; in msm_gem_describe() local
892 switch (msm_obj->madv) { in msm_gem_describe()
896 madv = " purged"; in msm_gem_describe()
901 madv = " purgeable"; in msm_gem_describe()
905 madv = ""; in msm_gem_describe()
914 seq_printf(m, " %08zu %9s %-32s\n", obj->size, madv, msm_obj->name); in msm_gem_describe()
1088 msm_obj->madv = MSM_MADV_WILLNEED; in msm_gem_new_impl()