Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/gpu/drm/msm/
Dmsm_gem.c26 struct msm_gem_object *msm_obj = to_msm_bo(obj); in physaddr() local
28 return (((dma_addr_t)msm_obj->vram_node->start) << PAGE_SHIFT) + in physaddr()
34 struct msm_gem_object *msm_obj = to_msm_bo(obj); in use_pages() local
35 return !msm_obj->vram_node; in use_pages()
52 static void sync_for_device(struct msm_gem_object *msm_obj) in sync_for_device() argument
54 struct device *dev = msm_obj->base.dev->dev; in sync_for_device()
56 dma_map_sgtable(dev, msm_obj->sgt, DMA_BIDIRECTIONAL, 0); in sync_for_device()
59 static void sync_for_cpu(struct msm_gem_object *msm_obj) in sync_for_cpu() argument
61 struct device *dev = msm_obj->base.dev->dev; in sync_for_cpu()
63 dma_unmap_sgtable(dev, msm_obj->sgt, DMA_BIDIRECTIONAL, 0); in sync_for_cpu()
[all …]
Dmsm_gem.h222 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()
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.c266 struct msm_gem_object *msm_obj = submit->bos[i].obj; in submit_lock_objects() local
274 ret = dma_resv_lock_interruptible(msm_obj->base.resv, in submit_lock_objects()
300 struct msm_gem_object *msm_obj = submit->bos[contended].obj; in submit_lock_objects() local
302 ret = dma_resv_lock_slow_interruptible(msm_obj->base.resv, in submit_lock_objects()
511 struct msm_gem_object *msm_obj = submit->bos[i].obj; in submit_cleanup() local
514 drm_gem_object_put(&msm_obj->base); in submit_cleanup()
835 struct msm_gem_object *msm_obj; in msm_ioctl_gem_submit() local
839 &msm_obj, &iova, NULL); in msm_ioctl_gem_submit()
845 msm_obj->base.size / 4)) { in msm_ioctl_gem_submit()
856 ret = submit_reloc(submit, msm_obj, submit->cmd[i].offset * 4, in msm_ioctl_gem_submit()
Dmsm_drv.c812 struct msm_gem_object *msm_obj; in msm_ioctl_gem_info() local
837 msm_obj = to_msm_bo(obj); in msm_ioctl_gem_info()
851 if (args->len >= sizeof(msm_obj->name)) { in msm_ioctl_gem_info()
855 if (copy_from_user(msm_obj->name, u64_to_user_ptr(args->value), in msm_ioctl_gem_info()
857 msm_obj->name[0] = '\0'; in msm_ioctl_gem_info()
861 msm_obj->name[args->len] = '\0'; in msm_ioctl_gem_info()
863 if (!isprint(msm_obj->name[i])) { in msm_ioctl_gem_info()
864 msm_obj->name[i] = '\0'; in msm_ioctl_gem_info()
870 if (args->value && (args->len < strlen(msm_obj->name))) { in msm_ioctl_gem_info()
874 args->len = strlen(msm_obj->name); in msm_ioctl_gem_info()
[all …]