| /linux/include/drm/ttm/ |
| H A D | ttm_bo.h | 101 struct ttm_buffer_object { struct 110 void (*destroy) (struct ttm_buffer_object *); argument 164 struct ttm_buffer_object *bo; 206 s64 (*process_bo)(struct ttm_lru_walk *walk, struct ttm_buffer_object *bo); 248 long ttm_bo_shrink(struct ttm_operation_ctx *ctx, struct ttm_buffer_object *bo, 251 bool ttm_bo_shrink_suitable(struct ttm_buffer_object *bo, struct ttm_operation_ctx *ctx); 277 static inline int ttm_bo_reserve(struct ttm_buffer_object *bo, in ttm_bo_reserve() 312 static inline int ttm_bo_reserve_slowpath(struct ttm_buffer_object *bo, in ttm_bo_reserve_slowpath() 327 void ttm_bo_move_to_lru_tail(struct ttm_buffer_object *bo); 330 ttm_bo_move_to_lru_tail_unlocked(struct ttm_buffer_object *bo) in ttm_bo_move_to_lru_tail_unlocked() [all …]
|
| H A D | ttm_device.h | 36 struct ttm_buffer_object; 74 struct ttm_tt *(*ttm_tt_create)(struct ttm_buffer_object *bo, 120 bool (*eviction_valuable)(struct ttm_buffer_object *bo, 134 void (*evict_flags)(struct ttm_buffer_object *bo, 150 int (*move)(struct ttm_buffer_object *bo, bool evict, 158 void (*delete_mem_notify)(struct ttm_buffer_object *bo); 163 void (*swap_notify)(struct ttm_buffer_object *bo); 182 unsigned long (*io_mem_pfn)(struct ttm_buffer_object *bo, 199 int (*access_memory)(struct ttm_buffer_object *bo, unsigned long offset, 210 void (*release_notify)(struct ttm_buffer_object *bo);
|
| H A D | ttm_resource.h | 47 struct ttm_buffer_object; 123 struct ttm_buffer_object *bo, 269 struct ttm_buffer_object *bo; 448 struct ttm_buffer_object *bo); 450 struct ttm_buffer_object *bo); 453 void ttm_resource_init(struct ttm_buffer_object *bo, 459 int ttm_resource_alloc(struct ttm_buffer_object *bo, 463 void ttm_resource_free(struct ttm_buffer_object *bo, struct ttm_resource **res); 472 struct ttm_buffer_object *bo);
|
| H A D | ttm_tt.h | 39 struct ttm_buffer_object; 191 int ttm_tt_create(struct ttm_buffer_object *bo, bool zero_alloc); 207 int ttm_tt_init(struct ttm_tt *ttm, struct ttm_buffer_object *bo, 210 int ttm_sg_tt_init(struct ttm_tt *ttm_dma, struct ttm_buffer_object *bo, 318 struct ttm_tt *ttm_agp_tt_create(struct ttm_buffer_object *bo,
|
| /linux/drivers/gpu/drm/nouveau/ |
| H A D | nouveau_bo.h | 15 struct ttm_buffer_object bo; 52 nouveau_bo(struct ttm_buffer_object *bo) in nouveau_bo() 84 vm_fault_t nouveau_ttm_fault_reserve_notify(struct ttm_buffer_object *bo); 90 void nouveau_bo_add_io_reserve_lru(struct ttm_buffer_object *bo); 91 void nouveau_bo_del_io_reserve_lru(struct ttm_buffer_object *bo); 111 int nv04_bo_move_m2mf(struct nouveau_channel *, struct ttm_buffer_object *, 115 int nv50_bo_move_m2mf(struct nouveau_channel *, struct ttm_buffer_object *, 118 int nv84_bo_move_exec(struct nouveau_channel *, struct ttm_buffer_object *, 121 int nva3_bo_move_copy(struct nouveau_channel *, struct ttm_buffer_object *, 125 int nvc0_bo_move_m2mf(struct nouveau_channel *, struct ttm_buffer_object *, [all …]
|
| H A D | nouveau_bo.c | 137 nouveau_bo_del_ttm(struct ttm_buffer_object *bo) in nouveau_bo_del_ttm() 547 struct ttm_buffer_object *bo = &nvbo->bo; in nouveau_bo_pin_locked() 620 struct ttm_buffer_object *bo = &nvbo->bo; in nouveau_bo_unpin_locked() 641 struct ttm_buffer_object *bo = &nvbo->bo; in nouveau_bo_pin() 655 struct ttm_buffer_object *bo = &nvbo->bo; in nouveau_bo_unpin() 763 void nouveau_bo_add_io_reserve_lru(struct ttm_buffer_object *bo) in nouveau_bo_add_io_reserve_lru() 773 void nouveau_bo_del_io_reserve_lru(struct ttm_buffer_object *bo) in nouveau_bo_del_io_reserve_lru() 842 nouveau_ttm_tt_create(struct ttm_buffer_object *bo, uint32_t page_flags) in nouveau_ttm_tt_create() 886 nouveau_bo_evict_flags(struct ttm_buffer_object *bo, struct ttm_placement *pl) in nouveau_bo_evict_flags() 904 nouveau_bo_move_prep(struct nouveau_drm *drm, struct ttm_buffer_object *bo, in nouveau_bo_move_prep() [all …]
|
| /linux/drivers/gpu/drm/ttm/ |
| H A D | ttm_bo.c | 54 static void ttm_bo_mem_space_debug(struct ttm_buffer_object *bo, in ttm_bo_mem_space_debug() 79 void ttm_bo_move_to_lru_tail(struct ttm_buffer_object *bo) in ttm_bo_move_to_lru_tail() 102 void ttm_bo_set_bulk_move(struct ttm_buffer_object *bo, in ttm_bo_set_bulk_move() 120 static int ttm_bo_handle_move_mem(struct ttm_buffer_object *bo, in ttm_bo_handle_move_mem() 182 static void ttm_bo_cleanup_memtype_use(struct ttm_buffer_object *bo) in ttm_bo_cleanup_memtype_use() 191 static int ttm_bo_individualize_resv(struct ttm_buffer_object *bo) in ttm_bo_individualize_resv() 218 static void ttm_bo_flush_all_fences(struct ttm_buffer_object *bo) in ttm_bo_flush_all_fences() 238 struct ttm_buffer_object *bo; in ttm_bo_delayed_delete() 252 struct ttm_buffer_object *bo = in ttm_bo_release() 253 container_of(kref, struct ttm_buffer_object, kref); in ttm_bo_release() [all …]
|
| H A D | ttm_bo_util.c | 45 struct ttm_buffer_object base; 46 struct ttm_buffer_object *bo; 146 int ttm_bo_move_memcpy(struct ttm_buffer_object *bo, in ttm_bo_move_memcpy() 205 static void ttm_transfered_destroy(struct ttm_buffer_object *bo) in ttm_transfered_destroy() 230 static int ttm_buffer_object_transfer(struct ttm_buffer_object *bo, in ttm_buffer_object_transfer() 231 struct ttm_buffer_object **new_obj) in ttm_buffer_object_transfer() 295 pgprot_t ttm_io_prot(struct ttm_buffer_object *bo, struct ttm_resource *res, in ttm_io_prot() 314 static int ttm_bo_ioremap(struct ttm_buffer_object *bo, in ttm_bo_ioremap() 340 static int ttm_bo_kmap_ttm(struct ttm_buffer_object *bo, in ttm_bo_kmap_ttm() 396 void *ttm_bo_kmap_try_from_panic(struct ttm_buffer_object *bo, unsigned long page) in ttm_bo_kmap_try_from_panic() [all …]
|
| H A D | ttm_bo_internal.h | 35 static inline void ttm_bo_get(struct ttm_buffer_object *bo) in ttm_bo_get() 50 static inline __must_check struct ttm_buffer_object * 51 ttm_bo_get_unless_zero(struct ttm_buffer_object *bo) in ttm_bo_get_unless_zero() 58 void ttm_bo_put(struct ttm_buffer_object *bo);
|
| H A D | ttm_execbuf_util.c | 38 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_backoff_reservation_reverse() 53 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_backoff_reservation() 90 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_reserve_buffers() 153 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_fence_buffer_objects()
|
| /linux/drivers/gpu/drm/ttm/tests/ |
| H A D | ttm_tt_test.c | 42 struct ttm_buffer_object *bo; in ttm_tt_init_basic() 69 struct ttm_buffer_object *bo; in ttm_tt_init_misaligned() 92 struct ttm_buffer_object *bo; in ttm_tt_fini_basic() 112 struct ttm_buffer_object *bo; in ttm_tt_fini_sg() 132 struct ttm_buffer_object *bo; in ttm_tt_fini_shmem() 155 struct ttm_buffer_object *bo; in ttm_tt_create_basic() 174 struct ttm_buffer_object *bo; in ttm_tt_create_invalid_bo_type() 190 struct ttm_buffer_object *bo; in ttm_tt_create_ttm_exists() 213 static struct ttm_tt *ttm_tt_null_create(struct ttm_buffer_object *bo, in ttm_tt_null_create() 226 struct ttm_buffer_object *bo; in ttm_tt_create_failed() [all …]
|
| H A D | ttm_bo_test.c | 62 struct ttm_buffer_object *bo; in ttm_bo_reserve_optimistic_no_ticket() 75 struct ttm_buffer_object *bo; in ttm_bo_reserve_locked_no_sleep() 93 struct ttm_buffer_object *bo; in ttm_bo_reserve_no_wait_ticket() 111 struct ttm_buffer_object *bo; in ttm_bo_reserve_double_resv() 141 struct ttm_buffer_object *bo1, *bo2; in ttm_bo_reserve_deadlock() 186 struct ttm_buffer_object *bo = arg; in threaded_ttm_bo_reserve() 213 struct ttm_buffer_object *bo; in ttm_bo_reserve_interrupted() 240 struct ttm_buffer_object *bo; in ttm_bo_unreserve_basic() 283 struct ttm_buffer_object *bo; in ttm_bo_unreserve_pinned() 326 struct ttm_buffer_object *bo1, *bo2; in ttm_bo_unreserve_bulk() [all …]
|
| H A D | ttm_kunit_helpers.c | 48 static struct ttm_tt *ttm_tt_simple_create(struct ttm_buffer_object *bo, u32 page_flags) in ttm_tt_simple_create() 63 static int mock_move(struct ttm_buffer_object *bo, bool evict, in mock_move() 95 static void mock_evict_flags(struct ttm_buffer_object *bo, in mock_evict_flags() 112 static void bad_evict_flags(struct ttm_buffer_object *bo, in bad_evict_flags() 169 struct ttm_buffer_object *ttm_bo_kunit_init(struct kunit *test, in ttm_bo_kunit_init() 175 struct ttm_buffer_object *bo; in ttm_bo_kunit_init() 212 void dummy_ttm_bo_destroy(struct ttm_buffer_object *bo) in dummy_ttm_bo_destroy()
|
| H A D | ttm_resource_test.c | 20 struct ttm_buffer_object *bo; 112 struct ttm_buffer_object *bo; in ttm_resource_init_basic() 155 struct ttm_buffer_object *bo; in ttm_resource_init_pinned() 185 struct ttm_buffer_object *bo; in ttm_resource_fini_basic() 231 struct ttm_buffer_object *bo; in ttm_resource_manager_usage_basic() 269 struct ttm_buffer_object *bo; in ttm_sys_man_alloc_basic() 294 struct ttm_buffer_object *bo; in ttm_sys_man_free_basic()
|
| /linux/drivers/gpu/drm/i915/gem/ |
| H A D | i915_gem_ttm.h | 19 static inline struct ttm_buffer_object * 28 void i915_ttm_bo_destroy(struct ttm_buffer_object *bo); 37 static inline bool i915_ttm_is_ghost_object(struct ttm_buffer_object *bo) in i915_ttm_is_ghost_object() 50 i915_ttm_to_gem(struct ttm_buffer_object *bo) in i915_ttm_to_gem()
|
| H A D | i915_gem_ttm_move.h | 12 struct ttm_buffer_object; 21 int i915_ttm_move_notify(struct ttm_buffer_object *bo); 33 int i915_ttm_move(struct ttm_buffer_object *bo, bool evict,
|
| H A D | i915_gem_ttm_move.c | 84 struct ttm_buffer_object *bo = i915_gem_to_ttm(obj); in i915_ttm_adjust_domains_after_move() 104 struct ttm_buffer_object *bo = i915_gem_to_ttm(obj); in i915_ttm_adjust_gem_after_move() 162 int i915_ttm_move_notify(struct ttm_buffer_object *bo) in i915_ttm_move_notify() 187 static struct dma_fence *i915_ttm_accel_move(struct ttm_buffer_object *bo, in i915_ttm_accel_move() 312 struct ttm_buffer_object *bo, bool clear, in i915_ttm_memcpy_init() 454 static bool i915_ttm_memcpy_allowed(struct ttm_buffer_object *bo, in i915_ttm_memcpy_allowed() 468 __i915_ttm_move(struct ttm_buffer_object *bo, in __i915_ttm_move() 570 int i915_ttm_move(struct ttm_buffer_object *bo, bool evict, in i915_ttm_move() 708 struct ttm_buffer_object *dst_bo = i915_gem_to_ttm(dst); in i915_gem_obj_copy_ttm() 709 struct ttm_buffer_object *src_bo = i915_gem_to_ttm(src); in i915_gem_obj_copy_ttm()
|
| H A D | i915_gem_ttm.c | 268 static struct ttm_tt *i915_ttm_tt_create(struct ttm_buffer_object *bo, in i915_ttm_tt_create() 357 static bool i915_ttm_eviction_valuable(struct ttm_buffer_object *bo, in i915_ttm_eviction_valuable() 380 static void i915_ttm_evict_flags(struct ttm_buffer_object *bo, in i915_ttm_evict_flags() 421 struct ttm_buffer_object *bo = i915_gem_to_ttm(obj); in i915_ttm_purge() 461 struct ttm_buffer_object *bo = i915_gem_to_ttm(obj); in i915_ttm_shrink() 506 static void i915_ttm_delete_mem_notify(struct ttm_buffer_object *bo) in i915_ttm_delete_mem_notify() 568 struct ttm_buffer_object *bo = i915_gem_to_ttm(obj); in i915_ttm_resource_get_st() 604 struct ttm_buffer_object *bo = i915_gem_to_ttm(obj); in i915_ttm_truncate() 623 static void i915_ttm_swap_notify(struct ttm_buffer_object *bo) in i915_ttm_swap_notify() 686 static unsigned long i915_ttm_io_mem_pfn(struct ttm_buffer_object *bo, in i915_ttm_io_mem_pfn() [all …]
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_gem_ttm_helper.c | 44 const struct ttm_buffer_object *bo = drm_gem_ttm_of_gem(gem); in drm_gem_ttm_print_info() 70 struct ttm_buffer_object *bo = drm_gem_ttm_of_gem(gem); in drm_gem_ttm_vmap() 87 struct ttm_buffer_object *bo = drm_gem_ttm_of_gem(gem); in drm_gem_ttm_vunmap() 104 struct ttm_buffer_object *bo = drm_gem_ttm_of_gem(gem); in drm_gem_ttm_mmap()
|
| /linux/drivers/gpu/drm/loongson/ |
| H A D | lsdc_ttm.h | 24 struct ttm_buffer_object tbo; 47 static inline struct ttm_buffer_object *to_ttm_bo(struct drm_gem_object *gem) in to_ttm_bo() 49 return container_of(gem, struct ttm_buffer_object, base); in to_ttm_bo() 52 static inline struct lsdc_bo *to_lsdc_bo(struct ttm_buffer_object *tbo) in to_lsdc_bo()
|
| H A D | lsdc_ttm.c | 94 lsdc_ttm_tt_create(struct ttm_buffer_object *tbo, uint32_t page_flags) in lsdc_ttm_tt_create() 140 static void lsdc_bo_evict_flags(struct ttm_buffer_object *tbo, in lsdc_bo_evict_flags() 159 static int lsdc_bo_move(struct ttm_buffer_object *tbo, in lsdc_bo_move() 255 struct ttm_buffer_object *tbo = &lbo->tbo; in lsdc_bo_gpu_offset() 272 struct ttm_buffer_object *tbo = &lbo->tbo; in lsdc_bo_size() 290 struct ttm_buffer_object *tbo = &lbo->tbo; in lsdc_bo_pin() 325 struct ttm_buffer_object *tbo = &lbo->tbo; in lsdc_bo_unpin() 355 struct ttm_buffer_object *tbo = &lbo->tbo; in lsdc_bo_kmap() 416 static void lsdc_bo_destroy(struct ttm_buffer_object *tbo) in lsdc_bo_destroy() 439 struct ttm_buffer_object *tbo; in lsdc_bo_create()
|
| H A D | lsdc_gem.c | 46 struct ttm_buffer_object *tbo = to_ttm_bo(obj); in lsdc_gem_prime_get_sg_table() 59 struct ttm_buffer_object *tbo = to_ttm_bo(obj); in lsdc_gem_object_free() 67 struct ttm_buffer_object *tbo = to_ttm_bo(obj); in lsdc_gem_object_vmap() 99 struct ttm_buffer_object *tbo = to_ttm_bo(obj); in lsdc_gem_object_vunmap() 117 struct ttm_buffer_object *tbo = to_ttm_bo(obj); in lsdc_gem_object_mmap() 274 struct ttm_buffer_object *tbo = &lbo->tbo; in lsdc_show_buffer_object()
|
| /linux/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_bo.h | 83 struct ttm_buffer_object tbo; 129 void vmw_bo_get_guest_ptr(const struct ttm_buffer_object *buf, 133 void vmw_bo_fence_single(struct ttm_buffer_object *bo, 140 void vmw_bo_move_notify(struct ttm_buffer_object *bo, 142 void vmw_bo_swap_notify(struct ttm_buffer_object *bo);
|
| H A D | vmwgfx_bo.c | 40 static void vmw_bo_free(struct ttm_buffer_object *bo) in vmw_bo_free() 93 struct ttm_buffer_object *bo = &buf->tbo; in vmw_bo_pin_in_placement() 129 struct ttm_buffer_object *bo = &buf->tbo; in vmw_bo_pin_in_vram_or_gmr() 198 struct ttm_buffer_object *bo = &buf->tbo; in vmw_bo_pin_in_start_of_vram() 255 struct ttm_buffer_object *bo = &buf->tbo; in vmw_bo_unpin() 277 void vmw_bo_get_guest_ptr(const struct ttm_buffer_object *bo, in vmw_bo_get_guest_ptr() 302 struct ttm_buffer_object *bo = &vbo->tbo; in vmw_bo_pin_reserved() 352 struct ttm_buffer_object *bo = &vbo->tbo; in vmw_bo_map_and_cache_size() 409 void (*destroy)(struct ttm_buffer_object *)) in vmw_bo_init() argument 490 struct ttm_buffer_object *bo = &vmw_bo->tbo; in vmw_user_bo_synccpu_grab() [all …]
|
| /linux/drivers/gpu/drm/qxl/ |
| H A D | qxl_ttm.c | 51 static void qxl_evict_flags(struct ttm_buffer_object *bo, in qxl_evict_flags() 107 static struct ttm_tt *qxl_ttm_tt_create(struct ttm_buffer_object *bo, in qxl_ttm_tt_create() 122 static void qxl_bo_move_notify(struct ttm_buffer_object *bo, in qxl_bo_move_notify() 137 static int qxl_bo_move(struct ttm_buffer_object *bo, bool evict, in qxl_bo_move() 169 static void qxl_bo_delete_mem_notify(struct ttm_buffer_object *bo) in qxl_bo_delete_mem_notify()
|