Home
last modified time | relevance | path

Searched defs:bo (Results 1 – 25 of 193) sorted by relevance

12345678

/linux/drivers/gpu/drm/panthor/
H A Dpanthor_gem.c46 static void panthor_gem_debugfs_bo_init(struct panthor_gem_object *bo) in panthor_gem_debugfs_bo_init()
51 static void panthor_gem_debugfs_bo_add(struct panthor_gem_object *bo) in panthor_gem_debugfs_bo_add()
64 static void panthor_gem_debugfs_bo_rm(struct panthor_gem_object *bo) in panthor_gem_debugfs_bo_rm()
77 static void panthor_gem_debugfs_set_usage_flags(struct panthor_gem_object *bo, u32 usage_flags) in panthor_gem_debugfs_set_usage_flags()
83 static void panthor_gem_debugfs_bo_rm(struct panthor_gem_object *bo) {} in panthor_gem_debugfs_bo_rm()
84 static void panthor_gem_debugfs_set_usage_flags(struct panthor_gem_object *bo, u32 usage_flags) {} in panthor_gem_debugfs_set_usage_flags()
85 static void panthor_gem_debugfs_bo_init(struct panthor_gem_object *bo) {} in panthor_gem_debugfs_bo_init()
89 should_map_wc(struct panthor_gem_object *bo) in should_map_wc()
121 static bool is_gpu_mapped(struct panthor_gem_object *bo, in is_gpu_mapped()
144 panthor_gem_evaluate_reclaim_state_locked(struct panthor_gem_object *bo) in panthor_gem_evaluate_reclaim_state_locked()
[all …]
/linux/drivers/gpu/drm/xe/
H A Dxe_bo.h157 static inline struct xe_bo *ttm_to_xe_bo(const struct ttm_buffer_object *bo) in ttm_to_xe_bo() argument
167 #define xe_bo_device(bo) ttm_to_xe_device((bo)->ttm.bdev) argument
169 static inline struct xe_bo *xe_bo_get(struct xe_bo *bo) in xe_bo_get() argument
193 xe_bo_get_unless_zero(struct xe_bo * bo) xe_bo_get_unless_zero() argument
201 __xe_bo_unset_bulk_move(struct xe_bo * bo) __xe_bo_unset_bulk_move() argument
207 xe_bo_assert_held(struct xe_bo * bo) xe_bo_assert_held() argument
217 xe_bo_unlock_vm_held(struct xe_bo * bo) xe_bo_unlock_vm_held() argument
235 xe_bo_is_pinned(struct xe_bo * bo) xe_bo_is_pinned() argument
240 xe_bo_is_protected(const struct xe_bo * bo) xe_bo_is_protected() argument
256 xe_bo_is_purged(struct xe_bo * bo) xe_bo_is_purged() argument
273 xe_bo_madv_is_dontneed(struct xe_bo * bo) xe_bo_madv_is_dontneed() argument
290 xe_bo_willneed_get_locked(struct xe_bo * bo) xe_bo_willneed_get_locked() argument
315 xe_bo_willneed_put_locked(struct xe_bo * bo) xe_bo_willneed_put_locked() argument
336 xe_bo_vma_count_inc_locked(struct xe_bo * bo) xe_bo_vma_count_inc_locked() argument
354 xe_bo_vma_count_dec_locked(struct xe_bo * bo) xe_bo_vma_count_dec_locked() argument
365 xe_bo_unpin_map_no_vm(struct xe_bo * bo) xe_bo_unpin_map_no_vm() argument
381 xe_bo_main_addr(struct xe_bo * bo,size_t page_size) xe_bo_main_addr() argument
394 xe_bo_size(struct xe_bo * bo) xe_bo_size() argument
400 __xe_bo_ggtt_addr(struct xe_bo * bo,u8 tile_id) __xe_bo_ggtt_addr() argument
414 xe_bo_ggtt_addr(struct xe_bo * bo) xe_bo_ggtt_addr() argument
464 xe_bo_ccs_pages_start(struct xe_bo * bo) xe_bo_ccs_pages_start() argument
478 xe_bo_has_valid_ccs_bb(struct xe_bo * bo) xe_bo_has_valid_ccs_bb() argument
484 xe_bo_has_pages(struct xe_bo * bo) xe_bo_has_pages() argument
519 xe_bo_put_deferred(struct xe_bo * bo,struct llist_head * deferred) xe_bo_put_deferred() argument
541 xe_bo_put_async(struct xe_bo * bo) xe_bo_put_async() argument
563 xe_bo_sg_is_contiguous(struct xe_bo * bo,size_t len) xe_bo_sg_is_contiguous() argument
631 xe_bo_is_mem_type(struct xe_bo * bo,u32 mem_type) xe_bo_is_mem_type() argument
[all...]
H A Dxe_bo.c105 bool xe_bo_is_vram(struct xe_bo *bo) in xe_bo_is_vram() argument
111 bool xe_bo_is_stolen(struct xe_bo *bo) in xe_bo_is_stolen() argument
125 bool xe_bo_has_single_placement(struct xe_bo *bo) in xe_bo_has_single_placement() argument
139 xe_bo_is_stolen_devmem(struct xe_bo * bo) xe_bo_is_stolen_devmem() argument
154 xe_bo_is_vm_bound(struct xe_bo * bo) xe_bo_is_vm_bound() argument
161 xe_bo_is_user(struct xe_bo * bo) xe_bo_is_user() argument
176 try_add_system(struct xe_device * xe,struct xe_bo * bo,u32 bo_flags,u32 * c) try_add_system() argument
230 add_vram(struct xe_device * xe,struct xe_bo * bo,struct ttm_place * places,u32 bo_flags,u32 mem_type,u32 * c) add_vram() argument
261 try_add_vram(struct xe_device * xe,struct xe_bo * bo,u32 bo_flags,enum ttm_bo_type type,u32 * c) try_add_vram() argument
273 try_add_stolen(struct xe_device * xe,struct xe_bo * bo,u32 bo_flags,u32 * c) try_add_stolen() argument
288 __xe_bo_placement_for_flags(struct xe_device * xe,struct xe_bo * bo,u32 bo_flags,enum ttm_bo_type type) __xe_bo_placement_for_flags() argument
308 xe_bo_placement_for_flags(struct xe_device * xe,struct xe_bo * bo,u32 bo_flags,enum ttm_bo_type type) xe_bo_placement_for_flags() argument
320 struct xe_bo *bo; xe_evict_flags() local
426 xe_bo_sg(struct xe_bo * bo) xe_bo_sg() argument
474 struct xe_bo *bo = ttm_to_xe_bo(ttm_bo); xe_ttm_tt_create() local
624 xe_bo_is_visible_vram(struct xe_bo * bo) xe_bo_is_visible_vram() argument
669 xe_bo_trigger_rebind(struct xe_device * xe,struct xe_bo * bo,const struct ttm_operation_ctx * ctx) xe_bo_trigger_rebind() argument
805 xe_bo_move_notify(struct xe_bo * bo,const struct ttm_operation_ctx * ctx) xe_bo_move_notify() argument
854 xe_bo_set_purgeable_shrinker(struct xe_bo * bo,enum xe_madv_purgeable_state new_state) xe_bo_set_purgeable_shrinker() argument
892 xe_bo_set_purgeable_state(struct xe_bo * bo,enum xe_madv_purgeable_state new_state) xe_bo_set_purgeable_state() argument
926 struct xe_bo *bo = ttm_to_xe_bo(ttm_bo); xe_ttm_bo_purge() local
968 struct xe_bo *bo = ttm_to_xe_bo(ttm_bo); xe_bo_move() local
1210 xe_bo_shrink_purge(struct ttm_operation_ctx * ctx,struct ttm_buffer_object * bo,unsigned long * scanned) xe_bo_shrink_purge() argument
1248 xe_bo_eviction_valuable(struct ttm_buffer_object * bo,const struct ttm_place * place) xe_bo_eviction_valuable() argument
1284 xe_bo_shrink(struct ttm_operation_ctx * ctx,struct ttm_buffer_object * bo,const struct xe_bo_shrink_flags flags,unsigned long * scanned) xe_bo_shrink() argument
1352 xe_bo_notifier_prepare_pinned(struct xe_bo * bo) xe_bo_notifier_prepare_pinned() argument
1408 xe_bo_notifier_unprepare_pinned(struct xe_bo * bo) xe_bo_notifier_unprepare_pinned() argument
1421 xe_bo_evict_pinned_copy(struct xe_bo * bo,struct xe_bo * backup) xe_bo_evict_pinned_copy() argument
1489 xe_bo_evict_pinned(struct xe_bo * bo) xe_bo_evict_pinned() argument
1555 xe_bo_restore_pinned(struct xe_bo * bo) xe_bo_restore_pinned() argument
1633 xe_bo_dma_unmap_pinned(struct xe_bo * bo) xe_bo_dma_unmap_pinned() argument
1662 struct xe_bo *bo = ttm_to_xe_bo(ttm_bo); xe_ttm_io_mem_pfn() local
1706 struct xe_bo *bo; xe_ttm_bo_release_notify() local
1743 struct xe_bo *bo = ttm_to_xe_bo(ttm_bo); xe_ttm_bo_delete_mem_notify() local
1786 struct xe_bo *bo = ttm_to_xe_bo(ttm_bo); xe_ttm_access_memory() local
1853 struct xe_bo *bo = ttm_to_xe_bo(ttm_bo); xe_ttm_bo_destroy() local
1911 struct xe_bo *bo = gem_to_xe_bo(obj); xe_gem_object_close() local
1922 should_migrate_to_smem(struct xe_bo * bo) should_migrate_to_smem() argument
1934 xe_bo_wait_usage_kernel(struct xe_bo * bo,struct ttm_operation_ctx * ctx) xe_bo_wait_usage_kernel() argument
1953 xe_bo_fault_migrate(struct xe_bo * bo,struct ttm_operation_ctx * ctx,struct drm_exec * exec) xe_bo_fault_migrate() argument
1972 __xe_bo_cpu_fault(struct vm_fault * vmf,struct xe_device * xe,struct xe_bo * bo) __xe_bo_cpu_fault() argument
2025 xe_bo_cpu_fault_fastpath(struct vm_fault * vmf,struct xe_device * xe,struct xe_bo * bo,bool needs_rpm) xe_bo_cpu_fault_fastpath() argument
2095 struct xe_bo *bo = ttm_to_xe_bo(tbo); xe_bo_cpu_fault() local
2200 struct xe_bo *bo = ttm_to_xe_bo(ttm_bo); xe_bo_vm_access() local
2218 xe_bo_read(struct xe_bo * bo,u64 offset,void * dst,int size) xe_bo_read() argument
2240 struct xe_bo *bo = gem_to_xe_bo(obj); xe_gem_object_mmap() local
2286 struct xe_bo *bo = kzalloc_obj(*bo); xe_bo_alloc() local
2300 xe_bo_free(struct xe_bo * bo) xe_bo_free() argument
2328 xe_bo_init_locked(struct xe_device * xe,struct xe_bo * bo,struct xe_tile * tile,struct dma_resv * resv,struct ttm_lru_bulk_move * bulk,size_t size,u16 cpu_caching,enum ttm_bo_type type,u32 flags,struct dma_buf * dma_buf,struct drm_exec * exec) xe_bo_init_locked() argument
2488 __xe_bo_fixed_placement(struct xe_device * xe,struct xe_bo * bo,enum ttm_bo_type type,u32 flags,u64 start,u64 end,u64 size) __xe_bo_fixed_placement() argument
2535 struct xe_bo *bo = NULL; __xe_bo_create_locked() local
2643 struct xe_bo *bo; xe_bo_create_novm() local
2663 xe_bo_debug_mixed_mode_cur_index_advance(struct xe_device * xe,struct xe_bo * bo) xe_bo_debug_mixed_mode_cur_index_advance() argument
2796 xe_bo_debug_mixed_mode_cur_index_advance(struct xe_device * xe,struct xe_bo * bo) xe_bo_debug_mixed_mode_cur_index_advance() argument
2820 struct xe_bo *bo; xe_bo_create_user() local
2869 struct xe_bo *bo; xe_bo_create_pin_range_novm() local
2902 struct xe_bo *bo; xe_bo_create_pin_map_at_aligned() local
2963 struct xe_bo *bo; xe_bo_create_pin_map_at_novm() local
3041 struct xe_bo *bo; xe_managed_bo_create_pin_map() local
3056 xe_managed_bo_unpin_map_no_vm(struct xe_bo * bo) xe_managed_bo_unpin_map_no_vm() argument
3064 struct xe_bo *bo = xe_managed_bo_create_pin_map(xe, tile, ALIGN(size, PAGE_SIZE), flags); xe_managed_bo_create_from_data() local
3089 struct xe_bo *bo; xe_managed_bo_reinit_in_vram() local
3141 xe_bo_pin_external(struct xe_bo * bo,bool in_place,struct drm_exec * exec) xe_bo_pin_external() argument
3184 xe_bo_pin(struct xe_bo * bo,struct drm_exec * exec) xe_bo_pin() argument
3242 xe_bo_unpin_external(struct xe_bo * bo) xe_bo_unpin_external() argument
3266 xe_bo_unpin(struct xe_bo * bo) xe_bo_unpin() argument
3309 xe_bo_validate(struct xe_bo * bo,struct xe_vm * vm,bool allow_res_evict,struct drm_exec * exec) xe_bo_validate() argument
3339 xe_bo_is_xe_bo(struct ttm_buffer_object * bo) xe_bo_is_xe_bo() argument
3353 __xe_bo_addr(struct xe_bo * bo,u64 offset,size_t page_size) __xe_bo_addr() argument
3378 xe_bo_addr(struct xe_bo * bo,u64 offset,size_t page_size) xe_bo_addr() argument
3385 xe_bo_vmap(struct xe_bo * bo) xe_bo_vmap() argument
3421 __xe_bo_vunmap(struct xe_bo * bo) __xe_bo_vunmap() argument
3429 xe_bo_vunmap(struct xe_bo * bo) xe_bo_vunmap() argument
3435 gem_create_set_pxp_type(struct xe_device * xe,struct xe_bo * bo,u64 value) gem_create_set_pxp_type() argument
3456 gem_create_user_ext_set_property(struct xe_device * xe,struct xe_bo * bo,u64 extension) gem_create_user_ext_set_property() argument
3490 gem_create_user_extensions(struct xe_device * xe,struct xe_bo * bo,u64 extensions,int ext_number) gem_create_user_extensions() argument
3531 struct xe_bo *bo; xe_gem_create_ioctl() local
3721 xe_bo_decompress(struct xe_bo * bo) xe_bo_decompress() argument
3774 xe_bo_lock(struct xe_bo * bo,bool intr) xe_bo_lock() argument
3790 xe_bo_unlock(struct xe_bo * bo) xe_bo_unlock() argument
3810 xe_bo_can_migrate(struct xe_bo * bo,u32 mem_type) xe_bo_can_migrate() argument
3853 xe_bo_migrate(struct xe_bo * bo,u32 mem_type,struct ttm_operation_ctx * tctx,struct drm_exec * exec) xe_bo_migrate() argument
3908 xe_bo_evict(struct xe_bo * bo,struct drm_exec * exec) xe_bo_evict() argument
3936 xe_bo_needs_ccs_pages(struct xe_bo * bo) xe_bo_needs_ccs_pages() argument
3990 struct xe_bo *bo, *next; xe_bo_put_commit() local
4028 xe_bo_put(struct xe_bo * bo) xe_bo_put() argument
4061 struct xe_bo *bo; xe_bo_dumb_create() local
4087 xe_bo_runtime_pm_release_mmap_offset(struct xe_bo * bo) xe_bo_runtime_pm_release_mmap_offset() argument
[all...]
H A Dxe_dma_buf.c53 struct xe_bo *bo = gem_to_xe_bo(obj); in xe_dma_buf_pin() local
92 struct xe_bo *bo = gem_to_xe_bo(obj); in xe_dma_buf_unpin() local
102 struct xe_bo *bo = gem_to_xe_bo(obj); in xe_dma_buf_map() local
170 struct xe_bo *bo = gem_to_xe_bo(obj); in xe_dma_buf_begin_cpu_access() local
199 struct xe_bo *bo = gem_to_xe_bo(obj); in xe_dma_buf_release() local
224 struct xe_bo *bo = gem_to_xe_bo(obj); in xe_gem_prime_export() local
289 struct xe_bo *bo; in xe_dma_buf_create_obj() local
321 struct xe_bo *bo = gem_to_xe_bo(obj); in xe_dma_buf_move_notify() local
/linux/drivers/gpu/drm/qxl/
H A Dqxl_object.c34 struct qxl_bo *bo; in qxl_ttm_bo_destroy() local
49 bool qxl_ttm_bo_is_qxl_bo(struct ttm_buffer_object *bo) in qxl_ttm_bo_is_qxl_bo()
110 struct qxl_bo *bo; in qxl_bo_create() local
156 int qxl_bo_vmap_locked(struct qxl_bo *bo, struct iosys_map *map) in qxl_bo_vmap_locked()
185 int qxl_bo_pin_and_vmap(struct qxl_bo *bo, struct iosys_map *map) in qxl_bo_pin_and_vmap()
207 struct qxl_bo *bo, int page_offset) in qxl_bo_kmap_atomic_page()
239 void qxl_bo_vunmap_locked(struct qxl_bo *bo) in qxl_bo_vunmap_locked()
252 int qxl_bo_vunmap_and_unpin(struct qxl_bo *bo) in qxl_bo_vunmap_and_unpin()
267 struct qxl_bo *bo, void *pmap) in qxl_bo_kunmap_atomic_page()
279 void qxl_bo_unref(struct qxl_bo **bo) in qxl_bo_unref()
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_object.c63 struct amdgpu_bo *bo = ttm_to_amdgpu_bo(tbo); in amdgpu_bo_destroy() local
76 struct amdgpu_bo *bo = ttm_to_amdgpu_bo(tbo); in amdgpu_bo_user_destroy() local
94 bool amdgpu_bo_is_amdgpu_bo(struct ttm_buffer_object *bo) in amdgpu_bo_is_amdgpu_bo()
381 struct dma_buf *dma_buf, u32 domain, struct amdgpu_bo **bo, in amdgpu_bo_create_isp_user()
508 void amdgpu_bo_free_kernel(struct amdgpu_bo **bo, u64 *gpu_addr, in amdgpu_bo_free_kernel()
542 void amdgpu_bo_free_isp_user(struct amdgpu_bo *bo) in amdgpu_bo_free_isp_user()
642 struct amdgpu_bo *bo; in amdgpu_bo_create() local
827 int amdgpu_bo_kmap(struct amdgpu_bo *bo, void **ptr) in amdgpu_bo_kmap()
866 void *amdgpu_bo_kptr(struct amdgpu_bo *bo) in amdgpu_bo_kptr()
879 void amdgpu_bo_kunmap(struct amdgpu_bo *bo) in amdgpu_bo_kunmap()
[all …]
H A Damdgpu_dma_buf.c63 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in dma_buf_attach_adev() local
84 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in amdgpu_dma_buf_attach() local
147 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in amdgpu_dma_buf_detach() local
164 struct amdgpu_bo *bo = gem_to_amdgpu_bo(dmabuf->priv); in amdgpu_dma_buf_pin() local
200 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in amdgpu_dma_buf_unpin() local
223 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in amdgpu_dma_buf_map() local
303 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in amdgpu_dma_buf_unmap() local
335 struct amdgpu_bo *bo = gem_to_amdgpu_bo(dma_buf->priv); in amdgpu_dma_buf_begin_cpu_access() local
364 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in amdgpu_dma_buf_vmap() local
385 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in amdgpu_dma_buf_vunmap() local
[all …]
H A Damdgpu_amdkfd_gpuvm.c309 void amdgpu_amdkfd_release_notify(struct amdgpu_bo *bo) in amdgpu_amdkfd_release_notify()
371 static int amdgpu_amdkfd_remove_eviction_fence(struct amdgpu_bo *bo, in amdgpu_amdkfd_remove_eviction_fence()
398 void amdgpu_amdkfd_remove_all_eviction_fences(struct amdgpu_bo *bo) in amdgpu_amdkfd_remove_all_eviction_fences()
417 static int amdgpu_amdkfd_bo_validate(struct amdgpu_bo *bo, uint32_t domain, in amdgpu_amdkfd_bo_validate()
443 int amdgpu_amdkfd_bo_validate_and_fence(struct amdgpu_bo *bo, in amdgpu_amdkfd_bo_validate_and_fence()
469 static int amdgpu_amdkfd_validate_vm_bo(void *_unused, struct amdgpu_bo *bo) in amdgpu_amdkfd_validate_vm_bo()
567 struct amdgpu_bo *bo = attachment->bo_va->base.bo; in kfd_mem_dmamap_userptr() local
614 struct amdgpu_bo *bo = attachment->bo_va->base.bo; in kfd_mem_dmamap_dmabuf() local
651 struct amdgpu_bo *bo = attachment->bo_va->base.bo; in kfd_mem_dmamap_sg_bo() local
728 struct amdgpu_bo *bo = attachment->bo_va->base.bo; in kfd_mem_dmaunmap_userptr() local
[all …]
H A Damdgpu_hmm.c68 struct amdgpu_bo *bo = container_of(mni, struct amdgpu_bo, notifier); in amdgpu_hmm_invalidate_gfx() local
107 struct amdgpu_bo *bo = container_of(mni, struct amdgpu_bo, notifier); in amdgpu_hmm_invalidate_hsa() local
130 int amdgpu_hmm_register(struct amdgpu_bo *bo, unsigned long addr) in amdgpu_hmm_register()
160 void amdgpu_hmm_unregister(struct amdgpu_bo *bo) in amdgpu_hmm_unregister()
259 struct amdgpu_hmm_range *amdgpu_hmm_range_alloc(struct amdgpu_bo *bo) in amdgpu_hmm_range_alloc()
/linux/drivers/gpu/drm/radeon/
H A Dradeon_object.c54 struct radeon_bo *bo; in radeon_ttm_bo_destroy() local
69 bool radeon_ttm_bo_is_radeon_bo(struct ttm_buffer_object *bo) in radeon_ttm_bo_is_radeon_bo()
134 struct radeon_bo *bo; in radeon_bo_create() local
218 int radeon_bo_kmap(struct radeon_bo *bo, void **ptr) in radeon_bo_kmap()
246 void radeon_bo_kunmap(struct radeon_bo *bo) in radeon_bo_kunmap()
255 struct radeon_bo *radeon_bo_ref(struct radeon_bo *bo) in radeon_bo_ref()
264 void radeon_bo_unref(struct radeon_bo **bo) in radeon_bo_unref()
272 int radeon_bo_pin_restricted(struct radeon_bo *bo, u32 domain, u64 max_offset, in radeon_bo_pin_restricted()
331 int radeon_bo_pin(struct radeon_bo *bo, u32 domain, u64 *gpu_addr) in radeon_bo_pin()
336 void radeon_bo_unpin(struct radeon_bo *bo) in radeon_bo_unpin()
[all …]
H A Dradeon_object.h64 static inline int radeon_bo_reserve(struct radeon_bo *bo, bool no_intr) in radeon_bo_reserve()
77 static inline void radeon_bo_unreserve(struct radeon_bo *bo) in radeon_bo_unreserve()
91 static inline u64 radeon_bo_gpu_offset(struct radeon_bo *bo) in radeon_bo_gpu_offset()
110 static inline unsigned long radeon_bo_size(struct radeon_bo *bo) in radeon_bo_size()
115 static inline unsigned radeon_bo_ngpu_pages(struct radeon_bo *bo) in radeon_bo_ngpu_pages()
120 static inline unsigned radeon_bo_gpu_page_alignment(struct radeon_bo *bo) in radeon_bo_gpu_page_alignment()
131 static inline u64 radeon_bo_mmap_offset(struct radeon_bo *bo) in radeon_bo_mmap_offset()
H A Dradeon_prime.c39 struct radeon_bo *bo = gem_to_radeon_bo(obj); in radeon_gem_prime_get_sg_table() local
51 struct radeon_bo *bo; in radeon_gem_prime_import_sg_table() local
73 struct radeon_bo *bo = gem_to_radeon_bo(obj); in radeon_gem_prime_pin() local
86 struct radeon_bo *bo = gem_to_radeon_bo(obj); in radeon_gem_prime_unpin() local
97 struct radeon_bo *bo = gem_to_radeon_bo(gobj); in radeon_gem_prime_export() local
/linux/drivers/gpu/drm/ttm/
H A Dttm_bo.c55 static void ttm_bo_mem_space_debug(struct ttm_buffer_object *bo, in ttm_bo_mem_space_debug()
80 void ttm_bo_move_to_lru_tail(struct ttm_buffer_object *bo) in ttm_bo_move_to_lru_tail()
103 void ttm_bo_set_bulk_move(struct ttm_buffer_object *bo, in ttm_bo_set_bulk_move()
121 static int ttm_bo_handle_move_mem(struct ttm_buffer_object *bo, in ttm_bo_handle_move_mem()
183 static void ttm_bo_cleanup_memtype_use(struct ttm_buffer_object *bo) in ttm_bo_cleanup_memtype_use()
192 static int ttm_bo_individualize_resv(struct ttm_buffer_object *bo) in ttm_bo_individualize_resv()
219 static void ttm_bo_flush_all_fences(struct ttm_buffer_object *bo) in ttm_bo_flush_all_fences()
237 struct ttm_buffer_object *bo; in ttm_bo_delayed_delete() local
251 struct ttm_buffer_object *bo = in ttm_bo_release() local
323 void ttm_bo_put(struct ttm_buffer_object *bo) in ttm_bo_put()
[all …]
H A Dttm_bo_vm.c44 static vm_fault_t ttm_bo_vm_fault_idle(struct ttm_buffer_object *bo, in ttm_bo_vm_fault_idle()
87 static unsigned long ttm_bo_io_mem_pfn(struct ttm_buffer_object *bo, in ttm_bo_io_mem_pfn()
119 vm_fault_t ttm_bo_vm_reserve(struct ttm_buffer_object *bo, in ttm_bo_vm_reserve()
189 struct ttm_buffer_object *bo = vma->vm_private_data; in ttm_bo_vm_fault_reserved() local
295 struct ttm_buffer_object *bo = vma->vm_private_data; in ttm_bo_vm_dummy_page() local
325 struct ttm_buffer_object *bo = vma->vm_private_data; in ttm_bo_vm_fault() local
352 struct ttm_buffer_object *bo = vma->vm_private_data; in ttm_bo_vm_open() local
362 struct ttm_buffer_object *bo = vma->vm_private_data; in ttm_bo_vm_close() local
369 static int ttm_bo_vm_access_kmap(struct ttm_buffer_object *bo, in ttm_bo_vm_access_kmap()
424 int ttm_bo_access(struct ttm_buffer_object *bo, unsigned long offset, in ttm_bo_access()
[all …]
/linux/drivers/accel/ivpu/
H A Divpu_gem.h52 static inline void *ivpu_bo_vaddr(struct ivpu_bo *bo) in ivpu_bo_vaddr()
57 static inline size_t ivpu_bo_size(struct ivpu_bo *bo) in ivpu_bo_size()
62 static inline u32 ivpu_bo_cache_mode(struct ivpu_bo *bo) in ivpu_bo_cache_mode()
67 static inline struct ivpu_device *ivpu_bo_to_vdev(struct ivpu_bo *bo) in ivpu_bo_to_vdev()
72 static inline bool ivpu_bo_is_snooped(struct ivpu_bo *bo) in ivpu_bo_is_snooped()
80 static inline bool ivpu_bo_is_read_only(struct ivpu_bo *bo) in ivpu_bo_is_read_only()
85 static inline bool ivpu_bo_is_resident(struct ivpu_bo *bo) in ivpu_bo_is_resident()
90 static inline void *ivpu_to_cpu_addr(struct ivpu_bo *bo, u64 vpu_addr, u64 size) in ivpu_to_cpu_addr()
109 static inline u32 cpu_to_vpu_addr(struct ivpu_bo *bo, void *cpu_addr) in cpu_to_vpu_addr()
120 static inline bool ivpu_bo_is_mappable(struct ivpu_bo *bo) in ivpu_bo_is_mappable()
/linux/drivers/gpu/drm/vc4/
H A Dvc4_bo.c134 struct vc4_bo *bo = to_vc4_bo(gem_obj); in vc4_bo_set_label() local
166 static void vc4_bo_destroy(struct vc4_bo *bo) in vc4_bo_destroy() argument
186 vc4_bo_remove_from_cache(struct vc4_bo * bo) vc4_bo_remove_from_cache() argument
241 struct vc4_bo *bo = list_last_entry(&vc4->bo_cache.time_list, vc4_bo_cache_purge() local
249 vc4_bo_add_to_purgeable_pool(struct vc4_bo * bo) vc4_bo_add_to_purgeable_pool() argument
263 vc4_bo_remove_from_purgeable_pool_locked(struct vc4_bo * bo) vc4_bo_remove_from_purgeable_pool_locked() argument
287 vc4_bo_remove_from_purgeable_pool(struct vc4_bo * bo) vc4_bo_remove_from_purgeable_pool() argument
298 struct vc4_bo *bo = to_vc4_bo(obj); vc4_bo_purge() local
317 struct vc4_bo *bo = list_first_entry(&vc4->purgeable.list, vc4_bo_userspace_cache_purge() local
364 struct vc4_bo *bo = NULL; vc4_bo_get_from_cache() local
396 struct vc4_bo *bo; vc4_create_object() local
427 struct vc4_bo *bo; vc4_bo_create() local
495 struct vc4_bo *bo = NULL; vc4_bo_dumb_create() local
525 struct vc4_bo *bo = list_last_entry(&vc4->bo_cache.time_list, vc4_bo_cache_free_old() local
546 struct vc4_bo *bo = to_vc4_bo(gem_bo); vc4_free_object() local
619 vc4_bo_inc_usecnt(struct vc4_bo * bo) vc4_bo_inc_usecnt() argument
659 vc4_bo_dec_usecnt(struct vc4_bo * bo) vc4_bo_dec_usecnt() argument
688 struct vc4_bo *bo = to_vc4_bo(obj); vc4_prime_export() local
719 struct vc4_bo *bo = to_vc4_bo(obj); vc4_fault() local
733 struct vc4_bo *bo = to_vc4_bo(obj); vc4_gem_object_mmap() local
789 struct vc4_bo *bo = NULL; vc4_create_bo_ioctl() local
845 struct vc4_bo *bo = NULL; vc4_create_shader_bo_ioctl() local
924 struct vc4_bo *bo; vc4_set_tiling_ioctl() local
971 struct vc4_bo *bo; vc4_get_tiling_ioctl() local
[all...]
/linux/drivers/gpu/drm/ttm/tests/
H A Dttm_tt_test.c42 struct ttm_buffer_object *bo; in ttm_tt_init_basic() local
69 struct ttm_buffer_object *bo; in ttm_tt_init_misaligned() local
92 struct ttm_buffer_object *bo; in ttm_tt_fini_basic() local
112 struct ttm_buffer_object *bo; in ttm_tt_fini_sg() local
132 struct ttm_buffer_object *bo; in ttm_tt_fini_shmem() local
155 struct ttm_buffer_object *bo; in ttm_tt_create_basic() local
174 struct ttm_buffer_object *bo; in ttm_tt_create_invalid_bo_type() local
190 struct ttm_buffer_object *bo; in ttm_tt_create_ttm_exists() local
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() local
[all …]
H A Dttm_bo_test.c62 struct ttm_buffer_object *bo; in ttm_bo_reserve_optimistic_no_ticket() local
75 struct ttm_buffer_object *bo; in ttm_bo_reserve_locked_no_sleep() local
93 struct ttm_buffer_object *bo; in ttm_bo_reserve_no_wait_ticket() local
111 struct ttm_buffer_object *bo; in ttm_bo_reserve_double_resv() local
186 struct ttm_buffer_object *bo = arg; in threaded_ttm_bo_reserve() local
213 struct ttm_buffer_object *bo; in ttm_bo_reserve_interrupted() local
240 struct ttm_buffer_object *bo; in ttm_bo_unreserve_basic() local
283 struct ttm_buffer_object *bo; in ttm_bo_unreserve_pinned() local
385 struct ttm_buffer_object *bo; in ttm_bo_fini_basic() local
429 struct ttm_buffer_object *bo; in ttm_bo_fini_shared_resv() local
[all …]
/linux/drivers/gpu/drm/virtio/
H A Dvirtgpu_prime.c37 struct virtio_gpu_object *bo = gem_to_virtio_gpu_obj(obj); in virtgpu_virtio_get_uuid() local
54 struct virtio_gpu_object *bo = gem_to_virtio_gpu_obj(obj); in virtgpu_gem_map_dma_buf() local
67 struct virtio_gpu_object *bo = gem_to_virtio_gpu_obj(obj); in virtgpu_gem_unmap_dma_buf() local
93 struct virtio_gpu_object *bo) in virtio_gpu_resource_assign_uuid()
112 struct virtio_gpu_object *bo = gem_to_virtio_gpu_obj(obj); in virtgpu_gem_prime_export() local
149 struct virtio_gpu_object *bo, in virtgpu_dma_buf_import_sgt()
185 static void virtgpu_dma_buf_unmap(struct virtio_gpu_object *bo) in virtgpu_dma_buf_unmap()
204 struct virtio_gpu_object *bo = gem_to_virtio_gpu_obj(obj); in virtgpu_dma_buf_free_obj() local
229 struct virtio_gpu_object *bo, in virtgpu_dma_buf_init_obj()
285 struct virtio_gpu_object *bo) in virtgpu_dma_buf_obj_resubmit()
[all …]
H A Dvirtgpu_object.c66 void virtio_gpu_remove_from_restore_list(struct virtio_gpu_object *bo) in virtio_gpu_remove_from_restore_list()
75 void virtio_gpu_cleanup_object(struct virtio_gpu_object *bo) in virtio_gpu_cleanup_object()
102 struct virtio_gpu_object *bo = gem_to_virtio_gpu_obj(obj); in virtio_gpu_free_object() local
115 int virtio_gpu_detach_object_fenced(struct virtio_gpu_object *bo) in virtio_gpu_detach_object_fenced()
151 bool virtio_gpu_is_shmem(struct virtio_gpu_object *bo) in virtio_gpu_is_shmem()
172 struct virtio_gpu_object *bo, in virtio_gpu_object_shmem_init()
220 struct virtio_gpu_object *bo; in virtio_gpu_object_create() local
294 struct virtio_gpu_object *bo) in virtio_gpu_add_object_to_restore_list()
303 struct virtio_gpu_object *bo, *tmp; in virtio_gpu_object_restore_all() local
350 struct virtio_gpu_object *bo, *tmp; in virtio_gpu_object_unref_all() local
H A Dvirtgpu_plane.c139 struct virtio_gpu_object *bo = in virtio_gpu_panic_update_dumb_bo() local
162 struct virtio_gpu_object *bo = in virtio_gpu_update_dumb_bo() local
189 struct virtio_gpu_object *bo; in virtio_gpu_panic_resource_flush() local
207 struct virtio_gpu_object *bo; in virtio_gpu_resource_flush() local
244 struct virtio_gpu_object *bo; virtio_gpu_primary_plane_update() local
317 struct virtio_gpu_object *bo = gem_to_virtio_gpu_obj(obj); virtio_gpu_prepare_imported_obj() local
357 struct virtio_gpu_object *bo; virtio_gpu_plane_prepare_fb() local
439 struct virtio_gpu_object *bo = NULL; virtio_gpu_cursor_plane_update() local
512 struct virtio_gpu_object *bo; virtio_drm_get_scanout_buffer() local
542 struct virtio_gpu_object *bo; virtio_panic_flush() local
[all...]
/linux/drivers/gpu/drm/lima/
H A Dlima_gem.c21 int lima_heap_alloc(struct lima_bo *bo, struct lima_vm *vm) in lima_heap_alloc()
115 struct lima_bo *bo; in lima_gem_create_handle() local
155 struct lima_bo *bo = to_lima_bo(obj); in lima_gem_free_object() local
165 struct lima_bo *bo = to_lima_bo(obj); in lima_gem_object_open() local
174 struct lima_bo *bo = to_lima_bo(obj); in lima_gem_object_close() local
183 struct lima_bo *bo = to_lima_bo(obj); in lima_gem_pin() local
193 struct lima_bo *bo = to_lima_bo(obj); in lima_gem_vmap() local
203 struct lima_bo *bo = to_lima_bo(obj); in lima_gem_mmap() local
227 struct lima_bo *bo; in lima_gem_create_object() local
244 struct lima_bo *bo; in lima_gem_get_info() local
[all …]
/linux/drivers/gpu/drm/v3d/
H A Dv3d_bo.c28 struct v3d_bo *bo = to_v3d_bo(obj); in v3d_gem_status() local
43 struct v3d_bo *bo = to_v3d_bo(obj); in v3d_free_object() local
83 struct v3d_bo *bo; in v3d_create_object() local
105 struct v3d_bo *bo = to_v3d_bo(obj); in v3d_bo_create_finish() local
153 struct v3d_bo *bo; in v3d_bo_create() local
194 void v3d_get_bo_vaddr(struct v3d_bo *bo) in v3d_get_bo_vaddr()
202 void v3d_put_bo_vaddr(struct v3d_bo *bo) in v3d_put_bo_vaddr()
212 struct v3d_bo *bo = NULL; in v3d_create_bo_ioctl() local
260 struct v3d_bo *bo; in v3d_get_bo_offset_ioctl() local
/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_bo.c40 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() local
129 struct ttm_buffer_object *bo = &buf->tbo; in vmw_bo_pin_in_vram_or_gmr() local
198 struct ttm_buffer_object *bo = &buf->tbo; in vmw_bo_pin_in_start_of_vram() local
255 struct ttm_buffer_object *bo = &buf->tbo; in vmw_bo_unpin() local
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() local
352 struct ttm_buffer_object *bo = &vbo->tbo; in vmw_bo_map_and_cache_size() local
490 struct ttm_buffer_object *bo = &vmw_bo->tbo; in vmw_user_bo_synccpu_grab() local
671 void vmw_bo_fence_single(struct ttm_buffer_object *bo, in vmw_bo_fence_single()
[all …]
/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_ttm.c268 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() local
465 struct ttm_buffer_object *bo = i915_gem_to_ttm(obj); in i915_ttm_shrink() local
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() local
608 struct ttm_buffer_object *bo = i915_gem_to_ttm(obj); in i915_ttm_truncate() local
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 …]

12345678