HomeSort by: relevance | last modified time | path
    Searched defs:ttm (Results 1 - 17 of 17) sorted by relevancy

  /src/sys/external/bsd/drm2/dist/drm/ttm/
Makefile 5 ttm-y := ttm_memory.o ttm_tt.o ttm_bo.o \
8 ttm-$(CONFIG_AGP) += ttm_agp_backend.o
9 ttm-$(CONFIG_DRM_TTM_DMA_PAGE_POOL) += ttm_page_alloc_dma.o
11 obj-$(CONFIG_DRM_TTM) += ttm.o
ttm_agp_backend.c 38 #define pr_fmt(fmt) "[TTM] " fmt
40 #include <drm/ttm/ttm_module.h>
41 #include <drm/ttm/ttm_bo_driver.h>
42 #include <drm/ttm/ttm_page_alloc.h>
43 #include <drm/ttm/ttm_placement.h>
51 struct ttm_tt ttm; member in struct:ttm_agp_backend
56 static int ttm_agp_bind(struct ttm_tt *ttm, struct ttm_mem_reg *bo_mem)
58 struct ttm_agp_backend *agp_be = container_of(ttm, struct ttm_agp_backend, ttm);
65 mem = agp_allocate_memory(agp_be->bridge, ttm->num_pages, AGP_USER_MEMORY)
    [all...]
ttm_bo_vm.c 37 #define pr_fmt(fmt) "[TTM] " fmt
39 #include <drm/ttm/ttm_module.h>
40 #include <drm/ttm/ttm_bo_driver.h>
41 #include <drm/ttm/ttm_placement.h>
120 * access to map(), unmap() completely unrelated buffer objects. TTM buffer
165 * ttm_bo_vm_fault_reserved - TTM fault helper
192 struct ttm_tt *ttm = NULL; local in function:ttm_bo_vm_fault_reserved
205 if (bo->ttm && (bo->ttm->page_flags & TTM_PAGE_FLAG_SG))
266 ttm = bo->ttm
    [all...]
ttm_tt.c 37 #define pr_fmt(fmt) "[TTM] " fmt
45 #include <drm/ttm/ttm_bo_driver.h>
46 #include <drm/ttm/ttm_page_alloc.h>
48 #include <drm/ttm/ttm_set_memory.h>
51 * Allocates a ttm structure for the given BO.
77 bo->ttm = NULL;
82 bo->ttm = bdev->driver->ttm_tt_create(bo, page_flags);
83 if (unlikely(bo->ttm == NULL))
90 * Allocates storage for pointers to the pages that back the ttm.
92 static int ttm_tt_alloc_page_directory(struct ttm_tt *ttm)
318 struct ttm_tt *ttm = &ttm_dma->ttm; local in function:ttm_dma_tt_init
335 struct ttm_tt *ttm = &ttm_dma->ttm; local in function:ttm_sg_tt_init
356 struct ttm_tt *ttm = &ttm_dma->ttm; local in function:ttm_dma_tt_fini
    [all...]
