Home
last modified time | relevance | path

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

1234

/Linux-v5.15/include/drm/ttm/
Dttm_bo_api.h118 struct ttm_buffer_object { struct
128 void (*destroy) (struct ttm_buffer_object *); argument
190 struct ttm_buffer_object *bo;
223 static inline void ttm_bo_get(struct ttm_buffer_object *bo) in ttm_bo_get()
238 static inline __must_check struct ttm_buffer_object *
239 ttm_bo_get_unless_zero(struct ttm_buffer_object *bo) in ttm_bo_get_unless_zero()
260 int ttm_bo_wait(struct ttm_buffer_object *bo, bool interruptible, bool no_wait);
262 static inline int ttm_bo_wait_ctx(struct ttm_buffer_object *bo, struct ttm_operation_ctx *ctx) in ttm_bo_wait_ctx()
294 int ttm_bo_validate(struct ttm_buffer_object *bo,
305 void ttm_bo_put(struct ttm_buffer_object *bo);
[all …]
Dttm_bo_driver.h57 struct ttm_buffer_object *first;
58 struct ttm_buffer_object *last;
98 int ttm_bo_mem_space(struct ttm_buffer_object *bo,
108 void ttm_bo_unmap_virtual(struct ttm_buffer_object *bo);
132 static inline int ttm_bo_reserve(struct ttm_buffer_object *bo, in ttm_bo_reserve()
166 static inline int ttm_bo_reserve_slowpath(struct ttm_buffer_object *bo, in ttm_bo_reserve_slowpath()
182 ttm_bo_move_to_lru_tail_unlocked(struct ttm_buffer_object *bo) in ttm_bo_move_to_lru_tail_unlocked()
189 static inline void ttm_bo_assign_mem(struct ttm_buffer_object *bo, in ttm_bo_assign_mem()
203 static inline void ttm_bo_move_null(struct ttm_buffer_object *bo, in ttm_bo_move_null()
217 static inline void ttm_bo_unreserve(struct ttm_buffer_object *bo) in ttm_bo_unreserve()
[all …]
Dttm_device.h37 struct ttm_buffer_object;
83 struct ttm_tt *(*ttm_tt_create)(struct ttm_buffer_object *bo,
129 bool (*eviction_valuable)(struct ttm_buffer_object *bo,
143 void (*evict_flags)(struct ttm_buffer_object *bo,
159 int (*move)(struct ttm_buffer_object *bo, bool evict,
167 void (*delete_mem_notify)(struct ttm_buffer_object *bo);
172 void (*swap_notify)(struct ttm_buffer_object *bo);
191 unsigned long (*io_mem_pfn)(struct ttm_buffer_object *bo,
208 int (*access_memory)(struct ttm_buffer_object *bo, unsigned long offset,
218 void (*del_from_lru_notify)(struct ttm_buffer_object *bo);
[all …]
Dttm_tt.h38 struct ttm_buffer_object;
100 int ttm_tt_create(struct ttm_buffer_object *bo, bool zero_alloc);
115 int ttm_tt_init(struct ttm_tt *ttm, struct ttm_buffer_object *bo,
117 int ttm_sg_tt_init(struct ttm_tt *ttm_dma, struct ttm_buffer_object *bo,
207 struct ttm_tt *ttm_agp_tt_create(struct ttm_buffer_object *bo,
Dttm_resource.h42 struct ttm_buffer_object;
71 struct ttm_buffer_object *bo,
262 void ttm_resource_init(struct ttm_buffer_object *bo,
265 int ttm_resource_alloc(struct ttm_buffer_object *bo,
268 void ttm_resource_free(struct ttm_buffer_object *bo, struct ttm_resource **res);
/Linux-v5.15/drivers/gpu/drm/nouveau/
Dnouveau_bo.h13 struct ttm_buffer_object bo;
45 nouveau_bo(struct ttm_buffer_object *bo) in nouveau_bo()
90 vm_fault_t nouveau_ttm_fault_reserve_notify(struct ttm_buffer_object *bo);
96 void nouveau_bo_add_io_reserve_lru(struct ttm_buffer_object *bo);
97 void nouveau_bo_del_io_reserve_lru(struct ttm_buffer_object *bo);
140 int nv04_bo_move_m2mf(struct nouveau_channel *, struct ttm_buffer_object *,
144 int nv50_bo_move_m2mf(struct nouveau_channel *, struct ttm_buffer_object *,
147 int nv84_bo_move_exec(struct nouveau_channel *, struct ttm_buffer_object *,
150 int nva3_bo_move_copy(struct nouveau_channel *, struct ttm_buffer_object *,
154 int nvc0_bo_move_m2mf(struct nouveau_channel *, struct ttm_buffer_object *,
[all …]
Dnouveau_bo.c136 nouveau_bo_del_ttm(struct ttm_buffer_object *bo) in nouveau_bo_del_ttm()
422 struct ttm_buffer_object *bo = &nvbo->bo; in nouveau_bo_pin()
499 struct ttm_buffer_object *bo = &nvbo->bo; in nouveau_bo_unpin()
620 void nouveau_bo_add_io_reserve_lru(struct ttm_buffer_object *bo) in nouveau_bo_add_io_reserve_lru()
630 void nouveau_bo_del_io_reserve_lru(struct ttm_buffer_object *bo) in nouveau_bo_del_io_reserve_lru()
699 nouveau_ttm_tt_create(struct ttm_buffer_object *bo, uint32_t page_flags) in nouveau_ttm_tt_create()
743 nouveau_bo_evict_flags(struct ttm_buffer_object *bo, struct ttm_placement *pl) in nouveau_bo_evict_flags()
761 nouveau_bo_move_prep(struct nouveau_drm *drm, struct ttm_buffer_object *bo, in nouveau_bo_move_prep()
793 nouveau_bo_move_m2mf(struct ttm_buffer_object *bo, int evict, in nouveau_bo_move_m2mf()
843 struct ttm_buffer_object *, in nouveau_bo_move_init()
[all …]
/Linux-v5.15/drivers/gpu/drm/ttm/
Dttm_bo.c48 static void ttm_bo_default_destroy(struct ttm_buffer_object *bo) in ttm_bo_default_destroy()
53 static void ttm_bo_mem_space_debug(struct ttm_buffer_object *bo, in ttm_bo_mem_space_debug()
72 static void ttm_bo_del_from_lru(struct ttm_buffer_object *bo) in ttm_bo_del_from_lru()
83 struct ttm_buffer_object *bo) in ttm_bo_bulk_move_set_pos()
90 void ttm_bo_move_to_lru_tail(struct ttm_buffer_object *bo, in ttm_bo_move_to_lru_tail()
164 static int ttm_bo_handle_move_mem(struct ttm_buffer_object *bo, in ttm_bo_handle_move_mem()
223 static void ttm_bo_cleanup_memtype_use(struct ttm_buffer_object *bo) in ttm_bo_cleanup_memtype_use()
232 static int ttm_bo_individualize_resv(struct ttm_buffer_object *bo) in ttm_bo_individualize_resv()
259 static void ttm_bo_flush_all_fences(struct ttm_buffer_object *bo) in ttm_bo_flush_all_fences()
295 static int ttm_bo_cleanup_refs(struct ttm_buffer_object *bo, in ttm_bo_cleanup_refs()
[all …]
Dttm_bo_util.c46 struct ttm_buffer_object base;
47 struct ttm_buffer_object *bo;
89 void ttm_move_memcpy(struct ttm_buffer_object *bo, in ttm_move_memcpy()
135 int ttm_bo_move_memcpy(struct ttm_buffer_object *bo, in ttm_bo_move_memcpy()
188 static void ttm_transfered_destroy(struct ttm_buffer_object *bo) in ttm_transfered_destroy()
213 static int ttm_buffer_object_transfer(struct ttm_buffer_object *bo, in ttm_buffer_object_transfer()
214 struct ttm_buffer_object **new_obj) in ttm_buffer_object_transfer()
256 pgprot_t ttm_io_prot(struct ttm_buffer_object *bo, struct ttm_resource *res, in ttm_io_prot()
269 static int ttm_bo_ioremap(struct ttm_buffer_object *bo, in ttm_bo_ioremap()
295 static int ttm_bo_kmap_ttm(struct ttm_buffer_object *bo, in ttm_bo_kmap_ttm()
[all …]
Dttm_bo_vm.c46 static vm_fault_t ttm_bo_vm_fault_idle(struct ttm_buffer_object *bo, in ttm_bo_vm_fault_idle()
97 static unsigned long ttm_bo_io_mem_pfn(struct ttm_buffer_object *bo, in ttm_bo_io_mem_pfn()
129 vm_fault_t ttm_bo_vm_reserve(struct ttm_buffer_object *bo, in ttm_bo_vm_reserve()
189 struct ttm_buffer_object *bo, in ttm_bo_vm_insert_huge()
248 struct ttm_buffer_object *bo, in ttm_bo_vm_insert_huge()
282 struct ttm_buffer_object *bo = vma->vm_private_data; in ttm_bo_vm_fault_reserved()
390 struct ttm_buffer_object *bo = vma->vm_private_data; in ttm_bo_vm_dummy_page()
421 struct ttm_buffer_object *bo = vma->vm_private_data; in ttm_bo_vm_fault()
448 struct ttm_buffer_object *bo = vma->vm_private_data; in ttm_bo_vm_open()
458 struct ttm_buffer_object *bo = vma->vm_private_data; in ttm_bo_vm_close()
[all …]
Dttm_execbuf_util.c40 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_backoff_reservation_reverse()
55 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_backoff_reservation()
92 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_reserve_buffers()
156 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_fence_buffer_objects()
/Linux-v5.15/drivers/gpu/drm/vmwgfx/
Dvmwgfx_bo.c56 vmw_buffer_object(struct ttm_buffer_object *bo) in vmw_buffer_object()
71 vmw_user_buffer_object(struct ttm_buffer_object *bo) in vmw_user_buffer_object()
95 struct ttm_buffer_object *bo = &buf->base; in vmw_bo_pin_in_placement()
137 struct ttm_buffer_object *bo = &buf->base; in vmw_bo_pin_in_vram_or_gmr()
207 struct ttm_buffer_object *bo = &buf->base; in vmw_bo_pin_in_start_of_vram()
271 struct ttm_buffer_object *bo = &buf->base; in vmw_bo_unpin()
293 void vmw_bo_get_guest_ptr(const struct ttm_buffer_object *bo, in vmw_bo_get_guest_ptr()
318 struct ttm_buffer_object *bo = &vbo->base; in vmw_bo_pin_reserved()
363 struct ttm_buffer_object *bo = &vbo->base; in vmw_bo_map_and_cache()
435 void vmw_bo_bo_free(struct ttm_buffer_object *bo) in vmw_bo_bo_free()
[all …]
Dvmwgfx_ttm_glue.c30 static struct ttm_buffer_object *vmw_bo_vm_lookup(struct ttm_device *bdev, in vmw_bo_vm_lookup()
37 struct ttm_buffer_object *bo = NULL; in vmw_bo_vm_lookup()
43 bo = container_of(node, struct ttm_buffer_object, in vmw_bo_vm_lookup()
72 struct ttm_buffer_object *bo; in vmw_mmap()
Dvmwgfx_drv.h114 struct ttm_buffer_object base;
461 struct ttm_buffer_object *otable_bo;
800 extern void vmw_query_move_notify(struct ttm_buffer_object *bo,
852 extern void vmw_bo_get_guest_ptr(const struct ttm_buffer_object *buf,
855 extern void vmw_bo_bo_free(struct ttm_buffer_object *bo);
859 struct ttm_buffer_object **p_bo);
864 void (*bo_free)(struct ttm_buffer_object *bo));
865 extern int vmw_user_bo_verify_access(struct ttm_buffer_object *bo,
886 extern void vmw_bo_fence_single(struct ttm_buffer_object *bo,
890 extern void vmw_bo_move_notify(struct ttm_buffer_object *bo,
[all …]
Dvmwgfx_ttm_buffer.c441 const struct vmw_sg_table *vmw_bo_sg_table(struct ttm_buffer_object *bo) in vmw_bo_sg_table()
591 static struct ttm_tt *vmw_ttm_tt_create(struct ttm_buffer_object *bo, in vmw_ttm_tt_create()
619 static void vmw_evict_flags(struct ttm_buffer_object *bo, in vmw_evict_flags()
657 static void vmw_move_notify(struct ttm_buffer_object *bo, in vmw_move_notify()
671 static void vmw_swap_notify(struct ttm_buffer_object *bo) in vmw_swap_notify()
677 static int vmw_move(struct ttm_buffer_object *bo, in vmw_move()
733 struct ttm_buffer_object **bo_p) in vmw_bo_create_and_populate()
739 struct ttm_buffer_object *bo; in vmw_bo_create_and_populate()
Dvmwgfx_mob.c59 struct ttm_buffer_object *pt_bo;
98 static inline void vmw_bo_unpin_unlocked(struct ttm_buffer_object *bo) in vmw_bo_unpin_unlocked()
121 struct ttm_buffer_object *otable_bo, in vmw_setup_otable_base()
210 struct ttm_buffer_object *bo; in vmw_takedown_otable_base()
341 struct ttm_buffer_object *bo = batch->otable_bo; in vmw_otable_batch_takedown()
507 struct ttm_buffer_object *bo = mob->pt_bo; in vmw_mob_pt_setup()
565 struct ttm_buffer_object *bo = mob->pt_bo; in vmw_mob_unbind()
Dvmwgfx_page_dirty.c396 struct ttm_buffer_object *bo = (struct ttm_buffer_object *) in vmw_bo_vm_mkwrite()
438 struct ttm_buffer_object *bo = (struct ttm_buffer_object *) in vmw_bo_vm_fault()
495 struct ttm_buffer_object *bo = (struct ttm_buffer_object *) in vmw_bo_vm_huge_fault()
/Linux-v5.15/drivers/gpu/drm/
Ddrm_gem_ttm_helper.c40 const struct ttm_buffer_object *bo = drm_gem_ttm_of_gem(gem); in drm_gem_ttm_print_info()
66 struct ttm_buffer_object *bo = drm_gem_ttm_of_gem(gem); in drm_gem_ttm_vmap()
83 struct ttm_buffer_object *bo = drm_gem_ttm_of_gem(gem); in drm_gem_ttm_vunmap()
100 struct ttm_buffer_object *bo = drm_gem_ttm_of_gem(gem); in drm_gem_ttm_mmap()
Ddrm_gem_vram_helper.c130 static void ttm_buffer_object_destroy(struct ttm_buffer_object *bo) in ttm_buffer_object_destroy()
549 static bool drm_is_gem_vram(struct ttm_buffer_object *bo) in drm_is_gem_vram()
563 struct ttm_buffer_object *bo = &gbo->bo; in drm_gem_vram_bo_driver_move_notify()
858 static struct ttm_tt *bo_driver_ttm_tt_create(struct ttm_buffer_object *bo, in bo_driver_ttm_tt_create()
879 static void bo_driver_evict_flags(struct ttm_buffer_object *bo, in bo_driver_evict_flags()
893 static void bo_driver_delete_mem_notify(struct ttm_buffer_object *bo) in bo_driver_delete_mem_notify()
906 static int bo_driver_move(struct ttm_buffer_object *bo, in bo_driver_move()
/Linux-v5.15/drivers/gpu/drm/i915/gem/
Di915_gem_ttm.h17 static inline struct ttm_buffer_object *
26 void i915_ttm_bo_destroy(struct ttm_buffer_object *bo);
36 i915_ttm_to_gem(struct ttm_buffer_object *bo) in i915_ttm_to_gem()
Di915_gem_ttm.c170 static struct ttm_tt *i915_ttm_tt_create(struct ttm_buffer_object *bo, in i915_ttm_tt_create()
222 static bool i915_ttm_eviction_valuable(struct ttm_buffer_object *bo, in i915_ttm_eviction_valuable()
231 static void i915_ttm_evict_flags(struct ttm_buffer_object *bo, in i915_ttm_evict_flags()
237 static int i915_ttm_move_notify(struct ttm_buffer_object *bo) in i915_ttm_move_notify()
274 struct ttm_buffer_object *bo = i915_gem_to_ttm(obj); in i915_ttm_adjust_domains_after_move()
287 struct ttm_buffer_object *bo = i915_gem_to_ttm(obj); in i915_ttm_adjust_gem_after_move()
322 struct ttm_buffer_object *bo = i915_gem_to_ttm(obj); in i915_ttm_purge()
344 static void i915_ttm_swap_notify(struct ttm_buffer_object *bo) in i915_ttm_swap_notify()
355 static void i915_ttm_delete_mem_notify(struct ttm_buffer_object *bo) in i915_ttm_delete_mem_notify()
416 struct ttm_buffer_object *bo = i915_gem_to_ttm(obj); in i915_ttm_resource_get_st()
[all …]
/Linux-v5.15/drivers/gpu/drm/amd/amdgpu/
Damdgpu_object.h59 void (*destroy)(struct ttm_buffer_object *bo);
100 struct ttm_buffer_object tbo;
130 static inline struct amdgpu_bo *ttm_to_amdgpu_bo(struct ttm_buffer_object *tbo) in ttm_to_amdgpu_bo()
273 bool amdgpu_bo_is_amdgpu_bo(struct ttm_buffer_object *bo);
317 void amdgpu_bo_move_notify(struct ttm_buffer_object *bo,
320 void amdgpu_bo_release_notify(struct ttm_buffer_object *bo);
321 vm_fault_t amdgpu_bo_fault_reserve_notify(struct ttm_buffer_object *bo);
Damdgpu_ttm.h104 struct ttm_buffer_object *bo;
160 int amdgpu_ttm_alloc_gart(struct ttm_buffer_object *bo);
161 int amdgpu_ttm_recover_gart(struct ttm_buffer_object *tbo);
180 int amdgpu_ttm_tt_set_userptr(struct ttm_buffer_object *bo,
/Linux-v5.15/drivers/gpu/drm/qxl/
Dqxl_ttm.c50 static void qxl_evict_flags(struct ttm_buffer_object *bo, in qxl_evict_flags()
109 static struct ttm_tt *qxl_ttm_tt_create(struct ttm_buffer_object *bo, in qxl_ttm_tt_create()
124 static void qxl_bo_move_notify(struct ttm_buffer_object *bo, in qxl_bo_move_notify()
139 static int qxl_bo_move(struct ttm_buffer_object *bo, bool evict, in qxl_bo_move()
160 static void qxl_bo_delete_mem_notify(struct ttm_buffer_object *bo) in qxl_bo_delete_mem_notify()
/Linux-v5.15/include/drm/
Ddrm_gem_vram_helper.h53 struct ttm_buffer_object bo;
76 struct ttm_buffer_object *bo) in drm_gem_vram_of_bo()

1234