/external/elfutils/src/backends/ |
D | common-reloc.c | 39 #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/ |
D | nv30_vertprog.c | 88 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 …]
|
D | nvfx_vertprog.c | 122 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 …]
|
D | nvfx_fragprog.c | 268 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/ |
D | radeon_drm_cs.c | 199 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/ |
D | radeon_cs_gem.c | 180 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/ |
D | vmw_context.c | 143 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/ |
D | eblnonerelocp.c | 38 ebl_none_reloc_p (ebl, reloc) in ebl_none_reloc_p() argument 40 int reloc; 42 return ebl->none_reloc_p (reloc);
|
D | eblrelativerelocp.c | 38 ebl_relative_reloc_p (ebl, reloc) in ebl_relative_reloc_p() argument 40 int reloc; 42 return ebl->relative_reloc_p (reloc);
|
D | eblcopyrelocp.c | 38 ebl_copy_reloc_p (ebl, reloc) in ebl_copy_reloc_p() argument 40 int reloc; 42 return ebl->copy_reloc_p (reloc);
|
D | eblreloctypecheck.c | 38 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;
|
D | eblrelocvaliduse.c | 38 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;
|
D | eblgotpcreloccheck.c | 39 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;
|
D | eblrelocsimpletype.c | 37 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;
|
D | eblreloctypename.c | 39 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;
|
D | libebl.h | 83 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/ |
D | msm_ringbuffer.c | 169 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/ |
D | statepoint.ll | 14 …%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
|
D | invalid-statepoint2.ll | 16 …%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/ |
D | ObjectFileELF.cpp | 74 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/ |
D | objdump-reloc-shared.test | 1 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
|
D | elf-reloc-no-sym.test | 1 RUN: llvm-readobj -r %p/Inputs/elf-reloc-no-sym.x86_64 | FileCheck %s
|
/external/libdrm/nouveau/ |
D | pushbuf.c | 48 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/ |
D | r600_hw_context.c | 172 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**)®->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/ |
D | freedreno_ringbuffer.c | 95 const struct fd_reloc *reloc) in fd_ringbuffer_reloc() argument 97 ring->funcs->emit_reloc(ring, reloc); in fd_ringbuffer_reloc()
|