Home
last modified time | relevance | path

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

1234

/linux/include/drm/ttm/
A Dttm_bo_api.h118 struct ttm_buffer_object { struct
128 void (*destroy) (struct ttm_buffer_object *); argument
190 struct ttm_buffer_object *bo;
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()
282 int ttm_bo_validate(struct ttm_buffer_object *bo,
293 void ttm_bo_put(struct ttm_buffer_object *bo);
306 void ttm_bo_move_to_lru_tail(struct ttm_buffer_object *bo,
383 struct ttm_buffer_object *bo,
389 void (*destroy) (struct ttm_buffer_object *));
[all …]
A 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()
182 ttm_bo_move_to_lru_tail_unlocked(struct ttm_buffer_object *bo) in ttm_bo_move_to_lru_tail_unlocked()
203 static inline void ttm_bo_move_null(struct ttm_buffer_object *bo, in ttm_bo_move_null()
249 int ttm_bo_move_memcpy(struct ttm_buffer_object *bo,
269 int ttm_bo_move_accel_cleanup(struct ttm_buffer_object *bo,
298 int ttm_bo_pipeline_gutting(struct ttm_buffer_object *bo);
[all …]
A Dttm_device.h37 struct ttm_buffer_object;
75 struct ttm_tt *(*ttm_tt_create)(struct ttm_buffer_object *bo,
121 bool (*eviction_valuable)(struct ttm_buffer_object *bo,
135 void (*evict_flags)(struct ttm_buffer_object *bo,
151 int (*move)(struct ttm_buffer_object *bo, bool evict,
159 void (*delete_mem_notify)(struct ttm_buffer_object *bo);
164 void (*swap_notify)(struct ttm_buffer_object *bo);
183 unsigned long (*io_mem_pfn)(struct ttm_buffer_object *bo,
200 int (*access_memory)(struct ttm_buffer_object *bo, unsigned long offset,
210 void (*del_from_lru_notify)(struct ttm_buffer_object *bo);
[all …]
A Dttm_tt.h38 struct ttm_buffer_object;
134 int ttm_tt_create(struct ttm_buffer_object *bo, bool zero_alloc);
149 int ttm_tt_init(struct ttm_tt *ttm, struct ttm_buffer_object *bo,
151 int ttm_sg_tt_init(struct ttm_tt *ttm_dma, struct ttm_buffer_object *bo,
239 struct ttm_tt *ttm_agp_tt_create(struct ttm_buffer_object *bo,
A Dttm_resource.h42 struct ttm_buffer_object;
72 struct ttm_buffer_object *bo,
261 void ttm_resource_init(struct ttm_buffer_object *bo,
264 int ttm_resource_alloc(struct ttm_buffer_object *bo,
267 void ttm_resource_free(struct ttm_buffer_object *bo, struct ttm_resource **res);
/linux/drivers/gpu/drm/nouveau/
A 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 …]
A 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()
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()
904 static void nouveau_bo_move_ntfy(struct ttm_buffer_object *bo, in nouveau_bo_move_ntfy()
956 nouveau_bo_vm_cleanup(struct ttm_buffer_object *bo, in nouveau_bo_vm_cleanup()
969 nouveau_bo_move(struct ttm_buffer_object *bo, bool evict, in nouveau_bo_move()
[all …]
/linux/drivers/gpu/drm/ttm/
A Dttm_bo.c93 struct ttm_buffer_object *bo) in ttm_bo_bulk_move_set_pos()
373 struct ttm_buffer_object *bo; in ttm_bo_delayed_delete()
406 struct ttm_buffer_object *bo = in ttm_bo_release()
473 void ttm_bo_put(struct ttm_buffer_object *bo) in ttm_bo_put()
813 int ttm_bo_mem_space(struct ttm_buffer_object *bo, in ttm_bo_mem_space()
920 int ttm_bo_validate(struct ttm_buffer_object *bo, in ttm_bo_validate()
955 struct ttm_buffer_object *bo, in ttm_bo_init_reserved()
963 void (*destroy) (struct ttm_buffer_object *)) in ttm_bo_init_reserved()
1029 struct ttm_buffer_object *bo, in ttm_bo_init()
1037 void (*destroy) (struct ttm_buffer_object *)) in ttm_bo_init()
[all …]
A Dttm_bo_util.c46 struct ttm_buffer_object base;
47 struct ttm_buffer_object *bo;
131 int ttm_bo_move_memcpy(struct ttm_buffer_object *bo, in ttm_bo_move_memcpy()
213 struct ttm_buffer_object **new_obj) in ttm_buffer_object_transfer()
268 static int ttm_bo_ioremap(struct ttm_buffer_object *bo, in ttm_bo_ioremap()
294 static int ttm_bo_kmap_ttm(struct ttm_buffer_object *bo, in ttm_bo_kmap_ttm()
336 int ttm_bo_kmap(struct ttm_buffer_object *bo, in ttm_bo_kmap()
482 struct ttm_buffer_object *ghost_obj; in ttm_bo_move_to_ghost()
544 int ttm_bo_move_accel_cleanup(struct ttm_buffer_object *bo, in ttm_bo_move_accel_cleanup()
583 int ttm_bo_pipeline_gutting(struct ttm_buffer_object *bo) in ttm_bo_pipeline_gutting()
[all …]
A 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()
199 struct ttm_buffer_object *bo = vma->vm_private_data; in ttm_bo_vm_fault_reserved()
300 struct ttm_buffer_object *bo = vma->vm_private_data; in ttm_bo_vm_dummy_page()
331 struct ttm_buffer_object *bo = vma->vm_private_data; in ttm_bo_vm_fault()
358 struct ttm_buffer_object *bo = vma->vm_private_data; in ttm_bo_vm_open()
368 struct ttm_buffer_object *bo = vma->vm_private_data; in ttm_bo_vm_close()
375 static int ttm_bo_vm_access_kmap(struct ttm_buffer_object *bo, in ttm_bo_vm_access_kmap()
417 struct ttm_buffer_object *bo = vma->vm_private_data; in ttm_bo_vm_access()
[all …]
A 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()
A Dttm_device.c146 struct ttm_buffer_object *bo; in ttm_device_swapout()
265 struct ttm_buffer_object *bo; in ttm_device_clear_dma_mappings()
270 bo = list_first_entry(&bdev->pinned, struct ttm_buffer_object, lru); in ttm_device_clear_dma_mappings()
291 bo = list_first_entry(&man->lru[j], struct ttm_buffer_object, lru); in ttm_device_clear_dma_mappings()
/linux/drivers/gpu/drm/vmwgfx/
A 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()
136 struct ttm_buffer_object *bo = &buf->base; in vmw_bo_pin_in_vram_or_gmr()
205 struct ttm_buffer_object *bo = &buf->base; in vmw_bo_pin_in_start_of_vram()
268 struct ttm_buffer_object *bo = &buf->base; in vmw_bo_unpin()
315 struct ttm_buffer_object *bo = &vbo->base; in vmw_bo_pin_reserved()
360 struct ttm_buffer_object *bo = &vbo->base; in vmw_bo_map_and_cache()
472 struct ttm_buffer_object **p_bo) in vmw_bo_create_kernel()
475 struct ttm_buffer_object *bo; in vmw_bo_create_kernel()
[all …]
A 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()
69 struct ttm_buffer_object *bo; in vmw_mmap()
A Dvmwgfx_drv.h114 struct ttm_buffer_object base;
461 struct ttm_buffer_object *otable_bo;
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));
890 extern void vmw_bo_move_notify(struct ttm_buffer_object *bo,
1048 vmw_bo_sg_table(struct ttm_buffer_object *bo);
1051 struct ttm_buffer_object **bo_p);
1193 struct ttm_buffer_object *bo,
1504 int vmw_bo_cpu_blit(struct ttm_buffer_object *dst,
[all …]
A Dvmwgfx_ttm_buffer.c441 const struct vmw_sg_table *vmw_bo_sg_table(struct ttm_buffer_object *bo) in vmw_bo_sg_table()
587 static struct ttm_tt *vmw_ttm_tt_create(struct ttm_buffer_object *bo, in vmw_ttm_tt_create()
615 static void vmw_evict_flags(struct ttm_buffer_object *bo, in vmw_evict_flags()
653 static void vmw_move_notify(struct ttm_buffer_object *bo, in vmw_move_notify()
667 static void vmw_swap_notify(struct ttm_buffer_object *bo) in vmw_swap_notify()
673 static int vmw_move(struct ttm_buffer_object *bo, in vmw_move()
729 struct ttm_buffer_object **bo_p) in vmw_bo_create_and_populate()
735 struct ttm_buffer_object *bo; in vmw_bo_create_and_populate()
A 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()
/linux/drivers/gpu/drm/i915/gem/
A Di915_gem_ttm.c248 static int i915_ttm_move_notify(struct ttm_buffer_object *bo) in i915_ttm_move_notify()
285 struct ttm_buffer_object *bo = i915_gem_to_ttm(obj); in i915_ttm_adjust_domains_after_move()
298 struct ttm_buffer_object *bo = i915_gem_to_ttm(obj); in i915_ttm_adjust_gem_after_move()
333 struct ttm_buffer_object *bo = i915_gem_to_ttm(obj); in i915_ttm_purge()
429 struct ttm_buffer_object *bo = i915_gem_to_ttm(obj); in i915_ttm_resource_get_st()
442 static int i915_ttm_accel_move(struct ttm_buffer_object *bo, in i915_ttm_accel_move()
647 struct ttm_buffer_object *bo = i915_gem_to_ttm(obj); in __i915_ttm_get_pages()
774 struct ttm_buffer_object *bo = i915_gem_to_ttm(obj); in i915_ttm_adjust_lru()
896 void i915_ttm_bo_destroy(struct ttm_buffer_object *bo) in i915_ttm_bo_destroy()
1021 struct ttm_buffer_object *dst_bo = i915_gem_to_ttm(dst); in i915_gem_obj_copy_ttm()
[all …]
A 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()
A Di915_gem_ttm_pm.c46 struct ttm_buffer_object *bo = i915_gem_to_ttm(obj); in i915_ttm_backup()
47 struct ttm_buffer_object *backup_bo; in i915_ttm_backup()
152 struct ttm_buffer_object *backup_bo = i915_gem_to_ttm(backup); in i915_ttm_restore()
/linux/drivers/gpu/drm/
A 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()
A 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()
857 static struct ttm_tt *bo_driver_ttm_tt_create(struct ttm_buffer_object *bo, in bo_driver_ttm_tt_create()
878 static void bo_driver_evict_flags(struct ttm_buffer_object *bo, in bo_driver_evict_flags()
892 static void bo_driver_delete_mem_notify(struct ttm_buffer_object *bo) in bo_driver_delete_mem_notify()
905 static int bo_driver_move(struct ttm_buffer_object *bo, in bo_driver_move()
/linux/drivers/gpu/drm/amd/amdgpu/
A 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);
316 void amdgpu_bo_move_notify(struct ttm_buffer_object *bo,
319 void amdgpu_bo_release_notify(struct ttm_buffer_object *bo);
320 vm_fault_t amdgpu_bo_fault_reserve_notify(struct ttm_buffer_object *bo);
A 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/drivers/gpu/drm/qxl/
A 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()
159 static void qxl_bo_delete_mem_notify(struct ttm_buffer_object *bo) in qxl_bo_delete_mem_notify()

Completed in 39 milliseconds

1234