Home
last modified time | relevance | path

Searched refs:ttm_device (Results 1 – 25 of 58) sorted by relevance

123

/linux-6.15/include/drm/ttm/
H A Dttm_device.h33 struct ttm_device;
85 int (*ttm_tt_populate)(struct ttm_device *bdev,
96 void (*ttm_tt_unpopulate)(struct ttm_device *bdev,
108 void (*ttm_tt_destroy)(struct ttm_device *bdev, struct ttm_tt *ttm);
170 int (*io_mem_reserve)(struct ttm_device *bdev,
172 void (*io_mem_free)(struct ttm_device *bdev,
215 struct ttm_device { struct
277 ttm_manager_type(struct ttm_device *bdev, int mem_type) in ttm_manager_type()
284 static inline void ttm_set_driver_manager(struct ttm_device *bdev, int type, in ttm_set_driver_manager()
295 void ttm_device_fini(struct ttm_device *bdev);
[all …]
H A Dttm_tt.h36 struct ttm_device;
230 void ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *ttm);
240 int ttm_tt_swapout(struct ttm_device *bdev, struct ttm_tt *ttm,
252 int ttm_tt_populate(struct ttm_device *bdev, struct ttm_tt *ttm,
263 void ttm_tt_unpopulate(struct ttm_device *bdev, struct ttm_tt *ttm);
295 long ttm_tt_backup(struct ttm_device *bdev, struct ttm_tt *tt,
298 int ttm_tt_restore(struct ttm_device *bdev, struct ttm_tt *tt,
H A Dttm_range_manager.h37 int ttm_range_man_init_nocheck(struct ttm_device *bdev,
40 int ttm_range_man_fini_nocheck(struct ttm_device *bdev,
42 static __always_inline int ttm_range_man_init(struct ttm_device *bdev, in ttm_range_man_init()
50 static __always_inline int ttm_range_man_fini(struct ttm_device *bdev, in ttm_range_man_fini()
H A Dttm_resource.h42 struct ttm_device;
195 struct ttm_device *bdev;
430 void ttm_lru_bulk_move_fini(struct ttm_device *bdev,
450 bool ttm_resource_intersects(struct ttm_device *bdev,
461 struct ttm_device *bdev,
464 int ttm_resource_manager_evict_all(struct ttm_device *bdev,
500 struct ttm_device *bdev,
504 struct ttm_device *bdev,
H A Dttm_bo.h47 struct ttm_device;
107 struct ttm_device *bdev;
225 s64 ttm_lru_walk_for_evict(struct ttm_lru_walk *walk, struct ttm_device *bdev,
421 int ttm_bo_init_reserved(struct ttm_device *bdev, struct ttm_buffer_object *bo,
426 int ttm_bo_init_validate(struct ttm_device *bdev, struct ttm_buffer_object *bo,
437 s64 ttm_bo_swapout(struct ttm_device *bdev, struct ttm_operation_ctx *ctx,
442 int ttm_bo_evict_first(struct ttm_device *bdev,
468 int ttm_mem_io_reserve(struct ttm_device *bdev,
470 void ttm_mem_io_free(struct ttm_device *bdev,
/linux-6.15/drivers/gpu/drm/ttm/tests/
H A Dttm_mock_manager.h24 int ttm_mock_manager_init(struct ttm_device *bdev, u32 mem_type, u32 size);
25 int ttm_bad_manager_init(struct ttm_device *bdev, u32 mem_type, u32 size);
26 int ttm_busy_manager_init(struct ttm_device *bdev, u32 mem_type, u32 size);
27 void ttm_mock_manager_fini(struct ttm_device *bdev, u32 mem_type);
28 void ttm_bad_manager_fini(struct ttm_device *bdev, u32 mem_type);
H A Dttm_kunit_helpers.h25 struct ttm_device *ttm_dev;
30 struct ttm_device *ttm,
34 struct ttm_device *ttm,
H A Dttm_device_test.c21 struct ttm_device *ttm_dev; in ttm_device_init_basic()
50 struct ttm_device *ttm_devs; in ttm_device_init_multiple()
77 struct ttm_device *ttm_dev; in ttm_device_fini_basic()
101 struct ttm_device *ttm_dev; in ttm_device_init_no_vma_man()
151 KUNIT_ARRAY_PARAM(ttm_device, ttm_device_cases, ttm_device_case_desc);
157 struct ttm_device *ttm_dev; in ttm_device_init_pools()
H A Dttm_mock_manager.c93 int ttm_mock_manager_init(struct ttm_device *bdev, u32 mem_type, u32 size) in ttm_mock_manager_init()
125 void ttm_mock_manager_fini(struct ttm_device *bdev, u32 mem_type) in ttm_mock_manager_fini()
189 int ttm_bad_manager_init(struct ttm_device *bdev, u32 mem_type, u32 size) in ttm_bad_manager_init()
207 int ttm_busy_manager_init(struct ttm_device *bdev, u32 mem_type, u32 size) in ttm_busy_manager_init()
220 void ttm_bad_manager_fini(struct ttm_device *bdev, uint32_t mem_type) in ttm_bad_manager_fini()
H A Dttm_kunit_helpers.c55 static void ttm_tt_simple_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in ttm_tt_simple_destroy()
116 struct ttm_device *ttm, in ttm_device_kunit_init_with_funcs()
142 struct ttm_device *ttm, in ttm_device_kunit_init()
161 struct ttm_device *ttm, in ttm_device_kunit_init_bad_evict()
244 struct ttm_device *ttm_dev; in ttm_test_devices_all()
H A Dttm_bo_test.c241 struct ttm_device *ttm_dev; in ttm_bo_unreserve_basic()
284 struct ttm_device *ttm_dev; in ttm_bo_unreserve_pinned()
328 struct ttm_device *ttm_dev; in ttm_bo_unreserve_bulk()
387 struct ttm_device *ttm_dev; in ttm_bo_put_basic()
434 struct ttm_device *ttm_dev; in ttm_bo_put_shared_resv()
473 struct ttm_device *ttm_dev; in ttm_bo_pin_basic()
502 struct ttm_device *ttm_dev; in ttm_bo_pin_unpin_resource()
553 struct ttm_device *ttm_dev; in ttm_bo_multiple_pin_one_unpin()
/linux-6.15/drivers/gpu/drm/nouveau/
H A Dnouveau_ttm.h6 nouveau_bdev(struct ttm_device *bd) in nouveau_bdev()
24 int nouveau_sgdma_bind(struct ttm_device *bdev, struct ttm_tt *ttm, struct ttm_resource *reg);
25 void nouveau_sgdma_unbind(struct ttm_device *bdev, struct ttm_tt *ttm);
26 void nouveau_sgdma_destroy(struct ttm_device *bdev, struct ttm_tt *ttm);
H A Dnouveau_sgdma.c20 nouveau_sgdma_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in nouveau_sgdma_destroy()
31 nouveau_sgdma_bind(struct ttm_device *bdev, struct ttm_tt *ttm, struct ttm_resource *reg) in nouveau_sgdma_bind()
58 nouveau_sgdma_unbind(struct ttm_device *bdev, struct ttm_tt *ttm) in nouveau_sgdma_unbind()
/linux-6.15/drivers/gpu/drm/i915/
H A Di915_ttm_buddy_manager.h14 struct ttm_device;
52 int i915_ttm_buddy_man_init(struct ttm_device *bdev,
56 int i915_ttm_buddy_man_fini(struct ttm_device *bdev,
/linux-6.15/drivers/gpu/drm/ttm/
H A Dttm_device.c133 struct ttm_device *bdev; in ttm_global_swapout()
148 int ttm_device_swapout(struct ttm_device *bdev, struct ttm_operation_ctx *ctx, in ttm_device_swapout()
184 int ttm_device_init(struct ttm_device *bdev, const struct ttm_device_funcs *funcs, in ttm_device_init()
229 void ttm_device_fini(struct ttm_device *bdev) in ttm_device_fini()
256 static void ttm_device_clear_lru_dma_mappings(struct ttm_device *bdev, in ttm_device_clear_lru_dma_mappings()
281 void ttm_device_clear_dma_mappings(struct ttm_device *bdev) in ttm_device_clear_dma_mappings()
H A Dttm_module.h37 struct ttm_device;
41 void ttm_sys_man_init(struct ttm_device *bdev);
H A Dttm_tt.c67 struct ttm_device *bdev = bo->bdev; in ttm_tt_create()
144 void ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in ttm_tt_destroy()
278 long ttm_tt_backup(struct ttm_device *bdev, struct ttm_tt *tt, in ttm_tt_backup()
295 int ttm_tt_restore(struct ttm_device *bdev, struct ttm_tt *tt, in ttm_tt_restore()
319 int ttm_tt_swapout(struct ttm_device *bdev, struct ttm_tt *ttm, in ttm_tt_swapout()
367 int ttm_tt_populate(struct ttm_device *bdev, in ttm_tt_populate()
429 void ttm_tt_unpopulate(struct ttm_device *bdev, struct ttm_tt *ttm) in ttm_tt_unpopulate()
H A Dttm_bo.c121 struct ttm_device *bdev = bo->bdev; in ttm_bo_handle_move_mem()
250 struct ttm_device *bdev = bo->bdev; in ttm_bo_release()
359 struct ttm_device *bdev = bo->bdev; in ttm_bo_evict()
423 struct ttm_device *bdev = bo->bdev; in ttm_bo_eviction_valuable()
444 int ttm_bo_evict_first(struct ttm_device *bdev, struct ttm_resource_manager *man, in ttm_bo_evict_first()
555 static int ttm_bo_evict_alloc(struct ttm_device *bdev, in ttm_bo_evict_alloc()
712 struct ttm_device *bdev = bo->bdev; in ttm_bo_alloc_resource()
924 int ttm_bo_init_reserved(struct ttm_device *bdev, struct ttm_buffer_object *bo, in ttm_bo_init_reserved()
1017 int ttm_bo_init_validate(struct ttm_device *bdev, struct ttm_buffer_object *bo, in ttm_bo_init_validate()
1049 struct ttm_device *bdev = bo->bdev; in ttm_bo_unmap_virtual()
[all …]
H A Dttm_resource.c138 void ttm_lru_bulk_move_fini(struct ttm_device *bdev, in ttm_lru_bulk_move_fini()
297 struct ttm_device *bdev = bo->bdev; in ttm_resource_move_to_lru_tail()
365 struct ttm_device *bdev = man->bdev; in ttm_resource_fini()
440 bool ttm_resource_intersects(struct ttm_device *bdev, in ttm_resource_intersects()
471 struct ttm_device *bdev = bo->bdev; in ttm_resource_compatible()
520 struct ttm_device *bdev, in ttm_resource_manager_init()
545 int ttm_resource_manager_evict_all(struct ttm_device *bdev, in ttm_resource_manager_evict_all()
824 struct ttm_device *bdev, in ttm_kmap_iter_linear_io_init()
886 struct ttm_device *bdev, in ttm_kmap_iter_linear_io_fini()
H A Dttm_range_manager.c178 int ttm_range_man_init_nocheck(struct ttm_device *bdev, in ttm_range_man_init_nocheck()
214 int ttm_range_man_fini_nocheck(struct ttm_device *bdev, in ttm_range_man_fini_nocheck()
/linux-6.15/drivers/gpu/drm/radeon/
H A Dradeon_ttm.c56 static int radeon_ttm_tt_bind(struct ttm_device *bdev, struct ttm_tt *ttm,
58 static void radeon_ttm_tt_unbind(struct ttm_device *bdev, struct ttm_tt *ttm);
60 struct radeon_device *radeon_get_rdev(struct ttm_device *bdev) in radeon_get_rdev()
323 static int radeon_ttm_tt_pin_userptr(struct ttm_device *bdev, struct ttm_tt *ttm) in radeon_ttm_tt_pin_userptr()
420 static int radeon_ttm_backend_bind(struct ttm_device *bdev, in radeon_ttm_backend_bind()
527 static int radeon_ttm_tt_populate(struct ttm_device *bdev, in radeon_ttm_tt_populate()
553 static void radeon_ttm_tt_unpopulate(struct ttm_device *bdev, struct ttm_tt *ttm) in radeon_ttm_tt_unpopulate()
588 bool radeon_ttm_tt_is_bound(struct ttm_device *bdev, in radeon_ttm_tt_is_bound()
599 static int radeon_ttm_tt_bind(struct ttm_device *bdev, in radeon_ttm_tt_bind()
617 static void radeon_ttm_tt_unbind(struct ttm_device *bdev, in radeon_ttm_tt_unbind()
[all …]
/linux-6.15/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_ttm_buffer.c273 static int vmw_ttm_bind(struct ttm_device *bdev, in vmw_ttm_bind()
320 static void vmw_ttm_unbind(struct ttm_device *bdev, in vmw_ttm_unbind()
348 static void vmw_ttm_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in vmw_ttm_destroy()
362 static int vmw_ttm_populate(struct ttm_device *bdev, in vmw_ttm_populate()
378 static void vmw_ttm_unpopulate(struct ttm_device *bdev, in vmw_ttm_unpopulate()
438 static int vmw_ttm_io_mem_reserve(struct ttm_device *bdev, struct ttm_resource *mem) in vmw_ttm_io_mem_reserve()
/linux-6.15/drivers/gpu/drm/loongson/
H A Dlsdc_ttm.c86 static void lsdc_ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *tt) in lsdc_ttm_tt_destroy()
111 static int lsdc_ttm_tt_populate(struct ttm_device *bdev, in lsdc_ttm_tt_populate()
128 static void lsdc_ttm_tt_unpopulate(struct ttm_device *bdev, in lsdc_ttm_tt_unpopulate()
219 static int lsdc_bo_reserve_io_mem(struct ttm_device *bdev, in lsdc_bo_reserve_io_mem()
405 struct ttm_device *bdev = &ldev->bdev; in lsdc_bo_evict_vram()
437 struct ttm_device *bdev = &ldev->bdev; in lsdc_bo_create()
575 struct ttm_device *bdev = &ldev->bdev; in lsdc_ttm_debugfs_init()
/linux-6.15/drivers/gpu/drm/qxl/
H A Dqxl_ttm.c40 static struct qxl_device *qxl_get_qdev(struct ttm_device *bdev) in qxl_get_qdev()
71 int qxl_ttm_io_mem_reserve(struct ttm_device *bdev, in qxl_ttm_io_mem_reserve()
100 static void qxl_ttm_backend_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in qxl_ttm_backend_destroy()
/linux-6.15/include/drm/
H A Ddrm_gem_vram_helper.h170 struct ttm_device bdev;
182 struct ttm_device *bdev) in drm_vram_mm_of_bdev()

123