Lines Matching refs:purgeable

58 	mutex_lock(&vc4->purgeable.lock);
59 if (vc4->purgeable.num)
61 vc4->purgeable.size / 1024, vc4->purgeable.num);
63 if (vc4->purgeable.purged_num)
65 vc4->purgeable.purged_size / 1024,
66 vc4->purgeable.purged_num);
67 mutex_unlock(&vc4->purgeable.lock);
257 mutex_lock(&vc4->purgeable.lock);
258 list_add_tail(&bo->size_head, &vc4->purgeable.list);
259 vc4->purgeable.num++;
260 vc4->purgeable.size += bo->base.base.size;
261 mutex_unlock(&vc4->purgeable.lock);
272 * the purgeable lock in order to acquire the madv one and update the
277 * purgeable list which will fail if the ->next/prev fields
284 vc4->purgeable.num--;
285 vc4->purgeable.size -= bo->base.base.size;
292 mutex_lock(&vc4->purgeable.lock);
294 mutex_unlock(&vc4->purgeable.lock);
316 mutex_lock(&vc4->purgeable.lock);
317 while (!list_empty(&vc4->purgeable.list)) {
318 struct vc4_bo *bo = list_first_entry(&vc4->purgeable.list,
325 /* Release the purgeable lock while we're purging the BO so
327 * purgeable pool without having to wait for all BOs to be
330 mutex_unlock(&vc4->purgeable.lock);
333 /* Since we released the purgeable pool lock before acquiring
338 * - it has not been re-inserted in the purgeable list
349 mutex_lock(&vc4->purgeable.lock);
352 vc4->purgeable.purged_size += purged_size;
353 vc4->purgeable.purged_num++;
356 mutex_unlock(&vc4->purgeable.lock);
550 /* Remove the BO from the purgeable list. */
642 /* We shouldn't use a BO marked as purgeable if at least
701 * expect exported BOs to be marked as purgeable.
744 "purgeable" : "purged");