Home
last modified time | relevance | path

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

/linux-3.4.99/drivers/gpu/drm/nouveau/
Dnouveau_gem.c44 struct nouveau_bo *nvbo = gem->driver_private; in nouveau_gem_object_del() local
45 struct ttm_buffer_object *bo = &nvbo->bo; in nouveau_gem_object_del()
47 if (!nvbo) in nouveau_gem_object_del()
49 nvbo->gem = NULL; in nouveau_gem_object_del()
51 if (unlikely(nvbo->pin_refcnt)) { in nouveau_gem_object_del()
52 nvbo->pin_refcnt = 1; in nouveau_gem_object_del()
53 nouveau_bo_unpin(nvbo); in nouveau_gem_object_del()
66 struct nouveau_bo *nvbo = nouveau_gem_object(gem); in nouveau_gem_object_open() local
73 ret = ttm_bo_reserve(&nvbo->bo, false, false, false, 0); in nouveau_gem_object_open()
77 vma = nouveau_bo_vma_find(nvbo, fpriv->vm); in nouveau_gem_object_open()
[all …]
Dnouveau_bo.c47 struct nouveau_bo *nvbo = nouveau_bo(bo); in nouveau_bo_del_ttm() local
49 if (unlikely(nvbo->gem)) in nouveau_bo_del_ttm()
52 nv10_mem_put_tile_region(dev, nvbo->tile, NULL); in nouveau_bo_del_ttm()
53 kfree(nvbo); in nouveau_bo_del_ttm()
57 nouveau_bo_fixup_align(struct nouveau_bo *nvbo, u32 flags, in nouveau_bo_fixup_align() argument
60 struct drm_nouveau_private *dev_priv = nouveau_bdev(nvbo->bo.bdev); in nouveau_bo_fixup_align()
63 if (nvbo->tile_mode) { in nouveau_bo_fixup_align()
66 *size = roundup(*size, 64 * nvbo->tile_mode); in nouveau_bo_fixup_align()
70 *size = roundup(*size, 64 * nvbo->tile_mode); in nouveau_bo_fixup_align()
74 *size = roundup(*size, 64 * nvbo->tile_mode); in nouveau_bo_fixup_align()
[all …]
Dnouveau_fbcon.c284 struct nouveau_bo *nvbo; in nouveau_fbcon_create() local
303 0, 0x0000, &nvbo); in nouveau_fbcon_create()
309 ret = nouveau_bo_pin(nvbo, TTM_PL_FLAG_VRAM); in nouveau_fbcon_create()
312 nouveau_bo_ref(NULL, &nvbo); in nouveau_fbcon_create()
316 ret = nouveau_bo_map(nvbo); in nouveau_fbcon_create()
319 nouveau_bo_unpin(nvbo); in nouveau_fbcon_create()
320 nouveau_bo_ref(NULL, &nvbo); in nouveau_fbcon_create()
326 ret = nouveau_bo_vma_add(nvbo, chan->vm, &nfbdev->nouveau_fb.vma); in nouveau_fbcon_create()
349 nouveau_framebuffer_init(dev, &nfbdev->nouveau_fb, &mode_cmd, nvbo); in nouveau_fbcon_create()
367 info->fix.smem_start = nvbo->bo.mem.bus.base + in nouveau_fbcon_create()
[all …]
Dnv50_crtc.c45 void __iomem *lut = nvbo_kmap_obj_iovirtual(nv_crtc->lut.nvbo); in nv50_crtc_lut_load()
107 OUT_RING(evo, nv_crtc->lut.nvbo->bo.offset >> 8); in nv50_crtc_blank()
399 nouveau_bo_unmap(nv_crtc->lut.nvbo); in nv50_crtc_destroy()
400 nouveau_bo_ref(NULL, &nv_crtc->lut.nvbo); in nv50_crtc_destroy()
401 nouveau_bo_unmap(nv_crtc->cursor.nvbo); in nv50_crtc_destroy()
402 nouveau_bo_ref(NULL, &nv_crtc->cursor.nvbo); in nv50_crtc_destroy()
435 nouveau_bo_wr32(nv_crtc->cursor.nvbo, i, nouveau_bo_rd32(cursor, i)); in nv50_crtc_cursor_set()
439 nv_crtc->cursor.set_offset(nv_crtc, nv_crtc->cursor.nvbo->bo.offset); in nv50_crtc_cursor_set()
578 ret = nouveau_bo_pin(fb->nvbo, TTM_PL_FLAG_VRAM); in nv50_crtc_do_mode_set_base()
584 nouveau_bo_unpin(ofb->nvbo); in nv50_crtc_do_mode_set_base()
[all …]
Dnouveau_drv.c202 if (!nouveau_fb || !nouveau_fb->nvbo) in nouveau_pci_suspend()
205 nouveau_bo_unpin(nouveau_fb->nvbo); in nouveau_pci_suspend()
211 nouveau_bo_unmap(nv_crtc->cursor.nvbo); in nouveau_pci_suspend()
212 nouveau_bo_unpin(nv_crtc->cursor.nvbo); in nouveau_pci_suspend()
352 if (!nouveau_fb || !nouveau_fb->nvbo) in nouveau_pci_resume()
355 nouveau_bo_pin(nouveau_fb->nvbo, TTM_PL_FLAG_VRAM); in nouveau_pci_resume()
361 ret = nouveau_bo_pin(nv_crtc->cursor.nvbo, TTM_PL_FLAG_VRAM); in nouveau_pci_resume()
363 ret = nouveau_bo_map(nv_crtc->cursor.nvbo); in nouveau_pci_resume()
386 u32 offset = nv_crtc->cursor.nvbo->bo.offset; in nouveau_pci_resume()
Dnouveau_display.c44 if (fb->nvbo) in nouveau_user_framebuffer_destroy()
45 drm_gem_object_unreference_unlocked(fb->nvbo->gem); in nouveau_user_framebuffer_destroy()
58 return drm_gem_handle_create(file_priv, fb->nvbo->gem, handle); in nouveau_user_framebuffer_create_handle()
70 struct nouveau_bo *nvbo) in nouveau_framebuffer_init() argument
82 nv_fb->nvbo = nvbo; in nouveau_framebuffer_init()
85 u32 tile_flags = nouveau_bo_tile_layout(nvbo); in nouveau_framebuffer_init()
116 u32 mode = nvbo->tile_mode; in nouveau_framebuffer_init()
477 struct nouveau_bo *old_bo = nouveau_framebuffer(crtc->fb)->nvbo; in nouveau_crtc_page_flip()
478 struct nouveau_bo *new_bo = nouveau_framebuffer(fb)->nvbo; in nouveau_crtc_page_flip()
Dnouveau_fb.h32 struct nouveau_bo *nvbo; member
46 struct drm_mode_fb_cmd2 *mode_cmd, struct nouveau_bo *nvbo);
Dnouveau_crtc.h53 struct nouveau_bo *nvbo; member
63 struct nouveau_bo *nvbo; member
Dnvd0_display.c346 evo_data(push, nv_fb->nvbo->bo.offset >> 8); in nvd0_display_flip_next()
509 evo_data(push, nvfb->nvbo->bo.offset >> 8); in nvd0_crtc_set_image()
537 evo_data(push, nv_crtc->cursor.nvbo->bo.offset >> 8); in nvd0_crtc_cursor_show()
595 evo_data(push, nv_crtc->lut.nvbo->bo.offset >> 8); in nvd0_crtc_commit()
622 ret = nouveau_bo_pin(nvfb->nvbo, TTM_PL_FLAG_VRAM); in nvd0_crtc_swap_fbs()
628 nouveau_bo_unpin(nvfb->nvbo); in nvd0_crtc_swap_fbs()
737 void __iomem *lut = nvbo_kmap_obj_iovirtual(nv_crtc->lut.nvbo); in nvd0_crtc_lut_load()
754 struct nouveau_bo *nvbo; in nvd0_crtc_cursor_set() local
765 nvbo = nouveau_gem_object(gem); in nvd0_crtc_cursor_set()
767 ret = nouveau_bo_map(nvbo); in nvd0_crtc_cursor_set()
[all …]
Dnv04_crtc.c725 nouveau_bo_unmap(nv_crtc->cursor.nvbo); in nv_crtc_destroy()
726 nouveau_bo_ref(NULL, &nv_crtc->cursor.nvbo); in nv_crtc_destroy()
811 ret = nouveau_bo_pin(fb->nvbo, TTM_PL_FLAG_VRAM); in nv04_crtc_do_mode_set_base()
817 nouveau_bo_unpin(ofb->nvbo); in nv04_crtc_do_mode_set_base()
821 nv_crtc->fb.offset = fb->nvbo->bo.offset; in nv04_crtc_do_mode_set_base()
981 nv11_cursor_upload(dev, cursor, nv_crtc->cursor.nvbo); in nv04_crtc_cursor_set()
983 nv04_cursor_upload(dev, cursor, nv_crtc->cursor.nvbo); in nv04_crtc_cursor_set()
986 nv_crtc->cursor.offset = nv_crtc->cursor.nvbo->bo.offset; in nv04_crtc_cursor_set()
1050 0, 0x0000, &nv_crtc->cursor.nvbo); in nv04_crtc_create()
1052 ret = nouveau_bo_pin(nv_crtc->cursor.nvbo, TTM_PL_FLAG_VRAM); in nv04_crtc_create()
[all …]
Dnouveau_drv.h127 #define nouveau_bo_tile_layout(nvbo) \ argument
128 ((nvbo)->tile_flags & NOUVEAU_GEM_TILE_LAYOUT_MASK)
144 nvbo_kmap_obj_iovirtual(struct nouveau_bo *nvbo) in nvbo_kmap_obj_iovirtual() argument
148 &nvbo->kmap, &is_iomem); in nvbo_kmap_obj_iovirtual()
1426 extern u16 nouveau_bo_rd16(struct nouveau_bo *nvbo, unsigned index);
1427 extern void nouveau_bo_wr16(struct nouveau_bo *nvbo, unsigned index, u16 val);
1428 extern u32 nouveau_bo_rd32(struct nouveau_bo *nvbo, unsigned index);
1429 extern void nouveau_bo_wr32(struct nouveau_bo *nvbo, unsigned index, u32 val);
Dnouveau_mem.c1137 struct nouveau_bo *nvbo = nouveau_bo(bo); in nouveau_vram_manager_new() local
1142 if (nvbo->tile_flags & NOUVEAU_GEM_TILE_NONCONTIG) in nouveau_vram_manager_new()
1143 size_nc = 1 << nvbo->page_shift; in nouveau_vram_manager_new()
1147 (nvbo->tile_flags >> 8) & 0x3ff, &node); in nouveau_vram_manager_new()
1153 node->page_shift = nvbo->page_shift; in nouveau_vram_manager_new()
Dnv50_display.c539 OUT_RING (evo, nv_fb->nvbo->bo.offset >> 8); in nv50_display_flip_next()