Home
last modified time | relevance | path

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

12

/Linux-v5.15/include/drm/ttm/
Dttm_device.h35 struct ttm_device;
95 int (*ttm_tt_populate)(struct ttm_device *bdev,
106 void (*ttm_tt_unpopulate)(struct ttm_device *bdev,
118 void (*ttm_tt_destroy)(struct ttm_device *bdev, struct ttm_tt *ttm);
180 int (*io_mem_reserve)(struct ttm_device *bdev,
182 void (*io_mem_free)(struct ttm_device *bdev,
244 struct ttm_device { struct
281 int ttm_device_swapout(struct ttm_device *bdev, struct ttm_operation_ctx *ctx, argument
285 ttm_manager_type(struct ttm_device *bdev, int mem_type) in ttm_manager_type()
290 static inline void ttm_set_driver_manager(struct ttm_device *bdev, int type, in ttm_set_driver_manager()
[all …]
Dttm_bo_api.h49 struct ttm_device;
125 struct ttm_device *bdev;
339 int ttm_bo_lock_delayed_workqueue(struct ttm_device *bdev);
346 void ttm_bo_unlock_delayed_workqueue(struct ttm_device *bdev, int resched);
393 int ttm_bo_init_reserved(struct ttm_device *bdev,
438 int ttm_bo_init(struct ttm_device *bdev, struct ttm_buffer_object *bo,
547 ssize_t ttm_bo_io(struct ttm_device *bdev, struct file *filp,
583 int ttm_mem_evict_first(struct ttm_device *bdev,
608 bool ttm_bo_delayed_delete(struct ttm_device *bdev, bool remove_all);
Dttm_tt.h35 struct ttm_device;
136 void ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *ttm);
143 void ttm_tt_destroy_common(struct ttm_device *bdev, struct ttm_tt *ttm);
153 int ttm_tt_swapout(struct ttm_device *bdev, struct ttm_tt *ttm,
163 int ttm_tt_populate(struct ttm_device *bdev, struct ttm_tt *ttm, struct ttm_operation_ctx *ctx);
172 void ttm_tt_unpopulate(struct ttm_device *bdev, struct ttm_tt *ttm);
Dttm_resource.h38 struct ttm_device;
273 int ttm_resource_manager_evict_all(struct ttm_device *bdev,
289 struct ttm_device *bdev,
293 struct ttm_device *bdev,
Dttm_range_manager.h36 int ttm_range_man_init(struct ttm_device *bdev,
39 int ttm_range_man_fini(struct ttm_device *bdev,
Dttm_bo_driver.h226 int ttm_mem_io_reserve(struct ttm_device *bdev,
228 void ttm_mem_io_free(struct ttm_device *bdev,
/Linux-v5.15/drivers/gpu/drm/nouveau/
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);
Dnouveau_sgdma.c19 nouveau_sgdma_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in nouveau_sgdma_destroy()
32 nouveau_sgdma_bind(struct ttm_device *bdev, struct ttm_tt *ttm, struct ttm_resource *reg) in nouveau_sgdma_bind()
59 nouveau_sgdma_unbind(struct ttm_device *bdev, struct ttm_tt *ttm) in nouveau_sgdma_unbind()
Dnouveau_bo.c46 static int nouveau_ttm_tt_bind(struct ttm_device *bdev, struct ttm_tt *ttm,
48 static void nouveau_ttm_tt_unbind(struct ttm_device *bdev, struct ttm_tt *ttm);
713 nouveau_ttm_tt_bind(struct ttm_device *bdev, struct ttm_tt *ttm, in nouveau_ttm_tt_bind()
729 nouveau_ttm_tt_unbind(struct ttm_device *bdev, struct ttm_tt *ttm) in nouveau_ttm_tt_unbind()
1079 nouveau_ttm_io_mem_reserve(struct ttm_device *bdev, struct ttm_resource *reg) in nouveau_ttm_io_mem_reserve()
1187 nouveau_ttm_io_mem_free(struct ttm_device *bdev, struct ttm_resource *reg) in nouveau_ttm_io_mem_free()
1247 nouveau_ttm_tt_populate(struct ttm_device *bdev, in nouveau_ttm_tt_populate()
1271 nouveau_ttm_tt_unpopulate(struct ttm_device *bdev, in nouveau_ttm_tt_unpopulate()
1288 nouveau_ttm_tt_destroy(struct ttm_device *bdev, in nouveau_ttm_tt_destroy()
/Linux-v5.15/drivers/gpu/drm/i915/
Di915_ttm_buddy_manager.h14 struct ttm_device;
47 int i915_ttm_buddy_man_init(struct ttm_device *bdev,
50 int i915_ttm_buddy_man_fini(struct ttm_device *bdev,
Di915_ttm_buddy_manager.c162 int i915_ttm_buddy_man_init(struct ttm_device *bdev, in i915_ttm_buddy_man_init()
209 int i915_ttm_buddy_man_fini(struct ttm_device *bdev, unsigned int type) in i915_ttm_buddy_man_fini()
/Linux-v5.15/drivers/gpu/drm/ttm/
Dttm_device.c126 struct ttm_device *bdev; in ttm_global_swapout()
142 int ttm_device_swapout(struct ttm_device *bdev, struct ttm_operation_ctx *ctx, in ttm_device_swapout()
176 struct ttm_device *bdev = in ttm_device_delayed_workqueue()
177 container_of(work, struct ttm_device, wq.work); in ttm_device_delayed_workqueue()
199 int ttm_device_init(struct ttm_device *bdev, struct ttm_device_funcs *funcs, in ttm_device_init()
232 void ttm_device_fini(struct ttm_device *bdev) in ttm_device_fini()
Dttm_module.h37 struct ttm_device;
41 void ttm_sys_man_init(struct ttm_device *bdev);
Dttm_tt.c60 struct ttm_device *bdev = bo->bdev; in ttm_tt_create()
125 void ttm_tt_destroy_common(struct ttm_device *bdev, struct ttm_tt *ttm) in ttm_tt_destroy_common()
136 void ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in ttm_tt_destroy()
250 int ttm_tt_swapout(struct ttm_device *bdev, struct ttm_tt *ttm, in ttm_tt_swapout()
297 static void ttm_tt_add_mapping(struct ttm_device *bdev, struct ttm_tt *ttm) in ttm_tt_add_mapping()
308 int ttm_tt_populate(struct ttm_device *bdev, in ttm_tt_populate()
381 void ttm_tt_unpopulate(struct ttm_device *bdev, struct ttm_tt *ttm) in ttm_tt_unpopulate()
Dttm_bo.c74 struct ttm_device *bdev = bo->bdev; in ttm_bo_del_from_lru()
94 struct ttm_device *bdev = bo->bdev; in ttm_bo_move_to_lru_tail()
170 struct ttm_device *bdev = bo->bdev; in ttm_bo_handle_move_mem()
362 bool ttm_bo_delayed_delete(struct ttm_device *bdev, bool remove_all) in ttm_bo_delayed_delete()
406 struct ttm_device *bdev = bo->bdev; in ttm_bo_release()
477 int ttm_bo_lock_delayed_workqueue(struct ttm_device *bdev) in ttm_bo_lock_delayed_workqueue()
483 void ttm_bo_unlock_delayed_workqueue(struct ttm_device *bdev, int resched) in ttm_bo_unlock_delayed_workqueue()
519 struct ttm_device *bdev = bo->bdev; in ttm_bo_evict()
666 int ttm_mem_evict_first(struct ttm_device *bdev, in ttm_mem_evict_first()
780 struct ttm_device *bdev = bo->bdev; in ttm_bo_mem_force_space()
[all …]
Dttm_range_manager.c141 int ttm_range_man_init(struct ttm_device *bdev, in ttm_range_man_init()
176 int ttm_range_man_fini(struct ttm_device *bdev, in ttm_range_man_fini()
Dttm_resource.c101 int ttm_resource_manager_evict_all(struct ttm_device *bdev, in ttm_resource_manager_evict_all()
274 struct ttm_device *bdev, in ttm_kmap_iter_linear_io_init()
338 struct ttm_device *bdev, in ttm_kmap_iter_linear_io_fini()
DMakefile7 ttm_device.o ttm_sys_manager.o
Dttm_bo_util.c50 int ttm_mem_io_reserve(struct ttm_device *bdev, in ttm_mem_io_reserve()
63 void ttm_mem_io_free(struct ttm_device *bdev, in ttm_mem_io_free()
139 struct ttm_device *bdev = bo->bdev; in ttm_bo_move_memcpy()
523 struct ttm_device *bdev = bo->bdev; in ttm_bo_move_pipeline_evict()
551 struct ttm_device *bdev = bo->bdev; in ttm_bo_move_accel_cleanup()
Dttm_sys_manager.c34 void ttm_sys_man_init(struct ttm_device *bdev) in ttm_sys_man_init()
/Linux-v5.15/drivers/gpu/drm/radeon/
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()
271 static int radeon_ttm_io_mem_reserve(struct ttm_device *bdev, struct ttm_resource *mem) in radeon_ttm_io_mem_reserve()
338 static int radeon_ttm_tt_pin_userptr(struct ttm_device *bdev, struct ttm_tt *ttm) in radeon_ttm_tt_pin_userptr()
399 static void radeon_ttm_tt_unpin_userptr(struct ttm_device *bdev, struct ttm_tt *ttm) in radeon_ttm_tt_unpin_userptr()
435 static int radeon_ttm_backend_bind(struct ttm_device *bdev, in radeon_ttm_backend_bind()
471 static void radeon_ttm_backend_unbind(struct ttm_device *bdev, struct ttm_tt *ttm) in radeon_ttm_backend_unbind()
487 static void radeon_ttm_backend_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in radeon_ttm_backend_destroy()
545 static int radeon_ttm_tt_populate(struct ttm_device *bdev, in radeon_ttm_tt_populate()
[all …]
/Linux-v5.15/include/drm/
Ddrm_gem_vram_helper.h184 struct ttm_device bdev;
196 struct ttm_device *bdev) in drm_vram_mm_of_bdev()
/Linux-v5.15/drivers/gpu/drm/qxl/
Dqxl_ttm.c40 static struct qxl_device *qxl_get_qdev(struct ttm_device *bdev) in qxl_get_qdev()
73 int qxl_ttm_io_mem_reserve(struct ttm_device *bdev, in qxl_ttm_io_mem_reserve()
102 static void qxl_ttm_backend_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in qxl_ttm_backend_destroy()
/Linux-v5.15/drivers/gpu/drm/vmwgfx/
Dvmwgfx_ttm_buffer.c450 static int vmw_ttm_bind(struct ttm_device *bdev, in vmw_ttm_bind()
494 static void vmw_ttm_unbind(struct ttm_device *bdev, in vmw_ttm_unbind()
520 static void vmw_ttm_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in vmw_ttm_destroy()
540 static int vmw_ttm_populate(struct ttm_device *bdev, in vmw_ttm_populate()
570 static void vmw_ttm_unpopulate(struct ttm_device *bdev, in vmw_ttm_unpopulate()
625 static int vmw_ttm_io_mem_reserve(struct ttm_device *bdev, struct ttm_resource *mem) in vmw_ttm_io_mem_reserve()
Dvmwgfx_ttm_glue.c30 static struct ttm_buffer_object *vmw_bo_vm_lookup(struct ttm_device *bdev, in vmw_bo_vm_lookup()
71 struct ttm_device *bdev = &dev_priv->bdev; in vmw_mmap()

12