Home
last modified time | relevance | path

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

123

/external/elfutils/src/backends/
Dcommon-reloc.c39 #define RELOC_TYPES STRINGIFIED_PASTE (BACKEND, reloc.def)
86 EBLHOOK(reloc_type_name) (int reloc, in EBLHOOK()
90 if (reloc >= 0 && reloc < nreloc && EBLHOOK(reloc_nameidx)[reloc] != 0) in EBLHOOK()
91 return &reloc_namestr[EBLHOOK(reloc_nameidx)[reloc]]; in EBLHOOK()
96 EBLHOOK(reloc_type_check) (int reloc) in EBLHOOK()
98 return reloc >= 0 && reloc < nreloc && EBLHOOK(reloc_nameidx)[reloc] != 0; in EBLHOOK()
102 EBLHOOK(reloc_valid_use) (Elf *elf, int reloc) in EBLHOOK()
104 uint8_t uses = EBLHOOK(reloc_valid)[reloc]; in EBLHOOK()
116 EBLHOOK(copy_reloc_p) (int reloc) in EBLHOOK()
118 return reloc == R_TYPE (COPY); in EBLHOOK()
[all …]
/external/mesa3d/src/gallium/drivers/nv30/
Dnv30_vertprog.c88 struct nv30_shader_reloc *reloc = vp->branch_relocs.data; in nv30_vertprog_validate() local
89 unsigned nr_reloc = vp->branch_relocs.size / sizeof(*reloc); in nv30_vertprog_validate()
106 inst = vp->insns[reloc->location].data; in nv30_vertprog_validate()
107 target = vp->exec->start + reloc->target; in nv30_vertprog_validate()
111 reloc++; in nv30_vertprog_validate()
115 inst = vp->insns[reloc->location].data; in nv30_vertprog_validate()
116 target = vp->exec->start + reloc->target; in nv30_vertprog_validate()
122 reloc++; in nv30_vertprog_validate()
131 struct nv30_shader_reloc *reloc = vp->const_relocs.data; in nv30_vertprog_validate() local
132 unsigned nr_reloc = vp->const_relocs.size / sizeof(*reloc); in nv30_vertprog_validate()
[all …]
Dnvfx_vertprog.c122 struct nvfx_relocation reloc; in emit_src() local
139 reloc.location = vp->nr_insns - 1; in emit_src()
140 reloc.target = src.reg.index; in emit_src()
141 util_dynarray_append(&vp->const_relocs, struct nvfx_relocation, reloc); in emit_src()
466 struct nvfx_relocation reloc; in nvfx_vertprog_parse_instruction() local
709 reloc.location = vpc->vp->nr_insns; in nvfx_vertprog_parse_instruction()
710 reloc.target = finst->Label.Label + 1; in nvfx_vertprog_parse_instruction()
711 util_dynarray_append(&vpc->label_relocs, struct nvfx_relocation, reloc); in nvfx_vertprog_parse_instruction()
721 reloc.location = vpc->vp->nr_insns; in nvfx_vertprog_parse_instruction()
722 reloc.target = finst->Label.Label; in nvfx_vertprog_parse_instruction()
[all …]
Dnvfx_fragprog.c268 struct nvfx_relocation reloc; in nv40_fp_cal() local
280 reloc.target = target; in nv40_fp_cal()
281 reloc.location = fpc->inst_offset + 2; in nv40_fp_cal()
282 util_dynarray_append(&fpc->label_relocs, struct nvfx_relocation, reloc); in nv40_fp_cal()
304 struct nvfx_relocation reloc; in nv40_fp_rep() local
321 reloc.target = target; in nv40_fp_rep()
322 reloc.location = fpc->inst_offset + 3; in nv40_fp_rep()
323 util_dynarray_append(&fpc->label_relocs, struct nvfx_relocation, reloc); in nv40_fp_rep()
331 struct nvfx_relocation reloc; in nv40_fp_bra() local
345 reloc.target = target; in nv40_fp_bra()
[all …]
/external/mesa3d/src/gallium/winsys/radeon/drm/
Dradeon_drm_cs.c199 static INLINE void update_reloc_domains(struct drm_radeon_cs_reloc *reloc, in update_reloc_domains() argument
204 *added_domains = (rd | wd) & ~(reloc->read_domains | reloc->write_domain); in update_reloc_domains()
206 reloc->read_domains |= rd; in update_reloc_domains()
207 reloc->write_domain |= wd; in update_reloc_domains()
212 struct drm_radeon_cs_reloc *reloc; in radeon_get_reloc() local
218 reloc = &csc->relocs[i]; in radeon_get_reloc()
219 if (reloc->handle == bo->handle) { in radeon_get_reloc()
226 reloc = &csc->relocs[i]; in radeon_get_reloc()
227 if (reloc->handle == bo->handle) { in radeon_get_reloc()
253 struct drm_radeon_cs_reloc *reloc; in radeon_add_reloc() local
[all …]
/external/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 …]
/external/mesa3d/src/gallium/winsys/svga/drm/
Dvmw_context.c143 struct vmw_region_relocation *reloc = &vswc->region.relocs[i]; in vmw_swc_flush() local
146 if(!vmw_gmr_bufmgr_region_ptr(reloc->buffer, &ptr)) in vmw_swc_flush()
149 ptr.offset += reloc->offset; in vmw_swc_flush()
151 *reloc->where = ptr; in vmw_swc_flush()
279 struct vmw_region_relocation *reloc; in vmw_swc_region_relocation() local
285 reloc = &vswc->region.relocs[vswc->region.used + vswc->region.staged]; in vmw_swc_region_relocation()
286 reloc->where = where; in vmw_swc_region_relocation()
287 pb_reference(&reloc->buffer, vmw_pb_buffer(buffer)); in vmw_swc_region_relocation()
288 reloc->offset = offset; in vmw_swc_region_relocation()
293 ret = pb_validate_add_buffer(vswc->validate, reloc->buffer, translated_flags); in vmw_swc_region_relocation()
[all …]
/external/elfutils/src/libebl/
Deblnonerelocp.c38 ebl_none_reloc_p (ebl, reloc) in ebl_none_reloc_p() argument
40 int reloc;
42 return ebl->none_reloc_p (reloc);
Deblrelativerelocp.c38 ebl_relative_reloc_p (ebl, reloc) in ebl_relative_reloc_p() argument
40 int reloc;
42 return ebl->relative_reloc_p (reloc);
Deblcopyrelocp.c38 ebl_copy_reloc_p (ebl, reloc) in ebl_copy_reloc_p() argument
40 int reloc;
42 return ebl->copy_reloc_p (reloc);
Deblreloctypecheck.c38 ebl_reloc_type_check (ebl, reloc) in ebl_reloc_type_check() argument
40 int reloc;
42 return ebl != NULL ? ebl->reloc_type_check (reloc) : false;
Deblrelocvaliduse.c38 ebl_reloc_valid_use (ebl, reloc) in ebl_reloc_valid_use() argument
40 int reloc;
42 return ebl != NULL ? ebl->reloc_valid_use (ebl->elf, reloc) : false;
Deblgotpcreloccheck.c39 ebl_gotpc_reloc_check (ebl, reloc) in ebl_gotpc_reloc_check() argument
41 int reloc;
43 return ebl != NULL ? ebl->gotpc_reloc_check (ebl->elf, reloc) : false;
Deblrelocsimpletype.c37 ebl_reloc_simple_type (ebl, reloc) in ebl_reloc_simple_type() argument
39 int reloc;
41 return ebl != NULL ? ebl->reloc_simple_type (ebl, reloc) : ELF_T_NUM;
Deblreloctypename.c39 ebl_reloc_type_name (ebl, reloc, buf, len) in ebl_reloc_type_name() argument
41 int reloc;
47 res = ebl != NULL ? ebl->reloc_type_name (reloc, buf, len) : NULL;
Dlibebl.h83 extern const char *ebl_reloc_type_name (Ebl *ebl, int reloc,
87 extern bool ebl_reloc_type_check (Ebl *ebl, int reloc);
90 extern bool ebl_reloc_valid_use (Ebl *ebl, int reloc);
94 extern Elf_Type ebl_reloc_simple_type (Ebl *ebl, int reloc);
98 extern bool ebl_gotpc_reloc_check (Ebl *ebl, int reloc);
190 extern bool ebl_copy_reloc_p (Ebl *ebl, int reloc);
193 extern bool ebl_none_reloc_p (Ebl *ebl, int reloc);
196 extern bool ebl_relative_reloc_p (Ebl *ebl, int reloc);
/external/libdrm/freedreno/msm/
Dmsm_ringbuffer.c169 struct drm_msm_gem_submit_reloc *reloc = &msm_ring->relocs[i]; in find_next_reloc_idx() local
170 if (reloc->submit_offset >= offset) in find_next_reloc_idx()
263 struct drm_msm_gem_submit_reloc *reloc; in msm_ringbuffer_emit_reloc() local
267 reloc = &msm_ring->relocs[idx]; in msm_ringbuffer_emit_reloc()
269 reloc->reloc_idx = bo2idx(parent, r->bo, r->flags); in msm_ringbuffer_emit_reloc()
270 reloc->reloc_offset = r->offset; in msm_ringbuffer_emit_reloc()
271 reloc->or = r->or; in msm_ringbuffer_emit_reloc()
272 reloc->shift = r->shift; in msm_ringbuffer_emit_reloc()
273 reloc->submit_offset = offset_bytes(ring->cur, ring->start); in msm_ringbuffer_emit_reloc()
/external/llvm/test/Verifier/
Dstatepoint.ll14 …%reloc = call i64 addrspace(1)* @llvm.experimental.gc.relocate.p1i64(i32 %safepoint_token, i32 9, …
18 ret i64 addrspace(1)* %reloc
24 ; CHECK: ret i64 addrspace(1)* %reloc
43 …%reloc = call i64 addrspace(1)* @llvm.experimental.gc.relocate.p1i64(i32 %safepoint_token, i32 9, …
44 call void undef(i64 addrspace(1)* %reloc)
49 ; CHECK-NEXT: %reloc = call
Dinvalid-statepoint2.ll16 …%reloc = call i64 addrspace(1)* @llvm.experimental.gc.relocate.p1i64(i32 %safepoint_token, i32 9, …
17 ret i64 addrspace(1)* %reloc
/external/lldb/source/Plugins/ObjectFile/ELF/
DObjectFileELF.cpp74 RelocUnion reloc; member in __anonacd6c33a0111::ELFRelocation
80 reloc = new ELFRel(); in ELFRelocation()
82 reloc = new ELFRela(); in ELFRelocation()
85 reloc = static_cast<ELFRel*>(NULL); in ELFRelocation()
91 if (reloc.is<ELFRel*>()) in ~ELFRelocation()
92 delete reloc.get<ELFRel*>(); in ~ELFRelocation()
94 delete reloc.get<ELFRela*>(); in ~ELFRelocation()
100 if (reloc.is<ELFRel*>()) in Parse()
101 return reloc.get<ELFRel*>()->Parse(data, offset); in Parse()
103 return reloc.get<ELFRela*>()->Parse(data, offset); in Parse()
[all …]
/external/llvm/test/Object/
Dobjdump-reloc-shared.test1 RUN: llvm-objdump -r %p/Inputs/elf-reloc-no-sym.x86_64 \
4 ; CHECK: elf-reloc-no-sym.x86_64: file format ELF64-x86-64
Delf-reloc-no-sym.test1 RUN: llvm-readobj -r %p/Inputs/elf-reloc-no-sym.x86_64 | FileCheck %s
/external/libdrm/nouveau/
Dpushbuf.c48 struct drm_nouveau_gem_pushbuf_reloc reloc[NOUVEAU_GEM_MAX_RELOCS]; member
231 uint32_t reloc = data; in pushbuf_krel() local
235 krel = &krec->reloc[krec->nr_reloc++]; in pushbuf_krel()
246 reloc = (bkref->presumed.offset + data); in pushbuf_krel()
250 reloc = (bkref->presumed.offset + data) >> 32; in pushbuf_krel()
255 reloc |= vor; in pushbuf_krel()
257 reloc |= tor; in pushbuf_krel()
261 return reloc; in pushbuf_krel()
284 krel = krec->reloc; in pushbuf_dump()
335 req.relocs = (uint64_t)(unsigned long)krec->reloc; in pushbuf_submit()
/external/mesa3d/src/gallium/drivers/r600/
Dr600_hw_context.c172 block->reloc[block->nbo].bo_pm4_index = block->pm4_ndwords - 1; in r600_init_block()
557 pipe_resource_reference((struct pipe_resource**)&block->reloc[k].bo, NULL); in r600_context_fini()
723 (struct pipe_resource**)&reg->block->reloc[reloc_id].bo, in r600_reg_set_block_reloc()
725 reg->block->reloc[reloc_id].bo_usage = reg->bo_usage; in r600_reg_set_block_reloc()
827 struct r600_block_reloc *reloc = &block->reloc[block->pm4_bo_index[j]]; in r600_context_block_emit_dirty() local
828 if (reloc->bo) { in r600_context_block_emit_dirty()
829 block->pm4[reloc->bo_pm4_index] = in r600_context_block_emit_dirty()
830 r600_context_bo_reloc(ctx, reloc->bo, reloc->bo_usage); in r600_context_block_emit_dirty()
832 block->pm4[reloc->bo_pm4_index] = 0; in r600_context_block_emit_dirty()
/external/libdrm/freedreno/
Dfreedreno_ringbuffer.c95 const struct fd_reloc *reloc) in fd_ringbuffer_reloc() argument
97 ring->funcs->emit_reloc(ring, reloc); in fd_ringbuffer_reloc()

123