/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_ttm.c | 560 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(>t->guptasklock); in amdgpu_ttm_tt_get_user_pages() 587 list_add(&guptask.list, >t->guptasks); in amdgpu_ttm_tt_get_user_pages() 588 spin_unlock(>t->guptasklock); in amdgpu_ttm_tt_get_user_pages() 592 spin_lock(>t->guptasklock); in amdgpu_ttm_tt_get_user_pages() [all …]
|
D | amdgpu_ttm.h | 53 struct dentry *gtt; member
|
/drivers/gpu/drm/radeon/ |
D | radeon_ttm.c | 543 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 …]
|
D | rs400.c | 233 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()
|
D | r100.c | 695 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()
|
D | radeon.h | 457 struct dentry *gtt; member
|
/drivers/gpu/drm/virtio/ |
D | virtgpu_ttm.c | 297 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(>t->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/ |
D | qxl_ttm.c | 267 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(>t->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/ |
D | framebuffer.c | 105 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()
|
D | gtt.c | 249 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()
|
D | gem.c | 34 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()
|
D | framebuffer.h | 34 struct gtt_range *gtt; member
|
D | accel_2d.c | 71 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()
|
D | psb_drv.c | 125 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()
|
D | Makefile | 11 gtt.o \
|
D | gma_display.c | 80 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()
|
D | oaktrail_crtc.c | 619 start = psbfb->gtt->offset; in oaktrail_pipe_set_base()
|
D | psb_drv.h | 452 struct psb_gtt gtt; member
|
D | mdfld_intel_display.c | 198 start = psbfb->gtt->offset; in mdfld__intel_pipe_set_base()
|
/drivers/char/agp/ |
D | intel-gtt.c | 68 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()
|
D | Makefile | 16 obj-$(CONFIG_INTEL_GTT) += intel-gtt.o
|
/drivers/gpu/drm/i915/ |
D | i915_trace.h | 347 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/ |
D | debug.h | 107 u32 gtt; member
|
D | debug.c | 510 sc->debug.stats.istats.gtt++; in ath_debug_stat_interrupt() 556 PR_IS("GTT", gtt); in read_file_interrupt()
|
/drivers/video/fbdev/i810/ |
D | i810_main.c | 2101 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()
|