Home
last modified time | relevance | path

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

/linux-4.1.27/include/drm/ttm/
Dttm_bo_api.h195 struct ttm_buffer_object { struct
203 void (*destroy) (struct ttm_buffer_object *); argument
285 struct ttm_buffer_object *bo;
296 static inline struct ttm_buffer_object *
297 ttm_bo_reference(struct ttm_buffer_object *bo) in ttm_bo_reference()
317 extern int ttm_bo_wait(struct ttm_buffer_object *bo, bool lazy,
335 extern int ttm_bo_validate(struct ttm_buffer_object *bo,
347 extern void ttm_bo_unref(struct ttm_buffer_object **bo);
359 extern void ttm_bo_list_ref_sub(struct ttm_buffer_object *bo, int count,
372 extern void ttm_bo_add_to_lru(struct ttm_buffer_object *bo);
[all …]
Dttm_bo_driver.h210 struct ttm_buffer_object *bo,
381 void(*evict_flags) (struct ttm_buffer_object *bo,
396 int (*move) (struct ttm_buffer_object *bo,
413 int (*verify_access) (struct ttm_buffer_object *bo,
418 void (*move_notify)(struct ttm_buffer_object *bo,
422 int (*fault_reserve_notify)(struct ttm_buffer_object *bo);
427 void (*swap_notify) (struct ttm_buffer_object *bo);
694 extern int ttm_bo_mem_space(struct ttm_buffer_object *bo,
700 extern void ttm_bo_mem_put(struct ttm_buffer_object *bo,
702 extern void ttm_bo_mem_put_locked(struct ttm_buffer_object *bo,
[all …]
Dttm_execbuf_util.h47 struct ttm_buffer_object *bo;
/linux-4.1.27/drivers/gpu/drm/ttm/
Dttm_bo_vm.c44 static int ttm_bo_vm_fault_idle(struct ttm_buffer_object *bo, in ttm_bo_vm_fault_idle()
88 struct ttm_buffer_object *bo = (struct ttm_buffer_object *) in ttm_bo_vm_fault()
262 struct ttm_buffer_object *bo = in ttm_bo_vm_open()
263 (struct ttm_buffer_object *)vma->vm_private_data; in ttm_bo_vm_open()
272 struct ttm_buffer_object *bo = (struct ttm_buffer_object *)vma->vm_private_data; in ttm_bo_vm_close()
284 static struct ttm_buffer_object *ttm_bo_vm_lookup(struct ttm_bo_device *bdev, in ttm_bo_vm_lookup()
289 struct ttm_buffer_object *bo = NULL; in ttm_bo_vm_lookup()
295 bo = container_of(node, struct ttm_buffer_object, vma_node); in ttm_bo_vm_lookup()
312 struct ttm_buffer_object *bo; in ttm_bo_mmap()
353 int ttm_fbdev_mmap(struct vm_area_struct *vma, struct ttm_buffer_object *bo) in ttm_fbdev_mmap()
Dttm_bo.c85 static void ttm_bo_mem_space_debug(struct ttm_buffer_object *bo, in ttm_bo_mem_space_debug()
138 struct ttm_buffer_object *bo = in ttm_bo_release_list()
139 container_of(list_kref, struct ttm_buffer_object, list_kref); in ttm_bo_release_list()
164 void ttm_bo_add_to_lru(struct ttm_buffer_object *bo) in ttm_bo_add_to_lru()
187 int ttm_bo_del_from_lru(struct ttm_buffer_object *bo) in ttm_bo_del_from_lru()
213 void ttm_bo_list_ref_sub(struct ttm_buffer_object *bo, int count, in ttm_bo_list_ref_sub()
220 void ttm_bo_del_sub_from_lru(struct ttm_buffer_object *bo) in ttm_bo_del_sub_from_lru()
234 static int ttm_bo_add_ttm(struct ttm_buffer_object *bo, bool zero_alloc) in ttm_bo_add_ttm()
276 static int ttm_bo_handle_move_mem(struct ttm_buffer_object *bo, in ttm_bo_handle_move_mem()
391 static void ttm_bo_cleanup_memtype_use(struct ttm_buffer_object *bo) in ttm_bo_cleanup_memtype_use()
[all …]
Dttm_bo_util.c42 void ttm_bo_free_old_node(struct ttm_buffer_object *bo) in ttm_bo_free_old_node()
47 int ttm_bo_move_ttm(struct ttm_buffer_object *bo, in ttm_bo_move_ttm()
104 struct ttm_buffer_object *bo; in ttm_mem_io_evict()
110 struct ttm_buffer_object, in ttm_mem_io_evict()
160 int ttm_mem_io_reserve_vm(struct ttm_buffer_object *bo) in ttm_mem_io_reserve_vm()
180 void ttm_mem_io_free_vm(struct ttm_buffer_object *bo) in ttm_mem_io_free_vm()
323 int ttm_bo_move_memcpy(struct ttm_buffer_object *bo, in ttm_bo_move_memcpy()
424 static void ttm_transfered_destroy(struct ttm_buffer_object *bo) in ttm_transfered_destroy()
444 static int ttm_buffer_object_transfer(struct ttm_buffer_object *bo, in ttm_buffer_object_transfer()
445 struct ttm_buffer_object **new_obj) in ttm_buffer_object_transfer()
[all …]
Dttm_execbuf_util.c39 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_backoff_reservation_reverse()
50 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_del_from_lru_locked()
71 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_backoff_reservation()
113 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_reserve_buffers()
186 struct ttm_buffer_object *bo; in ttm_eu_fence_buffer_objects()
Dttm_bo_manager.c51 struct ttm_buffer_object *bo, in ttm_bo_man_get_node()
/linux-4.1.27/drivers/gpu/drm/vmwgfx/
Dvmwgfx_drv.h86 struct ttm_buffer_object base;
345 struct ttm_buffer_object *cur_query_bo;
510 struct ttm_buffer_object *dummy_query_bo;
511 struct ttm_buffer_object *pinned_bo;
534 struct ttm_buffer_object *otable_bo;
626 extern void vmw_dmabuf_bo_free(struct ttm_buffer_object *bo);
631 void (*bo_free) (struct ttm_buffer_object *bo));
632 extern int vmw_user_dmabuf_verify_access(struct ttm_buffer_object *bo,
650 extern uint32_t vmw_dmabuf_validate_node(struct ttm_buffer_object *bo,
652 extern void vmw_dmabuf_validate_clear(struct ttm_buffer_object *bo);
[all …]
Dvmwgfx_dmabuf.c55 struct ttm_buffer_object *bo = &buf->base; in vmw_dmabuf_to_placement()
97 struct ttm_buffer_object *bo = &buf->base; in vmw_dmabuf_to_vram_or_gmr()
199 struct ttm_buffer_object *bo = &buf->base; in vmw_dmabuf_to_start_of_vram()
280 void vmw_bo_get_guest_ptr(const struct ttm_buffer_object *bo, in vmw_bo_get_guest_ptr()
300 void vmw_bo_pin(struct ttm_buffer_object *bo, bool pin) in vmw_bo_pin()
Dvmwgfx_buffer.c501 int vmw_bo_map_dma(struct ttm_buffer_object *bo) in vmw_bo_map_dma()
518 void vmw_bo_unmap_dma(struct ttm_buffer_object *bo) in vmw_bo_unmap_dma()
538 const struct vmw_sg_table *vmw_bo_sg_table(struct ttm_buffer_object *bo) in vmw_bo_sg_table()
753 static void vmw_evict_flags(struct ttm_buffer_object *bo, in vmw_evict_flags()
759 static int vmw_verify_access(struct ttm_buffer_object *bo, struct file *filp) in vmw_verify_access()
799 static int vmw_ttm_fault_reserve_notify(struct ttm_buffer_object *bo) in vmw_ttm_fault_reserve_notify()
814 static void vmw_move_notify(struct ttm_buffer_object *bo, in vmw_move_notify()
826 static void vmw_swap_notify(struct ttm_buffer_object *bo) in vmw_swap_notify()
Dvmwgfx_resource.c73 vmw_dma_buffer(struct ttm_buffer_object *bo) in vmw_dma_buffer()
79 vmw_user_dma_buffer(struct ttm_buffer_object *bo) in vmw_user_dma_buffer()
128 struct ttm_buffer_object *bo = &res->backup->base; in vmw_resource_release()
398 void vmw_dmabuf_bo_free(struct ttm_buffer_object *bo) in vmw_dmabuf_bo_free()
405 static void vmw_user_dmabuf_destroy(struct ttm_buffer_object *bo) in vmw_user_dmabuf_destroy()
416 void (*bo_free) (struct ttm_buffer_object *bo)) in vmw_dmabuf_init()
441 struct ttm_buffer_object *bo; in vmw_user_dmabuf_release()
490 struct ttm_buffer_object *tmp; in vmw_user_dmabuf_alloc()
538 int vmw_user_dmabuf_verify_access(struct ttm_buffer_object *bo, in vmw_user_dmabuf_verify_access()
571 struct ttm_buffer_object *bo = &user_bo->dma.base; in vmw_user_dmabuf_synccpu_grab()
[all …]
Dvmwgfx_mob.c57 struct ttm_buffer_object *pt_bo;
184 struct ttm_buffer_object *bo; in vmw_takedown_otable_base()
321 struct ttm_buffer_object *bo = dev_priv->otable_bo; in vmw_otables_takedown()
500 struct ttm_buffer_object *bo = mob->pt_bo; in vmw_mob_pt_setup()
553 struct ttm_buffer_object *bo = mob->pt_bo; in vmw_mob_unbind()
Dvmwgfx_gmrid_manager.c48 struct ttm_buffer_object *bo, in vmw_gmrid_man_get_node()
Dvmwgfx_execbuf.c311 struct ttm_buffer_object *bo, in vmw_bo_to_validate_list()
383 struct ttm_buffer_object *bo = &res->backup->base; in vmw_resources_reserve()
755 struct ttm_buffer_object *new_query_bo, in vmw_query_bo_switch_prepare()
885 struct ttm_buffer_object *bo; in vmw_translate_mob_ptr()
948 struct ttm_buffer_object *bo; in vmw_translate_guest_ptr()
2159 struct ttm_buffer_object *bo; in vmw_apply_relocations()
2228 struct ttm_buffer_object *bo, in vmw_validate_single_buffer()
Dvmwgfx_fifo.c548 struct ttm_buffer_object *bo = dev_priv->dummy_query_bo; in vmw_fifo_emit_dummy_legacy_query()
597 struct ttm_buffer_object *bo = dev_priv->dummy_query_bo; in vmw_fifo_emit_dummy_gb_query()
Dvmwgfx_fb.c552 ttm_bo_unref((struct ttm_buffer_object **)&par->vmw_bo); in vmw_fb_init()
565 struct ttm_buffer_object *bo; in vmw_fb_close()
Dvmwgfx_context.c302 struct ttm_buffer_object *bo = val_buf->bo; in vmw_gb_context_bind()
329 struct ttm_buffer_object *bo = val_buf->bo; in vmw_gb_context_unbind()
Dvmwgfx_scrn.c205 struct ttm_buffer_object *bo; in vmw_sou_backing_free()
Dvmwgfx_shader.c186 struct ttm_buffer_object *bo = val_buf->bo; in vmw_gb_shader_bind()
Dvmwgfx_surface.c1093 struct ttm_buffer_object *bo = val_buf->bo; in vmw_gb_surface_bind()
1127 struct ttm_buffer_object *bo = val_buf->bo; in vmw_gb_surface_unbind()
Dvmwgfx_drv.c300 struct ttm_buffer_object *bo; in vmw_dummy_query_bo_create()
Dvmwgfx_kms.c291 struct ttm_buffer_object *bo, in vmw_kms_cursor_snoop()
/linux-4.1.27/drivers/gpu/drm/nouveau/
Dnouveau_bo.h11 struct ttm_buffer_object bo;
45 nouveau_bo(struct ttm_buffer_object *bo) in nouveau_bo()
61 struct ttm_buffer_object *bo = &prev->bo; in nouveau_bo_ref()
Dnouveau_bo.c134 nouveau_bo_del_ttm(struct ttm_buffer_object *bo) in nouveau_bo_del_ttm()
316 struct ttm_buffer_object *bo = &nvbo->bo; in nouveau_bo_pin()
390 struct ttm_buffer_object *bo = &nvbo->bo; in nouveau_bo_unpin()
664 nouveau_bo_evict_flags(struct ttm_buffer_object *bo, struct ttm_placement *pl) in nouveau_bo_evict_flags()
695 nve0_bo_move_copy(struct nouveau_channel *chan, struct ttm_buffer_object *bo, in nve0_bo_move_copy()
727 nvc0_bo_move_copy(struct nouveau_channel *chan, struct ttm_buffer_object *bo, in nvc0_bo_move_copy()
765 nvc0_bo_move_m2mf(struct nouveau_channel *chan, struct ttm_buffer_object *bo, in nvc0_bo_move_m2mf()
804 nva3_bo_move_copy(struct nouveau_channel *chan, struct ttm_buffer_object *bo, in nva3_bo_move_copy()
842 nv98_bo_move_exec(struct nouveau_channel *chan, struct ttm_buffer_object *bo, in nv98_bo_move_exec()
860 nv84_bo_move_exec(struct nouveau_channel *chan, struct ttm_buffer_object *bo, in nv84_bo_move_exec()
[all …]
Dnouveau_ttm.c74 struct ttm_buffer_object *bo, in nouveau_vram_manager_new()
163 struct ttm_buffer_object *bo, in nouveau_gart_manager_new()
243 struct ttm_buffer_object *bo, in nv04_gart_manager_new()
Dnouveau_drm.h128 struct ttm_buffer_object *,
Dnouveau_gem.c40 struct ttm_buffer_object *bo = &nvbo->bo; in nouveau_gem_object_del()
291 struct ttm_buffer_object *bo = &nvbo->bo; in nouveau_gem_set_domain()
/linux-4.1.27/drivers/gpu/drm/qxl/
Dqxl_ttm.c111 struct ttm_buffer_object *bo; in qxl_ttm_fault()
114 bo = (struct ttm_buffer_object *)vma->vm_private_data; in qxl_ttm_fault()
187 static void qxl_evict_flags(struct ttm_buffer_object *bo, in qxl_evict_flags()
209 static int qxl_verify_access(struct ttm_buffer_object *bo, struct file *filp) in qxl_verify_access()
337 static void qxl_move_null(struct ttm_buffer_object *bo, in qxl_move_null()
347 static int qxl_bo_move(struct ttm_buffer_object *bo, in qxl_bo_move()
360 static void qxl_bo_move_notify(struct ttm_buffer_object *bo, in qxl_bo_move_notify()
Dqxl_object.c30 static void qxl_ttm_bo_destroy(struct ttm_buffer_object *tbo) in qxl_ttm_bo_destroy()
46 bool qxl_ttm_bo_is_qxl_bo(struct ttm_buffer_object *bo) in qxl_ttm_bo_is_qxl_bo()
211 struct ttm_buffer_object *tbo; in qxl_bo_unref()
Dqxl_object.h101 extern bool qxl_ttm_bo_is_qxl_bo(struct ttm_buffer_object *bo);
Dqxl_release.c435 struct ttm_buffer_object *bo; in qxl_release_fence_buffer_objects()
Dqxl_drv.h107 struct ttm_buffer_object tbo;
/linux-4.1.27/drivers/gpu/drm/cirrus/
Dcirrus_ttm.c95 static void cirrus_bo_ttm_destroy(struct ttm_buffer_object *tbo) in cirrus_bo_ttm_destroy()
105 static bool cirrus_ttm_bo_is_cirrus_bo(struct ttm_buffer_object *bo) in cirrus_ttm_bo_is_cirrus_bo()
138 cirrus_bo_evict_flags(struct ttm_buffer_object *bo, struct ttm_placement *pl) in cirrus_bo_evict_flags()
149 static int cirrus_bo_verify_access(struct ttm_buffer_object *bo, struct file *filp) in cirrus_bo_verify_access()
189 static int cirrus_bo_move(struct ttm_buffer_object *bo, in cirrus_bo_move()
Dcirrus_drv.h164 struct ttm_buffer_object bo;
174 cirrus_bo(struct ttm_buffer_object *bo) in cirrus_bo()
Dcirrus_main.c266 struct ttm_buffer_object *tbo; in cirrus_bo_unref()
/linux-4.1.27/drivers/gpu/drm/mgag200/
Dmgag200_ttm.c95 static void mgag200_bo_ttm_destroy(struct ttm_buffer_object *tbo) in mgag200_bo_ttm_destroy()
105 static bool mgag200_ttm_bo_is_mgag200_bo(struct ttm_buffer_object *bo) in mgag200_ttm_bo_is_mgag200_bo()
138 mgag200_bo_evict_flags(struct ttm_buffer_object *bo, struct ttm_placement *pl) in mgag200_bo_evict_flags()
149 static int mgag200_bo_verify_access(struct ttm_buffer_object *bo, struct file *filp) in mgag200_bo_verify_access()
189 static int mgag200_bo_move(struct ttm_buffer_object *bo, in mgag200_bo_move()
Dmgag200_drv.h223 struct ttm_buffer_object bo;
233 mgag200_bo(struct ttm_buffer_object *bo) in mgag200_bo()
Dmgag200_main.c318 struct ttm_buffer_object *tbo; in mgag200_bo_unref()
/linux-4.1.27/drivers/gpu/drm/ast/
Dast_ttm.c95 static void ast_bo_ttm_destroy(struct ttm_buffer_object *tbo) in ast_bo_ttm_destroy()
105 static bool ast_ttm_bo_is_ast_bo(struct ttm_buffer_object *bo) in ast_ttm_bo_is_ast_bo()
138 ast_bo_evict_flags(struct ttm_buffer_object *bo, struct ttm_placement *pl) in ast_bo_evict_flags()
149 static int ast_bo_verify_access(struct ttm_buffer_object *bo, struct file *filp) in ast_bo_verify_access()
189 static int ast_bo_move(struct ttm_buffer_object *bo, in ast_bo_move()
Dast_drv.h320 struct ttm_buffer_object bo;
330 ast_bo(struct ttm_buffer_object *bo) in ast_bo()
Dast_main.c545 struct ttm_buffer_object *tbo; in ast_bo_unref()
/linux-4.1.27/drivers/gpu/drm/bochs/
Dbochs_mm.c74 static void bochs_bo_ttm_destroy(struct ttm_buffer_object *tbo) in bochs_bo_ttm_destroy()
83 static bool bochs_ttm_bo_is_bochs_bo(struct ttm_buffer_object *bo) in bochs_ttm_bo_is_bochs_bo()
115 bochs_bo_evict_flags(struct ttm_buffer_object *bo, struct ttm_placement *pl) in bochs_bo_evict_flags()
126 static int bochs_bo_verify_access(struct ttm_buffer_object *bo, in bochs_bo_verify_access()
168 static int bochs_bo_move(struct ttm_buffer_object *bo, in bochs_bo_move()
436 struct ttm_buffer_object *tbo; in bochs_bo_unref()
Dbochs.h100 struct ttm_buffer_object bo;
108 static inline struct bochs_bo *bochs_bo(struct ttm_buffer_object *bo) in bochs_bo()
/linux-4.1.27/drivers/gpu/drm/radeon/
Dradeon_object.h152 extern void radeon_bo_move_notify(struct ttm_buffer_object *bo,
154 extern int radeon_bo_fault_reserve_notify(struct ttm_buffer_object *bo);
Dradeon_ttm.c178 static void radeon_evict_flags(struct ttm_buffer_object *bo, in radeon_evict_flags()
234 static int radeon_verify_access(struct ttm_buffer_object *bo, struct file *filp) in radeon_verify_access()
243 static void radeon_move_null(struct ttm_buffer_object *bo, in radeon_move_null()
253 static int radeon_move_blit(struct ttm_buffer_object *bo, in radeon_move_blit()
309 static int radeon_move_vram_ram(struct ttm_buffer_object *bo, in radeon_move_vram_ram()
356 static int radeon_move_ram_vram(struct ttm_buffer_object *bo, in radeon_move_ram_vram()
396 static int radeon_bo_move(struct ttm_buffer_object *bo, in radeon_bo_move()
971 struct ttm_buffer_object *bo; in radeon_ttm_fault()
975 bo = (struct ttm_buffer_object *)vma->vm_private_data; in radeon_ttm_fault()
Dradeon_object.c72 static void radeon_ttm_bo_destroy(struct ttm_buffer_object *tbo) in radeon_ttm_bo_destroy()
89 bool radeon_ttm_bo_is_radeon_bo(struct ttm_buffer_object *bo) in radeon_ttm_bo_is_radeon_bo()
310 struct ttm_buffer_object *tbo; in radeon_bo_unref()
757 void radeon_bo_move_notify(struct ttm_buffer_object *bo, in radeon_bo_move_notify()
777 int radeon_bo_fault_reserve_notify(struct ttm_buffer_object *bo) in radeon_bo_fault_reserve_notify()
Dradeon.h491 struct ttm_buffer_object tbo;
2986 extern bool radeon_ttm_bo_is_radeon_bo(struct ttm_buffer_object *bo);