Lines Matching refs:pmrs
41 submit->pmrs = kcalloc(nr_pmrs, sizeof(struct etnaviv_perfmon_request), in submit_create()
43 if (!submit->pmrs) { in submit_create()
314 u32 exec_state, const struct drm_etnaviv_gem_submit_pmr *pmrs) in submit_perfmon_validate() argument
319 const struct drm_etnaviv_gem_submit_pmr *r = pmrs + i; in submit_perfmon_validate()
348 submit->pmrs[i].flags = r->flags; in submit_perfmon_validate()
349 submit->pmrs[i].domain = r->domain; in submit_perfmon_validate()
350 submit->pmrs[i].signal = r->signal; in submit_perfmon_validate()
351 submit->pmrs[i].sequence = r->sequence; in submit_perfmon_validate()
352 submit->pmrs[i].offset = r->read_offset; in submit_perfmon_validate()
353 submit->pmrs[i].bo_vma = etnaviv_gem_vmap(&bo->obj->base); in submit_perfmon_validate()
402 kfree(submit->pmrs); in submit_cleanup()
418 struct drm_etnaviv_gem_submit_pmr *pmrs; in etnaviv_ioctl_gem_submit() local
471 pmrs = kvmalloc_array(args->nr_pmrs, sizeof(*pmrs), GFP_KERNEL); in etnaviv_ioctl_gem_submit()
473 if (!bos || !relocs || !pmrs || !stream) { in etnaviv_ioctl_gem_submit()
492 ret = copy_from_user(pmrs, u64_to_user_ptr(args->pmrs), in etnaviv_ioctl_gem_submit()
493 args->nr_pmrs * sizeof(*pmrs)); in etnaviv_ioctl_gem_submit()
571 ret = submit_perfmon_validate(submit, args->exec_state, pmrs); in etnaviv_ioctl_gem_submit()
629 kvfree(pmrs); in etnaviv_ioctl_gem_submit()