Searched defs:reloc (Results 1 - 25 of 39) sorted by relevance

12

/external/chromium_org/third_party/mesa/src/src/gallium/drivers/nv30/
H A Dnv30_vertprog.c88 struct nv30_shader_reloc *reloc = vp->branch_relocs.data; local
89 unsigned nr_reloc = vp->branch_relocs.size / sizeof(*reloc);
106 inst = vp->insns[reloc->location].data;
107 target = vp->exec->start + reloc->target;
111 reloc++;
115 inst = vp->insns[reloc->location].data;
116 target = vp->exec->start + reloc->target;
122 reloc++;
131 struct nv30_shader_reloc *reloc = vp->const_relocs.data; local
132 unsigned nr_reloc = vp->const_relocs.size / sizeof(*reloc);
[all...]
H A Dnvfx_vertprog.c122 struct nvfx_relocation reloc; local
139 reloc.location = vp->nr_insns - 1;
140 reloc.target = src.reg.index;
141 util_dynarray_append(&vp->const_relocs, struct nvfx_relocation, reloc);
466 struct nvfx_relocation reloc; local
709 reloc.location = vpc->vp->nr_insns;
710 reloc.target = finst->Label.Label + 1;
711 util_dynarray_append(&vpc->label_relocs, struct nvfx_relocation, reloc);
721 reloc.location = vpc->vp->nr_insns;
722 reloc
[all...]
H A Dnvfx_fragprog.c268 struct nvfx_relocation reloc; local
280 reloc.target = target;
281 reloc.location = fpc->inst_offset + 2;
282 util_dynarray_append(&fpc->label_relocs, struct nvfx_relocation, reloc);
304 struct nvfx_relocation reloc; local
321 reloc.target = target;
322 reloc.location = fpc->inst_offset + 3;
323 util_dynarray_append(&fpc->label_relocs, struct nvfx_relocation, reloc);
331 struct nvfx_relocation reloc; local
345 reloc
[all...]
/external/mesa3d/src/gallium/drivers/nv30/
H A Dnv30_vertprog.c88 struct nv30_shader_reloc *reloc = vp->branch_relocs.data; local
89 unsigned nr_reloc = vp->branch_relocs.size / sizeof(*reloc);
106 inst = vp->insns[reloc->location].data;
107 target = vp->exec->start + reloc->target;
111 reloc++;
115 inst = vp->insns[reloc->location].data;
116 target = vp->exec->start + reloc->target;
122 reloc++;
131 struct nv30_shader_reloc *reloc = vp->const_relocs.data; local
132 unsigned nr_reloc = vp->const_relocs.size / sizeof(*reloc);
[all...]
H A Dnvfx_vertprog.c122 struct nvfx_relocation reloc; local
139 reloc.location = vp->nr_insns - 1;
140 reloc.target = src.reg.index;
141 util_dynarray_append(&vp->const_relocs, struct nvfx_relocation, reloc);
466 struct nvfx_relocation reloc; local
709 reloc.location = vpc->vp->nr_insns;
710 reloc.target = finst->Label.Label + 1;
711 util_dynarray_append(&vpc->label_relocs, struct nvfx_relocation, reloc);
721 reloc.location = vpc->vp->nr_insns;
722 reloc
[all...]
H A Dnvfx_fragprog.c268 struct nvfx_relocation reloc; local
280 reloc.target = target;
281 reloc.location = fpc->inst_offset + 2;
282 util_dynarray_append(&fpc->label_relocs, struct nvfx_relocation, reloc);
304 struct nvfx_relocation reloc; local
321 reloc.target = target;
322 reloc.location = fpc->inst_offset + 3;
323 util_dynarray_append(&fpc->label_relocs, struct nvfx_relocation, reloc);
331 struct nvfx_relocation reloc; local
345 reloc
[all...]
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/objfmts/elf/
H A Delf-x86-amd64.c140 elf_reloc_entry *reloc,
144 reloc->addend = yasm_intnum_copy(intn);
149 elf_x86_amd64_map_reloc_info_to_type(elf_reloc_entry *reloc) argument
151 if (reloc->wrt) {
153 yasm_symrec_get_data(reloc->wrt, &elf_ssym_symrec_data);
154 if (!ssym || reloc->valsize != ssym->size)
161 esym = yasm_symrec_get_data(reloc->reloc.sym, &elf_symrec_data);
166 if (reloc->rtype_rel && ssym->reloc
139 elf_x86_amd64_handle_reloc_addend(yasm_intnum *intn, elf_reloc_entry *reloc, unsigned long offset) argument
194 elf_x86_amd64_write_reloc(unsigned char *bufp, elf_reloc_entry *reloc, unsigned int r_type, unsigned int r_sym) argument
[all...]
H A Delf-x86-x86.c139 elf_reloc_entry *reloc,
142 if (!reloc->wrt && reloc->is_GOT_sym && reloc->valsize == 32 && offset != 0)
152 elf_x86_x86_map_reloc_info_to_type(elf_reloc_entry *reloc) argument
154 if (reloc->wrt) {
156 yasm_symrec_get_data(reloc->wrt, &elf_ssym_symrec_data);
157 if (!ssym || reloc->valsize != ssym->size)
164 esym = yasm_symrec_get_data(reloc->reloc
138 elf_x86_x86_handle_reloc_addend(yasm_intnum *intn, elf_reloc_entry *reloc, unsigned long offset) argument
190 elf_x86_x86_write_reloc(unsigned char *bufp, elf_reloc_entry *reloc, unsigned int r_type, unsigned int r_sym) argument
[all...]
H A Delf-machine.h59 elf_reloc_entry *reloc,
61 typedef unsigned int(*func_map_reloc_info_to_type)(elf_reloc_entry *reloc);
63 elf_reloc_entry *reloc,
80 const unsigned int reloc; /* relocation type */ member in struct:__anon16334
H A Delf-objfmt.c451 elf_reloc_entry *reloc; local
456 reloc = elf_reloc_entry_create(sym, NULL,
458 if (reloc == NULL) {
463 elf_secthead_append_reloc(info->sect, info->shead, reloc);
466 elf_handle_reloc_addend(zero, reloc, 0);
481 /*@null@*/ elf_reloc_entry *reloc = NULL; local
550 reloc = elf_reloc_entry_create(sym, wrt,
553 if (reloc == NULL) {
559 elf_secthead_append_reloc(info->sect, info->shead, reloc);
575 if (reloc)
[all...]
H A Delf.c119 /* reloc functions */
170 entry->reloc.sym = sym;
171 entry->reloc.addr = addr;
688 elf_reloc_entry *reloc)
694 if (reloc == NULL)
695 yasm_internal_error("reloc is null");
698 yasm_section_add_reloc(sect, (yasm_reloc *)reloc, elf_reloc_entry_destroy);
721 elf_reloc_entry *reloc,
726 elf_march->handle_reloc_addend(intn, reloc, offset);
757 elf_reloc_entry *reloc; local
687 elf_secthead_append_reloc(yasm_section *sect, elf_secthead *shead, elf_reloc_entry *reloc) argument
720 elf_handle_reloc_addend(yasm_intnum *intn, elf_reloc_entry *reloc, unsigned long offset) argument
[all...]
/external/elfutils/0.153/backends/
H A Dcommon-reloc.c1 /* Common code for ebl reloc functions.
36 #define RELOC_TYPES STRINGIFIED_PASTE (BACKEND, reloc.def)
41 /* Provide a table of reloc type names, in a PIC-friendly fashion. */
83 EBLHOOK(reloc_type_name) (int reloc, argument
87 if (reloc >= 0 && reloc < nreloc && EBLHOOK(reloc_nameidx)[reloc] != 0)
88 return &reloc_namestr[EBLHOOK(reloc_nameidx)[reloc]];
93 EBLHOOK(reloc_type_check) (int reloc) argument
95 return reloc >
99 reloc_valid_use(Elf *elf, int reloc) argument
113 copy_reloc_p(int reloc) argument
119 none_reloc_p(int reloc) argument
126 relative_reloc_p(int reloc) argument
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/winsys/radeon/drm/
H A Dradeon_drm_cs.c49 The adding is skipped if the reloc is already present in the list, but it
60 cs_write_reloc(cs, buf) just writes a reloc that has been added using
199 static INLINE void update_reloc_domains(struct drm_radeon_cs_reloc *reloc, argument
204 *added_domains = (rd | wd) & ~(reloc->read_domains | reloc->write_domain);
206 reloc->read_domains |= rd;
207 reloc->write_domain |= wd;
212 struct drm_radeon_cs_reloc *reloc; local
218 reloc = &csc->relocs[i];
219 if (reloc
253 struct drm_radeon_cs_reloc *reloc; local
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/winsys/svga/drm/
H A Dvmw_context.c143 struct vmw_region_relocation *reloc = &vswc->region.relocs[i]; local
146 if(!vmw_gmr_bufmgr_region_ptr(reloc->buffer, &ptr))
149 ptr.offset += reloc->offset;
151 *reloc->where = ptr;
279 struct vmw_region_relocation *reloc; local
285 reloc = &vswc->region.relocs[vswc->region.used + vswc->region.staged];
286 reloc->where = where;
287 pb_reference(&reloc->buffer, vmw_pb_buffer(buffer));
288 reloc->offset = offset;
293 ret = pb_validate_add_buffer(vswc->validate, reloc
[all...]
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/listfmts/nasm/
H A Dnasm-listfmt.c53 unsigned long offset; /* start of reloc from start of bytecode */
54 size_t size; /* size of reloc in bytes */
102 /* Generate reloc if needed */
104 bcreloc *reloc = yasm_xmalloc(sizeof(bcreloc)); local
105 reloc->offset = offset;
106 reloc->size = destsize;
107 reloc->rel = value->curpos_rel;
108 STAILQ_INSERT_TAIL(&info->bcrelocs, reloc, link);
110 /* Get next reloc's info */
154 /*@null@*/ bcreloc *reloc local
[all...]
/external/llvm/tools/obj2yaml/
H A Dcoff2yaml.cpp68 const object::coff_relocation *reloc = Obj.getCOFFRelocation(Reloc); local
72 Rel.VirtualAddress = reloc->VirtualAddress;
73 Rel.Type = reloc->Type;
/external/mesa3d/src/gallium/winsys/radeon/drm/
H A Dradeon_drm_cs.c49 The adding is skipped if the reloc is already present in the list, but it
60 cs_write_reloc(cs, buf) just writes a reloc that has been added using
199 static INLINE void update_reloc_domains(struct drm_radeon_cs_reloc *reloc, argument
204 *added_domains = (rd | wd) & ~(reloc->read_domains | reloc->write_domain);
206 reloc->read_domains |= rd;
207 reloc->write_domain |= wd;
212 struct drm_radeon_cs_reloc *reloc; local
218 reloc = &csc->relocs[i];
219 if (reloc
253 struct drm_radeon_cs_reloc *reloc; local
[all...]
/external/mesa3d/src/gallium/winsys/svga/drm/
H A Dvmw_context.c143 struct vmw_region_relocation *reloc = &vswc->region.relocs[i]; local
146 if(!vmw_gmr_bufmgr_region_ptr(reloc->buffer, &ptr))
149 ptr.offset += reloc->offset;
151 *reloc->where = ptr;
279 struct vmw_region_relocation *reloc; local
285 reloc = &vswc->region.relocs[vswc->region.used + vswc->region.staged];
286 reloc->where = where;
287 pb_reference(&reloc->buffer, vmw_pb_buffer(buffer));
288 reloc->offset = offset;
293 ret = pb_validate_add_buffer(vswc->validate, reloc
[all...]
/external/chromium_org/base/win/
H A Dpe_image.cc321 PWORD reloc = reinterpret_cast<PWORD>(base + 1); local
325 for (UINT i = 0; i < num_relocs; i++, reloc++) {
326 WORD type = *reloc >> 12;
327 PVOID address = RVAToAddr(base->VirtualAddress + (*reloc & 0x0FFF));
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r600/
H A Dr600_hw_context.c172 block->reloc[block->nbo].bo_pm4_index = block->pm4_ndwords - 1;
557 pipe_resource_reference((struct pipe_resource**)&block->reloc[k].bo, NULL);
710 * If reg needs a reloc, this function will add it to its block's reloc list.
711 * @return true if reg needs a reloc, false otherwise
723 (struct pipe_resource**)&reg->block->reloc[reloc_id].bo,
725 reg->block->reloc[reloc_id].bo_usage = reg->bo_usage;
764 /* Update the reloc for this register if necessary. */
827 struct r600_block_reloc *reloc = &block->reloc[bloc local
[all...]
H A Dr600.h142 struct r600_block_reloc reloc[R600_BLOCK_MAX_BO]; member in struct:r600_block
/external/mesa3d/src/gallium/drivers/r600/
H A Dr600_hw_context.c172 block->reloc[block->nbo].bo_pm4_index = block->pm4_ndwords - 1;
557 pipe_resource_reference((struct pipe_resource**)&block->reloc[k].bo, NULL);
710 * If reg needs a reloc, this function will add it to its block's reloc list.
711 * @return true if reg needs a reloc, false otherwise
723 (struct pipe_resource**)&reg->block->reloc[reloc_id].bo,
725 reg->block->reloc[reloc_id].bo_usage = reg->bo_usage;
764 /* Update the reloc for this register if necessary. */
827 struct r600_block_reloc *reloc = &block->reloc[bloc local
[all...]
H A Dr600.h142 struct r600_block_reloc reloc[R600_BLOCK_MAX_BO]; member in struct:r600_block
/external/chromium_org/third_party/android_crazy_linker/src/src/
H A Dcrazy_linker_elf_relocations.cpp476 const ELF::Addr reloc = static_cast<ELF::Addr>(rela->r_offset + load_bias_); local
478 RLOG(" rela reloc=%p offset=%p type=%d addend=%p\n",
479 reloc,
485 ELF::Addr* CRAZY_UNUSED target = reinterpret_cast<ELF::Addr*>(reloc);
551 *target = sym_addr + (addend - reloc);
570 const ELF::Addr reloc = static_cast<ELF::Addr>(rel->r_offset + load_bias_); local
572 RLOG(" rel reloc=%p offset=%p type=%d\n", reloc, rel->r_offset, rel_type);
575 ELF::Addr* CRAZY_UNUSED target = reinterpret_cast<ELF::Addr*>(reloc);
648 *target += (sym_addr - reloc);
669 ResolveSymbol(ELF::Word rel_type, ELF::Word rel_symbol, const ElfSymbols* symbols, SymbolResolver* resolver, ELF::Addr reloc, ELF::Addr* sym_addr, Error* error) argument
739 ELF::Addr reloc = static_cast<ELF::Addr>(rel->r_offset + load_bias_); local
789 ELF::Addr reloc = static_cast<ELF::Addr>(rela->r_offset + load_bias_); local
[all...]
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/objfmts/rdf/
H A Drdf-objfmt.c69 yasm_reloc reloc; member in struct:rdf_reloc
228 rdf_reloc *reloc; local
232 reloc = yasm_xmalloc(sizeof(rdf_reloc));
233 reloc->reloc.addr = yasm_intnum_create_uint(bc->offset + offset);
234 reloc->reloc.sym = value->rel;
235 reloc->size = valsize/8;
238 reloc->type = RDF_RELOC_SEG;
240 reloc
385 rdf_reloc *reloc; local
[all...]

Completed in 807 milliseconds

12