ttm_bo_util.c 37 #include <drm/ttm/ttm_bo_driver.h>
38 #include <drm/ttm/ttm_placement.h>
67 struct ttm_tt *ttm = bo->ttm; local in function:ttm_bo_move_ttm
76 pr_err("Failed to expire sync object before unbinding TTM\n");
80 ttm_tt_unbind(ttm);
87 ret = ttm_tt_set_placement_caching(ttm, new_mem->placement);
92 ret = ttm_tt_bind(ttm, new_mem, ctx);
289 __insn_barrier(); /* XXX ttm io barrier */
291 return v; /* XXX ttm byte order *
419 struct ttm_tt *ttm = bo->ttm; local in function:ttm_bo_move_memcpy
690 struct ttm_tt *ttm = bo->ttm; local in function:ttm_bo_kmap_ttm
    [all...]
ttm_page_alloc_dma.c 41 #define pr_fmt(fmt) "[TTM] " fmt
55 #include <drm/ttm/ttm_bo_driver.h>
56 #include <drm/ttm/ttm_page_alloc.h>
57 #include <drm/ttm/ttm_set_memory.h>
654 * On teardown, the graphic drivers end up quiescing the TTM (put_pages)
834 * The populate list is actually a stack (not that is matters as TTM
843 struct ttm_tt *ttm = &ttm_dma->ttm; local in function:ttm_dma_pool_get_pages
851 ttm->pages[index] = d_page->p;
863 struct ttm_tt *ttm = &ttm_dma->ttm local in function:ttm_dma_pool_gfp_flags
894 struct ttm_tt *ttm = &ttm_dma->ttm; local in function:ttm_dma_populate
999 struct ttm_tt *ttm = &ttm_dma->ttm; local in function:ttm_dma_unpopulate
    [all...]
  /src/sys/external/bsd/drm2/dist/drm/nouveau/
nouveau_sgdma.c 18 struct ttm_dma_tt ttm; member in struct:nouveau_sgdma_be
23 nouveau_sgdma_destroy(struct ttm_tt *ttm)
25 struct nouveau_sgdma_be *nvbe = (struct nouveau_sgdma_be *)ttm;
27 if (ttm) {
28 ttm_dma_tt_fini(&nvbe->ttm);
34 nv04_sgdma_bind(struct ttm_tt *ttm, struct ttm_mem_reg *reg)
36 struct nouveau_sgdma_be *nvbe = (struct nouveau_sgdma_be *)ttm;
40 ret = nouveau_mem_host(reg, &nvbe->ttm);
55 nv04_sgdma_unbind(struct ttm_tt *ttm)
57 struct nouveau_sgdma_be *nvbe = (struct nouveau_sgdma_be *)ttm;
    [all...]
nouveau_drv.h 57 #include <drm/ttm/ttm_bo_api.h>
58 #include <drm/ttm/ttm_bo_driver.h>
59 #include <drm/ttm/ttm_placement.h>
60 #include <drm/ttm/ttm_memory.h>
61 #include <drm/ttm/ttm_module.h>
62 #include <drm/ttm/ttm_page_alloc.h>
153 /* TTM interface support */
166 } ttm; member in struct:nouveau_drm
236 return !(mmu->type[drm->ttm.type_host[0]].type & NVIF_MEM_UNCACHED);
  /src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/
