Home
last modified time | relevance | path

Searched refs:msm_obj (Results 1 – 6 of 6) sorted by relevance

/drivers/gpu/drm/msm/
Dmsm_gem.c21 static void update_inactive(struct msm_gem_object *msm_obj);
25 struct msm_gem_object *msm_obj = to_msm_bo(obj); in physaddr() local
27 return (((dma_addr_t)msm_obj->vram_node->start) << PAGE_SHIFT) + in physaddr()
33 struct msm_gem_object *msm_obj = to_msm_bo(obj); in use_pages() local
34 return !msm_obj->vram_node; in use_pages()
51 static void sync_for_device(struct msm_gem_object *msm_obj) in sync_for_device() argument
53 struct device *dev = msm_obj->base.dev->dev; in sync_for_device()
55 dma_map_sgtable(dev, msm_obj->sgt, DMA_BIDIRECTIONAL, 0); in sync_for_device()
58 static void sync_for_cpu(struct msm_gem_object *msm_obj) in sync_for_cpu() argument
60 struct device *dev = msm_obj->base.dev->dev; in sync_for_cpu()
[all …]
Dmsm_gem.h199 static inline bool is_active(struct msm_gem_object *msm_obj) in is_active() argument
201 GEM_WARN_ON(!msm_gem_is_locked(&msm_obj->base)); in is_active()
202 return msm_obj->active_count; in is_active()
206 static inline bool is_unpurgeable(struct msm_gem_object *msm_obj) in is_unpurgeable() argument
208 return msm_obj->base.import_attach || msm_obj->pin_count; in is_unpurgeable()
211 static inline bool is_purgeable(struct msm_gem_object *msm_obj) in is_purgeable() argument
213 return (msm_obj->madv == MSM_MADV_DONTNEED) && msm_obj->sgt && in is_purgeable()
214 !is_unpurgeable(msm_obj); in is_purgeable()
217 static inline bool is_vunmapable(struct msm_gem_object *msm_obj) in is_vunmapable() argument
219 GEM_WARN_ON(!msm_gem_is_locked(&msm_obj->base)); in is_vunmapable()
[all …]
Dmsm_gem_shrinker.c38 purge(struct msm_gem_object *msm_obj) in purge() argument
40 if (!is_purgeable(msm_obj)) in purge()
47 msm_gem_purge(&msm_obj->base); in purge()
53 evict(struct msm_gem_object *msm_obj) in evict() argument
55 if (is_unevictable(msm_obj)) in evict()
58 msm_gem_evict(&msm_obj->base); in evict()
65 bool (*shrink)(struct msm_gem_object *msm_obj)) in scan() argument
75 struct msm_gem_object *msm_obj = list_first_entry_or_null( in scan() local
76 list, typeof(*msm_obj), mm_list); in scan()
78 if (!msm_obj) in scan()
[all …]
Dmsm_gem_prime.c31 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()
Dmsm_gem_submit.c275 struct msm_gem_object *msm_obj = submit->bos[i].obj; in submit_lock_objects() local
283 ret = dma_resv_lock_interruptible(msm_obj->base.resv, in submit_lock_objects()
309 struct msm_gem_object *msm_obj = submit->bos[contended].obj; in submit_lock_objects() local
311 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()
857 struct msm_gem_object *msm_obj; in msm_ioctl_gem_submit() local
861 &msm_obj, &iova, NULL); in msm_ioctl_gem_submit()
867 msm_obj->base.size / 4)) { in msm_ioctl_gem_submit()
878 ret = submit_reloc(submit, msm_obj, submit->cmd[i].offset * 4, in msm_ioctl_gem_submit()
Dmsm_drv.c878 struct msm_gem_object *msm_obj; in msm_ioctl_gem_info() local
902 msm_obj = to_msm_bo(obj); in msm_ioctl_gem_info()
913 if (args->len >= sizeof(msm_obj->name)) { in msm_ioctl_gem_info()
917 if (copy_from_user(msm_obj->name, u64_to_user_ptr(args->value), in msm_ioctl_gem_info()
919 msm_obj->name[0] = '\0'; in msm_ioctl_gem_info()
923 msm_obj->name[args->len] = '\0'; in msm_ioctl_gem_info()
925 if (!isprint(msm_obj->name[i])) { in msm_ioctl_gem_info()
926 msm_obj->name[i] = '\0'; in msm_ioctl_gem_info()
932 if (args->value && (args->len < strlen(msm_obj->name))) { in msm_ioctl_gem_info()
936 args->len = strlen(msm_obj->name); in msm_ioctl_gem_info()
[all …]