Lines Matching refs:madv
272 * the purgeable lock in order to acquire the madv one and update the
273 * madv status.
275 * the BO as unpurgeable, and if bo->madv is set to
303 WARN_ON(bo->madv != VC4_MADV_DONTNEED);
309 bo->madv = __VC4_MADV_PURGED;
334 * the BO madv one, the user may have marked the BO as WILLNEED
342 if (bo->madv == VC4_MADV_DONTNEED &&
406 bo->madv = VC4_MADV_WILLNEED;
482 bo->madv = __VC4_MADV_NOTSUPP;
510 bo->madv = VC4_MADV_WILLNEED;
552 if (bo->madv == VC4_MADV_DONTNEED && !refcount_read(&bo->usecnt))
592 /* Reset madv and usecnt before adding the BO to the cache. */
593 bo->madv = __VC4_MADV_NOTSUPP;
629 * check the madv status.
635 switch (bo->madv) {
651 /* Invalid madv value. */
668 * the madv value.
675 bo->madv == VC4_MADV_DONTNEED)
726 WARN_ON(bo->madv != __VC4_MADV_PURGED);
741 if (bo->madv != VC4_MADV_WILLNEED) {
743 bo->madv == VC4_MADV_DONTNEED ?
801 bo->madv = VC4_MADV_WILLNEED;
869 bo->madv = VC4_MADV_WILLNEED;