Searched refs:ttm (Results 1 - 22 of 22) sorted by relevance

/freebsd-9.3-release/sys/dev/drm2/ttm/
H A Dttm_tt.c42 #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
60 ttm
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
329 ttm_tt_swapout(struct ttm_tt *ttm, vm_object_t persistent_swap_storage) argument
[all...]
H A Dttm_agp_backend.c36 #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
50 static int ttm_agp_bind(struct ttm_tt *ttm, struct ttm_mem_reg *bo_mem) argument
52 struct ttm_agp_backend *agp_be = container_of(ttm, struct ttm_agp_backend, ttm);
58 mem = agp_alloc_memory(agp_be->bridge, AGP_USER_MEMORY, ttm->num_pages);
63 for (i = 0; i < ttm
83 ttm_agp_unbind(struct ttm_tt *ttm) argument
96 ttm_agp_destroy(struct ttm_tt *ttm) argument
132 ttm_agp_tt_populate(struct ttm_tt *ttm) argument
140 ttm_agp_tt_unpopulate(struct ttm_tt *ttm) argument
[all...]
H A Dttm_page_alloc.h30 #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 Dttm_bo_driver.h36 #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);
102 * @be: Pointer to the ttm backen
142 struct ttm_tt ttm; member in struct:ttm_dma_tt
[all...]
H A Dttm_execbuf_util.h35 #include <dev/drm2/ttm/ttm_bo_api.h>
H A Dttm_bo_util.c35 #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->pages[page];
271 static int ttm_copy_ttm_io_page(struct ttm_tt *ttm, voi argument
299 struct ttm_tt *ttm = bo->ttm; local
484 struct ttm_tt *ttm = bo->ttm; local
[all...]
H A Dttm_page_alloc.c45 #include <dev/drm2/ttm/ttm_bo_driver.h>
46 #include <dev/drm2/ttm/ttm_page_alloc.h>
136 KASSERT(m->object == NULL, ("ttm page %p is owned", m));
137 KASSERT(m->wire_count == 1, ("ttm lost wire %p", m));
138 KASSERT((m->flags & PG_FICTITIOUS) != 0, ("ttm lost fictitious %p", m));
139 KASSERT((m->oflags & VPO_UNMANAGED) == 0, ("ttm got unmanaged %p", m));
267 * Select the right pool or requested caching state and ttm flags. */
825 int ttm_pool_populate(struct ttm_tt *ttm) argument
827 struct ttm_mem_global *mem_glob = ttm->glob->mem_glob;
831 if (ttm
863 ttm_pool_unpopulate(struct ttm_tt *ttm) argument
[all...]
H A Dttm_page_alloc_dma.c53 #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->state != tt_unpopulated)
879 type = ttm_to_type(ttm
940 struct ttm_tt *ttm = &ttm_dma->ttm; local
[all...]
H A Dttm_bo_manager.c35 #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 Dttm_bo_vm.c44 #include <dev/drm2/ttm/ttm_module.h>
45 #include <dev/drm2/ttm/ttm_bo_driver.h>
46 #include <dev/drm2/ttm/ttm_placement.h>
107 struct ttm_tt *ttm = NULL; local
210 ttm = bo->ttm;
211 if (ttm->bdev->driver->ttm_tt_populate(ttm)) {
222 ttm = bo->ttm;
[all...]
H A Dttm_execbuf_util.c32 #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 Dttm_lock.h55 #include <dev/drm2/ttm/ttm_object.h>
60 * @base: ttm base object used solely to release the lock if the client
H A Dttm_object.h34 * 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 Dttm_bo.c35 #include <dev/drm2/ttm/ttm_module.h>
36 #include <dev/drm2/ttm/ttm_bo_driver.h>
37 #include <dev/drm2/ttm/ttm_placement.h>
123 if (bo->ttm)
124 ttm_tt_destroy(bo->ttm);
173 if (bo->ttm != NULL) {
377 bo->ttm = NULL;
387 bo->ttm = bdev->driver->ttm_tt_create(bdev, bo->num_pages << PAGE_SHIFT,
389 if (unlikely(bo->ttm == NULL))
393 bo->ttm
[all...]
H A Dttm_lock.c41 #include <dev/drm2/ttm/ttm_lock.h>
42 #include <dev/drm2/ttm/ttm_module.h>
H A Dttm_memory.c32 #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 Dttm_bo_api.h155 * @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 Dttm_object.c33 * ttm objects. Implements reference counting, minimal security checks
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-9.3-release/sys/dev/drm2/radeon/
H A Dradeon_ttm.c36 #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
585 radeon_ttm_tt_populate(struct ttm_tt *ttm) argument
651 radeon_ttm_tt_unpopulate(struct ttm_tt *ttm) argument
[all...]
H A Dradeon_prime.c47 sg = drm_prime_pages_to_sg(bo->tbo.ttm->pages, npages);
H A Dradeon.h78 #include <dev/drm2/ttm/ttm_bo_api.h>
79 #include <dev/drm2/ttm/ttm_bo_driver.h>
80 #include <dev/drm2/ttm/ttm_placement.h>
81 #include <dev/drm2/ttm/ttm_module.h>
82 #include <dev/drm2/ttm/ttm_execbuf_util.h>
/freebsd-9.3-release/sys/modules/drm2/drm2/
H A DMakefile3 .PATH: ${.CURDIR}/../../../dev/drm2 ${.CURDIR}/../../../dev/drm2/ttm

Completed in 135 milliseconds