Searched refs:msm_obj (Results 1 – 5 of 5) sorted by relevance
/linux-6.3-rc2/drivers/gpu/drm/msm/ |
A D | msm_gem.c | 102 if (!msm_obj->pages) { in get_pages() 118 msm_obj->pages = p; in get_pages() 125 msm_obj->sgt = NULL; in get_pages() 157 if (msm_obj->pages) { in put_pages() 158 if (msm_obj->sgt) { in put_pages() 802 if (!msm_obj->vaddr || GEM_WARN_ON(!is_vunmapable(msm_obj))) in msm_gem_vunmap() 821 } else if (msm_obj->pin_count || msm_obj->vmap_count) { in update_lru() 1008 kfree(msm_obj); in msm_gem_free_object() 1083 msm_obj = kzalloc(sizeof(*msm_obj), GFP_KERNEL); in msm_gem_new_impl() 1084 if (!msm_obj) in msm_gem_new_impl() [all …]
|
A D | msm_gem.h | 222 static inline bool is_unpurgeable(struct msm_gem_object *msm_obj) in is_unpurgeable() argument 224 return msm_obj->base.import_attach || msm_obj->pin_count; in is_unpurgeable() 227 static inline bool is_purgeable(struct msm_gem_object *msm_obj) in is_purgeable() argument 229 return (msm_obj->madv == MSM_MADV_DONTNEED) && msm_obj->sgt && in is_purgeable() 230 !is_unpurgeable(msm_obj); in is_purgeable() 233 static inline bool is_vunmapable(struct msm_gem_object *msm_obj) in is_vunmapable() argument 235 msm_gem_assert_locked(&msm_obj->base); in is_vunmapable() 236 return (msm_obj->vmap_count == 0) && msm_obj->vaddr; in is_vunmapable() 239 static inline bool is_unevictable(struct msm_gem_object *msm_obj) in is_unevictable() argument 241 return is_unpurgeable(msm_obj) || msm_obj->vaddr; in is_unevictable()
|
A D | msm_gem_prime.c | 31 struct msm_gem_object *msm_obj = to_msm_bo(obj); in msm_gem_prime_get_sg_table() local 34 if (WARN_ON(!msm_obj->pages)) /* should have already pinned! */ in msm_gem_prime_get_sg_table() 37 return drm_prime_pages_to_sg(obj->dev, msm_obj->pages, npages); in msm_gem_prime_get_sg_table()
|
A D | msm_gem_submit.c | 270 struct msm_gem_object *msm_obj = submit->bos[i].obj; in submit_lock_objects() local 278 ret = dma_resv_lock_interruptible(msm_obj->base.resv, in submit_lock_objects() 304 struct msm_gem_object *msm_obj = submit->bos[contended].obj; in submit_lock_objects() local 306 ret = dma_resv_lock_slow_interruptible(msm_obj->base.resv, in submit_lock_objects() 525 struct msm_gem_object *msm_obj = submit->bos[i].obj; in submit_cleanup() local 528 drm_gem_object_put(&msm_obj->base); in submit_cleanup() 848 struct msm_gem_object *msm_obj; in msm_ioctl_gem_submit() local 852 &msm_obj, &iova, NULL); in msm_ioctl_gem_submit() 858 msm_obj->base.size / 4)) { in msm_ioctl_gem_submit() 869 ret = submit_reloc(submit, msm_obj, submit->cmd[i].offset * 4, in msm_ioctl_gem_submit()
|
A D | msm_drv.c | 815 struct msm_gem_object *msm_obj; in msm_ioctl_gem_info() local 841 msm_obj = to_msm_bo(obj); in msm_ioctl_gem_info() 864 if (args->len >= sizeof(msm_obj->name)) { in msm_ioctl_gem_info() 868 if (copy_from_user(msm_obj->name, u64_to_user_ptr(args->value), in msm_ioctl_gem_info() 870 msm_obj->name[0] = '\0'; in msm_ioctl_gem_info() 874 msm_obj->name[args->len] = '\0'; in msm_ioctl_gem_info() 876 if (!isprint(msm_obj->name[i])) { in msm_ioctl_gem_info() 877 msm_obj->name[i] = '\0'; in msm_ioctl_gem_info() 883 if (args->value && (args->len < strlen(msm_obj->name))) { in msm_ioctl_gem_info() 887 args->len = strlen(msm_obj->name); in msm_ioctl_gem_info() [all …]
|
Completed in 14 milliseconds