Home
last modified time | relevance | path

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

/drivers/gpu/drm/msm/
Dmsm_gem.c182 if (WARN_ON(msm_obj->madv != MSM_MADV_WILLNEED)) { in msm_gem_get_pages()
260 if (WARN_ON(msm_obj->madv != MSM_MADV_WILLNEED)) { in msm_gem_fault()
425 if (WARN_ON(msm_obj->madv != MSM_MADV_WILLNEED)) in msm_gem_pin_iova()
558 static void *get_vaddr(struct drm_gem_object *obj, unsigned madv) in get_vaddr() argument
568 if (WARN_ON(msm_obj->madv > madv)) { in get_vaddr()
570 msm_obj->madv, madv); in get_vaddr()
635 int msm_gem_madvise(struct drm_gem_object *obj, unsigned madv) in msm_gem_madvise() argument
643 if (msm_obj->madv != __MSM_MADV_PURGED) in msm_gem_madvise()
644 msm_obj->madv = madv; in msm_gem_madvise()
646 madv = msm_obj->madv; in msm_gem_madvise()
[all …]
Dmsm_gem.h51 uint8_t madv; member
104 return (msm_obj->madv == MSM_MADV_DONTNEED) && msm_obj->sgt && in is_purgeable()
Dmsm_drv.c910 switch (args->madv) { in msm_ioctl_gem_madvise()
928 ret = msm_gem_madvise(obj, args->madv); in msm_ioctl_gem_madvise()
Dmsm_drv.h310 int msm_gem_madvise(struct drm_gem_object *obj, unsigned madv);
/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.h284 u32 madv; member
/drivers/gpu/drm/
Ddrm_gem_shmem_helper.c404 int drm_gem_shmem_madvise(struct drm_gem_object *obj, int madv) in drm_gem_shmem_madvise() argument
410 if (shmem->madv >= 0) in drm_gem_shmem_madvise()
411 shmem->madv = madv; in drm_gem_shmem_madvise()
413 madv = shmem->madv; in drm_gem_shmem_madvise()
417 return (madv >= 0); in drm_gem_shmem_madvise()
435 shmem->madv = -1; in drm_gem_shmem_purge_locked()
549 shmem->madv < 0) { in drm_gem_shmem_fault()
/drivers/gpu/drm/i915/gem/
Di915_gem_shmem.c232 obj->mm.madv = __I915_MADV_PURGED; in shmem_truncate()
286 GEM_BUG_ON(obj->mm.madv == __I915_MADV_PURGED); in __i915_gem_object_release_shmem()
288 if (obj->mm.madv == I915_MADV_DONTNEED) in __i915_gem_object_release_shmem()
320 if (obj->mm.madv == I915_MADV_WILLNEED) in shmem_put_pages()
358 if (obj->mm.madv != I915_MADV_WILLNEED) in shmem_pwrite()
Di915_gem_pages.c26 obj->mm.madv = I915_MADV_DONTNEED; in __i915_gem_object_set_pages()
75 if (obj->mm.madv != I915_MADV_WILLNEED) in __i915_gem_object_set_pages()
91 if (unlikely(obj->mm.madv != I915_MADV_WILLNEED)) { in ____i915_gem_object_get_pages()
179 obj->mm.madv = I915_MADV_WILLNEED; in __i915_gem_object_unset_pages()
Di915_gem_phys.c120 if (obj->mm.madv == I915_MADV_WILLNEED) in i915_gem_object_put_pages_phys()
225 if (obj->mm.madv != I915_MADV_WILLNEED) { in i915_gem_object_attach_phys()
Di915_gem_shrinker.c36 return swap_available() || obj->mm.madv == I915_MADV_DONTNEED; in can_release_pages()
59 switch (obj->mm.madv) { in try_to_writeback()
Di915_gem_object_types.h269 unsigned int madv:2; member
Di915_gem_tiling.c270 obj->mm.madv == I915_MADV_WILLNEED && in i915_gem_object_set_tiling()
Di915_gem_object.c73 obj->mm.madv = I915_MADV_WILLNEED; in i915_gem_object_init()
/drivers/gpu/drm/i915/
Di915_gem.c1042 switch (args->madv) { in i915_gem_madvise_ioctl()
1061 if (obj->mm.madv == I915_MADV_WILLNEED) { in i915_gem_madvise_ioctl()
1066 if (args->madv == I915_MADV_WILLNEED) { in i915_gem_madvise_ioctl()
1073 if (obj->mm.madv != __I915_MADV_PURGED) in i915_gem_madvise_ioctl()
1074 obj->mm.madv = args->madv; in i915_gem_madvise_ioctl()
1084 if (obj->mm.madv != I915_MADV_WILLNEED) in i915_gem_madvise_ioctl()
1095 if (obj->mm.madv == I915_MADV_DONTNEED && in i915_gem_madvise_ioctl()
1099 args->retained = obj->mm.madv != __I915_MADV_PURGED; in i915_gem_madvise_ioctl()
Di915_debugfs.c144 obj->mm.madv == I915_MADV_DONTNEED ? " purgeable" : ""); in i915_debugfs_describe_obj()
/drivers/gpu/drm/panfrost/
Dpanfrost_drv.c413 if (args->madv == PANFROST_MADV_DONTNEED) { in panfrost_ioctl_madvise()
435 args->retained = drm_gem_shmem_madvise(gem_obj, args->madv); in panfrost_ioctl_madvise()
438 if (args->madv == PANFROST_MADV_DONTNEED) in panfrost_ioctl_madvise()
441 else if (args->madv == PANFROST_MADV_WILLNEED) in panfrost_ioctl_madvise()
Dpanfrost_gem.c159 WARN_ON(bo->base.madv != PANFROST_MADV_WILLNEED); in panfrost_gem_open()