Home
last modified time | relevance | path

Searched refs:nr_relocs (Results 1 – 8 of 8) sorted by relevance

/linux-6.1.9/drivers/gpu/drm/etnaviv/
Detnaviv_gem_submit.c261 u32 nr_relocs) in submit_reloc() argument
268 if ((submit->flags & ETNA_SUBMIT_SOFTPIN) && nr_relocs != 0) in submit_reloc()
271 for (i = 0; i < nr_relocs; i++) { in submit_reloc()
459 if (args->stream_size > SZ_128K || args->nr_relocs > SZ_128K || in etnaviv_ioctl_gem_submit()
470 relocs = kvmalloc_array(args->nr_relocs, sizeof(*relocs), GFP_KERNEL); in etnaviv_ioctl_gem_submit()
486 args->nr_relocs * sizeof(*relocs)); in etnaviv_ioctl_gem_submit()
544 relocs, args->nr_relocs)) { in etnaviv_ioctl_gem_submit()
567 relocs, args->nr_relocs); in etnaviv_ioctl_gem_submit()
/linux-6.1.9/drivers/gpu/drm/vc4/
Dvc4_validate.c769 uint32_t nr_attributes, nr_relocs, packet_size; in validate_gl_shader_rec() local
777 nr_relocs = ARRAY_SIZE(shader_reloc_offsets) + nr_attributes; in validate_gl_shader_rec()
778 if (nr_relocs * 4 > exec->shader_rec_size) { in validate_gl_shader_rec()
781 nr_relocs, exec->shader_rec_size); in validate_gl_shader_rec()
785 exec->shader_rec_u += nr_relocs * 4; in validate_gl_shader_rec()
786 exec->shader_rec_size -= nr_relocs * 4; in validate_gl_shader_rec()
803 BUG_ON(roundup(packet_size, 16) - packet_size > nr_relocs * 4); in validate_gl_shader_rec()
817 for (i = shader_reloc_count; i < nr_relocs; i++) { in validate_gl_shader_rec()
/linux-6.1.9/drivers/gpu/drm/msm/
Dmsm_gem_submit.c200 submit->cmd[i].nr_relocs = submit_cmd.nr_relocs; in submit_lookup_cmds()
204 sz = array_size(submit_cmd.nr_relocs, in submit_lookup_cmds()
425 uint32_t offset, uint32_t nr_relocs, struct drm_msm_gem_submit_reloc *relocs) in submit_reloc() argument
431 if (!nr_relocs) in submit_reloc()
450 for (i = 0; i < nr_relocs; i++) { in submit_reloc()
857 submit->cmd[i].nr_relocs, submit->cmd[i].relocs); in msm_ioctl_gem_submit()
Dmsm_gem.h288 uint32_t nr_relocs; member
/linux-6.1.9/include/uapi/drm/
Dnouveau_drm.h107 __u32 nr_relocs; member
Dmsm_drm.h206 __u32 nr_relocs; /* in, number of submit_reloc's */ member
Detnaviv_drm.h202 __u32 nr_relocs; /* in, number of submit_reloc's */ member
/linux-6.1.9/drivers/gpu/drm/nouveau/
Dnouveau_gem.c651 for (i = 0; i < req->nr_relocs; i++) { in nouveau_gem_pushbuf_reloc_apply()
770 if (unlikely(req->nr_relocs > NOUVEAU_GEM_MAX_RELOCS)) { in nouveau_gem_ioctl_pushbuf()
772 req->nr_relocs, NOUVEAU_GEM_MAX_RELOCS); in nouveau_gem_ioctl_pushbuf()
809 reloc = u_memcpya(req->relocs, req->nr_relocs, sizeof(*reloc)); in nouveau_gem_ioctl_pushbuf()