Home
last modified time | relevance | path

Searched refs:ttm_buffer_object (Results 1 – 25 of 93) sorted by relevance

1234

/linux-6.6.21/include/drm/ttm/
Dttm_bo.h98 struct ttm_buffer_object { struct
107 void (*destroy) (struct ttm_buffer_object *); argument
160 struct ttm_buffer_object *bo;
193 static inline void ttm_bo_get(struct ttm_buffer_object *bo) in ttm_bo_get()
208 static inline __must_check struct ttm_buffer_object *
209 ttm_bo_get_unless_zero(struct ttm_buffer_object *bo) in ttm_bo_get_unless_zero()
238 static inline int ttm_bo_reserve(struct ttm_buffer_object *bo, in ttm_bo_reserve()
273 static inline int ttm_bo_reserve_slowpath(struct ttm_buffer_object *bo, in ttm_bo_reserve_slowpath()
288 void ttm_bo_move_to_lru_tail(struct ttm_buffer_object *bo);
291 ttm_bo_move_to_lru_tail_unlocked(struct ttm_buffer_object *bo) in ttm_bo_move_to_lru_tail_unlocked()
[all …]
Dttm_device.h35 struct ttm_buffer_object;
73 struct ttm_tt *(*ttm_tt_create)(struct ttm_buffer_object *bo,
119 bool (*eviction_valuable)(struct ttm_buffer_object *bo,
133 void (*evict_flags)(struct ttm_buffer_object *bo,
149 int (*move)(struct ttm_buffer_object *bo, bool evict,
157 void (*delete_mem_notify)(struct ttm_buffer_object *bo);
162 void (*swap_notify)(struct ttm_buffer_object *bo);
181 unsigned long (*io_mem_pfn)(struct ttm_buffer_object *bo,
198 int (*access_memory)(struct ttm_buffer_object *bo, unsigned long offset,
209 void (*release_notify)(struct ttm_buffer_object *bo);
Dttm_resource.h45 struct ttm_buffer_object;
75 struct ttm_buffer_object *bo,
215 struct ttm_buffer_object *bo;
349 struct ttm_buffer_object *bo);
351 struct ttm_buffer_object *bo);
354 void ttm_resource_init(struct ttm_buffer_object *bo,
360 int ttm_resource_alloc(struct ttm_buffer_object *bo,
363 void ttm_resource_free(struct ttm_buffer_object *bo, struct ttm_resource **res);
375 struct ttm_buffer_object *bo);
Dttm_tt.h38 struct ttm_buffer_object;
134 int ttm_tt_create(struct ttm_buffer_object *bo, bool zero_alloc);
150 int ttm_tt_init(struct ttm_tt *ttm, struct ttm_buffer_object *bo,
153 int ttm_sg_tt_init(struct ttm_tt *ttm_dma, struct ttm_buffer_object *bo,
241 struct ttm_tt *ttm_agp_tt_create(struct ttm_buffer_object *bo,
Dttm_execbuf_util.h38 struct ttm_buffer_object;
50 struct ttm_buffer_object *bo;
/linux-6.6.21/drivers/gpu/drm/nouveau/
Dnouveau_bo.h14 struct ttm_buffer_object bo;
47 nouveau_bo(struct ttm_buffer_object *bo) in nouveau_bo()
92 vm_fault_t nouveau_ttm_fault_reserve_notify(struct ttm_buffer_object *bo);
98 void nouveau_bo_add_io_reserve_lru(struct ttm_buffer_object *bo);
99 void nouveau_bo_del_io_reserve_lru(struct ttm_buffer_object *bo);
142 int nv04_bo_move_m2mf(struct nouveau_channel *, struct ttm_buffer_object *,
146 int nv50_bo_move_m2mf(struct nouveau_channel *, struct ttm_buffer_object *,
149 int nv84_bo_move_exec(struct nouveau_channel *, struct ttm_buffer_object *,
152 int nva3_bo_move_copy(struct nouveau_channel *, struct ttm_buffer_object *,
156 int nvc0_bo_move_m2mf(struct nouveau_channel *, struct ttm_buffer_object *,
[all …]
/linux-6.6.21/drivers/gpu/drm/ttm/
Dttm_bo.c49 static void ttm_bo_mem_space_debug(struct ttm_buffer_object *bo, in ttm_bo_mem_space_debug()
74 void ttm_bo_move_to_lru_tail(struct ttm_buffer_object *bo) in ttm_bo_move_to_lru_tail()
97 void ttm_bo_set_bulk_move(struct ttm_buffer_object *bo, in ttm_bo_set_bulk_move()
115 static int ttm_bo_handle_move_mem(struct ttm_buffer_object *bo, in ttm_bo_handle_move_mem()
177 static void ttm_bo_cleanup_memtype_use(struct ttm_buffer_object *bo) in ttm_bo_cleanup_memtype_use()
186 static int ttm_bo_individualize_resv(struct ttm_buffer_object *bo) in ttm_bo_individualize_resv()
213 static void ttm_bo_flush_all_fences(struct ttm_buffer_object *bo) in ttm_bo_flush_all_fences()
241 static int ttm_bo_cleanup_refs(struct ttm_buffer_object *bo, in ttm_bo_cleanup_refs()
307 struct ttm_buffer_object *bo; in ttm_bo_delayed_delete()
321 struct ttm_buffer_object *bo = in ttm_bo_release()
[all …]
Dttm_bo_util.c41 struct ttm_buffer_object base;
42 struct ttm_buffer_object *bo;
142 int ttm_bo_move_memcpy(struct ttm_buffer_object *bo, in ttm_bo_move_memcpy()
201 static void ttm_transfered_destroy(struct ttm_buffer_object *bo) in ttm_transfered_destroy()
226 static int ttm_buffer_object_transfer(struct ttm_buffer_object *bo, in ttm_buffer_object_transfer()
227 struct ttm_buffer_object **new_obj) in ttm_buffer_object_transfer()
290 pgprot_t ttm_io_prot(struct ttm_buffer_object *bo, struct ttm_resource *res, in ttm_io_prot()
303 static int ttm_bo_ioremap(struct ttm_buffer_object *bo, in ttm_bo_ioremap()
329 static int ttm_bo_kmap_ttm(struct ttm_buffer_object *bo, in ttm_bo_kmap_ttm()
387 int ttm_bo_kmap(struct ttm_buffer_object *bo, in ttm_bo_kmap()
[all …]
Dttm_bo_vm.c41 static vm_fault_t ttm_bo_vm_fault_idle(struct ttm_buffer_object *bo, in ttm_bo_vm_fault_idle()
84 static unsigned long ttm_bo_io_mem_pfn(struct ttm_buffer_object *bo, in ttm_bo_io_mem_pfn()
116 vm_fault_t ttm_bo_vm_reserve(struct ttm_buffer_object *bo, in ttm_bo_vm_reserve()
186 struct ttm_buffer_object *bo = vma->vm_private_data; in ttm_bo_vm_fault_reserved()
294 struct ttm_buffer_object *bo = vma->vm_private_data; in ttm_bo_vm_dummy_page()
325 struct ttm_buffer_object *bo = vma->vm_private_data; in ttm_bo_vm_fault()
352 struct ttm_buffer_object *bo = vma->vm_private_data; in ttm_bo_vm_open()
362 struct ttm_buffer_object *bo = vma->vm_private_data; in ttm_bo_vm_close()
369 static int ttm_bo_vm_access_kmap(struct ttm_buffer_object *bo, in ttm_bo_vm_access_kmap()
411 struct ttm_buffer_object *bo = vma->vm_private_data; in ttm_bo_vm_access()
[all …]
Dttm_execbuf_util.c36 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_backoff_reservation_reverse()
51 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_backoff_reservation()
88 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_reserve_buffers()
151 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_fence_buffer_objects()
Dttm_resource.c131 struct ttm_buffer_object *bo) in ttm_resource_add_bulk_move()
139 struct ttm_buffer_object *bo) in ttm_resource_del_bulk_move()
148 struct ttm_buffer_object *bo = res->bo; in ttm_resource_move_to_lru_tail()
177 void ttm_resource_init(struct ttm_buffer_object *bo, in ttm_resource_init()
226 int ttm_resource_alloc(struct ttm_buffer_object *bo, in ttm_resource_alloc()
244 void ttm_resource_free(struct ttm_buffer_object *bo, struct ttm_resource **res) in ttm_resource_free()
323 struct ttm_buffer_object *bo = res->bo; in ttm_resource_places_compat()
369 struct ttm_buffer_object *bo) in ttm_resource_set_bo()
/linux-6.6.21/drivers/gpu/drm/i915/gem/
Di915_gem_ttm.h19 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()
Di915_gem_ttm_move.h12 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,
Di915_gem_ttm_move.c84 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()
Di915_gem_ttm.c272 static struct ttm_tt *i915_ttm_tt_create(struct ttm_buffer_object *bo, in i915_ttm_tt_create()
361 static bool i915_ttm_eviction_valuable(struct ttm_buffer_object *bo, in i915_ttm_eviction_valuable()
384 static void i915_ttm_evict_flags(struct ttm_buffer_object *bo, in i915_ttm_evict_flags()
425 struct ttm_buffer_object *bo = i915_gem_to_ttm(obj); in i915_ttm_purge()
465 struct ttm_buffer_object *bo = i915_gem_to_ttm(obj); in i915_ttm_shrink()
510 static void i915_ttm_delete_mem_notify(struct ttm_buffer_object *bo) in i915_ttm_delete_mem_notify()
572 struct ttm_buffer_object *bo = i915_gem_to_ttm(obj); in i915_ttm_resource_get_st()
608 struct ttm_buffer_object *bo = i915_gem_to_ttm(obj); in i915_ttm_truncate()
627 static void i915_ttm_swap_notify(struct ttm_buffer_object *bo) in i915_ttm_swap_notify()
690 static unsigned long i915_ttm_io_mem_pfn(struct ttm_buffer_object *bo, in i915_ttm_io_mem_pfn()
[all …]
/linux-6.6.21/drivers/gpu/drm/
Ddrm_gem_ttm_helper.c42 const struct ttm_buffer_object *bo = drm_gem_ttm_of_gem(gem); in drm_gem_ttm_print_info()
68 struct ttm_buffer_object *bo = drm_gem_ttm_of_gem(gem); in drm_gem_ttm_vmap()
85 struct ttm_buffer_object *bo = drm_gem_ttm_of_gem(gem); in drm_gem_ttm_vunmap()
102 struct ttm_buffer_object *bo = drm_gem_ttm_of_gem(gem); in drm_gem_ttm_mmap()
/linux-6.6.21/drivers/gpu/drm/vmwgfx/
Dvmwgfx_bo.h75 struct ttm_buffer_object tbo;
117 void vmw_bo_get_guest_ptr(const struct ttm_buffer_object *buf,
121 void vmw_bo_fence_single(struct ttm_buffer_object *bo,
127 void vmw_bo_move_notify(struct ttm_buffer_object *bo,
129 void vmw_bo_swap_notify(struct ttm_buffer_object *bo);
Dvmwgfx_bo.c48 static void vmw_bo_free(struct ttm_buffer_object *bo) in vmw_bo_free()
74 struct ttm_buffer_object *bo = &buf->tbo; in vmw_bo_pin_in_placement()
110 struct ttm_buffer_object *bo = &buf->tbo; in vmw_bo_pin_in_vram_or_gmr()
179 struct ttm_buffer_object *bo = &buf->tbo; in vmw_bo_pin_in_start_of_vram()
236 struct ttm_buffer_object *bo = &buf->tbo; in vmw_bo_unpin()
258 void vmw_bo_get_guest_ptr(const struct ttm_buffer_object *bo, in vmw_bo_get_guest_ptr()
283 struct ttm_buffer_object *bo = &vbo->tbo; in vmw_bo_pin_reserved()
328 struct ttm_buffer_object *bo = &vbo->tbo; in vmw_bo_map_and_cache()
376 void (*destroy)(struct ttm_buffer_object *)) in vmw_bo_init() argument
452 struct ttm_buffer_object *bo = &vmw_bo->tbo; in vmw_user_bo_synccpu_grab()
[all …]
Dvmwgfx_ttm_glue.c34 struct ttm_buffer_object **p_bo) in vmw_bo_vm_lookup()
47 *p_bo = container_of(node, struct ttm_buffer_object, in vmw_bo_vm_lookup()
82 struct ttm_buffer_object *bo; in vmw_mmap()
/linux-6.6.21/drivers/gpu/drm/loongson/
Dlsdc_ttm.h24 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()
Dlsdc_ttm.c95 lsdc_ttm_tt_create(struct ttm_buffer_object *tbo, uint32_t page_flags) in lsdc_ttm_tt_create()
141 static void lsdc_bo_evict_flags(struct ttm_buffer_object *tbo, in lsdc_bo_evict_flags()
160 static int lsdc_bo_move(struct ttm_buffer_object *tbo, in lsdc_bo_move()
256 struct ttm_buffer_object *tbo = &lbo->tbo; in lsdc_bo_gpu_offset()
273 struct ttm_buffer_object *tbo = &lbo->tbo; in lsdc_bo_size()
291 struct ttm_buffer_object *tbo = &lbo->tbo; in lsdc_bo_pin()
326 struct ttm_buffer_object *tbo = &lbo->tbo; in lsdc_bo_unpin()
346 struct ttm_buffer_object *tbo = &lbo->tbo; in lsdc_bo_ref()
353 struct ttm_buffer_object *tbo = &lbo->tbo; in lsdc_bo_unref()
360 struct ttm_buffer_object *tbo = &lbo->tbo; in lsdc_bo_kmap()
[all …]
Dlsdc_gem.c53 struct ttm_buffer_object *tbo = to_ttm_bo(obj); in lsdc_gem_prime_get_sg_table()
66 struct ttm_buffer_object *tbo = to_ttm_bo(obj); in lsdc_gem_object_free()
74 struct ttm_buffer_object *tbo = to_ttm_bo(obj); in lsdc_gem_object_vmap()
106 struct ttm_buffer_object *tbo = to_ttm_bo(obj); in lsdc_gem_object_vunmap()
124 struct ttm_buffer_object *tbo = to_ttm_bo(obj); in lsdc_gem_object_mmap()
295 struct ttm_buffer_object *tbo = &lbo->tbo; in lsdc_show_buffer_object()
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ttm.h109 struct ttm_buffer_object *bo;
164 int amdgpu_ttm_alloc_gart(struct ttm_buffer_object *bo);
165 void amdgpu_ttm_recover_gart(struct ttm_buffer_object *tbo);
194 int amdgpu_ttm_tt_get_userptr(const struct ttm_buffer_object *tbo,
196 int amdgpu_ttm_tt_set_userptr(struct ttm_buffer_object *bo,
Damdgpu_object.h58 void (*destroy)(struct ttm_buffer_object *bo);
101 struct ttm_buffer_object tbo;
159 static inline struct amdgpu_bo *ttm_to_amdgpu_bo(struct ttm_buffer_object *tbo) in ttm_to_amdgpu_bo()
304 bool amdgpu_bo_is_amdgpu_bo(struct ttm_buffer_object *bo);
347 void amdgpu_bo_move_notify(struct ttm_buffer_object *bo, bool evict);
348 void amdgpu_bo_release_notify(struct ttm_buffer_object *bo);
349 vm_fault_t amdgpu_bo_fault_reserve_notify(struct ttm_buffer_object *bo);
/linux-6.6.21/drivers/gpu/drm/qxl/
Dqxl_ttm.c50 static void qxl_evict_flags(struct ttm_buffer_object *bo, in qxl_evict_flags()
108 static struct ttm_tt *qxl_ttm_tt_create(struct ttm_buffer_object *bo, in qxl_ttm_tt_create()
123 static void qxl_bo_move_notify(struct ttm_buffer_object *bo, in qxl_bo_move_notify()
138 static int qxl_bo_move(struct ttm_buffer_object *bo, bool evict, in qxl_bo_move()
170 static void qxl_bo_delete_mem_notify(struct ttm_buffer_object *bo) in qxl_bo_delete_mem_notify()

1234