Home
last modified time | relevance | path

Searched refs:relocs (Results 1 – 25 of 63) sorted by relevance

123

/kernel/linux/linux-5.10/arch/mips/boot/tools/
DMakefile3 hostprogs += relocs
4 relocs-objs += relocs_32.o
5 relocs-objs += relocs_64.o
6 relocs-objs += relocs_main.o
7 PHONY += relocs
8 relocs: $(obj)/relocs target
Drelocs.c16 struct relocs { struct
22 static struct relocs relocs; argument
442 static void add_reloc(struct relocs *r, uint32_t offset, unsigned type) in add_reloc()
539 add_reloc(&relocs, rel->r_offset, r_type); in do_reloc()
613 for (i = 0; i < relocs.count; i++) in emit_relocs()
614 size += write_reloc(relocs.offset[i], outf); in emit_relocs()
D.gitignore2 relocs
/kernel/linux/linux-5.10/drivers/gpu/drm/etnaviv/
Detnaviv_cmd_parser.c17 const struct drm_etnaviv_gem_submit_reloc *relocs; member
92 if (state->num_relocs && state->relocs->submit_offset < buf_offset) { in etnaviv_warn_if_non_sensitive()
96 state->relocs->submit_offset); in etnaviv_warn_if_non_sensitive()
98 state->relocs->submit_offset < buf_offset) { in etnaviv_warn_if_non_sensitive()
99 state->relocs++; in etnaviv_warn_if_non_sensitive()
117 state->relocs->submit_offset == buf_offset) { in etnaviv_validate_load_state()
118 state->relocs++; in etnaviv_validate_load_state()
132 state->relocs->submit_offset - in etnaviv_validate_load_state()
149 struct drm_etnaviv_gem_submit_reloc *relocs, in etnaviv_cmd_validate_one() argument
157 state.relocs = relocs; in etnaviv_cmd_validate_one()
Detnaviv_gem_submit.c271 u32 size, const struct drm_etnaviv_gem_submit_reloc *relocs, in submit_reloc() argument
283 const struct drm_etnaviv_gem_submit_reloc *r = relocs + i; in submit_reloc()
430 struct drm_etnaviv_gem_submit_reloc *relocs; in etnaviv_ioctl_gem_submit() local
483 relocs = kvmalloc_array(args->nr_relocs, sizeof(*relocs), GFP_KERNEL); in etnaviv_ioctl_gem_submit()
486 if (!bos || !relocs || !pmrs || !stream) { in etnaviv_ioctl_gem_submit()
498 ret = copy_from_user(relocs, u64_to_user_ptr(args->relocs), in etnaviv_ioctl_gem_submit()
499 args->nr_relocs * sizeof(*relocs)); in etnaviv_ioctl_gem_submit()
551 relocs, args->nr_relocs)) { in etnaviv_ioctl_gem_submit()
569 relocs, args->nr_relocs); in etnaviv_ioctl_gem_submit()
624 if (relocs) in etnaviv_ioctl_gem_submit()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/sym53c8xx_2/
Dsym_fw.c352 int relocs; in sym_fw_bind_script() local
395 relocs = 0; in sym_fw_bind_script()
401 relocs = 1; in sym_fw_bind_script()
407 relocs = 2; in sym_fw_bind_script()
429 relocs = 1; in sym_fw_bind_script()
437 relocs = 0; in sym_fw_bind_script()
447 relocs = 1; in sym_fw_bind_script()
456 relocs = 0; in sym_fw_bind_script()
465 relocs = 0; in sym_fw_bind_script()
467 relocs = 2; in sym_fw_bind_script()
[all …]
/kernel/linux/linux-5.10/arch/x86/realmode/rm/
DMakefile18 always-y := realmode.bin realmode.relocs
52 LDFLAGS_realmode.elf := -m elf_i386 --emit-relocs -T
62 $(obj)/realmode.bin: $(obj)/realmode.elf $(obj)/realmode.relocs FORCE
66 cmd_relocs = arch/x86/tools/relocs --realmode $< > $@
68 targets += realmode.relocs
69 $(obj)/realmode.relocs: $(obj)/realmode.elf FORCE
70 $(call if_changed,relocs)
D.gitignore4 realmode.relocs
/kernel/linux/linux-5.10/arch/mips/kvm/
Dentry.c297 struct uasm_reloc relocs[2]; in kvm_mips_build_enter_guest() local
299 struct uasm_reloc __maybe_unused *r = relocs; in kvm_mips_build_enter_guest()
302 memset(relocs, 0, sizeof(relocs)); in kvm_mips_build_enter_guest()
456 uasm_resolve_relocs(relocs, labels); in kvm_mips_build_enter_guest()
474 struct uasm_reloc relocs[2]; in kvm_mips_build_tlb_refill_exception() local
477 struct uasm_reloc *r = relocs; in kvm_mips_build_tlb_refill_exception()
481 memset(relocs, 0, sizeof(relocs)); in kvm_mips_build_tlb_refill_exception()
562 struct uasm_reloc relocs[2]; in kvm_mips_build_exception() local
564 struct uasm_reloc *r = relocs; in kvm_mips_build_exception()
567 memset(relocs, 0, sizeof(relocs)); in kvm_mips_build_exception()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Dradeon_cs.c96 p->relocs = kvmalloc_array(p->nrelocs, sizeof(struct radeon_bo_list), in radeon_cs_parser_relocs()
98 if (p->relocs == NULL) { in radeon_cs_parser_relocs()
116 p->relocs[i].robj = gem_to_radeon_bo(gobj); in radeon_cs_parser_relocs()
139 p->relocs[i].preferred_domains = in radeon_cs_parser_relocs()
142 p->relocs[i].allowed_domains = in radeon_cs_parser_relocs()
157 p->relocs[i].preferred_domains = domain; in radeon_cs_parser_relocs()
160 p->relocs[i].allowed_domains = domain; in radeon_cs_parser_relocs()
163 if (radeon_ttm_tt_has_userptr(p->rdev, p->relocs[i].robj->tbo.ttm)) { in radeon_cs_parser_relocs()
164 uint32_t domain = p->relocs[i].preferred_domains; in radeon_cs_parser_relocs()
172 p->relocs[i].preferred_domains = domain; in radeon_cs_parser_relocs()
[all …]
/kernel/linux/linux-5.10/arch/x86/tools/
DMakefile42 hostprogs += relocs
43 relocs-objs := relocs_32.o relocs_64.o relocs_common.o
44 PHONY += relocs
45 relocs: $(obj)/relocs target
D.gitignore2 relocs
Drelocs.c18 struct relocs { struct
24 static struct relocs relocs16; argument
25 static struct relocs relocs32;
27 static struct relocs relocs32neg;
28 static struct relocs relocs64;
649 static void add_reloc(struct relocs *r, uint32_t offset) in add_reloc()
986 static void sort_relocs(struct relocs *r) in sort_relocs()
/kernel/linux/linux-5.10/arch/mips/mm/
Dtlbex.c319 static struct uasm_reloc relocs[128]; variable
1308 struct uasm_reloc *r = relocs; in build_r4000_tlb_refill_handler()
1316 memset(relocs, 0, sizeof(relocs)); in build_r4000_tlb_refill_handler()
1393 uasm_copy_handler(relocs, labels, tlb_handler, p, f); in build_r4000_tlb_refill_handler()
1399 && uasm_insn_has_bdelay(relocs, in build_r4000_tlb_refill_handler()
1408 uasm_copy_handler(relocs, labels, tlb_handler, p, f); in build_r4000_tlb_refill_handler()
1445 if (uasm_insn_has_bdelay(relocs, split - 1)) in build_r4000_tlb_refill_handler()
1449 uasm_copy_handler(relocs, labels, tlb_handler, split, f); in build_r4000_tlb_refill_handler()
1456 if (uasm_insn_has_bdelay(relocs, split)) in build_r4000_tlb_refill_handler()
1459 uasm_copy_handler(relocs, labels, in build_r4000_tlb_refill_handler()
[all …]
Dpage.c68 static struct uasm_reloc relocs[5]; variable
280 struct uasm_reloc *r = relocs; in build_clear_page()
289 memset(relocs, 0, sizeof(relocs)); in build_clear_page()
356 uasm_resolve_relocs(relocs, labels); in build_clear_page()
429 struct uasm_reloc *r = relocs; in build_copy_page()
438 memset(relocs, 0, sizeof(relocs)); in build_copy_page()
602 uasm_resolve_relocs(relocs, labels); in build_copy_page()
/kernel/linux/linux-5.10/arch/x86/boot/compressed/
D.gitignore2 relocs
4 vmlinux.relocs
DMakefile116 targets += $(patsubst $(obj)/%,%,$(vmlinux-objs-y)) vmlinux.bin.all vmlinux.relocs
118 CMD_RELOCS = arch/x86/tools/relocs
120 cmd_relocs = $(CMD_RELOCS) $< > $@;$(CMD_RELOCS) --abs-relocs $<
121 $(obj)/vmlinux.relocs: vmlinux FORCE
122 $(call if_changed,relocs)
125 vmlinux.bin.all-$(CONFIG_X86_NEED_RELOCS) += $(obj)/vmlinux.relocs
/kernel/linux/linux-5.10/include/trace/events/
Dhost1x.h131 TP_PROTO(const char *name, u32 cmdbufs, u32 relocs, u32 syncpt_id,
134 TP_ARGS(name, cmdbufs, relocs, syncpt_id, syncpt_incrs),
139 __field(u32, relocs)
147 __entry->relocs = relocs;
154 __entry->name, __entry->cmdbufs, __entry->relocs,
/kernel/linux/linux-5.10/arch/mips/
DMakefile.postlink19 CMD_RELOCS = arch/mips/boot/tools/relocs
31 $(call if_changed,relocs)
/kernel/linux/linux-5.10/tools/objtool/
Delf.c1136 GElf_Rel *relocs; in elf_rebuild_rel_reloc_section() local
1139 size = nr * sizeof(*relocs); in elf_rebuild_rel_reloc_section()
1140 relocs = malloc(size); in elf_rebuild_rel_reloc_section()
1141 if (!relocs) { in elf_rebuild_rel_reloc_section()
1146 sec->data->d_buf = relocs; in elf_rebuild_rel_reloc_section()
1153 relocs[idx].r_offset = reloc->offset; in elf_rebuild_rel_reloc_section()
1154 relocs[idx].r_info = GELF_R_INFO(reloc->sym->idx, reloc->type); in elf_rebuild_rel_reloc_section()
1165 GElf_Rela *relocs; in elf_rebuild_rela_reloc_section() local
1168 size = nr * sizeof(*relocs); in elf_rebuild_rela_reloc_section()
1169 relocs = malloc(size); in elf_rebuild_rela_reloc_section()
[all …]
/kernel/linux/linux-5.10/arch/mips/kernel/
Dpm-cps.c70 static struct uasm_reloc relocs[32]; variable
345 struct uasm_reloc *r = relocs; in cps_gen_entry_code()
374 memset(relocs, 0, sizeof(relocs)); in cps_gen_entry_code()
622 BUG_ON((r - relocs) > ARRAY_SIZE(relocs)); in cps_gen_entry_code()
625 uasm_resolve_relocs(relocs, labels); in cps_gen_entry_code()
/kernel/linux/linux-5.10/scripts/
Dsorttable.h209 Elf_Rel *relocs = NULL; in do_sort() local
249 relocs = (void *)ehdr + _r(&s->sh_offset); in do_sort()
326 if (relocs) in do_sort()
327 memset(relocs, 0, relocs_size); in do_sort()
Dtools-support-relr.sh10 $LD $tmp_file.o -shared -Bsymbolic --pack-dyn-relocs=relr \
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dmodule_64.c199 unsigned long relocs = 1; in get_stubs_size() local
219 relocs += count_relocs((void *)sechdrs[i].sh_addr, in get_stubs_size()
227 relocs++; in get_stubs_size()
230 relocs++; in get_stubs_size()
234 pr_debug("Looks like a total of %lu stubs, max\n", relocs); in get_stubs_size()
235 return relocs * sizeof(struct ppc64_stub_entry); in get_stubs_size()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/
Di915_gem_execbuffer.c258 struct list_head relocs; member
550 list_add_tail(&ev->reloc_link, &eb->relocs); in eb_add_vma()
838 INIT_LIST_HEAD(&eb->relocs); in eb_lookup_vmas()
1759 struct drm_i915_gem_relocation_entry *relocs = in eb_relocate_vma_slow() local
1760 u64_to_ptr(typeof(*relocs), entry->relocs_ptr); in eb_relocate_vma_slow()
1765 u64 offset = eb_relocate_entry(eb, ev, &relocs[i]); in eb_relocate_vma_slow()
1807 struct drm_i915_gem_relocation_entry *relocs; in eb_copy_relocations() local
1826 size = nreloc * sizeof(*relocs); in eb_copy_relocations()
1828 relocs = kvmalloc_array(size, 1, GFP_KERNEL); in eb_copy_relocations()
1829 if (!relocs) { in eb_copy_relocations()
[all …]

123