Lines Matching refs:inactive
1058 static struct list *inactive(struct kgem *kgem, int num_pages)
1062 return &kgem->inactive[cache_bucket(num_pages)];
1974 for (i = 0; i < ARRAY_SIZE(kgem->inactive); i++)
1975 list_init(&kgem->inactive[i]);
1981 for (j = 0; j < ARRAY_SIZE(kgem->vma[i].inactive); j++)
1982 list_init(&kgem->vma[i].inactive[j]);
2612 DBG(("%s: moving handle=%d to inactive\n", __FUNCTION__, bo->handle));
2643 list_move(&bo->list, &kgem->inactive[bucket(bo)]);
2651 list_add(&bo->vma, &kgem->vma[0].inactive[bucket(bo)]);
2655 list_add(&bo->vma, &kgem->vma[1].inactive[bucket(bo)]);
2700 DBG(("%s: removing handle=%d from inactive\n", __FUNCTION__, bo->handle));
2857 DBG(("%s: inactive and cache empty\n", __FUNCTION__));
3531 for (i = 0; i < ARRAY_SIZE(kgem->inactive); i++) {
3532 kgem_close_list(kgem, &kgem->inactive[i]);
3533 assert(list_is_empty(&kgem->inactive[i]));
4316 for (i = 0; i < ARRAY_SIZE(kgem->inactive); i++) {
4317 list_for_each_entry_safe(bo, next, &kgem->inactive[i], list) {
4445 for (i = 0; i < ARRAY_SIZE(kgem->inactive); i++) {
4446 idle &= list_is_empty(&kgem->inactive[i]);
4447 list_for_each_entry(bo, &kgem->inactive[i], list) {
4465 for (i = 0; i < ARRAY_SIZE(kgem->inactive); i++) {
4469 while (!list_is_empty(&kgem->inactive[i])) {
4470 bo = list_last_entry(&kgem->inactive[i],
4489 list_splice_tail(&preserve, &kgem->inactive[i]);
4496 for (i = 0; i < ARRAY_SIZE(kgem->inactive); i++)
4497 list_for_each_entry(bo, &kgem->inactive[i], list)
4499 DBG(("%s: still allocated %d bo, %ld bytes, in inactive cache\n",
4545 for (i = 0; i < ARRAY_SIZE(kgem->inactive); i++) {
4546 while (!list_is_empty(&kgem->inactive[i]))
4548 list_last_entry(&kgem->inactive[i],
4639 if (!use_active && list_is_empty(inactive(kgem, num_pages))) {
4640 DBG(("%s: inactive and cache bucket empty\n",
4658 if (list_is_empty(inactive(kgem, num_pages))) {
4667 DBG(("%s: searching for inactive %s map\n",
4669 cache = &kgem->vma[for_cpu].inactive[cache_bucket(num_pages)];
4679 DBG(("inactive too small: %d < %d\n",
4717 cache = use_active ? active(kgem, num_pages, I915_TILING_NONE) : inactive(kgem, num_pages);
4791 use_active ? "active" : "inactive"));
4813 use_active ? "active" : "inactive"));
5389 DBG(("%s(%dx%d, bpp=%d, tiling=%d, exact=%d, inactive=%d, cpu-mapping=%d, gtt-mapping=%d, scanout?=%d, prime?=%d, temp?=%d)\n", __FUNCTION__,
5604 DBG((" 1:from large inactive: pitch=%d, tiling=%d, handle=%d, id=%d\n",
5626 cache = &kgem->vma[for_cpu].inactive[bucket];
5640 DBG(("inactive too small: %d < %d\n",
5653 DBG(("inactive GTT vma with wrong tiling: %d < %d\n",
5677 DBG((" from inactive vma: pitch=%d, tiling=%d: handle=%d, id=%d\n",
5692 list_is_empty(&kgem->inactive[bucket]))
5877 cache = &kgem->inactive[bucket];
5886 DBG(("inactive too small: %d < %d\n",
5914 DBG((" from inactive: pitch=%d, tiling=%d: handle=%d, id=%d\n",
6792 bo == NULL && j < ARRAY_SIZE(kgem->vma[type].inactive);
6794 struct list *head = &kgem->vma[type].inactive[i++%ARRAY_SIZE(kgem->vma[type].inactive)];
6801 DBG(("%s: discarding inactive %s vma cache for %d\n",
7683 DBG(("%s: searching for an inactive GTT map for upload\n",