Searched refs:msm_obj (Results 1 – 5 of 5) sorted by relevance
/drivers/gpu/drm/msm/ |
D | msm_gem.c | 29 struct msm_gem_object *msm_obj = to_msm_bo(obj); in physaddr() local 31 return (((dma_addr_t)msm_obj->vram_node->start) << PAGE_SHIFT) + in physaddr() 37 struct msm_gem_object *msm_obj = to_msm_bo(obj); in use_pages() local 38 return !msm_obj->vram_node; in use_pages() 45 struct msm_gem_object *msm_obj = to_msm_bo(obj); in get_pages_vram() local 55 ret = drm_mm_insert_node(&priv->vram.mm, msm_obj->vram_node, in get_pages_vram() 74 struct msm_gem_object *msm_obj = to_msm_bo(obj); in get_pages() local 76 if (!msm_obj->pages) { in get_pages() 92 msm_obj->pages = p; in get_pages() 94 msm_obj->sgt = drm_prime_pages_to_sg(p, npages); in get_pages() [all …]
|
D | msm_gem_submit.c | 76 struct msm_gem_object *msm_obj; in submit_lookup_objects() local 112 msm_obj = to_msm_bo(obj); in submit_lookup_objects() 114 if (!list_empty(&msm_obj->submit_entry)) { in submit_lookup_objects() 123 submit->bos[i].obj = msm_obj; in submit_lookup_objects() 125 list_add_tail(&msm_obj->submit_entry, &submit->bo_list); in submit_lookup_objects() 140 struct msm_gem_object *msm_obj = submit->bos[i].obj; in submit_unlock_unpin_bo() local 143 msm_gem_put_iova(&msm_obj->base, submit->gpu->id); in submit_unlock_unpin_bo() 146 ww_mutex_unlock(&msm_obj->resv->lock); in submit_unlock_unpin_bo() 163 struct msm_gem_object *msm_obj = submit->bos[i].obj; in submit_validate_objects() local 172 ret = ww_mutex_lock_interruptible(&msm_obj->resv->lock, in submit_validate_objects() [all …]
|
D | msm_gem_prime.c | 25 struct msm_gem_object *msm_obj = to_msm_bo(obj); in msm_gem_prime_get_sg_table() local 28 if (WARN_ON(!msm_obj->pages)) /* should have already pinned! */ in msm_gem_prime_get_sg_table() 31 return drm_prime_pages_to_sg(msm_obj->pages, npages); in msm_gem_prime_get_sg_table() 76 struct msm_gem_object *msm_obj = to_msm_bo(obj); in msm_gem_prime_res_obj() local 78 return msm_obj->resv; in msm_gem_prime_res_obj()
|
D | msm_gem.h | 71 static inline bool is_active(struct msm_gem_object *msm_obj) in is_active() argument 73 return msm_obj->gpu != NULL; in is_active() 76 static inline uint32_t msm_gem_fence(struct msm_gem_object *msm_obj, in msm_gem_fence() argument 82 fence = msm_obj->write_fence; in msm_gem_fence() 84 fence = max(fence, msm_obj->read_fence); in msm_gem_fence()
|
D | msm_gpu.c | 523 struct msm_gem_object *msm_obj = submit->bos[i].obj; in msm_gpu_submit() local 528 WARN_ON(is_active(msm_obj) && (msm_obj->gpu != gpu)); in msm_gpu_submit() 530 if (!is_active(msm_obj)) { in msm_gpu_submit() 534 drm_gem_object_reference(&msm_obj->base); in msm_gpu_submit() 535 msm_gem_get_iova_locked(&msm_obj->base, in msm_gpu_submit() 540 msm_gem_move_to_active(&msm_obj->base, gpu, false, submit->fence); in msm_gpu_submit() 543 msm_gem_move_to_active(&msm_obj->base, gpu, true, submit->fence); in msm_gpu_submit()
|