Home
last modified time | relevance | path

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

12

/linux-2.6.39/drivers/gpu/drm/ttm/
Dttm_tt.c44 static int ttm_tt_swapin(struct ttm_tt *ttm);
49 static void ttm_tt_alloc_page_directory(struct ttm_tt *ttm) in ttm_tt_alloc_page_directory() argument
51 ttm->pages = drm_calloc_large(ttm->num_pages, sizeof(*ttm->pages)); in ttm_tt_alloc_page_directory()
52 ttm->dma_address = drm_calloc_large(ttm->num_pages, in ttm_tt_alloc_page_directory()
53 sizeof(*ttm->dma_address)); in ttm_tt_alloc_page_directory()
56 static void ttm_tt_free_page_directory(struct ttm_tt *ttm) in ttm_tt_free_page_directory() argument
58 drm_free_large(ttm->pages); in ttm_tt_free_page_directory()
59 ttm->pages = NULL; in ttm_tt_free_page_directory()
60 drm_free_large(ttm->dma_address); in ttm_tt_free_page_directory()
61 ttm->dma_address = NULL; in ttm_tt_free_page_directory()
[all …]
Dttm_bo_util.c49 struct ttm_tt *ttm = bo->ttm; in ttm_bo_move_ttm() local
54 ttm_tt_unbind(ttm); in ttm_bo_move_ttm()
61 ret = ttm_tt_set_placement_caching(ttm, new_mem->placement); in ttm_bo_move_ttm()
66 ret = ttm_tt_bind(ttm, new_mem); in ttm_bo_move_ttm()
243 static int ttm_copy_io_ttm_page(struct ttm_tt *ttm, void *src, in ttm_copy_io_ttm_page() argument
247 struct page *d = ttm_tt_get_page(ttm, page); in ttm_copy_io_ttm_page()
280 static int ttm_copy_ttm_io_page(struct ttm_tt *ttm, void *dst, in ttm_copy_ttm_io_page() argument
284 struct page *s = ttm_tt_get_page(ttm, page); in ttm_copy_ttm_io_page()
322 struct ttm_tt *ttm = bo->ttm; in ttm_bo_move_memcpy() local
342 if (old_iomap == NULL && ttm == NULL) in ttm_bo_move_memcpy()
[all …]
DMakefile5 ttm-y := ttm_agp_backend.o ttm_memory.o ttm_tt.o ttm_bo.o \
10 obj-$(CONFIG_DRM_TTM) += ttm.o
Dttm_bo.c149 if (bo->ttm) in ttm_bo_release_list()
150 ttm_tt_destroy(bo->ttm); in ttm_bo_release_list()
187 if (bo->ttm != NULL) { in ttm_bo_add_to_lru()
330 bo->ttm = NULL; in ttm_bo_add_ttm()
340 bo->ttm = ttm_tt_create(bdev, bo->num_pages << PAGE_SHIFT, in ttm_bo_add_ttm()
342 if (unlikely(bo->ttm == NULL)) in ttm_bo_add_ttm()
346 bo->ttm = ttm_tt_create(bdev, bo->num_pages << PAGE_SHIFT, in ttm_bo_add_ttm()
349 if (unlikely(bo->ttm == NULL)) { in ttm_bo_add_ttm()
354 ret = ttm_tt_set_user(bo->ttm, current, in ttm_bo_add_ttm()
357 ttm_tt_destroy(bo->ttm); in ttm_bo_add_ttm()
[all …]
Dttm_bo_vm.c80 struct ttm_tt *ttm = NULL; in ttm_bo_vm_fault() local
173 ttm = bo->ttm; in ttm_bo_vm_fault()
188 page = ttm_tt_get_page(ttm, page_offset); in ttm_bo_vm_fault()
/linux-2.6.39/drivers/gpu/drm/nouveau/
Dnouveau_ttm.c41 return ttm_bo_mmap(filp, vma, &dev_priv->ttm.bdev); in nouveau_ttm_mmap()
62 global_ref = &dev_priv->ttm.mem_global_ref; in nouveau_ttm_global_init()
71 dev_priv->ttm.mem_global_ref.release = NULL; in nouveau_ttm_global_init()
75 dev_priv->ttm.bo_global_ref.mem_glob = global_ref->object; in nouveau_ttm_global_init()
76 global_ref = &dev_priv->ttm.bo_global_ref.ref; in nouveau_ttm_global_init()
85 drm_global_item_unref(&dev_priv->ttm.mem_global_ref); in nouveau_ttm_global_init()
86 dev_priv->ttm.mem_global_ref.release = NULL; in nouveau_ttm_global_init()
96 if (dev_priv->ttm.mem_global_ref.release == NULL) in nouveau_ttm_global_release()
99 drm_global_item_unref(&dev_priv->ttm.bo_global_ref.ref); in nouveau_ttm_global_release()
100 drm_global_item_unref(&dev_priv->ttm.mem_global_ref); in nouveau_ttm_global_release()
[all …]
Dnv50_vram.c54 struct ttm_bo_device *bdev = &dev_priv->ttm.bdev; in nv50_vram_del()
87 struct ttm_bo_device *bdev = &dev_priv->ttm.bdev; in nv50_vram_new()
Dnvc0_vram.c64 struct ttm_bo_device *bdev = &dev_priv->ttm.bdev; in nvc0_vram_new()
Dnouveau_mem.c155 ttm_bo_device_release(&dev_priv->ttm.bdev); in nouveau_mem_vram_fini()
390 struct ttm_bo_device *bdev = &dev_priv->ttm.bdev; in nouveau_mem_vram_init()
415 ret = ttm_bo_device_init(&dev_priv->ttm.bdev, in nouveau_mem_vram_init()
416 dev_priv->ttm.bo_global_ref.ref.object, in nouveau_mem_vram_init()
502 struct ttm_bo_device *bdev = &dev_priv->ttm.bdev; in nouveau_mem_gart_init()
Dnouveau_bo.c117 nvbo->bo.bdev = &dev_priv->ttm.bdev; in nouveau_bo_new()
135 ret = ttm_bo_init(&dev_priv->ttm.bdev, &nvbo->bo, size, in nouveau_bo_new()
781 ret = ttm_tt_bind(bo->ttm, &tmp_mem); in nouveau_bo_move_flipd()
926 if (old_mem->mem_type == TTM_PL_SYSTEM && !bo->ttm) { in nouveau_bo_move()
Dnouveau_debugfs.c167 ret = ttm_bo_evict_mm(&dev_priv->ttm.bdev, TTM_PL_VRAM); in nouveau_debugfs_evict_vram()
Dnouveau_gem.c133 if (unlikely(dev_priv->ttm.bdev.dev_mapping == NULL)) in nouveau_gem_ioctl_new()
134 dev_priv->ttm.bdev.dev_mapping = dev_priv->dev->dev_mapping; in nouveau_gem_ioctl_new()
252 sequence = atomic_add_return(1, &dev_priv->ttm.validate_sequence); in validate_init()
Dnouveau_drv.c199 ttm_bo_evict_mm(&dev_priv->ttm.bdev, TTM_PL_VRAM); in nouveau_pci_suspend()
Dnouveau_drv.h666 } ttm; member
773 return container_of(bd, struct drm_nouveau_private, ttm.bdev); in nouveau_bdev()
/linux-2.6.39/include/drm/ttm/
Dttm_bo_driver.h634 extern int ttm_tt_set_user(struct ttm_tt *ttm,
646 extern int ttm_tt_bind(struct ttm_tt *ttm, struct ttm_mem_reg *bo_mem);
655 extern int ttm_tt_populate(struct ttm_tt *ttm);
664 extern void ttm_tt_destroy(struct ttm_tt *ttm);
673 extern void ttm_tt_unbind(struct ttm_tt *ttm);
688 extern struct page *ttm_tt_get_page(struct ttm_tt *ttm, int index);
715 extern int ttm_tt_set_placement_caching(struct ttm_tt *ttm, uint32_t placement);
716 extern int ttm_tt_swapout(struct ttm_tt *ttm,
Dttm_bo_api.h225 struct ttm_tt *ttm; member
/linux-2.6.39/arch/powerpc/kernel/
Dppc970-pmu.c264 unsigned int ttm, grp; in p970_compute_mmcr() local
321 ttm = unitmap[i]; in p970_compute_mmcr()
322 ++ttmuse[(ttm >> 2) & 1]; in p970_compute_mmcr()
323 mmcr1 |= (unsigned long)(ttm & ~4) << MMCR1_TTM1SEL_SH; in p970_compute_mmcr()
335 ttm = (unitmap[unit] >> 2) & 1; in p970_compute_mmcr()
337 ttm = 2; in p970_compute_mmcr()
339 ttm = 3; in p970_compute_mmcr()
343 mmcr1 |= (unsigned long)ttm in p970_compute_mmcr()
Dpower4-pmu.c363 unsigned int ttm, grp; in p4_compute_mmcr() local
461 ttm = unit - 1; /* 2->1, 3->2 */ in p4_compute_mmcr()
463 ttm = unit >> 2; in p4_compute_mmcr()
464 mmcr1 |= (unsigned long)ttm in p4_compute_mmcr()
Dpower5-pmu.c391 unsigned int ttm, grp; in power5_compute_mmcr() local
485 ttm = unit >> 2; in power5_compute_mmcr()
486 mmcr1 |= (unsigned long)ttm in power5_compute_mmcr()
Dpower5+-pmu.c460 unsigned int ttm; in power5p_compute_mmcr() local
545 ttm = unit >> 2; in power5p_compute_mmcr()
546 mmcr1 |= (unsigned long)ttm in power5p_compute_mmcr()
/linux-2.6.39/drivers/staging/gma500/
Dpsb_ttm_glue.c326 struct ttm_tt *ttm; in psb_getpageaddrs_ioctl() local
341 ttm = bo->ttm; in psb_getpageaddrs_ioctl()
342 num_pages = ttm->num_pages; in psb_getpageaddrs_ioctl()
343 tt_pages = ttm->pages; in psb_getpageaddrs_ioctl()
DTODO7 - Sort out the bo and ttm code to support userframe buffers and DRM
Dpsb_buffer.c171 ret = ttm_tt_bind(bo->ttm, &tmp_mem); in psb_move_flip()
/linux-2.6.39/drivers/gpu/drm/
DMakefile26 obj-$(CONFIG_DRM_TTM) += ttm/
/linux-2.6.39/drivers/gpu/drm/radeon/
Dradeon_ttm.c316 r = ttm_tt_set_placement_caching(bo->ttm, tmp_mem.placement); in radeon_move_vram_ram()
321 r = ttm_tt_bind(bo->ttm, &tmp_mem); in radeon_move_vram_ram()
384 if (old_mem->mem_type == TTM_PL_SYSTEM && bo->ttm == NULL) { in radeon_bo_move()

12