Lines Matching refs:submit_reloc
302 static int submit_reloc(struct msm_gem_submit *submit, struct msm_gem_object *obj, in submit_reloc() function
329 struct drm_msm_gem_submit_reloc submit_reloc; in submit_reloc() local
331 u64_to_user_ptr(relocs + (i * sizeof(submit_reloc))); in submit_reloc()
336 if (copy_from_user(&submit_reloc, userptr, sizeof(submit_reloc))) { in submit_reloc()
341 if (submit_reloc.submit_offset % 4) { in submit_reloc()
343 submit_reloc.submit_offset); in submit_reloc()
349 off = submit_reloc.submit_offset / 4; in submit_reloc()
358 ret = submit_bo(submit, submit_reloc.reloc_idx, NULL, &iova, &valid); in submit_reloc()
365 iova += submit_reloc.reloc_offset; in submit_reloc()
367 if (submit_reloc.shift < 0) in submit_reloc()
368 iova >>= -submit_reloc.shift; in submit_reloc()
370 iova <<= submit_reloc.shift; in submit_reloc()
372 ptr[off] = iova | submit_reloc.or; in submit_reloc()
557 ret = submit_reloc(submit, msm_obj, submit_cmd.submit_offset, in msm_ioctl_gem_submit()