Home
last modified time | relevance | path

Searched refs:reloc (Results 1 – 25 of 94) sorted by relevance

1234

/third_party/elfutils/backends/
Dcommon-reloc.c39 #define RELOC_TYPES STRINGIFIED_PASTE (BACKEND, reloc.def)
86 EBLHOOK(reloc_type_name) (int reloc, in EBLHOOK()
91 reloc = RELOC_TYPE_ID (reloc); in EBLHOOK()
94 if (reloc >= 0 && reloc < nreloc && EBLHOOK(reloc_nameidx)[reloc] != 0) in EBLHOOK()
95 return reloc_namestr[EBLHOOK(reloc_nameidx)[reloc]]; in EBLHOOK()
100 EBLHOOK(reloc_type_check) (int reloc) in EBLHOOK()
103 reloc = RELOC_TYPE_ID (reloc); in EBLHOOK()
106 return reloc >= 0 && reloc < nreloc && EBLHOOK(reloc_nameidx)[reloc] != 0; in EBLHOOK()
110 EBLHOOK(reloc_valid_use) (Elf *elf, int reloc) in EBLHOOK()
120 reloc = RELOC_TYPE_ID (reloc); in EBLHOOK()
[all …]
/third_party/mesa3d/src/broadcom/clif/
Dclif_dump.c162 struct reloc_worklist_entry *reloc, in clif_dump_gl_shader_state_record() argument
188 for (int i = 0; i < reloc->shader_state.num_attrs; i++) { in clif_dump_gl_shader_state_record()
200 list_for_each_entry_safe(struct reloc_worklist_entry, reloc, in clif_process_worklist()
203 if (!clif_lookup_vaddr(clif, reloc->addr, &vaddr)) { in clif_process_worklist()
205 reloc->addr); in clif_process_worklist()
209 switch (reloc->type) { in clif_process_worklist()
211 clif_dump_cl(clif, reloc->addr, reloc->cl.end, true); in clif_process_worklist()
218 clif_dump_cl(clif, reloc->addr, in clif_process_worklist()
219 reloc->generic_tile_list.end, true); in clif_process_worklist()
297 list_for_each_entry(struct reloc_worklist_entry, reloc, in clif_dump_buffers()
[all …]
Dv3dx_dump.c34 #define __gen_address_offset(reloc) (*reloc) argument
35 #define __gen_emit_reloc(cl, reloc) argument
85 struct reloc_worklist_entry *reloc = in v3dX() local
89 if (reloc) { in v3dX()
90 reloc->shader_state.num_attrs = in v3dX()
103 struct reloc_worklist_entry *reloc = in v3dX() local
107 if (reloc) { in v3dX()
108 reloc->shader_state.num_attrs = in v3dX()
180 struct reloc_worklist_entry *reloc = in v3dX() local
184 reloc->generic_tile_list.end = values.end; in v3dX()
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_vertprog.c91 struct nv30_shader_reloc *reloc = vp->branch_relocs.data; in nv30_vertprog_validate() local
92 unsigned nr_reloc = vp->branch_relocs.size / sizeof(*reloc); in nv30_vertprog_validate()
109 inst = vp->insns[reloc->location].data; in nv30_vertprog_validate()
110 target = vp->exec->start + reloc->target; in nv30_vertprog_validate()
114 reloc++; in nv30_vertprog_validate()
118 inst = vp->insns[reloc->location].data; in nv30_vertprog_validate()
119 target = vp->exec->start + reloc->target; in nv30_vertprog_validate()
125 reloc++; in nv30_vertprog_validate()
134 struct nv30_shader_reloc *reloc = vp->const_relocs.data; in nv30_vertprog_validate() local
135 unsigned nr_reloc = vp->const_relocs.size / sizeof(*reloc); in nv30_vertprog_validate()
[all …]
Dnvfx_vertprog.c126 struct nvfx_relocation reloc; in emit_src() local
143 reloc.location = vp->nr_insns - 1; in emit_src()
144 reloc.target = src.reg.index; in emit_src()
145 util_dynarray_append(&vp->const_relocs, struct nvfx_relocation, reloc); in emit_src()
469 struct nvfx_relocation reloc; in nvfx_vertprog_parse_instruction() local
692 reloc.location = vpc->vp->nr_insns; in nvfx_vertprog_parse_instruction()
693 reloc.target = finst->Label.Label + 1; in nvfx_vertprog_parse_instruction()
694 util_dynarray_append(&vpc->label_relocs, struct nvfx_relocation, reloc); in nvfx_vertprog_parse_instruction()
703 reloc.location = vpc->vp->nr_insns; in nvfx_vertprog_parse_instruction()
704 reloc.target = finst->Label.Label; in nvfx_vertprog_parse_instruction()
[all …]
/third_party/mesa3d/src/freedreno/drm/
Dfreedreno_ringbuffer_sp_reloc.h35 const struct fd_reloc *reloc) in X()
37 (*ring->cur++) = (uint32_t)reloc->iova; in X()
39 (*ring->cur++) = (uint32_t)(reloc->iova >> 32); in X()
44 const struct fd_reloc *reloc) in X()
46 X(emit_reloc_common)(ring, reloc); in X()
54 fd_submit_append_bo(fd_submit, reloc->bo); in X()
58 const struct fd_reloc *reloc) in X()
60 X(emit_reloc_common)(ring, reloc); in X()
72 if (!fd_ringbuffer_references_bo(ring, reloc->bo)) { in X()
73 APPEND(&fd_ring->u, reloc_bos, fd_bo_ref(reloc->bo)); in X()
Dfreedreno_ringbuffer.h129 void (*emit_reloc)(struct fd_ringbuffer *ring, const struct fd_reloc *reloc);
220 fd_ringbuffer_reloc(struct fd_ringbuffer *ring, const struct fd_reloc *reloc) in fd_ringbuffer_reloc() argument
222 ring->funcs->emit_reloc(ring, reloc); in fd_ringbuffer_reloc()
299 struct fd_reloc reloc = { in OUT_RELOC() local
307 fd_ringbuffer_reloc(ring, &reloc); in OUT_RELOC()
/third_party/mesa3d/src/freedreno/drm/virtio/
Dvirtio_ringbuffer.h39 const struct fd_reloc *reloc) in X()
41 (*ring->cur++) = (uint32_t)reloc->iova; in X()
43 (*ring->cur++) = (uint32_t)(reloc->iova >> 32); in X()
48 const struct fd_reloc *reloc) in X()
50 X(emit_reloc_common)(ring, reloc); in X()
58 virtio_submit_append_bo(virtio_submit, reloc->bo); in X()
62 const struct fd_reloc *reloc) in X()
64 X(emit_reloc_common)(ring, reloc); in X()
76 if (!virtio_ringbuffer_references_bo(ring, reloc->bo)) { in X()
77 APPEND(&virtio_ring->u, reloc_bos, fd_bo_ref(reloc->bo)); in X()
/third_party/mesa3d/src/nouveau/codegen/
Dnv50_ir_serialize.cpp78 nv50_ir::RelocInfo *reloc = (nv50_ir::RelocInfo *)info_out->bin.relocData; in nv50_ir_prog_info_out_serialize() local
79 blob_write_uint32(blob, reloc->count); in nv50_ir_prog_info_out_serialize()
80 blob_write_uint32(blob, reloc->codePos); in nv50_ir_prog_info_out_serialize()
81 blob_write_uint32(blob, reloc->libPos); in nv50_ir_prog_info_out_serialize()
82 blob_write_uint32(blob, reloc->dataPos); in nv50_ir_prog_info_out_serialize()
83 blob_write_bytes(blob, reloc->entry, sizeof(*reloc->entry) * reloc->count); in nv50_ir_prog_info_out_serialize()
181 nv50_ir::RelocInfo *reloc = in nv50_ir_prog_info_out_deserialize() local
183 count * sizeof(*reloc->entry)); in nv50_ir_prog_info_out_deserialize()
184 reloc->codePos = blob_read_uint32(&reader); in nv50_ir_prog_info_out_deserialize()
185 reloc->libPos = blob_read_uint32(&reader); in nv50_ir_prog_info_out_deserialize()
[all …]
Dnv50_ir_print.cpp918 nv50_ir::RelocInfo *reloc = (nv50_ir::RelocInfo *)info_out->bin.relocData; in nv50_ir_prog_info_out_print() local
920 INFO(" \"codePos\":\"%d\",\n", reloc->codePos); in nv50_ir_prog_info_out_print()
921 INFO(" \"libPos\":\"%d\",\n", reloc->libPos); in nv50_ir_prog_info_out_print()
922 INFO(" \"dataPos\":\"%d\",\n", reloc->dataPos); in nv50_ir_prog_info_out_print()
923 INFO(" \"count\":\"%d\",\n", reloc->count); in nv50_ir_prog_info_out_print()
925 for (unsigned int i = 0; i < reloc->count; i++) { in nv50_ir_prog_info_out_print()
927reloc->entry[i].data, reloc->entry[i].mask, reloc->entry[i].offset, reloc->entry[i].bitPos, reloc-… in nv50_ir_prog_info_out_print()
/third_party/mesa3d/src/broadcom/vulkan/
Dv3dv_cl.h50 pack_emit_reloc(void *cl, const void *reloc) {} in pack_emit_reloc() argument
54 #define __gen_address_offset(reloc) (((reloc)->bo ? (reloc)->bo->offset : 0) + \ argument
55 (reloc)->offset)
71 struct v3dv_cl_reloc reloc = in __unpack_address() local
73 return reloc; in __unpack_address()
85 struct v3dv_cl_reloc reloc = { in v3dv_cl_address() local
89 return reloc; in v3dv_cl_address()
212 cl_pack_emit_reloc(struct v3dv_cl *cl, const struct v3dv_cl_reloc *reloc) in cl_pack_emit_reloc() argument
214 if (reloc->bo) in cl_pack_emit_reloc()
215 v3dv_job_add_bo(cl->job, reloc->bo); in cl_pack_emit_reloc()
/third_party/libdrm/radeon/
Dradeon_cs_gem.c180 struct cs_reloc_gem *reloc; in cs_gem_write_reloc() local
208 reloc = (struct cs_reloc_gem*)&csg->relocs[idx]; in cs_gem_write_reloc()
209 if (reloc->handle == bo->handle) { in cs_gem_write_reloc()
217 if (write_domain && (reloc->read_domain & write_domain)) { in cs_gem_write_reloc()
218 reloc->read_domain = 0; in cs_gem_write_reloc()
219 reloc->write_domain = write_domain; in cs_gem_write_reloc()
220 } else if (read_domain & reloc->write_domain) { in cs_gem_write_reloc()
221 reloc->read_domain = 0; in cs_gem_write_reloc()
223 if (write_domain != reloc->write_domain) in cs_gem_write_reloc()
225 if (read_domain != reloc->read_domain) in cs_gem_write_reloc()
[all …]
/third_party/mesa3d/src/gallium/drivers/v3d/
Dv3d_cl.h53 #define __gen_address_offset(reloc) (((reloc)->bo ? (reloc)->bo->offset : 0) + \ argument
54 (reloc)->offset)
61 struct v3d_cl_reloc reloc = in __unpack_address() local
63 return reloc; in __unpack_address()
188 struct v3d_cl_reloc reloc = { in cl_address() local
192 return reloc; in cl_address()
286 cl_pack_emit_reloc(struct v3d_cl *cl, const struct v3d_cl_reloc *reloc) in cl_pack_emit_reloc() argument
288 if (reloc->bo) in cl_pack_emit_reloc()
289 v3d_job_add_bo(cl->job, reloc->bo); in cl_pack_emit_reloc()
/third_party/mesa3d/src/gallium/winsys/svga/drm/
Dvmw_context.c218 struct vmw_buffer_relocation *reloc = &vswc->region.relocs[i]; in vmw_swc_flush() local
221 if(!vmw_gmr_bufmgr_region_ptr(reloc->buffer, &ptr)) in vmw_swc_flush()
224 ptr.offset += reloc->offset; in vmw_swc_flush()
226 if (reloc->is_mob) { in vmw_swc_flush()
227 if (reloc->mob.id) in vmw_swc_flush()
228 *reloc->mob.id = ptr.gmrId; in vmw_swc_flush()
229 if (reloc->mob.offset_into_mob) in vmw_swc_flush()
230 *reloc->mob.offset_into_mob = ptr.offset; in vmw_swc_flush()
235 *reloc->region.where = ptr; in vmw_swc_flush()
393 struct vmw_buffer_relocation *reloc; in vmw_swc_region_relocation() local
[all …]
/third_party/elfutils/tests/
Drun-reloc-bpf.sh32 testfiles testfile-bpf-reloc.o testfile-bpf-reloc.expect
33 testrun_compare ${abs_top_builddir}/src/objdump -r testfile-bpf-reloc.o < testfile-bpf-reloc.expect
/third_party/elfutils/libebl/
Dlibebl.h88 extern const char *ebl_reloc_type_name (Ebl *ebl, int reloc,
92 extern bool ebl_reloc_type_check (Ebl *ebl, int reloc);
95 extern bool ebl_reloc_valid_use (Ebl *ebl, int reloc);
101 extern Elf_Type ebl_reloc_simple_type (Ebl *ebl, int reloc, int *addsub);
105 extern bool ebl_gotpc_reloc_check (Ebl *ebl, int reloc);
197 extern bool ebl_copy_reloc_p (Ebl *ebl, int reloc);
200 extern bool ebl_none_reloc_p (Ebl *ebl, int reloc);
203 extern bool ebl_relative_reloc_p (Ebl *ebl, int reloc);
Deblrelativerelocp.c38 ebl_relative_reloc_p (Ebl *ebl, int reloc) in ebl_relative_reloc_p() argument
40 return ebl->relative_reloc_p (reloc); in ebl_relative_reloc_p()
/third_party/elfio/tests/
DELFIOTest.cpp278 const_relocation_section_accessor reloc( reader, sec ); in TEST() local
279 EXPECT_EQ( reloc.get_entries_num(), 1 ); in TEST()
281 checkRelocation( &reloc, 0, 0x08049568, 0x0, "__gmon_start__", in TEST()
391 const_relocation_section_accessor reloc( reader, sec ); in TEST() local
392 EXPECT_EQ( reloc.get_entries_num(), 1 ); in TEST()
394 checkRelocation( &reloc, 0, 0x00600828, 0x0, "__gmon_start__", in TEST()
464 const_relocation_section_accessor reloc( reader, sec ); in TEST() local
465 EXPECT_EQ( reloc.get_entries_num(), 2 ); in TEST()
467 checkRelocation( &reloc, 0, 0x00000005, 0x0, "", R_X86_64_32, 0, 0 ); in TEST()
468 checkRelocation( &reloc, 1, 0x0000000A, 0x0, "puts", R_X86_64_PC32, in TEST()
[all …]
/third_party/mesa3d/src/gallium/drivers/vc4/
Dvc4_cl.h52 #define __gen_address_offset(reloc) ((reloc)->offset) argument
212 struct vc4_cl_reloc reloc = { in cl_address() local
216 return reloc; in cl_address()
280 cl_pack_emit_reloc(struct vc4_cl *cl, const struct vc4_cl_reloc *reloc) in cl_pack_emit_reloc() argument
282 *(uint32_t *)cl->reloc_next = vc4_gem_hindex(cl->job, reloc->bo); in cl_pack_emit_reloc()
/third_party/mesa3d/src/broadcom/compiler/
Dv3d33_vpm_setup.c29 #define __gen_address_offset(reloc) (*reloc) argument
30 #define __gen_emit_reloc(cl, reloc) argument
/third_party/mesa3d/src/gallium/winsys/radeon/drm/
Dradeon_drm_cs.c268 struct drm_radeon_cs_reloc *reloc; in radeon_lookup_or_add_real_buffer() local
309 reloc = &csc->relocs[csc->num_relocs]; in radeon_lookup_or_add_real_buffer()
310 reloc->handle = bo->handle; in radeon_lookup_or_add_real_buffer()
311 reloc->read_domains = 0; in radeon_lookup_or_add_real_buffer()
312 reloc->write_domain = 0; in radeon_lookup_or_add_real_buffer()
313 reloc->flags = 0; in radeon_lookup_or_add_real_buffer()
387 struct drm_radeon_cs_reloc *reloc; in radeon_drm_cs_add_buffer() local
400 reloc = &cs->csc->relocs[index]; in radeon_drm_cs_add_buffer()
401 added_domains = (rd | wd) & ~(reloc->read_domains | reloc->write_domain); in radeon_drm_cs_add_buffer()
402 reloc->read_domains |= rd; in radeon_drm_cs_add_buffer()
[all …]
/third_party/libdrm/freedreno/msm/
Dmsm_ringbuffer.c564 struct drm_msm_gem_submit_reloc *reloc; in msm_ringbuffer_emit_reloc() local
569 reloc = &cmd->relocs[idx]; in msm_ringbuffer_emit_reloc()
571 reloc->reloc_idx = bo2idx(parent, r->bo, r->flags); in msm_ringbuffer_emit_reloc()
572 reloc->reloc_offset = r->offset; in msm_ringbuffer_emit_reloc()
573 reloc->or = r->or; in msm_ringbuffer_emit_reloc()
574 reloc->shift = r->shift; in msm_ringbuffer_emit_reloc()
575 reloc->submit_offset = offset_bytes(ring->cur, ring->start) + in msm_ringbuffer_emit_reloc()
579 if (reloc->shift < 0) in msm_ringbuffer_emit_reloc()
580 addr >>= -reloc->shift; in msm_ringbuffer_emit_reloc()
582 addr <<= reloc->shift; in msm_ringbuffer_emit_reloc()
[all …]
/third_party/libdrm/etnaviv/
Detnaviv_cmd_stream.c251 struct drm_etnaviv_gem_submit_reloc *reloc; in etna_cmd_stream_reloc() local
255 reloc = &priv->submit.relocs[idx]; in etna_cmd_stream_reloc()
257 reloc->reloc_idx = bo2idx(stream, r->bo, r->flags); in etna_cmd_stream_reloc()
258 reloc->reloc_offset = r->offset; in etna_cmd_stream_reloc()
259 reloc->submit_offset = stream->offset * 4; /* in bytes */ in etna_cmd_stream_reloc()
260 reloc->flags = 0; in etna_cmd_stream_reloc()
/third_party/mesa3d/src/etnaviv/drm/
Detnaviv_cmd_stream.c261 struct drm_etnaviv_gem_submit_reloc *reloc; in etna_cmd_stream_reloc() local
268 reloc = &priv->submit.relocs[idx]; in etna_cmd_stream_reloc()
270 reloc->reloc_idx = bo_idx; in etna_cmd_stream_reloc()
271 reloc->reloc_offset = r->offset; in etna_cmd_stream_reloc()
272 reloc->submit_offset = stream->offset * 4; /* in bytes */ in etna_cmd_stream_reloc()
273 reloc->flags = 0; in etna_cmd_stream_reloc()
/third_party/libdrm/freedreno/
Dfreedreno_ringbuffer.c146 const struct fd_reloc *reloc) in fd_ringbuffer_reloc() argument
149 ring->funcs->emit_reloc(ring, reloc); in fd_ringbuffer_reloc()
153 const struct fd_reloc *reloc) in fd_ringbuffer_reloc2() argument
155 ring->funcs->emit_reloc(ring, reloc); in fd_ringbuffer_reloc2()

1234