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

/freebsd-13-stable/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
318 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
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->num_pages; i++) {
59 vm_page_t page = 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 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
485 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>
134 KASSERT(m->object == NULL, ("ttm page %p is owned", m));
135 KASSERT(vm_page_wired(m), ("ttm lost wire %p", m));
136 KASSERT((m->flags & PG_FICTITIOUS) != 0, ("ttm lost fictitious %p", m));
137 KASSERT((m->oflags & VPO_UNMANAGED) == 0, ("ttm got unmanaged %p", m));
309 * Select the right pool or requested caching state and ttm flags. */
850 int ttm_pool_populate(struct ttm_tt *ttm) argument
852 struct ttm_mem_global *mem_glob = ttm->glob->mem_glob;
856 if (ttm
888 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>
108 struct ttm_tt *ttm = NULL; local
206 ttm = bo->ttm;
207 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>
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 == NULL))
394 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-13-stable/crypto/openssl/crypto/asn1/
H A Da_utctm.c74 struct tm stm, ttm; local
80 if (OPENSSL_gmtime(&t, &ttm) == NULL)
83 if (!OPENSSL_gmtime_diff(&day, &sec, &ttm, &stm))
H A Da_time.c518 struct tm stm, ttm; local
524 if (!OPENSSL_gmtime(&t, &ttm))
527 if (!OPENSSL_gmtime_diff(&day, &sec, &ttm, &stm))

Completed in 111 milliseconds