Home
last modified time | relevance | path

Searched refs:gtt (Results 1 – 25 of 25) sorted by relevance

/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ttm.c560 struct amdgpu_ttm_tt *gtt = (void *)ttm; in amdgpu_ttm_tt_get_user_pages() local
565 if (!(gtt->userflags & AMDGPU_GEM_USERPTR_READONLY)) in amdgpu_ttm_tt_get_user_pages()
568 if (gtt->userflags & AMDGPU_GEM_USERPTR_ANONONLY) { in amdgpu_ttm_tt_get_user_pages()
571 unsigned long end = gtt->userptr + ttm->num_pages * PAGE_SIZE; in amdgpu_ttm_tt_get_user_pages()
574 vma = find_vma(gtt->usermm, gtt->userptr); in amdgpu_ttm_tt_get_user_pages()
581 uint64_t userptr = gtt->userptr + pinned * PAGE_SIZE; in amdgpu_ttm_tt_get_user_pages()
586 spin_lock(&gtt->guptasklock); in amdgpu_ttm_tt_get_user_pages()
587 list_add(&guptask.list, &gtt->guptasks); in amdgpu_ttm_tt_get_user_pages()
588 spin_unlock(&gtt->guptasklock); in amdgpu_ttm_tt_get_user_pages()
592 spin_lock(&gtt->guptasklock); in amdgpu_ttm_tt_get_user_pages()
[all …]
Damdgpu_ttm.h53 struct dentry *gtt; member
/drivers/gpu/drm/radeon/
Dradeon_ttm.c543 struct radeon_ttm_tt *gtt = (void *)ttm; in radeon_ttm_tt_pin_userptr() local
547 int write = !(gtt->userflags & RADEON_GEM_USERPTR_READONLY); in radeon_ttm_tt_pin_userptr()
551 if (current->mm != gtt->usermm) in radeon_ttm_tt_pin_userptr()
554 if (gtt->userflags & RADEON_GEM_USERPTR_ANONONLY) { in radeon_ttm_tt_pin_userptr()
557 unsigned long end = gtt->userptr + ttm->num_pages * PAGE_SIZE; in radeon_ttm_tt_pin_userptr()
559 vma = find_vma(gtt->usermm, gtt->userptr); in radeon_ttm_tt_pin_userptr()
566 uint64_t userptr = gtt->userptr + pinned * PAGE_SIZE; in radeon_ttm_tt_pin_userptr()
590 gtt->ttm.dma_address, ttm->num_pages); in radeon_ttm_tt_pin_userptr()
605 struct radeon_ttm_tt *gtt = (void *)ttm; in radeon_ttm_tt_unpin_userptr() local
608 int write = !(gtt->userflags & RADEON_GEM_USERPTR_READONLY); in radeon_ttm_tt_unpin_userptr()
[all …]
Drs400.c233 u32 *gtt = rdev->gart.ptr; in rs400_gart_set_page() local
234 gtt[i] = cpu_to_le32(lower_32_bits(entry)); in rs400_gart_set_page()
Dr100.c695 u32 *gtt = rdev->gart.ptr; in r100_pci_gart_set_page() local
696 gtt[i] = cpu_to_le32(lower_32_bits(entry)); in r100_pci_gart_set_page()
Dradeon.h457 struct dentry *gtt; member
/drivers/gpu/drm/virtio/
Dvirtgpu_ttm.c297 struct virtio_gpu_ttm_tt *gtt = (void *)ttm; in virtio_gpu_ttm_backend_bind() local
299 gtt->offset = (unsigned long)(bo_mem->start << PAGE_SHIFT); in virtio_gpu_ttm_backend_bind()
316 struct virtio_gpu_ttm_tt *gtt = (void *)ttm; in virtio_gpu_ttm_backend_destroy() local
318 ttm_dma_tt_fini(&gtt->ttm); in virtio_gpu_ttm_backend_destroy()
319 kfree(gtt); in virtio_gpu_ttm_backend_destroy()
347 struct virtio_gpu_ttm_tt *gtt; in virtio_gpu_ttm_tt_create() local
350 gtt = kzalloc(sizeof(struct virtio_gpu_ttm_tt), GFP_KERNEL); in virtio_gpu_ttm_tt_create()
351 if (gtt == NULL) in virtio_gpu_ttm_tt_create()
353 gtt->ttm.ttm.func = &virtio_gpu_backend_func; in virtio_gpu_ttm_tt_create()
354 gtt->vgdev = vgdev; in virtio_gpu_ttm_tt_create()
[all …]
/drivers/gpu/drm/qxl/
Dqxl_ttm.c267 struct qxl_ttm_tt *gtt = (void *)ttm; in qxl_ttm_backend_bind() local
269 gtt->offset = (unsigned long)(bo_mem->start << PAGE_SHIFT); in qxl_ttm_backend_bind()
286 struct qxl_ttm_tt *gtt = (void *)ttm; in qxl_ttm_backend_destroy() local
288 ttm_dma_tt_fini(&gtt->ttm); in qxl_ttm_backend_destroy()
289 kfree(gtt); in qxl_ttm_backend_destroy()
322 struct qxl_ttm_tt *gtt; in qxl_ttm_tt_create() local
325 gtt = kzalloc(sizeof(struct qxl_ttm_tt), GFP_KERNEL); in qxl_ttm_tt_create()
326 if (gtt == NULL) in qxl_ttm_tt_create()
328 gtt->ttm.ttm.func = &qxl_backend_func; in qxl_ttm_tt_create()
329 gtt->qdev = qdev; in qxl_ttm_tt_create()
[all …]
/drivers/gpu/drm/gma500/
Dframebuffer.c105 if (psbfb->gtt->npage) { in psbfb_pan()
109 psb_gtt_roll(dev, psbfb->gtt, var->yoffset * pages); in psbfb_pan()
125 psbfb->gtt->offset; in psbfb_vm_fault()
256 fb->gtt = gt; in psb_framebuffer_init()
440 if (dev_priv->gtt.stolen_size) { in psbfb_create()
442 info->apertures->ranges[0].size = dev_priv->gtt.stolen_size; in psbfb_create()
554 if (psbfb->gtt) in psb_fbdev_destroy()
555 drm_gem_object_unreference_unlocked(&psbfb->gtt->gem); in psb_fbdev_destroy()
634 struct gtt_range *r = psbfb->gtt; in psb_user_framebuffer_create_handle()
648 struct gtt_range *r = psbfb->gtt; in psb_user_framebuffer_destroy()
Dgtt.c249 u32 gpu_base = dev_priv->gtt.gatt_start; in psb_gtt_pin()
287 u32 gpu_base = dev_priv->gtt.gatt_start; in psb_gtt_unpin()
344 end = r->start + dev_priv->gtt.stolen_size - 1; in psb_gtt_alloc_range()
347 start = r->start + dev_priv->gtt.stolen_size; in psb_gtt_alloc_range()
393 init_rwsem(&dev_priv->gtt.sem); in psb_gtt_alloc()
432 pg = &dev_priv->gtt; in psb_gtt_init()
Dgem.c34 struct gtt_range *gtt = container_of(obj, struct gtt_range, gem); in psb_gem_free_object() local
41 psb_gtt_free_range(obj->dev, gtt); in psb_gem_free_object()
Dframebuffer.h34 struct gtt_range *gtt; member
Daccel_2d.c71 PSB_WSGX32(dev_priv->gtt.gatt_start, PSB_CR_BIF_TWOD_REQ_BASE); in psb_spank()
254 offset = psbfb->gtt->offset; in psbfb_copyarea_accel()
Dpsb_drv.c125 struct psb_gtt *pg = &dev_priv->gtt; in psb_do_init()
183 struct psb_gtt *pg = &dev_priv->gtt; in psb_driver_unload()
245 pg = &dev_priv->gtt; in psb_driver_load()
DMakefile11 gtt.o \
Dgma_display.c80 ret = psb_gtt_pin(psbfb->gtt); in gma_pipe_set_base()
83 start = psbfb->gtt->offset; in gma_pipe_set_base()
131 psb_gtt_unpin(to_psb_fb(old_fb)->gtt); in gma_pipe_set_base()
502 gt = to_psb_fb(crtc->primary->fb)->gtt; in gma_crtc_disable()
Doaktrail_crtc.c619 start = psbfb->gtt->offset; in oaktrail_pipe_set_base()
Dpsb_drv.h452 struct psb_gtt gtt; member
Dmdfld_intel_display.c198 start = psbfb->gtt->offset; in mdfld__intel_pipe_set_base()
/drivers/char/agp/
Dintel-gtt.c68 u32 __iomem *gtt; /* I915G */ member
332 writel_relaxed(addr | pte_flags, intel_private.gtt + entry); in i810_write_entry()
569 iounmap(intel_private.gtt); in intel_gtt_cleanup()
636 intel_private.gtt = NULL; in intel_gtt_init()
638 intel_private.gtt = ioremap_wc(intel_private.gtt_phys_addr, in intel_gtt_init()
640 if (intel_private.gtt == NULL) in intel_gtt_init()
641 intel_private.gtt = ioremap(intel_private.gtt_phys_addr, in intel_gtt_init()
643 if (intel_private.gtt == NULL) { in intel_gtt_init()
740 writel_relaxed(addr | pte_flags, intel_private.gtt + entry); in i830_write_entry()
1123 writel_relaxed(addr | pte_flags, intel_private.gtt + entry); in i965_write_entry()
DMakefile16 obj-$(CONFIG_INTEL_GTT) += intel-gtt.o
/drivers/gpu/drm/i915/
Di915_trace.h347 TP_PROTO(struct drm_i915_gem_object *obj, u32 index, bool gtt, bool write),
348 TP_ARGS(obj, index, gtt, write),
353 __field(bool, gtt)
360 __entry->gtt = gtt;
366 __entry->gtt ? "GTT" : "CPU",
/drivers/net/wireless/ath/ath9k/
Ddebug.h107 u32 gtt; member
Ddebug.c510 sc->debug.stats.istats.gtt++; in ath_debug_stat_interrupt()
556 PR_IS("GTT", gtt); in read_file_interrupt()
/drivers/video/fbdev/i810/
Di810_main.c2101 struct gtt_data *gtt = &par->i810_gtt; in i810fb_release_resource() local
2107 agp_free_memory(gtt->i810_cursor_memory); in i810fb_release_resource()
2109 agp_free_memory(gtt->i810_fb_memory); in i810fb_release_resource()