Lines Matching full:tile

59 	int i = reg - drm->tile.reg;  in nv10_bo_update_tile_region()
61 struct nvkm_fb_tile *tile = &fb->tile.region[i]; in nv10_bo_update_tile_region() local
65 if (tile->pitch) in nv10_bo_update_tile_region()
66 nvkm_fb_tile_fini(fb, i, tile); in nv10_bo_update_tile_region()
69 nvkm_fb_tile_init(fb, i, addr, size, pitch, flags, tile); in nv10_bo_update_tile_region()
71 nvkm_fb_tile_prog(fb, i, tile); in nv10_bo_update_tile_region()
78 struct nouveau_drm_tile *tile = &drm->tile.reg[i]; in nv10_bo_get_tile_region() local
80 spin_lock(&drm->tile.lock); in nv10_bo_get_tile_region()
82 if (!tile->used && in nv10_bo_get_tile_region()
83 (!tile->fence || nouveau_fence_done(tile->fence))) in nv10_bo_get_tile_region()
84 tile->used = true; in nv10_bo_get_tile_region()
86 tile = NULL; in nv10_bo_get_tile_region()
88 spin_unlock(&drm->tile.lock); in nv10_bo_get_tile_region()
89 return tile; in nv10_bo_get_tile_region()
93 nv10_bo_put_tile_region(struct drm_device *dev, struct nouveau_drm_tile *tile, in nv10_bo_put_tile_region() argument
98 if (tile) { in nv10_bo_put_tile_region()
99 spin_lock(&drm->tile.lock); in nv10_bo_put_tile_region()
100 tile->fence = (struct nouveau_fence *)dma_fence_get(fence); in nv10_bo_put_tile_region()
101 tile->used = false; in nv10_bo_put_tile_region()
102 spin_unlock(&drm->tile.lock); in nv10_bo_put_tile_region()
112 struct nouveau_drm_tile *tile, *found = NULL; in nv10_bo_set_tiling() local
115 for (i = 0; i < fb->tile.regions; i++) { in nv10_bo_set_tiling()
116 tile = nv10_bo_get_tile_region(dev, i); in nv10_bo_set_tiling()
119 found = tile; in nv10_bo_set_tiling()
122 } else if (tile && fb->tile.region[i].pitch) { in nv10_bo_set_tiling()
123 /* Kill an unused tile region. */ in nv10_bo_set_tiling()
124 nv10_bo_update_tile_region(dev, tile, 0, 0, 0, 0); in nv10_bo_set_tiling()
127 nv10_bo_put_tile_region(dev, tile, NULL); in nv10_bo_set_tiling()
144 nv10_bo_put_tile_region(dev, nvbo->tile, NULL); in nouveau_bo_del_ttm()
1067 nouveau_bo_vm_cleanup(bo, new_tile, &nvbo->tile); in nouveau_bo_move()