Home
last modified time | relevance | path

Searched refs:nvbo (Results 1 – 12 of 12) sorted by relevance

/drivers/gpu/drm/nouveau/
Dnouveau_gem.c46 struct nouveau_bo *nvbo = gem->driver_private; in nouveau_gem_object_del() local
47 struct ttm_buffer_object *bo = &nvbo->bo; in nouveau_gem_object_del()
49 if (!nvbo) in nouveau_gem_object_del()
51 nvbo->gem = NULL; in nouveau_gem_object_del()
53 if (unlikely(nvbo->pin_refcnt)) { in nouveau_gem_object_del()
54 nvbo->pin_refcnt = 1; in nouveau_gem_object_del()
55 nouveau_bo_unpin(nvbo); in nouveau_gem_object_del()
59 drm_prime_gem_destroy(gem, nvbo->bo.sg); in nouveau_gem_object_del()
71 struct nouveau_bo *nvbo = nouveau_gem_object(gem); in nouveau_gem_object_open() local
78 ret = ttm_bo_reserve(&nvbo->bo, false, false, false, 0); in nouveau_gem_object_open()
[all …]
Dnouveau_prime.c32 struct nouveau_bo *nvbo = nouveau_gem_object(obj); in nouveau_gem_prime_get_sg_table() local
33 int npages = nvbo->bo.num_pages; in nouveau_gem_prime_get_sg_table()
35 return drm_prime_pages_to_sg(nvbo->bo.ttm->pages, npages); in nouveau_gem_prime_get_sg_table()
40 struct nouveau_bo *nvbo = nouveau_gem_object(obj); in nouveau_gem_prime_vmap() local
43 ret = ttm_bo_kmap(&nvbo->bo, 0, nvbo->bo.num_pages, in nouveau_gem_prime_vmap()
44 &nvbo->dma_buf_vmap); in nouveau_gem_prime_vmap()
48 return nvbo->dma_buf_vmap.virtual; in nouveau_gem_prime_vmap()
53 struct nouveau_bo *nvbo = nouveau_gem_object(obj); in nouveau_gem_prime_vunmap() local
55 ttm_bo_kunmap(&nvbo->dma_buf_vmap); in nouveau_gem_prime_vunmap()
62 struct nouveau_bo *nvbo; in nouveau_gem_prime_import_sg_table() local
[all …]
Dnouveau_bo.c147 struct nouveau_bo *nvbo = nouveau_bo(bo); in nouveau_bo_del_ttm() local
149 if (unlikely(nvbo->gem)) in nouveau_bo_del_ttm()
151 nv10_bo_put_tile_region(dev, nvbo->tile, NULL); in nouveau_bo_del_ttm()
152 kfree(nvbo); in nouveau_bo_del_ttm()
156 nouveau_bo_fixup_align(struct nouveau_bo *nvbo, u32 flags, in nouveau_bo_fixup_align() argument
159 struct nouveau_drm *drm = nouveau_bdev(nvbo->bo.bdev); in nouveau_bo_fixup_align()
163 if (nvbo->tile_mode) { in nouveau_bo_fixup_align()
166 *size = roundup(*size, 64 * nvbo->tile_mode); in nouveau_bo_fixup_align()
170 *size = roundup(*size, 64 * nvbo->tile_mode); in nouveau_bo_fixup_align()
174 *size = roundup(*size, 64 * nvbo->tile_mode); in nouveau_bo_fixup_align()
[all …]
Dnouveau_fbcon.c265 struct nouveau_bo *nvbo; in nouveau_fbcon_create() local
283 0, 0x0000, &nvbo); in nouveau_fbcon_create()
289 ret = nouveau_bo_pin(nvbo, TTM_PL_FLAG_VRAM); in nouveau_fbcon_create()
292 nouveau_bo_ref(NULL, &nvbo); in nouveau_fbcon_create()
296 ret = nouveau_bo_map(nvbo); in nouveau_fbcon_create()
299 nouveau_bo_unpin(nvbo); in nouveau_fbcon_create()
300 nouveau_bo_ref(NULL, &nvbo); in nouveau_fbcon_create()
306 ret = nouveau_bo_vma_add(nvbo, nv_client(chan->cli)->vm, in nouveau_fbcon_create()
330 nouveau_framebuffer_init(dev, &fbcon->nouveau_fb, &mode_cmd, nvbo); in nouveau_fbcon_create()
348 info->fix.smem_start = nvbo->bo.mem.bus.base + in nouveau_fbcon_create()
[all …]
Dnouveau_display.c51 if (fb->nvbo) in nouveau_user_framebuffer_destroy()
52 drm_gem_object_unreference_unlocked(fb->nvbo->gem); in nouveau_user_framebuffer_destroy()
65 return drm_gem_handle_create(file_priv, fb->nvbo->gem, handle); in nouveau_user_framebuffer_create_handle()
77 struct nouveau_bo *nvbo) in nouveau_framebuffer_init() argument
84 nv_fb->nvbo = nvbo; in nouveau_framebuffer_init()
87 u32 tile_flags = nouveau_bo_tile_layout(nvbo); in nouveau_framebuffer_init()
118 u32 mode = nvbo->tile_mode; in nouveau_framebuffer_init()
392 if (!nouveau_fb || !nouveau_fb->nvbo) in nouveau_display_suspend()
395 nouveau_bo_unpin(nouveau_fb->nvbo); in nouveau_display_suspend()
401 nouveau_bo_unmap(nv_crtc->cursor.nvbo); in nouveau_display_suspend()
[all …]
Dnv50_display.c617 evo_data(push, nv_fb->nvbo->bo.offset >> 8); in nv50_display_flip_next()
624 evo_data(push, nv_fb->nvbo->bo.offset >> 8); in nv50_display_flip_next()
834 evo_data(push, nvfb->nvbo->bo.offset >> 8); in nv50_crtc_set_image()
847 evo_data(push, nvfb->nvbo->bo.offset >> 8); in nv50_crtc_set_image()
877 evo_data(push, nv_crtc->cursor.nvbo->bo.offset >> 8); in nv50_crtc_cursor_show()
882 evo_data(push, nv_crtc->cursor.nvbo->bo.offset >> 8); in nv50_crtc_cursor_show()
888 evo_data(push, nv_crtc->cursor.nvbo->bo.offset >> 8); in nv50_crtc_cursor_show()
999 evo_data(push, nv_crtc->lut.nvbo->bo.offset >> 8); in nv50_crtc_commit()
1006 evo_data(push, nv_crtc->lut.nvbo->bo.offset >> 8); in nv50_crtc_commit()
1014 evo_data(push, nv_crtc->lut.nvbo->bo.offset >> 8); in nv50_crtc_commit()
[all …]
Dnouveau_ttm.c83 struct nouveau_bo *nvbo = nouveau_bo(bo); in nouveau_vram_manager_new() local
88 if (nvbo->tile_flags & NOUVEAU_GEM_TILE_NONCONTIG) in nouveau_vram_manager_new()
89 size_nc = 1 << nvbo->page_shift; in nouveau_vram_manager_new()
93 (nvbo->tile_flags >> 8) & 0x3ff, &node); in nouveau_vram_manager_new()
99 node->page_shift = nvbo->page_shift; in nouveau_vram_manager_new()
168 struct nouveau_bo *nvbo = nouveau_bo(bo); in nouveau_gart_manager_new() local
182 node->memtype = (nvbo->tile_flags & 0x7f00) >> 8; in nouveau_gart_manager_new()
187 node->memtype = (nvbo->tile_flags & 0xff00) >> 8; in nouveau_gart_manager_new()
Dnouveau_gem.h9 #define nouveau_bo_tile_layout(nvbo) \ argument
10 ((nvbo)->tile_flags & NOUVEAU_GEM_TILE_LAYOUT_MASK)
Dnouveau_crtc.h53 struct nouveau_bo *nvbo; member
63 struct nouveau_bo *nvbo; member
Dnouveau_bo.h91 nvbo_kmap_obj_iovirtual(struct nouveau_bo *nvbo) in nvbo_kmap_obj_iovirtual() argument
95 &nvbo->kmap, &is_iomem); in nvbo_kmap_obj_iovirtual()
Dnouveau_display.h10 struct nouveau_bo *nvbo; member
/drivers/gpu/drm/nouveau/dispnv04/
Dcrtc.c732 nouveau_bo_unmap(nv_crtc->cursor.nvbo); in nv_crtc_destroy()
733 nouveau_bo_unpin(nv_crtc->cursor.nvbo); in nv_crtc_destroy()
734 nouveau_bo_ref(NULL, &nv_crtc->cursor.nvbo); in nv_crtc_destroy()
818 ret = nouveau_bo_pin(fb->nvbo, TTM_PL_FLAG_VRAM); in nv04_crtc_do_mode_set_base()
824 nouveau_bo_unpin(ofb->nvbo); in nv04_crtc_do_mode_set_base()
828 nv_crtc->fb.offset = fb->nvbo->bo.offset; in nv04_crtc_do_mode_set_base()
988 nv11_cursor_upload(dev, cursor, nv_crtc->cursor.nvbo); in nv04_crtc_cursor_set()
990 nv04_cursor_upload(dev, cursor, nv_crtc->cursor.nvbo); in nv04_crtc_cursor_set()
993 nv_crtc->cursor.offset = nv_crtc->cursor.nvbo->bo.offset; in nv04_crtc_cursor_set()
1057 0, 0x0000, NULL, &nv_crtc->cursor.nvbo); in nv04_crtc_create()
[all …]