Lines Matching refs:madv
261 * the purgeable lock in order to acquire the madv one and update the
262 * madv status.
264 * the BO as unpurgeable, and if bo->madv is set to
292 WARN_ON(bo->madv != VC4_MADV_DONTNEED);
298 bo->madv = __VC4_MADV_PURGED;
323 * the BO madv one, the user may have marked the BO as WILLNEED
331 if (bo->madv == VC4_MADV_DONTNEED &&
394 bo->madv = VC4_MADV_WILLNEED;
463 bo->madv = __VC4_MADV_NOTSUPP;
490 bo->madv = VC4_MADV_WILLNEED;
532 if (bo->madv == VC4_MADV_DONTNEED && !refcount_read(&bo->usecnt))
572 /* Reset madv and usecnt before adding the BO to the cache. */
573 bo->madv = __VC4_MADV_NOTSUPP;
605 * check the madv status.
611 switch (bo->madv) {
627 /* Invalid madv value. */
639 * the madv value.
646 bo->madv == VC4_MADV_DONTNEED)
697 WARN_ON(bo->madv != __VC4_MADV_PURGED);
722 if (bo->madv != VC4_MADV_WILLNEED) {
724 bo->madv == VC4_MADV_DONTNEED ?
834 bo->madv = VC4_MADV_WILLNEED;
895 bo->madv = VC4_MADV_WILLNEED;