/freebsd-10.3-release/sys/dev/drm2/ttm/ |
H A D | ttm_tt.c | 39 __FBSDID("$FreeBSD: releng/10.3/sys/dev/drm2/ttm/ttm_tt.c 254875 2013-08-25 15:12:26Z dumbbell $"); 42 #include <dev/drm2/ttm/ttm_module.h> 43 #include <dev/drm2/ttm/ttm_bo_driver.h> 44 #include <dev/drm2/ttm/ttm_placement.h> 45 #include <dev/drm2/ttm/ttm_page_alloc.h> 50 * Allocates storage for pointers to the pages that back the ttm. 52 static void ttm_tt_alloc_page_directory(struct ttm_tt *ttm) argument 54 ttm->pages = malloc(ttm->num_pages * sizeof(void *), 58 static void ttm_dma_tt_alloc_page_directory(struct ttm_dma_tt *ttm) argument 102 ttm_tt_set_caching(struct ttm_tt *ttm, enum ttm_caching_state c_state) argument 148 ttm_tt_set_placement_caching(struct ttm_tt *ttm, uint32_t placement) argument 162 ttm_tt_destroy(struct ttm_tt *ttm) argument 183 ttm_tt_init(struct ttm_tt *ttm, struct ttm_bo_device *bdev, unsigned long size, uint32_t page_flags, vm_page_t dummy_read_page) argument 205 ttm_tt_fini(struct ttm_tt *ttm) argument 215 struct ttm_tt *ttm = &ttm_dma->ttm; local 238 struct ttm_tt *ttm = &ttm_dma->ttm; local 246 ttm_tt_unbind(struct ttm_tt *ttm) argument 257 ttm_tt_bind(struct ttm_tt *ttm, struct ttm_mem_reg *bo_mem) argument 280 ttm_tt_swapin(struct ttm_tt *ttm) argument 328 ttm_tt_swapout(struct ttm_tt *ttm, vm_object_t persistent_swap_storage) argument [all...] |
H A D | ttm_agp_backend.c | 33 __FBSDID("$FreeBSD: releng/10.3/sys/dev/drm2/ttm/ttm_agp_backend.c 275408 2014-12-02 14:09:54Z tijl $"); 36 #include <dev/drm2/ttm/ttm_module.h> 37 #include <dev/drm2/ttm/ttm_bo_driver.h> 38 #include <dev/drm2/ttm/ttm_page_alloc.h> 40 #include <dev/drm2/ttm/ttm_placement.h> 43 struct ttm_tt ttm; member in struct:ttm_agp_backend 51 static int ttm_agp_bind(struct ttm_tt *ttm, struct ttm_mem_reg *bo_mem) argument 53 struct ttm_agp_backend *agp_be = container_of(ttm, struct ttm_agp_backend, ttm); 58 for (i = 0; i < ttm 76 ttm_agp_unbind(struct ttm_tt *ttm) argument 84 ttm_agp_destroy(struct ttm_tt *ttm) argument 123 ttm_agp_tt_populate(struct ttm_tt *ttm) argument 131 ttm_agp_tt_unpopulate(struct ttm_tt *ttm) argument [all...] |
H A D | ttm_page_alloc.h | 26 /* $FreeBSD: releng/10.3/sys/dev/drm2/ttm/ttm_page_alloc.h 247835 2013-03-05 09:49:34Z kib $ */ 30 #include <dev/drm2/ttm/ttm_bo_driver.h> 31 #include <dev/drm2/ttm/ttm_memory.h> 45 * @ttm: The struct ttm_tt to contain the backing pages. 47 * Add backing pages to all of @ttm 49 extern int ttm_pool_populate(struct ttm_tt *ttm); 54 * @ttm: The struct ttm_tt which to free backing pages. 56 * Free all pages of @ttm 58 extern void ttm_pool_unpopulate(struct ttm_tt *ttm);
|
H A D | ttm_bo_driver.h | 30 /* $FreeBSD: releng/10.3/sys/dev/drm2/ttm/ttm_bo_driver.h 275408 2014-12-02 14:09:54Z tijl $ */ 36 #include <dev/drm2/ttm/ttm_bo_api.h> 37 #include <dev/drm2/ttm/ttm_memory.h> 38 #include <dev/drm2/ttm/ttm_module.h> 47 * @ttm: Pointer to a struct ttm_tt. 55 int (*bind) (struct ttm_tt *ttm, struct ttm_mem_reg *bo_mem); 60 * @ttm: Pointer to a struct ttm_tt. 65 int (*unbind) (struct ttm_tt *ttm); 70 * @ttm: Pointer to a struct ttm_tt. 75 void (*destroy) (struct ttm_tt *ttm); 142 struct ttm_tt ttm; member in struct:ttm_dma_tt [all...] |
H A D | ttm_execbuf_util.h | 30 /* $FreeBSD: releng/10.3/sys/dev/drm2/ttm/ttm_execbuf_util.h 247835 2013-03-05 09:49:34Z kib $ */ 35 #include <dev/drm2/ttm/ttm_bo_api.h>
|
H A D | ttm_bo_util.c | 32 __FBSDID("$FreeBSD: releng/10.3/sys/dev/drm2/ttm/ttm_bo_util.c 282199 2015-04-28 19:35:05Z dumbbell $"); 35 #include <dev/drm2/ttm/ttm_bo_driver.h> 36 #include <dev/drm2/ttm/ttm_placement.h> 48 struct ttm_tt *ttm = bo->ttm; local 53 ttm_tt_unbind(ttm); 60 ret = ttm_tt_set_placement_caching(ttm, new_mem->placement); 65 ret = ttm_tt_bind(ttm, new_mem); 247 static int ttm_copy_io_ttm_page(struct ttm_tt *ttm, void *src, argument 251 vm_page_t d = ttm 271 ttm_copy_ttm_io_page(struct ttm_tt *ttm, void *dst, unsigned long page, vm_memattr_t prot) argument 299 struct ttm_tt *ttm = bo->ttm; local 484 struct ttm_tt *ttm = bo->ttm; local [all...] |
H A D | ttm_page_alloc.c | 42 __FBSDID("$FreeBSD: releng/10.3/sys/dev/drm2/ttm/ttm_page_alloc.c 285002 2015-07-01 11:28:42Z avg $"); 45 #include <dev/drm2/ttm/ttm_bo_driver.h> 46 #include <dev/drm2/ttm/ttm_page_alloc.h> 133 KASSERT(m->object == NULL, ("ttm page %p is owned", m)); 134 KASSERT(m->wire_count == 1, ("ttm lost wire %p", m)); 135 KASSERT((m->flags & PG_FICTITIOUS) != 0, ("ttm lost fictitious %p", m)); 136 KASSERT((m->oflags & VPO_UNMANAGED) == 0, ("ttm got unmanaged %p", m)); 312 * Select the right pool or requested caching state and ttm flags. */ 853 int ttm_pool_populate(struct ttm_tt *ttm) argument 855 struct ttm_mem_global *mem_glob = ttm 891 ttm_pool_unpopulate(struct ttm_tt *ttm) argument [all...] |
H A D | ttm_page_alloc_dma.c | 37 __FBSDID("$FreeBSD: releng/10.3/sys/dev/drm2/ttm/ttm_page_alloc_dma.c 247835 2013-03-05 09:49:34Z kib $"); 53 #include <drm/ttm/ttm_bo_driver.h> 54 #include <drm/ttm/ttm_page_alloc.h> 843 struct ttm_tt *ttm = &ttm_dma->ttm; local 851 ttm->pages[index] = d_page->p; 868 struct ttm_tt *ttm = &ttm_dma->ttm; local 869 struct ttm_mem_global *mem_glob = ttm->glob->mem_glob; 876 if (ttm 940 struct ttm_tt *ttm = &ttm_dma->ttm; local [all...] |
H A D | ttm_bo_manager.c | 32 __FBSDID("$FreeBSD: releng/10.3/sys/dev/drm2/ttm/ttm_bo_manager.c 247835 2013-03-05 09:49:34Z kib $"); 35 #include <dev/drm2/ttm/ttm_module.h> 36 #include <dev/drm2/ttm/ttm_bo_driver.h> 37 #include <dev/drm2/ttm/ttm_placement.h>
|
H A D | ttm_bo_vm.c | 39 __FBSDID("$FreeBSD: releng/10.3/sys/dev/drm2/ttm/ttm_bo_vm.c 282199 2015-04-28 19:35:05Z dumbbell $"); 44 #include <dev/drm2/ttm/ttm_module.h> 45 #include <dev/drm2/ttm/ttm_bo_driver.h> 46 #include <dev/drm2/ttm/ttm_placement.h> 108 struct ttm_tt *ttm = NULL; local 211 ttm = bo->ttm; 212 if (ttm->bdev->driver->ttm_tt_populate(ttm)) { 227 ttm [all...] |
H A D | ttm_execbuf_util.c | 29 __FBSDID("$FreeBSD: releng/10.3/sys/dev/drm2/ttm/ttm_execbuf_util.c 254864 2013-08-25 14:52:20Z dumbbell $"); 32 #include <dev/drm2/ttm/ttm_execbuf_util.h> 33 #include <dev/drm2/ttm/ttm_bo_driver.h> 34 #include <dev/drm2/ttm/ttm_placement.h>
|
H A D | ttm_lock.h | 30 /* $FreeBSD: releng/10.3/sys/dev/drm2/ttm/ttm_lock.h 247848 2013-03-05 16:14:55Z kib $ */ 55 #include <dev/drm2/ttm/ttm_object.h> 60 * @base: ttm base object used solely to release the lock if the client
|
H A D | ttm_object.h | 30 /* $FreeBSD: releng/10.3/sys/dev/drm2/ttm/ttm_object.h 247835 2013-03-05 09:49:34Z kib $ */ 34 * ttm objects. Implements reference counting, minimal security checks 42 #include <dev/drm2/ttm/ttm_memory.h> 69 * One entry per ttm object type. 252 * data structures needed for ttm base and ref objects.
|
H A D | ttm_bo.c | 32 __FBSDID("$FreeBSD: releng/10.3/sys/dev/drm2/ttm/ttm_bo.c 285002 2015-07-01 11:28:42Z avg $"); 35 #include <dev/drm2/ttm/ttm_module.h> 36 #include <dev/drm2/ttm/ttm_bo_driver.h> 37 #include <dev/drm2/ttm/ttm_placement.h> 124 if (bo->ttm) 125 ttm_tt_destroy(bo->ttm); 174 if (bo->ttm != NULL) { 378 bo->ttm = NULL; 388 bo->ttm = bdev->driver->ttm_tt_create(bdev, bo->num_pages << PAGE_SHIFT, 390 if (unlikely(bo->ttm [all...] |
H A D | ttm_lock.c | 39 __FBSDID("$FreeBSD: releng/10.3/sys/dev/drm2/ttm/ttm_lock.c 282199 2015-04-28 19:35:05Z dumbbell $"); 41 #include <dev/drm2/ttm/ttm_lock.h> 42 #include <dev/drm2/ttm/ttm_module.h>
|
H A D | ttm_memory.c | 29 __FBSDID("$FreeBSD: releng/10.3/sys/dev/drm2/ttm/ttm_memory.c 248663 2013-03-23 20:46:47Z dumbbell $"); 32 #include <dev/drm2/ttm/ttm_memory.h> 33 #include <dev/drm2/ttm/ttm_module.h> 34 #include <dev/drm2/ttm/ttm_page_alloc.h> 259 taskqueue_start_threads(&glob->swap_queue, 1, PVM, "ttm swap");
|
H A D | ttm_bo_api.h | 30 /* $FreeBSD: releng/10.3/sys/dev/drm2/ttm/ttm_bo_api.h 247835 2013-03-05 09:49:34Z kib $ */ 155 * @ttm: TTM structure holding system pages. 214 struct ttm_tt *ttm; member in struct:ttm_buffer_object 671 * ttm_fbdev_mmap - mmap fbdev memory backed by a ttm buffer object. 686 * ttm_bo_mmap - mmap out of the ttm device address space. 711 * This function implements read / write into ttm buffer objects, and is 727 * ttm_bo_is_reserved - return an indication if a ttm buffer object is reserved
|
H A D | ttm_object.c | 33 * ttm objects. Implements reference counting, minimal security checks 39 __FBSDID("$FreeBSD: releng/10.3/sys/dev/drm2/ttm/ttm_object.c 247835 2013-03-05 09:49:34Z kib $"); 61 #include <dev/drm2/ttm/ttm_object.h> 62 #include <dev/drm2/ttm/ttm_module.h> 81 * This is the per-device data structure needed for ttm object management.
|
/freebsd-10.3-release/sys/dev/drm2/radeon/ |
H A D | radeon_ttm.c | 36 #include <dev/drm2/ttm/ttm_bo_api.h> 37 #include <dev/drm2/ttm/ttm_bo_driver.h> 38 #include <dev/drm2/ttm/ttm_placement.h> 39 #include <dev/drm2/ttm/ttm_module.h> 40 #include <dev/drm2/ttm/ttm_page_alloc.h> 304 r = ttm_tt_set_placement_caching(bo->ttm, tmp_mem.placement); 309 r = ttm_tt_bind(bo->ttm, &tmp_mem); 373 if (old_mem->mem_type == TTM_PL_SYSTEM && bo->ttm == NULL) { 506 struct ttm_dma_tt ttm; member in struct:radeon_ttm_tt 511 static int radeon_ttm_backend_bind(struct ttm_tt *ttm, argument 532 radeon_ttm_backend_unbind(struct ttm_tt *ttm) argument 540 radeon_ttm_backend_destroy(struct ttm_tt *ttm) argument 583 radeon_ttm_tt_populate(struct ttm_tt *ttm) argument 643 radeon_ttm_tt_unpopulate(struct ttm_tt *ttm) argument [all...] |
H A D | radeon_prime.c | 47 sg = drm_prime_pages_to_sg(bo->tbo.ttm->pages, npages);
|
H A D | radeon.h | 80 #include <dev/drm2/ttm/ttm_bo_api.h> 81 #include <dev/drm2/ttm/ttm_bo_driver.h> 82 #include <dev/drm2/ttm/ttm_placement.h> 83 #include <dev/drm2/ttm/ttm_module.h> 84 #include <dev/drm2/ttm/ttm_execbuf_util.h>
|
/freebsd-10.3-release/sys/modules/drm2/drm2/ |
H A D | Makefile | 3 .PATH: ${.CURDIR}/../../../dev/drm2 ${.CURDIR}/../../../dev/drm2/ttm
|