Home
last modified time | relevance | path

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

/drivers/gpu/drm/msm/
Dmsm_gem.c470 int msm_gem_madvise(struct drm_gem_object *obj, unsigned madv) in msm_gem_madvise() argument
476 if (msm_obj->madv != __MSM_MADV_PURGED) in msm_gem_madvise()
477 msm_obj->madv = madv; in msm_gem_madvise()
479 return (msm_obj->madv != __MSM_MADV_PURGED); in msm_gem_madvise()
497 msm_obj->madv = __MSM_MADV_PURGED; in msm_gem_purge()
575 WARN_ON(msm_obj->madv != MSM_MADV_WILLNEED); in msm_gem_move_to_active()
642 const char *madv; in msm_gem_describe() local
646 switch (msm_obj->madv) { in msm_gem_describe()
648 madv = " purged"; in msm_gem_describe()
651 madv = " purgeable"; in msm_gem_describe()
[all …]
Dmsm_gem.h35 uint8_t madv; member
87 return (msm_obj->madv == MSM_MADV_DONTNEED) && msm_obj->sgt && in is_purgeable()
Dmsm_drv.h215 int msm_gem_madvise(struct drm_gem_object *obj, unsigned madv);
Dmsm_drv.c716 switch (args->madv) { in msm_ioctl_gem_madvise()
734 ret = msm_gem_madvise(obj, args->madv); in msm_ioctl_gem_madvise()
/drivers/gpu/drm/i915/
Di915_gem_batch_pool.c122 if (tmp->madv == __I915_MADV_PURGED) { in i915_gem_batch_pool_get()
145 obj->madv = I915_MADV_DONTNEED; in i915_gem_batch_pool_get()
Di915_gem.c226 BUG_ON(obj->madv == __I915_MADV_PURGED); in i915_gem_object_put_pages_phys()
236 if (obj->madv == I915_MADV_DONTNEED) in i915_gem_object_put_pages_phys()
258 if (obj->madv == I915_MADV_WILLNEED) in i915_gem_object_put_pages_phys()
419 if (obj->madv != I915_MADV_WILLNEED) in i915_gem_object_attach_phys()
2109 obj->madv = __I915_MADV_PURGED; in i915_gem_object_truncate()
2118 switch (obj->madv) { in i915_gem_object_invalidate()
2139 BUG_ON(obj->madv == __I915_MADV_PURGED); in i915_gem_object_put_pages_gtt()
2155 if (obj->madv == I915_MADV_DONTNEED) in i915_gem_object_put_pages_gtt()
2162 if (obj->madv == I915_MADV_WILLNEED) in i915_gem_object_put_pages_gtt()
2353 if (obj->madv != I915_MADV_WILLNEED) { in i915_gem_object_get_pages()
[all …]
Di915_gem_shrinker.c91 return swap_available() || obj->madv == I915_MADV_DONTNEED; in can_release_pages()
178 obj->madv != I915_MADV_DONTNEED) in i915_gem_shrink()
Di915_gem_tiling.c264 obj->madv == I915_MADV_WILLNEED && in i915_gem_set_tiling()
Di915_gem_userptr.c685 if (obj->madv != I915_MADV_WILLNEED) in i915_gem_userptr_put_pages()
Di915_gpu_error.c808 err->purgeable = obj->madv != I915_MADV_WILLNEED; in capture_bo()
Di915_debugfs.c164 obj->madv == I915_MADV_DONTNEED ? " purgeable" : ""); in describe_obj()
416 if (obj->madv == I915_MADV_DONTNEED) { in i915_gem_object_info()
438 if (obj->madv == I915_MADV_DONTNEED) { in i915_gem_object_info()
Di915_drv.h2220 unsigned int madv:2; member