Home
last modified time | relevance | path

Searched refs:drm_i915_gem_object (Results 1 – 25 of 142) sorted by relevance

123456

/linux-6.1.9/drivers/gpu/drm/i915/gem/
Di915_gem_object.h38 struct drm_i915_gem_object *obj; in i915_gem_object_size_2big()
54 struct drm_i915_gem_object *i915_gem_object_alloc(void);
55 void i915_gem_object_free(struct drm_i915_gem_object *obj);
57 void i915_gem_object_init(struct drm_i915_gem_object *obj,
62 void __i915_gem_object_fini(struct drm_i915_gem_object *obj);
64 struct drm_i915_gem_object *
67 struct drm_i915_gem_object *
70 struct drm_i915_gem_object *
77 void __i915_gem_object_release_shmem(struct drm_i915_gem_object *obj,
81 int i915_gem_object_pwrite_phys(struct drm_i915_gem_object *obj,
[all …]
Di915_gem_object_types.h20 struct drm_i915_gem_object;
57 int (*get_pages)(struct drm_i915_gem_object *obj);
58 void (*put_pages)(struct drm_i915_gem_object *obj,
60 int (*truncate)(struct drm_i915_gem_object *obj);
80 int (*shrink)(struct drm_i915_gem_object *obj, unsigned int flags);
82 int (*pread)(struct drm_i915_gem_object *obj,
84 int (*pwrite)(struct drm_i915_gem_object *obj,
86 u64 (*mmap_offset)(struct drm_i915_gem_object *obj);
87 void (*unmap_virtual)(struct drm_i915_gem_object *obj);
89 int (*dmabuf_export)(struct drm_i915_gem_object *obj);
[all …]
Di915_gem_ttm.h20 i915_gem_to_ttm(struct drm_i915_gem_object *obj) in i915_gem_to_ttm()
48 static inline struct drm_i915_gem_object *
51 return container_of(bo, struct drm_i915_gem_object, __do_not_access); in i915_ttm_to_gem()
55 struct drm_i915_gem_object *obj,
70 void i915_ttm_free_cached_io_rsgt(struct drm_i915_gem_object *obj);
73 i915_ttm_resource_get_st(struct drm_i915_gem_object *obj,
76 void i915_ttm_adjust_lru(struct drm_i915_gem_object *obj);
78 int i915_ttm_purge(struct drm_i915_gem_object *obj);
Di915_gem_lmem.h12 struct drm_i915_gem_object;
16 i915_gem_object_lmem_io_map(struct drm_i915_gem_object *obj,
20 bool i915_gem_object_is_lmem(struct drm_i915_gem_object *obj);
22 bool __i915_gem_object_is_lmem(struct drm_i915_gem_object *obj);
24 struct drm_i915_gem_object *
28 struct drm_i915_gem_object *
33 struct drm_i915_gem_object *
Di915_gem_object.c48 struct drm_i915_gem_object *i915_gem_object_alloc(void) in i915_gem_object_alloc()
50 struct drm_i915_gem_object *obj; in i915_gem_object_alloc()
60 void i915_gem_object_free(struct drm_i915_gem_object *obj) in i915_gem_object_free()
65 void i915_gem_object_init(struct drm_i915_gem_object *obj, in i915_gem_object_init()
109 void __i915_gem_object_fini(struct drm_i915_gem_object *obj) in __i915_gem_object_fini()
122 void i915_gem_object_set_cache_coherency(struct drm_i915_gem_object *obj, in i915_gem_object_set_cache_coherency()
142 bool i915_gem_object_can_bypass_llc(struct drm_i915_gem_object *obj) in i915_gem_object_can_bypass_llc()
170 struct drm_i915_gem_object *obj = to_intel_bo(gem); in i915_gem_close_object()
227 struct drm_i915_gem_object *obj = in __i915_gem_free_object_rcu()
237 static void __i915_gem_object_free_mmaps(struct drm_i915_gem_object *obj) in __i915_gem_object_free_mmaps()
[all …]
Di915_gem_region.h12 struct drm_i915_gem_object;
34 struct drm_i915_gem_object *obj);
52 void i915_gem_object_init_memory_region(struct drm_i915_gem_object *obj,
54 void i915_gem_object_release_memory_region(struct drm_i915_gem_object *obj);
56 struct drm_i915_gem_object *
61 struct drm_i915_gem_object *
Di915_gem_lmem.c14 i915_gem_object_lmem_io_map(struct drm_i915_gem_object *obj, in i915_gem_object_lmem_io_map()
42 bool i915_gem_object_is_lmem(struct drm_i915_gem_object *obj) in i915_gem_object_is_lmem()
66 bool __i915_gem_object_is_lmem(struct drm_i915_gem_object *obj) in __i915_gem_object_is_lmem()
99 struct drm_i915_gem_object *
109 struct drm_i915_gem_object *
113 struct drm_i915_gem_object *obj; in i915_gem_object_create_lmem_from_data()
135 struct drm_i915_gem_object *
Di915_gem_mman.h15 struct drm_i915_gem_object;
27 void __i915_gem_object_release_mmap_gtt(struct drm_i915_gem_object *obj);
28 void i915_gem_object_release_mmap_gtt(struct drm_i915_gem_object *obj);
30 void i915_gem_object_runtime_pm_release_mmap_offset(struct drm_i915_gem_object *obj);
31 void i915_gem_object_release_mmap_offset(struct drm_i915_gem_object *obj);
Di915_gem_ttm_move.h18 struct drm_i915_gem_object;
27 int i915_gem_obj_copy_ttm(struct drm_i915_gem_object *dst,
28 struct drm_i915_gem_object *src,
38 void i915_ttm_adjust_domains_after_move(struct drm_i915_gem_object *obj);
40 void i915_ttm_adjust_gem_after_move(struct drm_i915_gem_object *obj);
Di915_gem_domain.c20 static bool gpu_write_needs_clflush(struct drm_i915_gem_object *obj) in gpu_write_needs_clflush()
31 bool i915_gem_cpu_write_needs_clflush(struct drm_i915_gem_object *obj) in i915_gem_cpu_write_needs_clflush()
49 flush_write_domain(struct drm_i915_gem_object *obj, unsigned int flush_domains) in flush_write_domain()
87 static void __i915_gem_object_flush_for_display(struct drm_i915_gem_object *obj) in __i915_gem_object_flush_for_display()
99 void i915_gem_object_flush_if_display(struct drm_i915_gem_object *obj) in i915_gem_object_flush_if_display()
109 void i915_gem_object_flush_if_display_locked(struct drm_i915_gem_object *obj) in i915_gem_object_flush_if_display_locked()
124 i915_gem_object_set_to_wc_domain(struct drm_i915_gem_object *obj, bool write) in i915_gem_object_set_to_wc_domain()
185 i915_gem_object_set_to_gtt_domain(struct drm_i915_gem_object *obj, bool write) in i915_gem_object_set_to_gtt_domain()
260 int i915_gem_object_set_cache_level(struct drm_i915_gem_object *obj, in i915_gem_object_set_cache_level()
291 struct drm_i915_gem_object *obj; in i915_gem_get_caching_ioctl()
[all …]
Di915_gem_dmabuf.c23 static struct drm_i915_gem_object *dma_buf_to_obj(struct dma_buf *buf)
31 struct drm_i915_gem_object *obj = dma_buf_to_obj(attachment->dmabuf); in i915_gem_map_dma_buf()
72 struct drm_i915_gem_object *obj = dma_buf_to_obj(dma_buf); in i915_gem_dmabuf_vmap()
87 struct drm_i915_gem_object *obj = dma_buf_to_obj(dma_buf); in i915_gem_dmabuf_vunmap()
95 struct drm_i915_gem_object *obj = dma_buf_to_obj(dma_buf); in i915_gem_dmabuf_mmap()
119 struct drm_i915_gem_object *obj = dma_buf_to_obj(dma_buf); in i915_gem_begin_cpu_access()
144 struct drm_i915_gem_object *obj = dma_buf_to_obj(dma_buf); in i915_gem_end_cpu_access()
169 struct drm_i915_gem_object *obj = dma_buf_to_obj(dmabuf); in i915_gem_dmabuf_attach()
198 struct drm_i915_gem_object *obj = dma_buf_to_obj(dmabuf); in i915_gem_dmabuf_detach()
218 struct drm_i915_gem_object *obj = to_intel_bo(gem_obj); in i915_gem_prime_export()
[all …]
Di915_gem_pages.c18 void __i915_gem_object_set_pages(struct drm_i915_gem_object *obj, in __i915_gem_object_set_pages()
98 int ____i915_gem_object_get_pages(struct drm_i915_gem_object *obj) in ____i915_gem_object_get_pages()
124 int __i915_gem_object_get_pages(struct drm_i915_gem_object *obj) in __i915_gem_object_get_pages()
146 int i915_gem_object_pin_pages_unlocked(struct drm_i915_gem_object *obj) in i915_gem_object_pin_pages_unlocked()
167 int i915_gem_object_truncate(struct drm_i915_gem_object *obj) in i915_gem_object_truncate()
175 static void __i915_gem_object_reset_page_iter(struct drm_i915_gem_object *obj) in __i915_gem_object_reset_page_iter()
188 static void unmap_object(struct drm_i915_gem_object *obj, void *ptr) in unmap_object()
194 static void flush_tlb_invalidate(struct drm_i915_gem_object *obj) in flush_tlb_invalidate()
207 __i915_gem_object_unset_pages(struct drm_i915_gem_object *obj) in __i915_gem_object_unset_pages()
236 int __i915_gem_object_put_pages(struct drm_i915_gem_object *obj) in __i915_gem_object_put_pages()
[all …]
Di915_gem_userptr.c64 struct drm_i915_gem_object *obj = container_of(mni, struct drm_i915_gem_object, userptr.notifier); in i915_gem_userptr_invalidate()
102 i915_gem_userptr_init__mmu_notifier(struct drm_i915_gem_object *obj) in i915_gem_userptr_init__mmu_notifier()
109 static void i915_gem_object_userptr_drop_ref(struct drm_i915_gem_object *obj) in i915_gem_object_userptr_drop_ref()
129 static int i915_gem_userptr_get_pages(struct drm_i915_gem_object *obj) in i915_gem_userptr_get_pages()
186 i915_gem_userptr_put_pages(struct drm_i915_gem_object *obj, in i915_gem_userptr_put_pages()
240 static int i915_gem_object_userptr_unbind(struct drm_i915_gem_object *obj) in i915_gem_object_userptr_unbind()
261 int i915_gem_object_userptr_submit_init(struct drm_i915_gem_object *obj) in i915_gem_object_userptr_submit_init()
339 int i915_gem_object_userptr_submit_done(struct drm_i915_gem_object *obj) in i915_gem_object_userptr_submit_done()
351 int i915_gem_object_userptr_validate(struct drm_i915_gem_object *obj) in i915_gem_object_userptr_validate()
377 i915_gem_userptr_release(struct drm_i915_gem_object *obj) in i915_gem_userptr_release()
[all …]
Di915_gem_region.c13 void i915_gem_object_init_memory_region(struct drm_i915_gem_object *obj, in i915_gem_object_init_memory_region()
23 void i915_gem_object_release_memory_region(struct drm_i915_gem_object *obj) in i915_gem_object_release_memory_region()
32 static struct drm_i915_gem_object *
39 struct drm_i915_gem_object *obj; in __i915_gem_object_create_region()
106 struct drm_i915_gem_object *
116 struct drm_i915_gem_object *
158 struct drm_i915_gem_object *obj; in i915_gem_process_region()
Di915_gem_ttm.c114 i915_ttm_select_tt_caching(const struct drm_i915_gem_object *obj) in i915_ttm_select_tt_caching()
156 i915_ttm_placement_from_obj(const struct drm_i915_gem_object *obj, in i915_ttm_placement_from_obj()
276 struct drm_i915_gem_object *obj = i915_ttm_to_gem(bo); in i915_ttm_tt_create()
363 struct drm_i915_gem_object *obj = i915_ttm_to_gem(bo); in i915_ttm_eviction_valuable()
396 void i915_ttm_free_cached_io_rsgt(struct drm_i915_gem_object *obj) in i915_ttm_free_cached_io_rsgt()
422 int i915_ttm_purge(struct drm_i915_gem_object *obj) in i915_ttm_purge()
462 static int i915_ttm_shrink(struct drm_i915_gem_object *obj, unsigned int flags) in i915_ttm_shrink()
511 struct drm_i915_gem_object *obj = i915_ttm_to_gem(bo); in i915_ttm_delete_mem_notify()
562 i915_ttm_resource_get_st(struct drm_i915_gem_object *obj, in i915_ttm_resource_get_st()
599 static int i915_ttm_truncate(struct drm_i915_gem_object *obj) in i915_ttm_truncate()
[all …]
Di915_gem_shrinker.c25 static bool can_release_pages(struct drm_i915_gem_object *obj) in can_release_pages()
39 static bool drop_pages(struct drm_i915_gem_object *obj, in drop_pages()
58 static int try_to_writeback(struct drm_i915_gem_object *obj, unsigned int flags) in try_to_writeback()
175 struct drm_i915_gem_object *obj; in i915_gem_shrink()
349 struct drm_i915_gem_object *obj; in i915_gem_shrinker_oom()
404 struct drm_i915_gem_object *obj = vma->obj; in i915_gem_shrinker_vmap()
475 void i915_gem_object_make_unshrinkable(struct drm_i915_gem_object *obj) in i915_gem_object_make_unshrinkable()
499 static void ___i915_gem_object_make_shrinkable(struct drm_i915_gem_object *obj, in ___i915_gem_object_make_shrinkable()
534 void __i915_gem_object_make_shrinkable(struct drm_i915_gem_object *obj) in __i915_gem_object_make_shrinkable()
550 void __i915_gem_object_make_purgeable(struct drm_i915_gem_object *obj) in __i915_gem_object_make_purgeable()
[all …]
Di915_gem_shmem.c191 static int shmem_get_pages(struct drm_i915_gem_object *obj) in shmem_get_pages()
275 shmem_truncate(struct drm_i915_gem_object *obj) in shmem_truncate()
333 shmem_writeback(struct drm_i915_gem_object *obj) in shmem_writeback()
338 static int shmem_shrink(struct drm_i915_gem_object *obj, unsigned int flags) in shmem_shrink()
354 __i915_gem_object_release_shmem(struct drm_i915_gem_object *obj, in __i915_gem_object_release_shmem()
383 void i915_gem_object_put_pages_shmem(struct drm_i915_gem_object *obj, struct sg_table *pages) in i915_gem_object_put_pages_shmem()
399 shmem_put_pages(struct drm_i915_gem_object *obj, struct sg_table *pages) in shmem_put_pages()
408 shmem_pwrite(struct drm_i915_gem_object *obj, in shmem_pwrite()
500 shmem_pread(struct drm_i915_gem_object *obj, in shmem_pread()
509 static void shmem_release(struct drm_i915_gem_object *obj) in shmem_release()
[all …]
Di915_gem_internal.h11 struct drm_i915_gem_object;
15 struct drm_i915_gem_object *
18 struct drm_i915_gem_object *
Di915_gem_ttm_pm.c22 void i915_ttm_backup_free(struct drm_i915_gem_object *obj) in i915_ttm_backup_free()
43 struct drm_i915_gem_object *obj) in i915_ttm_backup()
51 struct drm_i915_gem_object *backup; in i915_ttm_backup()
118 struct drm_i915_gem_object *obj) in i915_ttm_recover()
170 struct drm_i915_gem_object *obj) in i915_ttm_restore()
174 struct drm_i915_gem_object *backup = obj->ttm.backup; in i915_ttm_restore()
Di915_gem_mman.c66 struct drm_i915_gem_object *obj; in i915_gem_mmap_ioctl()
133 static unsigned int tile_row_pages(const struct drm_i915_gem_object *obj) in tile_row_pages()
198 compute_partial_view(const struct drm_i915_gem_object *obj, in compute_partial_view()
253 struct drm_i915_gem_object *obj = mmo->obj; in vm_fault_cpu()
297 struct drm_i915_gem_object *obj = mmo->obj; in vm_fault_gtt()
449 struct drm_i915_gem_object *obj = mmo->obj; in vm_access()
496 void __i915_gem_object_release_mmap_gtt(struct drm_i915_gem_object *obj) in __i915_gem_object_release_mmap_gtt()
516 void i915_gem_object_release_mmap_gtt(struct drm_i915_gem_object *obj) in i915_gem_object_release_mmap_gtt()
553 void i915_gem_object_runtime_pm_release_mmap_offset(struct drm_i915_gem_object *obj) in i915_gem_object_runtime_pm_release_mmap_offset()
569 void i915_gem_object_release_mmap_offset(struct drm_i915_gem_object *obj) in i915_gem_object_release_mmap_offset()
[all …]
/linux-6.1.9/drivers/gpu/drm/i915/gt/
Dintel_gtt.h151 struct drm_i915_gem_object;
160 struct drm_i915_gem_object *base;
182 __px_choose_expr(px, struct drm_i915_gem_object *, __x, \
187 struct page *__px_page(struct drm_i915_gem_object *p);
188 dma_addr_t __px_dma(struct drm_i915_gem_object *p);
191 void *__px_vaddr(struct drm_i915_gem_object *p);
251 struct drm_i915_gem_object *scratch[4];
284 struct drm_i915_gem_object *
286 struct drm_i915_gem_object *
432 struct drm_i915_gem_object *obj) in i915_vm_obj_min_alignment()
[all …]
Dintel_gtt.c32 struct drm_i915_gem_object *alloc_pt_lmem(struct i915_address_space *vm, int sz) in alloc_pt_lmem()
34 struct drm_i915_gem_object *obj; in alloc_pt_lmem()
63 struct drm_i915_gem_object *alloc_pt_dma(struct i915_address_space *vm, int sz) in alloc_pt_dma()
65 struct drm_i915_gem_object *obj; in alloc_pt_dma()
84 int map_pt_dma(struct i915_address_space *vm, struct drm_i915_gem_object *obj) in map_pt_dma()
98 int map_pt_dma_locked(struct i915_address_space *vm, struct drm_i915_gem_object *obj) in map_pt_dma_locked()
117 struct drm_i915_gem_object *obj = vma->obj; in clear_vm_list()
287 void *__px_vaddr(struct drm_i915_gem_object *p) in __px_vaddr()
295 dma_addr_t __px_dma(struct drm_i915_gem_object *p) in __px_dma()
301 struct page *__px_page(struct drm_i915_gem_object *p) in __px_page()
[all …]
/linux-6.1.9/drivers/gpu/drm/i915/
Di915_debugfs.h10 struct drm_i915_gem_object;
16 void i915_debugfs_describe_obj(struct seq_file *m, struct drm_i915_gem_object *obj);
19 static inline void i915_debugfs_describe_obj(struct seq_file *m, struct drm_i915_gem_object *obj) {} in i915_debugfs_describe_obj()
/linux-6.1.9/drivers/gpu/drm/i915/gem/selftests/
Dhuge_gem_object.h16 struct drm_i915_gem_object *
22 huge_gem_object_phys_size(struct drm_i915_gem_object *obj) in huge_gem_object_phys_size()
28 huge_gem_object_dma_size(struct drm_i915_gem_object *obj) in huge_gem_object_dma_size()
Dhuge_gem_object.c11 static void huge_free_pages(struct drm_i915_gem_object *obj, in huge_free_pages()
28 static int huge_get_pages(struct drm_i915_gem_object *obj) in huge_get_pages()
81 static void huge_put_pages(struct drm_i915_gem_object *obj, in huge_put_pages()
96 struct drm_i915_gem_object *
102 struct drm_i915_gem_object *obj; in huge_gem_object()

123456