/Linux-v5.4/drivers/gpu/drm/nouveau/ |
D | nouveau_prime.c | 32 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() 64 struct nouveau_bo *nvbo; in nouveau_gem_prime_import_sg_table() local [all …]
|
D | nouveau_gem.c | 42 struct nouveau_bo *nvbo = nouveau_gem_object(gem); in nouveau_gem_object_del() local 43 struct nouveau_drm *drm = nouveau_bdev(nvbo->bo.bdev); in nouveau_gem_object_del() 52 drm_prime_gem_destroy(gem, nvbo->bo.sg); in nouveau_gem_object_del() 54 ttm_bo_put(&nvbo->bo); in nouveau_gem_object_del() 64 struct nouveau_bo *nvbo = nouveau_gem_object(gem); in nouveau_gem_object_open() local 65 struct nouveau_drm *drm = nouveau_bdev(nvbo->bo.bdev); in nouveau_gem_object_open() 74 ret = ttm_bo_reserve(&nvbo->bo, false, false, NULL); in nouveau_gem_object_open() 82 ret = nouveau_vma_new(nvbo, vmm, &vma); in nouveau_gem_object_open() 86 ttm_bo_unreserve(&nvbo->bo); in nouveau_gem_object_open() 112 nouveau_gem_object_unmap(struct nouveau_bo *nvbo, struct nouveau_vma *vma) in nouveau_gem_object_unmap() argument [all …]
|
D | nouveau_bo.c | 137 struct nouveau_bo *nvbo = nouveau_bo(bo); in nouveau_bo_del_ttm() local 139 WARN_ON(nvbo->pin_refcnt > 0); in nouveau_bo_del_ttm() 140 nv10_bo_put_tile_region(dev, nvbo->tile, NULL); in nouveau_bo_del_ttm() 149 kfree(nvbo); in nouveau_bo_del_ttm() 161 nouveau_bo_fixup_align(struct nouveau_bo *nvbo, u32 flags, in nouveau_bo_fixup_align() argument 164 struct nouveau_drm *drm = nouveau_bdev(nvbo->bo.bdev); in nouveau_bo_fixup_align() 168 if (nvbo->mode) { in nouveau_bo_fixup_align() 171 *size = roundup_64(*size, 64 * nvbo->mode); in nouveau_bo_fixup_align() 175 *size = roundup_64(*size, 64 * nvbo->mode); in nouveau_bo_fixup_align() 179 *size = roundup_64(*size, 64 * nvbo->mode); in nouveau_bo_fixup_align() [all …]
|
D | nouveau_vmm.c | 49 nouveau_vma_find(struct nouveau_bo *nvbo, struct nouveau_vmm *vmm) in nouveau_vma_find() argument 53 list_for_each_entry(vma, &nvbo->vma_list, head) { in nouveau_vma_find() 77 nouveau_vma_new(struct nouveau_bo *nvbo, struct nouveau_vmm *vmm, in nouveau_vma_new() argument 80 struct nouveau_mem *mem = nouveau_mem(&nvbo->bo.mem); in nouveau_vma_new() 85 if ((vma = *pvma = nouveau_vma_find(nvbo, vmm))) { in nouveau_vma_new() 97 list_add_tail(&vma->head, &nvbo->vma_list); in nouveau_vma_new() 99 if (nvbo->bo.mem.mem_type != TTM_PL_SYSTEM && in nouveau_vma_new() 100 mem->mem.page == nvbo->page) { in nouveau_vma_new()
|
D | nouveau_fbcon.c | 317 struct nouveau_bo *nvbo; in nouveau_fbcon_create() local 332 0, 0x0000, &nvbo); in nouveau_fbcon_create() 338 ret = nouveau_framebuffer_new(dev, &mode_cmd, nvbo, &fb); in nouveau_fbcon_create() 342 ret = nouveau_bo_pin(nvbo, TTM_PL_FLAG_VRAM, false); in nouveau_fbcon_create() 348 ret = nouveau_bo_map(nvbo); in nouveau_fbcon_create() 356 ret = nouveau_vma_new(nvbo, chan->vmm, &fb->vma); in nouveau_fbcon_create() 379 info->fix.smem_start = fb->nvbo->bo.mem.bus.base + in nouveau_fbcon_create() 380 fb->nvbo->bo.mem.bus.offset; in nouveau_fbcon_create() 381 info->fix.smem_len = fb->nvbo->bo.mem.num_pages << PAGE_SHIFT; in nouveau_fbcon_create() 383 info->screen_base = nvbo_kmap_obj_iovirtual(fb->nvbo); in nouveau_fbcon_create() [all …]
|
D | nouveau_ttm.c | 64 struct nouveau_bo *nvbo = nouveau_bo(bo); in nouveau_vram_manager_new() local 72 ret = nouveau_mem_new(&drm->master, nvbo->kind, nvbo->comp, reg); in nouveau_vram_manager_new() 77 ret = nouveau_mem_vram(reg, nvbo->contig, nvbo->page); in nouveau_vram_manager_new() 104 struct nouveau_bo *nvbo = nouveau_bo(bo); in nouveau_gart_manager_new() local 109 ret = nouveau_mem_new(&drm->master, nvbo->kind, nvbo->comp, reg); in nouveau_gart_manager_new() 132 struct nouveau_bo *nvbo = nouveau_bo(bo); in nv04_gart_manager_new() local 137 ret = nouveau_mem_new(&drm->master, nvbo->kind, nvbo->comp, reg); in nv04_gart_manager_new()
|
D | nouveau_bo.h | 93 void nouveau_bo_sync_for_device(struct nouveau_bo *nvbo); 94 void nouveau_bo_sync_for_cpu(struct nouveau_bo *nvbo); 98 nvbo_kmap_obj_iovirtual(struct nouveau_bo *nvbo) in nvbo_kmap_obj_iovirtual() argument 102 &nvbo->kmap, &is_iomem); in nvbo_kmap_obj_iovirtual()
|
D | nouveau_display.c | 205 if (fb->nvbo) in nouveau_user_framebuffer_destroy() 206 drm_gem_object_put_unlocked(&fb->nvbo->bo.base); in nouveau_user_framebuffer_destroy() 219 return drm_gem_handle_create(file_priv, &fb->nvbo->bo.base, handle); in nouveau_user_framebuffer_create_handle() 230 struct nouveau_bo *nvbo, in nouveau_framebuffer_new() argument 261 fb->nvbo = nvbo; in nouveau_framebuffer_new() 275 struct nouveau_bo *nvbo; in nouveau_user_framebuffer_create() local 282 nvbo = nouveau_gem_object(gem); in nouveau_user_framebuffer_create() 284 ret = nouveau_framebuffer_new(dev, mode_cmd, nvbo, &fb); in nouveau_user_framebuffer_create()
|
D | nouveau_crtc.h | 56 struct nouveau_bo *nvbo; member
|
D | nouveau_display.h | 13 struct nouveau_bo *nvbo; member
|
D | nouveau_fence.c | 333 nouveau_fence_sync(struct nouveau_bo *nvbo, struct nouveau_channel *chan, bool exclusive, bool intr) in nouveau_fence_sync() argument 337 struct dma_resv *resv = nvbo->bo.base.resv; in nouveau_fence_sync()
|
/Linux-v5.4/drivers/gpu/drm/nouveau/dispnv04/ |
D | disp.c | 58 if (!nouveau_fb || !nouveau_fb->nvbo) in nv04_display_fini() 61 nouveau_bo_unpin(nouveau_fb->nvbo); in nv04_display_fini() 66 if (nv_crtc->cursor.nvbo) { in nv04_display_fini() 68 nouveau_bo_unmap(nv_crtc->cursor.nvbo); in nv04_display_fini() 69 nouveau_bo_unpin(nv_crtc->cursor.nvbo); in nv04_display_fini() 110 if (!nouveau_fb || !nouveau_fb->nvbo) in nv04_display_init() 113 ret = nouveau_bo_pin(nouveau_fb->nvbo, TTM_PL_FLAG_VRAM, true); in nv04_display_init() 120 if (!nv_crtc->cursor.nvbo) in nv04_display_init() 123 ret = nouveau_bo_pin(nv_crtc->cursor.nvbo, TTM_PL_FLAG_VRAM, true); in nv04_display_init() 125 ret = nouveau_bo_map(nv_crtc->cursor.nvbo); in nv04_display_init() [all …]
|
D | overlay.c | 143 ret = nouveau_bo_pin(nv_fb->nvbo, TTM_PL_FLAG_VRAM, false); in nv10_update_plane() 147 nv_plane->cur = nv_fb->nvbo; in nv10_update_plane() 153 nvif_wr32(dev, NV_PVIDEO_OFFSET_BUFF(flip), nv_fb->nvbo->bo.offset); in nv10_update_plane() 175 nv_fb->nvbo->bo.offset + fb->offsets[1]); in nv10_update_plane() 387 ret = nouveau_bo_pin(nv_fb->nvbo, TTM_PL_FLAG_VRAM, false); in nv04_update_plane() 391 nv_plane->cur = nv_fb->nvbo; in nv04_update_plane() 399 nv_fb->nvbo->bo.offset); in nv04_update_plane()
|
D | crtc.c | 612 ret = nouveau_bo_pin(nvfb->nvbo, TTM_PL_FLAG_VRAM, false); in nv_crtc_swap_fbs() 616 nouveau_bo_ref(nvfb->nvbo, &disp->image[nv_crtc->index]); in nv_crtc_swap_fbs() 755 nouveau_bo_unmap(nv_crtc->cursor.nvbo); in nv_crtc_destroy() 756 nouveau_bo_unpin(nv_crtc->cursor.nvbo); in nv_crtc_destroy() 757 nouveau_bo_ref(NULL, &nv_crtc->cursor.nvbo); in nv_crtc_destroy() 848 nv_crtc->fb.offset = fb->nvbo->bo.offset; in nv04_crtc_do_mode_set_base() 1011 nv11_cursor_upload(dev, cursor, nv_crtc->cursor.nvbo); in nv04_crtc_cursor_set() 1013 nv04_cursor_upload(dev, cursor, nv_crtc->cursor.nvbo); in nv04_crtc_cursor_set() 1016 nv_crtc->cursor.offset = nv_crtc->cursor.nvbo->bo.offset; in nv04_crtc_cursor_set() 1146 struct nouveau_bo *old_bo = nouveau_framebuffer(crtc->primary->fb)->nvbo; in nv04_crtc_page_flip() [all …]
|
/Linux-v5.4/drivers/gpu/drm/nouveau/dispnv50/ |
D | wndw.c | 46 const u8 kind = fb->nvbo->kind; in nv50_wndw_ctxdma_new() 246 asyw->image.kind = fb->nvbo->kind; in nv50_wndw_atomic_check_acquire() 258 asyw->image.blockh = fb->nvbo->mode >> 4; in nv50_wndw_atomic_check_acquire() 260 asyw->image.blockh = fb->nvbo->mode; in nv50_wndw_atomic_check_acquire() 472 nouveau_bo_unpin(fb->nvbo); in nv50_wndw_cleanup_fb() 490 ret = nouveau_bo_pin(fb->nvbo, TTM_PL_FLAG_VRAM, true); in nv50_wndw_prepare_fb() 497 nouveau_bo_unpin(fb->nvbo); in nv50_wndw_prepare_fb() 504 asyw->state.fence = dma_resv_get_excl_rcu(fb->nvbo->bo.base.resv); in nv50_wndw_prepare_fb() 505 asyw->image.offset[0] = fb->nvbo->bo.offset; in nv50_wndw_prepare_fb()
|