/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
D | base.c | 32 struct nvkm_vm *vm = vma->vm; in nvkm_vm_map_at() local 33 struct nvkm_mmu *mmu = vm->mmu; in nvkm_vm_map_at() 38 u32 pde = (offset >> mmu->func->pgt_bits) - vm->fpde; in nvkm_vm_map_at() 49 struct nvkm_memory *pgt = vm->pgt[pde].mem[big]; in nvkm_vm_map_at() 70 mmu->func->flush(vm); in nvkm_vm_map_at() 77 struct nvkm_vm *vm = vma->vm; in nvkm_vm_map_sg_table() local 78 struct nvkm_mmu *mmu = vm->mmu; in nvkm_vm_map_sg_table() 83 u32 pde = (offset >> mmu->func->pgt_bits) - vm->fpde; in nvkm_vm_map_sg_table() 92 struct nvkm_memory *pgt = vm->pgt[pde].mem[big]; in nvkm_vm_map_sg_table() 128 mmu->func->flush(vm); in nvkm_vm_map_sg_table() [all …]
|
D | nv04.c | 67 nv04_vm_flush(struct nvkm_vm *vm) in nv04_vm_flush() argument 84 &mmu->vm); in nv04_mmu_oneinit() 91 mmu->vm->pgt[0].mem[0] = dma; in nv04_mmu_oneinit() 92 mmu->vm->pgt[0].refcount[0] = 1; in nv04_mmu_oneinit() 108 if (mmu->vm) { in nv04_mmu_dtor() 109 nvkm_memory_del(&mmu->vm->pgt[0].mem[0]); in nv04_mmu_dtor() 110 nvkm_vm_ref(NULL, &mmu->vm, NULL); in nv04_mmu_dtor()
|
D | nv41.c | 69 nv41_vm_flush(struct nvkm_vm *vm) in nv41_vm_flush() argument 71 struct nv04_mmu *mmu = nv04_mmu(vm->mmu); in nv41_vm_flush() 96 &mmu->vm); in nv41_mmu_oneinit() 102 &mmu->vm->pgt[0].mem[0]); in nv41_mmu_oneinit() 103 mmu->vm->pgt[0].refcount[0] = 1; in nv41_mmu_oneinit() 112 struct nvkm_memory *dma = mmu->vm->pgt[0].mem[0]; in nv41_mmu_init()
|
D | nv44.c | 87 struct nv04_mmu *mmu = nv04_mmu(vma->vm->mmu); in nv44_vm_map_sg() 119 struct nv04_mmu *mmu = nv04_mmu(vma->vm->mmu); in nv44_vm_unmap() 144 nv44_vm_flush(struct nvkm_vm *vm) in nv44_vm_flush() argument 146 struct nv04_mmu *mmu = nv04_mmu(vm->mmu); in nv44_vm_flush() 176 &mmu->vm); in nv44_mmu_oneinit() 183 &mmu->vm->pgt[0].mem[0]); in nv44_mmu_oneinit() 184 mmu->vm->pgt[0].refcount[0] = 1; in nv44_mmu_oneinit() 193 struct nvkm_memory *gart = mmu->vm->pgt[0].mem[0]; in nv44_mmu_init()
|
/drivers/gpu/drm/radeon/ |
D | radeon_vm.c | 129 struct radeon_vm *vm, in radeon_vm_get_bos() argument 135 list = drm_malloc_ab(vm->max_pde_used + 2, in radeon_vm_get_bos() 141 list[0].robj = vm->page_directory; in radeon_vm_get_bos() 144 list[0].tv.bo = &vm->page_directory->tbo; in radeon_vm_get_bos() 149 for (i = 0, idx = 1; i <= vm->max_pde_used; i++) { in radeon_vm_get_bos() 150 if (!vm->page_tables[i].bo) in radeon_vm_get_bos() 153 list[idx].robj = vm->page_tables[i].bo; in radeon_vm_get_bos() 178 struct radeon_vm *vm, int ring) in radeon_vm_grab_id() argument 181 struct radeon_vm_id *vm_id = &vm->ids[ring]; in radeon_vm_grab_id() 237 struct radeon_vm *vm, in radeon_vm_flush() argument [all …]
|
D | radeon_ib.c | 56 struct radeon_ib *ib, struct radeon_vm *vm, in radeon_ib_get() argument 72 ib->vm = vm; in radeon_ib_get() 73 if (vm) { in radeon_ib_get() 142 if (ib->vm) { in radeon_ib_schedule() 144 vm_id_fence = radeon_vm_grab_id(rdev, ib->vm, ib->ring); in radeon_ib_schedule() 156 if (ib->vm) in radeon_ib_schedule() 157 radeon_vm_flush(rdev, ib->vm, ib->ring, in radeon_ib_schedule() 175 if (ib->vm) in radeon_ib_schedule() 176 radeon_vm_fence(rdev, ib->vm, ib->fence); in radeon_ib_schedule()
|
D | radeon_cs.c | 176 p->vm_bos = radeon_vm_get_bos(p->rdev, p->ib.vm, in radeon_cs_parser_relocs() 478 struct radeon_vm *vm) in radeon_bo_vm_update_pte() argument 484 r = radeon_vm_update_page_directory(rdev, vm); in radeon_bo_vm_update_pte() 488 r = radeon_vm_clear_freed(rdev, vm); in radeon_bo_vm_update_pte() 492 if (vm->ib_bo_va == NULL) { in radeon_bo_vm_update_pte() 497 r = radeon_vm_bo_update(rdev, vm->ib_bo_va, in radeon_bo_vm_update_pte() 506 bo_va = radeon_vm_bo_find(vm, bo); in radeon_bo_vm_update_pte() 508 dev_err(rdev->dev, "bo %p not in vm %p\n", bo, vm); in radeon_bo_vm_update_pte() 519 return radeon_vm_clear_invalids(rdev, vm); in radeon_bo_vm_update_pte() 526 struct radeon_vm *vm = &fpriv->vm; in radeon_cs_ib_vm_chunk() local [all …]
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_vm.c | 106 void amdgpu_vm_get_pd_bo(struct amdgpu_vm *vm, in amdgpu_vm_get_pd_bo() argument 110 entry->robj = vm->page_directory; in amdgpu_vm_get_pd_bo() 112 entry->tv.bo = &vm->page_directory->tbo; in amdgpu_vm_get_pd_bo() 128 void amdgpu_vm_get_pt_bos(struct amdgpu_device *adev, struct amdgpu_vm *vm, in amdgpu_vm_get_pt_bos() argument 138 if (num_evictions == vm->last_eviction_counter) in amdgpu_vm_get_pt_bos() 142 for (i = 0; i <= vm->max_pde_used; ++i) { in amdgpu_vm_get_pt_bos() 143 struct amdgpu_bo_list_entry *entry = &vm->page_tables[i].entry; in amdgpu_vm_get_pt_bos() 162 struct amdgpu_vm *vm) in amdgpu_vm_move_pt_bos_in_lru() argument 168 for (i = 0; i <= vm->max_pde_used; ++i) { in amdgpu_vm_move_pt_bos_in_lru() 169 struct amdgpu_bo_list_entry *entry = &vm->page_tables[i].entry; in amdgpu_vm_move_pt_bos_in_lru() [all …]
|
D | amdgpu_ib.c | 60 int amdgpu_ib_get(struct amdgpu_device *adev, struct amdgpu_vm *vm, in amdgpu_ib_get() argument 75 if (!vm) in amdgpu_ib_get() 126 struct amdgpu_vm *vm; in amdgpu_ib_schedule() local 138 vm = job->vm; in amdgpu_ib_schedule() 141 vm = NULL; in amdgpu_ib_schedule() 150 if (vm && !job->vm_id) { in amdgpu_ib_schedule() 167 if (vm) { in amdgpu_ib_schedule()
|
D | amdgpu_job.c | 43 struct amdgpu_job **job, struct amdgpu_vm *vm) in amdgpu_job_alloc() argument 57 (*job)->vm = vm; in amdgpu_job_alloc() 138 struct amdgpu_vm *vm = job->vm; in amdgpu_job_dependency() local 142 if (fence == NULL && vm && !job->vm_id) { in amdgpu_job_dependency() 146 r = amdgpu_vm_grab_id(vm, ring, &job->sync, in amdgpu_job_dependency()
|
/drivers/gpu/drm/omapdrm/dss/ |
D | display.c | 221 void videomode_to_omap_video_timings(const struct videomode *vm, in videomode_to_omap_video_timings() argument 226 ovt->pixelclock = vm->pixelclock; in videomode_to_omap_video_timings() 227 ovt->x_res = vm->hactive; in videomode_to_omap_video_timings() 228 ovt->hbp = vm->hback_porch; in videomode_to_omap_video_timings() 229 ovt->hfp = vm->hfront_porch; in videomode_to_omap_video_timings() 230 ovt->hsw = vm->hsync_len; in videomode_to_omap_video_timings() 231 ovt->y_res = vm->vactive; in videomode_to_omap_video_timings() 232 ovt->vbp = vm->vback_porch; in videomode_to_omap_video_timings() 233 ovt->vfp = vm->vfront_porch; in videomode_to_omap_video_timings() 234 ovt->vsw = vm->vsync_len; in videomode_to_omap_video_timings() [all …]
|
/drivers/video/fbdev/omap2/omapfb/dss/ |
D | display.c | 270 void videomode_to_omap_video_timings(const struct videomode *vm, in videomode_to_omap_video_timings() argument 275 ovt->pixelclock = vm->pixelclock; in videomode_to_omap_video_timings() 276 ovt->x_res = vm->hactive; in videomode_to_omap_video_timings() 277 ovt->hbp = vm->hback_porch; in videomode_to_omap_video_timings() 278 ovt->hfp = vm->hfront_porch; in videomode_to_omap_video_timings() 279 ovt->hsw = vm->hsync_len; in videomode_to_omap_video_timings() 280 ovt->y_res = vm->vactive; in videomode_to_omap_video_timings() 281 ovt->vbp = vm->vback_porch; in videomode_to_omap_video_timings() 282 ovt->vfp = vm->vfront_porch; in videomode_to_omap_video_timings() 283 ovt->vsw = vm->vsync_len; in videomode_to_omap_video_timings() [all …]
|
/drivers/gpu/drm/i915/ |
D | i915_gem_gtt.c | 99 i915_vm_to_ggtt(struct i915_address_space *vm) in i915_vm_to_ggtt() argument 101 GEM_BUG_ON(!i915_is_ggtt(vm)); in i915_vm_to_ggtt() 102 return container_of(vm, struct i915_ggtt, base); in i915_vm_to_ggtt() 184 vma->vm->insert_entries(vma->vm, vma->pages, vma->node.start, in ppgtt_bind_vma() 192 vma->vm->clear_range(vma->vm, in ppgtt_unbind_vma() 469 static void gen8_initialize_pt(struct i915_address_space *vm, in gen8_initialize_pt() argument 474 scratch_pte = gen8_pte_encode(vm->scratch_page.daddr, in gen8_initialize_pt() 477 fill_px(vm->dev, pt, scratch_pte); in gen8_initialize_pt() 480 static void gen6_initialize_pt(struct i915_address_space *vm, in gen6_initialize_pt() argument 485 WARN_ON(vm->scratch_page.daddr == 0); in gen6_initialize_pt() [all …]
|
D | i915_trace.h | 136 __field(struct i915_address_space *, vm) 144 __entry->vm = vma->vm; 153 __entry->vm) 162 __field(struct i915_address_space *, vm) 169 __entry->vm = vma->vm; 175 __entry->obj, __entry->offset, __entry->size, __entry->vm) 183 __field(struct i915_address_space *, vm) 189 __entry->vm = vma->vm; 195 __entry->vm, i915_is_ggtt(__entry->vm) ? 'G' : 'P', __entry->start, __entry->end) 199 TP_PROTO(struct i915_address_space *vm, u32 px, u64 start, u64 px_shift), [all …]
|
D | i915_gem_evict.c | 89 i915_gem_evict_something(struct i915_address_space *vm, in i915_gem_evict_something() argument 95 struct drm_i915_private *dev_priv = to_i915(vm->dev); in i915_gem_evict_something() 98 &vm->inactive_list, in i915_gem_evict_something() 99 &vm->active_list, in i915_gem_evict_something() 105 trace_i915_gem_evict(vm, min_size, alignment, flags); in i915_gem_evict_something() 120 if (start != 0 || end != vm->total) { in i915_gem_evict_something() 121 drm_mm_init_scan_with_range(&vm->mm, min_size, in i915_gem_evict_something() 125 drm_mm_init_scan(&vm->mm, min_size, alignment, cache_level); in i915_gem_evict_something() 152 if (!i915_is_ggtt(vm) || flags & PIN_NONBLOCK) in i915_gem_evict_something() 160 return intel_has_pending_fb_unpin(vm->dev) ? -EAGAIN : -ENOSPC; in i915_gem_evict_something() [all …]
|
/drivers/video/ |
D | videomode.c | 15 struct videomode *vm) in videomode_from_timing() argument 17 vm->pixelclock = dt->pixelclock.typ; in videomode_from_timing() 18 vm->hactive = dt->hactive.typ; in videomode_from_timing() 19 vm->hfront_porch = dt->hfront_porch.typ; in videomode_from_timing() 20 vm->hback_porch = dt->hback_porch.typ; in videomode_from_timing() 21 vm->hsync_len = dt->hsync_len.typ; in videomode_from_timing() 23 vm->vactive = dt->vactive.typ; in videomode_from_timing() 24 vm->vfront_porch = dt->vfront_porch.typ; in videomode_from_timing() 25 vm->vback_porch = dt->vback_porch.typ; in videomode_from_timing() 26 vm->vsync_len = dt->vsync_len.typ; in videomode_from_timing() [all …]
|
/drivers/gpu/drm/exynos/ |
D | exynos_drm_mic.c | 104 struct videomode vm; member 157 struct videomode vm = mic->vm; in mic_set_porch_timing() local 160 reg = MIC_V_PULSE_WIDTH(vm.vsync_len) + in mic_set_porch_timing() 161 MIC_V_PERIOD_LINE(vm.vsync_len + vm.vactive + in mic_set_porch_timing() 162 vm.vback_porch + vm.vfront_porch); in mic_set_porch_timing() 165 reg = MIC_VBP_SIZE(vm.vback_porch) + in mic_set_porch_timing() 166 MIC_VFP_SIZE(vm.vfront_porch); in mic_set_porch_timing() 169 reg = MIC_V_PULSE_WIDTH(vm.hsync_len) + in mic_set_porch_timing() 170 MIC_V_PERIOD_LINE(vm.hsync_len + vm.hactive + in mic_set_porch_timing() 171 vm.hback_porch + vm.hfront_porch); in mic_set_porch_timing() [all …]
|
D | exynos_drm_dpi.c | 34 struct videomode *vm; member 76 if (ctx->vm) { in exynos_dpi_get_modes() 84 drm_display_mode_from_videomode(ctx->vm, mode); in exynos_dpi_get_modes() 191 struct videomode *vm; in exynos_dpi_parse_dt() local 196 vm = devm_kzalloc(dev, sizeof(*ctx->vm), GFP_KERNEL); in exynos_dpi_parse_dt() 197 if (!vm) in exynos_dpi_parse_dt() 200 ret = of_get_videomode(dn, vm, 0); in exynos_dpi_parse_dt() 202 devm_kfree(dev, vm); in exynos_dpi_parse_dt() 206 ctx->vm = vm; in exynos_dpi_parse_dt()
|
/drivers/gpu/drm/nouveau/nvkm/subdev/bar/ |
D | gf100.c | 33 return gf100_bar(base)->bar[0].vm; in gf100_bar_kmap() 40 return nvkm_vm_get(bar->bar[1].vm, size, type, NV_MEM_ACCESS_RW, vma); in gf100_bar_umap() 48 struct nvkm_vm *vm; in gf100_bar_ctor_vm() local 63 ret = nvkm_vm_new(device, 0, bar_len, 0, key, &vm); in gf100_bar_ctor_vm() 67 atomic_inc(&vm->engref[NVKM_SUBDEV_BAR]); in gf100_bar_ctor_vm() 73 ret = nvkm_vm_boot(vm, bar_len); in gf100_bar_ctor_vm() 75 nvkm_vm_ref(NULL, &vm, NULL); in gf100_bar_ctor_vm() 80 ret = nvkm_vm_ref(vm, &bar_vm->vm, bar_vm->pgd); in gf100_bar_ctor_vm() 81 nvkm_vm_ref(NULL, &vm, NULL); in gf100_bar_ctor_vm() 143 nvkm_vm_ref(NULL, &bar->bar[1].vm, bar->bar[1].pgd); in gf100_bar_dtor() [all …]
|
D | nv50.c | 66 struct nvkm_vm *vm; in nv50_bar_oneinit() local 87 ret = nvkm_vm_new(device, start, limit, start, &bar3_lock, &vm); in nv50_bar_oneinit() 91 atomic_inc(&vm->engref[NVKM_SUBDEV_BAR]); in nv50_bar_oneinit() 93 ret = nvkm_vm_boot(vm, limit-- - start); in nv50_bar_oneinit() 97 ret = nvkm_vm_ref(vm, &bar->bar3_vm, bar->pgd); in nv50_bar_oneinit() 98 nvkm_vm_ref(NULL, &vm, NULL); in nv50_bar_oneinit() 120 ret = nvkm_vm_new(device, start, limit--, start, &bar1_lock, &vm); in nv50_bar_oneinit() 124 atomic_inc(&vm->engref[NVKM_SUBDEV_BAR]); in nv50_bar_oneinit() 126 ret = nvkm_vm_ref(vm, &bar->bar1_vm, bar->pgd); in nv50_bar_oneinit() 127 nvkm_vm_ref(NULL, &vm, NULL); in nv50_bar_oneinit()
|
/drivers/gpu/drm/ |
D | drm_modes.c | 586 void drm_display_mode_from_videomode(const struct videomode *vm, in drm_display_mode_from_videomode() argument 589 dmode->hdisplay = vm->hactive; in drm_display_mode_from_videomode() 590 dmode->hsync_start = dmode->hdisplay + vm->hfront_porch; in drm_display_mode_from_videomode() 591 dmode->hsync_end = dmode->hsync_start + vm->hsync_len; in drm_display_mode_from_videomode() 592 dmode->htotal = dmode->hsync_end + vm->hback_porch; in drm_display_mode_from_videomode() 594 dmode->vdisplay = vm->vactive; in drm_display_mode_from_videomode() 595 dmode->vsync_start = dmode->vdisplay + vm->vfront_porch; in drm_display_mode_from_videomode() 596 dmode->vsync_end = dmode->vsync_start + vm->vsync_len; in drm_display_mode_from_videomode() 597 dmode->vtotal = dmode->vsync_end + vm->vback_porch; in drm_display_mode_from_videomode() 599 dmode->clock = vm->pixelclock / 1000; in drm_display_mode_from_videomode() [all …]
|
/drivers/gpu/drm/mediatek/ |
D | mtk_dsi.c | 140 struct videomode vm; member 236 pixel_clock = dsi->vm.pixelclock * 1000; in mtk_dsi_poweron() 237 htotal = dsi->vm.hactive + dsi->vm.hback_porch + dsi->vm.hfront_porch + in mtk_dsi_poweron() 238 dsi->vm.hsync_len; in mtk_dsi_poweron() 343 struct videomode *vm = &dsi->vm; in dsi_ps_control_vact() local 352 ps_wc = vm->hactive * dsi_buf_bpp; in dsi_ps_control_vact() 370 writel(vm->vactive, dsi->regs + DSI_VACT_NL); in dsi_ps_control_vact() 428 tmp_reg += dsi->vm.hactive * dsi_tmp_buf_bpp & DSI_PS_WC; in dsi_ps_control() 439 struct videomode *vm = &dsi->vm; in dsi_config_vdo_timing() local 446 writel(vm->vsync_len, dsi->regs + DSI_VSA_NL); in dsi_config_vdo_timing() [all …]
|
/drivers/gpu/drm/arm/ |
D | hdlcd_crtc.c | 108 struct videomode vm; in hdlcd_crtc_mode_set_nofb() local 111 vm.vfront_porch = m->crtc_vsync_start - m->crtc_vdisplay; in hdlcd_crtc_mode_set_nofb() 112 vm.vback_porch = m->crtc_vtotal - m->crtc_vsync_end; in hdlcd_crtc_mode_set_nofb() 113 vm.vsync_len = m->crtc_vsync_end - m->crtc_vsync_start; in hdlcd_crtc_mode_set_nofb() 114 vm.hfront_porch = m->crtc_hsync_start - m->crtc_hdisplay; in hdlcd_crtc_mode_set_nofb() 115 vm.hback_porch = m->crtc_htotal - m->crtc_hsync_end; in hdlcd_crtc_mode_set_nofb() 116 vm.hsync_len = m->crtc_hsync_end - m->crtc_hsync_start; in hdlcd_crtc_mode_set_nofb() 130 hdlcd_write(hdlcd, HDLCD_REG_V_BACK_PORCH, vm.vback_porch - 1); in hdlcd_crtc_mode_set_nofb() 131 hdlcd_write(hdlcd, HDLCD_REG_V_FRONT_PORCH, vm.vfront_porch - 1); in hdlcd_crtc_mode_set_nofb() 132 hdlcd_write(hdlcd, HDLCD_REG_V_SYNC, vm.vsync_len - 1); in hdlcd_crtc_mode_set_nofb() [all …]
|
/drivers/gpu/drm/atmel-hlcdc/ |
D | atmel_hlcdc_crtc.c | 81 struct videomode vm; in atmel_hlcdc_crtc_mode_set_nofb() local 86 vm.vfront_porch = adj->crtc_vsync_start - adj->crtc_vdisplay; in atmel_hlcdc_crtc_mode_set_nofb() 87 vm.vback_porch = adj->crtc_vtotal - adj->crtc_vsync_end; in atmel_hlcdc_crtc_mode_set_nofb() 88 vm.vsync_len = adj->crtc_vsync_end - adj->crtc_vsync_start; in atmel_hlcdc_crtc_mode_set_nofb() 89 vm.hfront_porch = adj->crtc_hsync_start - adj->crtc_hdisplay; in atmel_hlcdc_crtc_mode_set_nofb() 90 vm.hback_porch = adj->crtc_htotal - adj->crtc_hsync_end; in atmel_hlcdc_crtc_mode_set_nofb() 91 vm.hsync_len = adj->crtc_hsync_end - adj->crtc_hsync_start; in atmel_hlcdc_crtc_mode_set_nofb() 94 (vm.hsync_len - 1) | ((vm.vsync_len - 1) << 16)); in atmel_hlcdc_crtc_mode_set_nofb() 97 (vm.vfront_porch - 1) | (vm.vback_porch << 16)); in atmel_hlcdc_crtc_mode_set_nofb() 100 (vm.hfront_porch - 1) | ((vm.hback_porch - 1) << 16)); in atmel_hlcdc_crtc_mode_set_nofb()
|
/drivers/video/fbdev/core/ |
D | fbmon.c | 1400 int fb_videomode_from_videomode(const struct videomode *vm, in fb_videomode_from_videomode() argument 1405 fbmode->xres = vm->hactive; in fb_videomode_from_videomode() 1406 fbmode->left_margin = vm->hback_porch; in fb_videomode_from_videomode() 1407 fbmode->right_margin = vm->hfront_porch; in fb_videomode_from_videomode() 1408 fbmode->hsync_len = vm->hsync_len; in fb_videomode_from_videomode() 1410 fbmode->yres = vm->vactive; in fb_videomode_from_videomode() 1411 fbmode->upper_margin = vm->vback_porch; in fb_videomode_from_videomode() 1412 fbmode->lower_margin = vm->vfront_porch; in fb_videomode_from_videomode() 1413 fbmode->vsync_len = vm->vsync_len; in fb_videomode_from_videomode() 1416 fbmode->pixclock = vm->pixelclock ? in fb_videomode_from_videomode() [all …]
|