Searched refs:madv (Results 1 – 19 of 19) sorted by relevance
182 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() argument568 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() argument643 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 …]
51 uint8_t madv; member104 return (msm_obj->madv == MSM_MADV_DONTNEED) && msm_obj->sgt && in is_purgeable()
910 switch (args->madv) { in msm_ioctl_gem_madvise()928 ret = msm_gem_madvise(obj, args->madv); in msm_ioctl_gem_madvise()
310 int msm_gem_madvise(struct drm_gem_object *obj, unsigned madv);
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 …]
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 …]
284 u32 madv; member
404 int drm_gem_shmem_madvise(struct drm_gem_object *obj, int madv) in drm_gem_shmem_madvise() argument410 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()
232 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()
26 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()
120 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()
36 return swap_available() || obj->mm.madv == I915_MADV_DONTNEED; in can_release_pages()59 switch (obj->mm.madv) { in try_to_writeback()
269 unsigned int madv:2; member
270 obj->mm.madv == I915_MADV_WILLNEED && in i915_gem_object_set_tiling()
73 obj->mm.madv = I915_MADV_WILLNEED; in i915_gem_object_init()
1042 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()
144 obj->mm.madv == I915_MADV_DONTNEED ? " purgeable" : ""); in i915_debugfs_describe_obj()
413 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()
159 WARN_ON(bo->base.madv != PANFROST_MADV_WILLNEED); in panfrost_gem_open()