/src/sys/external/bsd/drm2/dist/drm/ttm/ |
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...] |
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_page_alloc.c | 39 #define pr_fmt(fmt) "[TTM] " fmt 53 #include <drm/ttm/ttm_bo_driver.h> 54 #include <drm/ttm/ttm_page_alloc.h> 55 #include <drm/ttm/ttm_set_memory.h> 225 * Select the right pool or requested caching state and ttm flags. */ 1034 ttm_pool_unpopulate_helper(struct ttm_tt *ttm, unsigned mem_count_update) 1043 if (!ttm->pages[i]) 1046 ttm_mem_global_free_page(mem_glob, ttm->pages[i], PAGE_SIZE); 1050 ttm_put_pages(ttm->pages, ttm->num_pages, ttm->page_flags [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_ttm.c | 180 return ttm_bo_mmap_object(&drm->ttm.bdev, offset, size, prot, 192 return ttm_bo_mmap(filp, vma, &drm->ttm.bdev); 208 drm->ttm.type_host[!!kind] = typei; 214 drm->ttm.type_ncoh[!!kind] = typei; 247 drm->ttm.type_vram = typei; 249 drm->ttm.type_vram = -1; 259 ret = ttm_bo_device_init(&drm->ttm.bdev, 280 ret = ttm_bo_init_mm(&drm->ttm.bdev, TTM_PL_VRAM, 287 drm->ttm.mtrr = arch_phys_wc_add(device->func->resource_addr(device, 1), 302 ret = ttm_bo_init_mm(&drm->ttm.bdev, TTM_PL_TT [all...] |
nouveau_mem.h | 5 #include <drm/ttm/ttm_bo_api.h>
|
nouveau_ttm.h | 10 return container_of(bd, struct nouveau_drm, ttm.bdev);
|
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/ttm/ |
ttm_bus_dma.c | 40 #include <ttm/ttm_bo_driver.h> 41 #include <ttm/ttm_page_alloc.h> 58 KASSERT(ttm_dma->ttm.state == tt_unpopulated); 61 KASSERT(!ISSET(ttm_dma->ttm.page_flags, TTM_PAGE_FLAG_SWAPPED)); 63 ttm_dma->ttm.page_flags |= TTM_PAGE_FLAG_SWAPPED; 65 /* Wire the uvm pages and fill the ttm page array. */ 66 ret = ttm_tt_wire(&ttm_dma->ttm); 71 ttm_dma->ttm.state = tt_unbound; 74 ttm_dma->ttm.page_flags &= ~TTM_PAGE_FLAG_SWAPPED; 78 ret = -bus_dmamap_load_pages(ttm_dma->ttm.bdev->dmat [all...] |
ttm_agp_backend.c | 44 #include <ttm/ttm_bo_driver.h> 45 #include <ttm/ttm_page_alloc.h> 46 #include <ttm/ttm_tt.h> 65 ttm_agp->ttm_dma.ttm.func = &ttm_agp_backend_func; 71 return &ttm_agp->ttm_dma.ttm; 78 ttm_agp_tt_populate(struct ttm_tt *ttm, struct ttm_operation_ctx *ctx) 81 KASSERTMSG((ttm->state == tt_unpopulated), 82 "ttm_agp_tt_populate: ttm %p state is not tt_unpopulated: %d", 83 ttm, (int)ttm->state) [all...] |
/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_page_alloc.h | 31 #include <drm/ttm/ttm_bo_driver.h> 32 #include <drm/ttm/ttm_memory.h> 48 * @ttm: The struct ttm_tt to contain the backing pages. 50 * Add backing pages to all of @ttm 52 int ttm_pool_populate(struct ttm_tt *ttm, struct ttm_operation_ctx *ctx); 57 * @ttm: The struct ttm_tt which to free backing pages. 59 * Free all pages of @ttm 61 void ttm_pool_unpopulate(struct ttm_tt *ttm);
|
/src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/ |
amdgpu_ttm.h | 129 bool amdgpu_ttm_tt_get_user_pages_done(struct ttm_tt *ttm); 136 static inline bool amdgpu_ttm_tt_get_user_pages_done(struct ttm_tt *ttm) 142 void amdgpu_ttm_tt_set_user_pages(struct ttm_tt *ttm, struct page **pages); 143 int amdgpu_ttm_tt_set_userptr(struct ttm_tt *ttm, uint64_t addr, 145 bool amdgpu_ttm_tt_has_userptr(struct ttm_tt *ttm); 147 struct vmspace *amdgpu_ttm_tt_get_usermm(struct ttm_tt *ttm); 149 struct mm_struct *amdgpu_ttm_tt_get_usermm(struct ttm_tt *ttm); 151 bool amdgpu_ttm_tt_affect_userptr(struct ttm_tt *ttm, unsigned long start, 153 bool amdgpu_ttm_tt_userptr_invalidated(struct ttm_tt *ttm, 155 bool amdgpu_ttm_tt_is_userptr(struct ttm_tt *ttm); [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_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...] |
/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...] |
radeon_mn.c | 61 if (!bo->tbo.ttm || bo->tbo.ttm->state != tt_bound)
|
/src/sys/external/bsd/drm2/include/drm/ttm/ |
ttm_page_alloc.h | 35 #include <drm/ttm/ttm_bo_driver.h>
|
/src/sys/external/bsd/drm2/dist/drm/vmwgfx/ |
vmwgfx_ttm_buffer.c | 34 #include <drm/ttm/ttm_bo_driver.h> 35 #include <drm/ttm/ttm_placement.h> 36 #include <drm/ttm/ttm_page_alloc.h> 360 * TTM pages 376 * vmw_ttm_map_for_dma - map TTM pages to get device addresses 404 * vmw_ttm_map_dma - Make sure TTM pages are visible to the device 408 * Select the correct function for and make sure the TTM pages are 432 vsgt->pages = vmw_tt->dma_ttm.ttm.pages; 433 vsgt->num_pages = vmw_tt->dma_ttm.ttm.num_pages; 497 * vmw_ttm_unmap_dma - Tear down any TTM page device mapping [all...] |
/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/sys/modules/drmkms_ttm/ |
Makefile | 8 .PATH: ${S}/external/bsd/drm2/ttm 9 .PATH: ${S}/external/bsd/drm2/dist/drm/ttm
|
/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...] |