Home
last modified time | relevance | path

Searched refs:ttm (Results 1 – 13 of 13) sorted by relevance

/freebsd-14.2/sys/dev/drm2/ttm/
H A Dttm_tt.c58 ttm->ttm.pages = malloc(ttm->ttm.num_pages * sizeof(void *), in ttm_dma_tt_alloc_page_directory()
60 ttm->dma_address = malloc(ttm->ttm.num_pages * in ttm_dma_tt_alloc_page_directory()
117 drm_clflush_pages(ttm->pages, ttm->num_pages); in ttm_tt_set_caching()
170 ttm->bdev->driver->ttm_tt_unpopulate(ttm); in ttm_tt_destroy()
178 ttm->func->destroy(ttm); in ttm_tt_destroy()
213 struct ttm_tt *ttm = &ttm_dma->ttm; in ttm_dma_tt_init() local
236 struct ttm_tt *ttm = &ttm_dma->ttm; in ttm_dma_tt_fini() local
249 ret = ttm->func->unbind(ttm); in ttm_tt_unbind()
265 ret = ttm->bdev->driver->ttm_tt_populate(ttm); in ttm_tt_bind()
269 ret = ttm->func->bind(ttm, bo_mem); in ttm_tt_bind()
[all …]
H A Dttm_agp_backend.c41 struct ttm_tt ttm; member
51 struct ttm_agp_backend *agp_be = container_of(ttm, struct ttm_agp_backend, ttm); in ttm_agp_bind()
57 vm_page_t page = ttm->pages[i]; in ttm_agp_bind()
60 page = ttm->dummy_read_page; in ttm_agp_bind()
76 struct ttm_agp_backend *agp_be = container_of(ttm, struct ttm_agp_backend, ttm); in ttm_agp_unbind()
84 struct ttm_agp_backend *agp_be = container_of(ttm, struct ttm_agp_backend, ttm); in ttm_agp_destroy()
86 ttm_tt_fini(ttm); in ttm_agp_destroy()
107 agp_be->ttm.func = &ttm_agp_func; in ttm_agp_tt_create()
118 return &agp_be->ttm; in ttm_agp_tt_create()
126 return ttm_pool_populate(ttm); in ttm_agp_tt_populate()
[all …]
H A Dttm_bo_util.c46 struct ttm_tt *ttm = bo->ttm; in ttm_bo_move_ttm() local
51 ttm_tt_unbind(ttm); in ttm_bo_move_ttm()
297 struct ttm_tt *ttm = bo->ttm; in ttm_bo_move_memcpy() local
321 ret = ttm->bdev->driver->ttm_tt_populate(ttm); in ttm_bo_move_memcpy()
364 ttm_tt_unbind(ttm); in ttm_bo_move_memcpy()
366 bo->ttm = NULL; in ttm_bo_move_memcpy()
483 struct ttm_tt *ttm = bo->ttm; in ttm_bo_kmap_ttm() local
486 MPASS(ttm != NULL); in ttm_bo_kmap_ttm()
489 ret = ttm->bdev->driver->ttm_tt_populate(ttm); in ttm_bo_kmap_ttm()
626 bo->ttm = NULL; in ttm_bo_move_accel_cleanup()
[all …]
H A Dttm_bo_driver.h64 int (*unbind) (struct ttm_tt *ttm);
74 void (*destroy) (struct ttm_tt *ttm);
141 struct ttm_tt ttm; member
344 int (*ttm_tt_populate)(struct ttm_tt *ttm);
353 void (*ttm_tt_unpopulate)(struct ttm_tt *ttm);
613 extern void ttm_tt_fini(struct ttm_tt *ttm);
633 extern void ttm_tt_destroy(struct ttm_tt *ttm);
642 extern void ttm_tt_unbind(struct ttm_tt *ttm);
651 extern int ttm_tt_swapin(struct ttm_tt *ttm);
679 extern int ttm_tt_swapout(struct ttm_tt *ttm,
[all …]
H A Dttm_page_alloc.c854 ttm->page_flags, in ttm_pool_populate()
855 ttm->caching_state); in ttm_pool_populate()
857 ttm_pool_unpopulate(ttm); in ttm_pool_populate()
864 ttm_pool_unpopulate(ttm); in ttm_pool_populate()
870 ret = ttm_tt_swapin(ttm); in ttm_pool_populate()
872 ttm_pool_unpopulate(ttm); in ttm_pool_populate()
877 ttm->state = tt_unbound; in ttm_pool_populate()
886 if (ttm->pages[i]) { in ttm_pool_unpopulate()
888 ttm->pages[i]); in ttm_pool_unpopulate()
890 ttm->page_flags, in ttm_pool_unpopulate()
[all …]
H A Dttm_page_alloc_dma.c841 struct ttm_tt *ttm = &ttm_dma->ttm; in ttm_dma_pool_get_pages() local
849 ttm->pages[index] = d_page->p; in ttm_dma_pool_get_pages()
866 struct ttm_tt *ttm = &ttm_dma->ttm; in ttm_dma_populate() local
877 type = ttm_to_type(ttm->page_flags, ttm->caching_state); in ttm_dma_populate()
910 ret = ttm_tt_swapin(ttm); in ttm_dma_populate()
917 ttm->state = tt_unbound; in ttm_dma_populate()
938 struct ttm_tt *ttm = &ttm_dma->ttm; in ttm_dma_unpopulate() local
946 type = ttm_to_type(ttm->page_flags, ttm->caching_state); in ttm_dma_unpopulate()
987 ttm->pages[i]); in ttm_dma_unpopulate()
993 ttm->pages[i] = NULL; in ttm_dma_unpopulate()
[all …]
H A Dttm_bo_vm.c106 struct ttm_tt *ttm = NULL; in ttm_bo_vm_fault() local
204 ttm = bo->ttm; in ttm_bo_vm_fault()
205 if (ttm->bdev->driver->ttm_tt_populate(ttm)) { in ttm_bo_vm_fault()
220 ttm = bo->ttm; in ttm_bo_vm_fault()
221 m = ttm->pages[OFF_TO_IDX(offset)]; in ttm_bo_vm_fault()
H A Dttm_page_alloc.h48 extern int ttm_pool_populate(struct ttm_tt *ttm);
57 extern void ttm_pool_unpopulate(struct ttm_tt *ttm);
H A Dttm_bo.c122 if (bo->ttm) in ttm_bo_release_list()
123 ttm_tt_destroy(bo->ttm); in ttm_bo_release_list()
172 if (bo->ttm != NULL) { in ttm_bo_add_to_lru()
376 bo->ttm = NULL; in ttm_bo_add_ttm()
399 bo->ttm->sg = bo->sg; in ttm_bo_add_ttm()
436 if (bo->ttm == NULL) { in ttm_bo_handle_move_mem()
507 ttm_tt_unbind(bo->ttm); in ttm_bo_handle_move_mem()
509 bo->ttm = NULL; in ttm_bo_handle_move_mem()
528 if (bo->ttm) { in ttm_bo_cleanup_memtype_use()
529 ttm_tt_unbind(bo->ttm); in ttm_bo_cleanup_memtype_use()
[all …]
H A Dttm_bo_api.h213 struct ttm_tt *ttm; member
/freebsd-14.2/crypto/openssl/crypto/asn1/
H A Da_utctm.c77 struct tm stm, ttm; in ASN1_UTCTIME_cmp_time_t() local
83 if (OPENSSL_gmtime(&t, &ttm) == NULL) in ASN1_UTCTIME_cmp_time_t()
86 if (!OPENSSL_gmtime_diff(&day, &sec, &ttm, &stm)) in ASN1_UTCTIME_cmp_time_t()
H A Da_time.c546 struct tm stm, ttm; in ASN1_TIME_cmp_time_t() local
552 if (!OPENSSL_gmtime(&t, &ttm)) in ASN1_TIME_cmp_time_t()
555 if (!OPENSSL_gmtime_diff(&day, &sec, &ttm, &stm)) in ASN1_TIME_cmp_time_t()
/freebsd-14.2/sys/conf/
H A Dfiles1577 dev/drm2/ttm/ttm_agp_backend.c optional drm2
1578 dev/drm2/ttm/ttm_lock.c optional drm2
1579 dev/drm2/ttm/ttm_object.c optional drm2
1580 dev/drm2/ttm/ttm_tt.c optional drm2
1581 dev/drm2/ttm/ttm_bo_util.c optional drm2
1582 dev/drm2/ttm/ttm_bo.c optional drm2
1583 dev/drm2/ttm/ttm_bo_manager.c optional drm2
1584 dev/drm2/ttm/ttm_execbuf_util.c optional drm2
1585 dev/drm2/ttm/ttm_memory.c optional drm2
1586 dev/drm2/ttm/ttm_page_alloc.c optional drm2
[all …]