amdgpu_gmc.c 54 struct ttm_dma_tt *ttm; local in function:amdgpu_gmc_get_pde_for_bo
58 ttm = container_of(bo->tbo.ttm, struct ttm_dma_tt, ttm);
60 *addr = ttm->dma_address->dm_segs[0].ds_addr;
62 *addr = ttm->dma_address[0];
72 *flags = amdgpu_ttm_tt_pde_flags(bo->tbo.ttm, &bo->tbo.mem);
134 * @tbo: TTM BO which needs the address, must be in GTT domain
142 struct ttm_dma_tt *ttm; local in function:amdgpu_gmc_agp_addr
145 if (bo->num_pages != 1 || bo->ttm->caching_state == tt_cached
    [all...]
amdgpu_ttm.c 51 #include <drm/ttm/ttm_bo_api.h>
52 #include <drm/ttm/ttm_bo_driver.h>
53 #include <drm/ttm/ttm_placement.h>
54 #include <drm/ttm/ttm_module.h>
55 #include <drm/ttm/ttm_page_alloc.h>
88 * @bdev: The TTM BO device object (contains a reference to amdgpu_device)
239 if (amdgpu_ttm_tt_get_usermm(bo->ttm))
526 r = ttm_tt_set_placement_caching(bo->ttm, tmp_mem.placement);
532 r = ttm_tt_bind(bo->ttm, &tmp_mem, ctx);
642 if (old_mem->mem_type == TTM_PL_SYSTEM && bo->ttm == NULL)
791 struct ttm_dma_tt ttm; member in struct:amdgpu_ttm_tt
829 struct ttm_tt *ttm = bo->tbo.ttm; local in function:amdgpu_ttm_tt_get_user_pages
1071 struct ttm_tt *ttm = tbo->ttm; local in function:amdgpu_ttm_gart_bind
2180 struct ttm_tt *ttm = bo->ttm; local in function:amdgpu_map_buffer
    [all...]
amdgpu_vm.c 597 /* One for TTM and one for the CS job */
1797 struct ttm_dma_tt *ttm; local in function:amdgpu_vm_bo_update
1802 ttm = container_of(bo->tbo.ttm, struct ttm_dma_tt, ttm);
1804 pages_addr = ttm->dma_address->dm_segs;
1806 pages_addr = ttm->dma_address;
1813 flags = amdgpu_ttm_tt_pte_flags(adev, bo->tbo.ttm, mem);
  /src/sys/external/bsd/drm2/dist/include/drm/ttm/
ttm_tt.h 57 * @ttm: Pointer to a struct ttm_tt.
65 int (*bind) (struct ttm_tt *ttm, struct ttm_mem_reg *bo_mem);
70 * @ttm: Pointer to a struct ttm_tt.
75 int (*unbind) (struct ttm_tt *ttm);
80 * @ttm: Pointer to a struct ttm_tt.
85 void (*destroy) (struct ttm_tt *ttm);
98 * @be: Pointer to the ttm backend.
130 * @ttm: Base ttm_tt struct.
139 struct ttm_tt ttm; member in struct:ttm_dma_tt
154 * Make sure we have a TTM structure allocated for the given BO
    [all...]
ttm_bo_api.h 163 * @ttm: TTM structure holding system pages.
173 * Base class for TTM buffer object, that deals with data placement and CPU
214 struct ttm_tt *ttm; member in struct:ttm_buffer_object
251 * Object describing a kernel mapping. Since a TTM bo may be located
293 * Context for TTM operations like changing buffer placement or general memory
324 * Used to reference a TTM buffer object in lookups where the object is removed
468 * @ctx: TTM operation context for memory allocation.
470 * @resv: Pointer to a dma_resv, or NULL to let ttm allocate one.
519 * point to the shmem object backing a GEM object if TTM is used to back
    [all...]
  /src/sys/external/bsd/drm2/ttm/
ttm_bo_vm.c 75 #include <ttm/ttm_bo_driver.h>
180 struct ttm_tt *ttm; member in union:ttm_bo_uvm_fault_reserved::__anone698af15010a
194 if (bo->ttm && (bo->ttm->page_flags & TTM_PAGE_FLAG_SG))
245 u.ttm = bo->ttm;
246 size = (size_t)bo->ttm->num_pages << PAGE_SHIFT;
247 if (ttm_tt_populate(bo->ttm, &ctx)) {
276 paddr = page_to_phys(u.ttm->pages[startpage + i]);
  /src/sys/external/bsd/drm2/dist/drm/qxl/
qxl_ttm.c 37 #include <drm/ttm/ttm_bo_api.h>
38 #include <drm/ttm/ttm_bo_driver.h>
39 #include <drm/ttm/ttm_module.h>
40 #include <drm/ttm/ttm_page_alloc.h>
41 #include <drm/ttm/ttm_placement.h>
157 * TTM backend functions.
160 struct ttm_tt ttm; member in struct:qxl_ttm_tt
165 static int qxl_ttm_backend_bind(struct ttm_tt *ttm,
168 struct qxl_ttm_tt *gtt = (void *)ttm;
171 if (!ttm->num_pages)
    [all...]
  /src/usr.bin/calendar/
calendar.c 688 struct tm ttm; local in function:getmmdd
690 ttm = *ptm;
691 ttm.tm_isdst = -1;
694 ttm.tm_mon = ATOI2(ds) - 1;
698 ttm.tm_mday = ATOI2(ds);
704 ttm.tm_year = ATOI2(ds) * 100 - TM_YEAR_BASE;
706 ttm.tm_year += ATOI2(ds);
708 ttm.tm_year = ATOI2(ds);
709 if (ttm.tm_year < 69)
710 ttm.tm_year += 2000 - TM_YEAR_BASE
    [all...]
  /src/sys/external/bsd/drm2/dist/drm/radeon/
radeon_ttm.c 52 #include <drm/ttm/ttm_bo_api.h>
53 #include <drm/ttm/ttm_bo_driver.h>
54 #include <drm/ttm/ttm_module.h>
55 #include <drm/ttm/ttm_page_alloc.h>
56 #include <drm/ttm/ttm_placement.h>
197 if (radeon_ttm_tt_has_userptr(bo->ttm))
299 r = ttm_tt_set_placement_caching(bo->ttm, tmp_mem.placement);
304 r = ttm_tt_bind(bo->ttm, &tmp_mem, &ctx);
375 if (old_mem->mem_type == TTM_PL_SYSTEM && bo->ttm == NULL) {
499 * TTM backend functions
502 struct ttm_dma_tt ttm; member in struct:radeon_ttm_tt
    [all...]

Completed in 244 milliseconds