/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/ |
D | i915_gem_object.h | 21 struct drm_i915_gem_object *i915_gem_object_alloc(void); 22 void i915_gem_object_free(struct drm_i915_gem_object *obj); 24 void i915_gem_object_init(struct drm_i915_gem_object *obj, 27 struct drm_i915_gem_object * 30 struct drm_i915_gem_object * 35 void __i915_gem_object_release_shmem(struct drm_i915_gem_object *obj, 39 int i915_gem_object_attach_phys(struct drm_i915_gem_object *obj, int align); 47 __i915_gem_object_unset_pages(struct drm_i915_gem_object *obj); 48 void i915_gem_object_truncate(struct drm_i915_gem_object *obj); 61 static inline struct drm_i915_gem_object * [all …]
|
D | i915_gem_object_types.h | 16 struct drm_i915_gem_object; 53 int (*get_pages)(struct drm_i915_gem_object *obj); 54 void (*put_pages)(struct drm_i915_gem_object *obj, 56 void (*truncate)(struct drm_i915_gem_object *obj); 57 void (*writeback)(struct drm_i915_gem_object *obj); 59 int (*pread)(struct drm_i915_gem_object *obj, 61 int (*pwrite)(struct drm_i915_gem_object *obj, 64 int (*dmabuf_export)(struct drm_i915_gem_object *obj); 65 void (*release)(struct drm_i915_gem_object *obj); 79 struct drm_i915_gem_object *obj; [all …]
|
D | i915_gem_region.h | 12 struct drm_i915_gem_object; 15 int i915_gem_object_get_pages_buddy(struct drm_i915_gem_object *obj); 16 void i915_gem_object_put_pages_buddy(struct drm_i915_gem_object *obj, 19 void i915_gem_object_init_memory_region(struct drm_i915_gem_object *obj, 22 void i915_gem_object_release_memory_region(struct drm_i915_gem_object *obj); 24 struct drm_i915_gem_object *
|
D | i915_gem_dmabuf.c | 15 static struct drm_i915_gem_object *dma_buf_to_obj(struct dma_buf *buf) in dma_buf_to_obj() 23 struct drm_i915_gem_object *obj = dma_buf_to_obj(attachment->dmabuf); in i915_gem_map_dma_buf() 71 struct drm_i915_gem_object *obj = dma_buf_to_obj(attachment->dmabuf); in i915_gem_unmap_dma_buf() 82 struct drm_i915_gem_object *obj = dma_buf_to_obj(dma_buf); in i915_gem_dmabuf_vmap() 89 struct drm_i915_gem_object *obj = dma_buf_to_obj(dma_buf); in i915_gem_dmabuf_vunmap() 97 struct drm_i915_gem_object *obj = dma_buf_to_obj(dma_buf); in i915_gem_dmabuf_mmap() 118 struct drm_i915_gem_object *obj = dma_buf_to_obj(dma_buf); in i915_gem_begin_cpu_access() 140 struct drm_i915_gem_object *obj = dma_buf_to_obj(dma_buf); in i915_gem_end_cpu_access() 172 struct drm_i915_gem_object *obj = to_intel_bo(gem_obj); in i915_gem_prime_export() 190 static int i915_gem_object_get_pages_dmabuf(struct drm_i915_gem_object *obj) in i915_gem_object_get_pages_dmabuf() [all …]
|
D | i915_gem_object.c | 42 struct drm_i915_gem_object *i915_gem_object_alloc(void) in i915_gem_object_alloc() 47 void i915_gem_object_free(struct drm_i915_gem_object *obj) in i915_gem_object_free() 52 void i915_gem_object_init(struct drm_i915_gem_object *obj, in i915_gem_object_init() 87 void i915_gem_object_set_cache_coherency(struct drm_i915_gem_object *obj, in i915_gem_object_set_cache_coherency() 106 struct drm_i915_gem_object *obj = to_intel_bo(gem); in i915_gem_close_object() 163 struct drm_i915_gem_object *obj = in __i915_gem_free_object_rcu() 174 static void __i915_gem_object_free_mmaps(struct drm_i915_gem_object *obj) in __i915_gem_object_free_mmaps() 200 struct drm_i915_gem_object *obj, *on; in __i915_gem_free_objects() 269 struct drm_i915_gem_object *obj = to_intel_bo(gem_obj); in i915_gem_free_object() 305 static bool gpu_write_needs_clflush(struct drm_i915_gem_object *obj) in gpu_write_needs_clflush() [all …]
|
D | i915_gem_lmem.h | 12 struct drm_i915_gem_object; 17 bool i915_gem_object_is_lmem(struct drm_i915_gem_object *obj); 19 struct drm_i915_gem_object * 24 struct drm_i915_gem_object *
|
D | i915_gem_pages.c | 15 void __i915_gem_object_set_pages(struct drm_i915_gem_object *obj, in __i915_gem_object_set_pages() 86 int ____i915_gem_object_get_pages(struct drm_i915_gem_object *obj) in ____i915_gem_object_get_pages() 110 int __i915_gem_object_get_pages(struct drm_i915_gem_object *obj) in __i915_gem_object_get_pages() 135 void i915_gem_object_truncate(struct drm_i915_gem_object *obj) in i915_gem_object_truncate() 143 void i915_gem_object_writeback(struct drm_i915_gem_object *obj) in i915_gem_object_writeback() 152 static void __i915_gem_object_reset_page_iter(struct drm_i915_gem_object *obj) in __i915_gem_object_reset_page_iter() 163 static void unmap_object(struct drm_i915_gem_object *obj, void *ptr) in unmap_object() 170 __i915_gem_object_unset_pages(struct drm_i915_gem_object *obj) in __i915_gem_object_unset_pages() 202 int __i915_gem_object_put_pages(struct drm_i915_gem_object *obj) in __i915_gem_object_put_pages() 246 static void *i915_gem_object_map_page(struct drm_i915_gem_object *obj, in i915_gem_object_map_page() [all …]
|
D | i915_gem_mman.h | 15 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_release_mmap_offset(struct drm_i915_gem_object *obj);
|
D | i915_gem_domain.c | 18 static void __i915_gem_object_flush_for_display(struct drm_i915_gem_object *obj) in __i915_gem_object_flush_for_display() 30 void i915_gem_object_flush_if_display(struct drm_i915_gem_object *obj) in i915_gem_object_flush_if_display() 40 void i915_gem_object_flush_if_display_locked(struct drm_i915_gem_object *obj) in i915_gem_object_flush_if_display_locked() 55 i915_gem_object_set_to_wc_domain(struct drm_i915_gem_object *obj, bool write) in i915_gem_object_set_to_wc_domain() 116 i915_gem_object_set_to_gtt_domain(struct drm_i915_gem_object *obj, bool write) in i915_gem_object_set_to_gtt_domain() 191 int i915_gem_object_set_cache_level(struct drm_i915_gem_object *obj, in i915_gem_object_set_cache_level() 222 struct drm_i915_gem_object *obj; in i915_gem_get_caching_ioctl() 256 struct drm_i915_gem_object *obj; in i915_gem_set_caching_ioctl() 315 i915_gem_object_pin_to_display_plane(struct drm_i915_gem_object *obj, in i915_gem_object_pin_to_display_plane() 399 i915_gem_object_set_to_cpu_domain(struct drm_i915_gem_object *obj, bool write) in i915_gem_object_set_to_cpu_domain() [all …]
|
D | i915_gem_object_blt.h | 15 struct drm_i915_gem_object; 31 int i915_gem_object_fill_blt(struct drm_i915_gem_object *obj, 35 int i915_gem_object_copy_blt(struct drm_i915_gem_object *src, 36 struct drm_i915_gem_object *dst,
|
D | i915_gem_userptr.c | 40 struct drm_i915_gem_object *obj; 60 __i915_gem_userptr_set_active(struct drm_i915_gem_object *obj, bool value) in __i915_gem_userptr_set_active() 105 struct drm_i915_gem_object *obj; in userptr_mn_invalidate_range_start() 175 i915_gem_userptr_release__mmu_notifier(struct drm_i915_gem_object *obj) in i915_gem_userptr_release__mmu_notifier() 220 i915_gem_userptr_init__mmu_notifier(struct drm_i915_gem_object *obj, in i915_gem_userptr_init__mmu_notifier() 264 __i915_gem_userptr_set_active(struct drm_i915_gem_object *obj, bool value) in __i915_gem_userptr_set_active() 269 i915_gem_userptr_release__mmu_notifier(struct drm_i915_gem_object *obj) in i915_gem_userptr_release__mmu_notifier() 274 i915_gem_userptr_init__mmu_notifier(struct drm_i915_gem_object *obj, in i915_gem_userptr_init__mmu_notifier() 313 i915_gem_userptr_init__mm_struct(struct drm_i915_gem_object *obj) in i915_gem_userptr_init__mm_struct() 384 i915_gem_userptr_release__mm_struct(struct drm_i915_gem_object *obj) in i915_gem_userptr_release__mm_struct() [all …]
|
D | i915_gem_lmem.c | 20 bool i915_gem_object_is_lmem(struct drm_i915_gem_object *obj) in i915_gem_object_is_lmem() 25 struct drm_i915_gem_object * 34 struct drm_i915_gem_object * 41 struct drm_i915_gem_object *obj; in __i915_gem_lmem_object_create()
|
D | i915_gem_clflush.c | 16 struct drm_i915_gem_object *obj; 19 static void __do_clflush(struct drm_i915_gem_object *obj) in __do_clflush() 30 struct drm_i915_gem_object *obj = clflush->obj; in clflush_work() 56 static struct clflush *clflush_work_create(struct drm_i915_gem_object *obj) in clflush_work_create() 72 bool i915_gem_clflush_object(struct drm_i915_gem_object *obj, in i915_gem_clflush_object()
|
D | i915_gem_region.c | 12 i915_gem_object_put_pages_buddy(struct drm_i915_gem_object *obj, in i915_gem_object_put_pages_buddy() 23 i915_gem_object_get_pages_buddy(struct drm_i915_gem_object *obj) in i915_gem_object_get_pages_buddy() 104 void i915_gem_object_init_memory_region(struct drm_i915_gem_object *obj, in i915_gem_object_init_memory_region() 125 void i915_gem_object_release_memory_region(struct drm_i915_gem_object *obj) in i915_gem_object_release_memory_region() 136 struct drm_i915_gem_object * 141 struct drm_i915_gem_object *obj; in i915_gem_object_create_region()
|
D | i915_gem_shmem.c | 28 static int shmem_get_pages(struct drm_i915_gem_object *obj) in shmem_get_pages() 223 shmem_truncate(struct drm_i915_gem_object *obj) in shmem_truncate() 237 shmem_writeback(struct drm_i915_gem_object *obj) in shmem_writeback() 282 __i915_gem_object_release_shmem(struct drm_i915_gem_object *obj, in __i915_gem_object_release_shmem() 300 shmem_put_pages(struct drm_i915_gem_object *obj, struct sg_table *pages) in shmem_put_pages() 335 shmem_pwrite(struct drm_i915_gem_object *obj, in shmem_pwrite() 424 static void shmem_release(struct drm_i915_gem_object *obj) in shmem_release() 467 static struct drm_i915_gem_object * 474 struct drm_i915_gem_object *obj; in create_shmem() 532 struct drm_i915_gem_object * [all …]
|
D | i915_gem_stolen.h | 13 struct drm_i915_gem_object; 25 struct drm_i915_gem_object * 28 struct drm_i915_gem_object *
|
D | i915_gem_shrinker.c | 25 static bool can_release_pages(struct drm_i915_gem_object *obj) in can_release_pages() 39 static bool unsafe_drop_pages(struct drm_i915_gem_object *obj, in unsafe_drop_pages() 56 static void try_to_writeback(struct drm_i915_gem_object *obj, in try_to_writeback() 164 struct drm_i915_gem_object *obj; in i915_gem_shrink() 322 struct drm_i915_gem_object *obj; in i915_gem_shrinker_oom() 431 void i915_gem_object_make_unshrinkable(struct drm_i915_gem_object *obj) in i915_gem_object_make_unshrinkable() 455 static void __i915_gem_object_make_shrinkable(struct drm_i915_gem_object *obj, in __i915_gem_object_make_shrinkable() 481 void i915_gem_object_make_shrinkable(struct drm_i915_gem_object *obj) in i915_gem_object_make_shrinkable() 487 void i915_gem_object_make_purgeable(struct drm_i915_gem_object *obj) in i915_gem_object_make_purgeable()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
D | i915_debugfs.h | 10 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()
|
D | i915_gem_gtt.h | 17 struct drm_i915_gem_object; 20 int __must_check i915_gem_gtt_prepare_pages(struct drm_i915_gem_object *obj, 22 void i915_gem_gtt_finish_pages(struct drm_i915_gem_object *obj,
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/selftests/ |
D | huge_gem_object.h | 16 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()
|
D | huge_pages.c | 59 static int get_huge_pages(struct drm_i915_gem_object *obj) in get_huge_pages() 132 static void put_huge_pages(struct drm_i915_gem_object *obj, in put_huge_pages() 149 static struct drm_i915_gem_object * 155 struct drm_i915_gem_object *obj; in huge_pages_object() 184 static int fake_get_huge_pages(struct drm_i915_gem_object *obj) in fake_get_huge_pages() 239 static int fake_get_huge_pages_single(struct drm_i915_gem_object *obj) in fake_get_huge_pages_single() 272 static void fake_free_huge_pages(struct drm_i915_gem_object *obj, in fake_free_huge_pages() 279 static void fake_put_huge_pages(struct drm_i915_gem_object *obj, in fake_put_huge_pages() 300 static struct drm_i915_gem_object * 304 struct drm_i915_gem_object *obj; in fake_huge_pages_object() [all …]
|
D | huge_gem_object.c | 11 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() 97 struct drm_i915_gem_object * 103 struct drm_i915_gem_object *obj; in huge_gem_object()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/ |
D | intel_gtt.h | 140 struct drm_i915_gem_object; 149 struct drm_i915_gem_object *base; 170 __px_choose_expr(px, struct drm_i915_gem_object *, __x, \ 175 struct page *__px_page(struct drm_i915_gem_object *p); 176 dma_addr_t __px_dma(struct drm_i915_gem_object *p); 244 struct drm_i915_gem_object *scratch[4]; 260 struct drm_i915_gem_object * 508 fill_page_dma(struct drm_i915_gem_object *p, const u64 val, unsigned int count); 519 struct drm_i915_gem_object *alloc_pt_dma(struct i915_address_space *vm, int sz); 524 int pin_pt_dma(struct i915_address_space *vm, struct drm_i915_gem_object *obj); [all …]
|
D | intel_ggtt_fencing.h | 33 struct drm_i915_gem_object; 68 void i915_gem_object_do_bit_17_swizzle(struct drm_i915_gem_object *obj, 70 void i915_gem_object_save_bit_17_swizzle(struct drm_i915_gem_object *obj,
|
D | intel_gtt.c | 14 struct drm_i915_gem_object *alloc_pt_dma(struct i915_address_space *vm, int sz) in alloc_pt_dma() 22 int pin_pt_dma(struct i915_address_space *vm, struct drm_i915_gem_object *obj) in pin_pt_dma() 42 struct drm_i915_gem_object *obj = vma->obj; in __i915_vm_close() 122 dma_addr_t __px_dma(struct drm_i915_gem_object *p) in __px_dma() 128 struct page *__px_page(struct drm_i915_gem_object *p) in __px_page() 135 fill_page_dma(struct drm_i915_gem_object *p, const u64 val, unsigned int count) in fill_page_dma() 146 static void poison_scratch_page(struct drm_i915_gem_object *scratch) in poison_scratch_page() 186 struct drm_i915_gem_object *obj; in setup_scratch_page()
|