/linux/arch/mips/boot/tools/ |
A D | Makefile | 3 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
|
A D | relocs.c | 16 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()
|
A D | .gitignore | 2 relocs
|
/linux/drivers/gpu/drm/etnaviv/ |
A D | etnaviv_cmd_parser.c | 17 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()
|
A D | etnaviv_gem_submit.c | 271 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 477 relocs = kvmalloc_array(args->nr_relocs, sizeof(*relocs), GFP_KERNEL); in etnaviv_ioctl_gem_submit() 480 if (!bos || !relocs || !pmrs || !stream) { in etnaviv_ioctl_gem_submit() 492 ret = copy_from_user(relocs, u64_to_user_ptr(args->relocs), in etnaviv_ioctl_gem_submit() 493 args->nr_relocs * sizeof(*relocs)); in etnaviv_ioctl_gem_submit() 545 relocs, args->nr_relocs)) { in etnaviv_ioctl_gem_submit() 563 relocs, args->nr_relocs); in etnaviv_ioctl_gem_submit() 616 kvfree(relocs); in etnaviv_ioctl_gem_submit()
|
/linux/drivers/scsi/sym53c8xx_2/ |
A D | sym_fw.c | 352 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() 475 relocs = 1; in sym_fw_bind_script() [all …]
|
/linux/arch/mips/kvm/ |
A D | entry.c | 291 struct uasm_reloc relocs[2]; in kvm_mips_build_enter_guest() local 296 memset(relocs, 0, sizeof(relocs)); in kvm_mips_build_enter_guest() 437 struct uasm_reloc relocs[2]; in kvm_mips_build_tlb_refill_exception() local 440 struct uasm_reloc *r = relocs; in kvm_mips_build_tlb_refill_exception() 444 memset(relocs, 0, sizeof(relocs)); in kvm_mips_build_tlb_refill_exception() 525 struct uasm_reloc relocs[2]; in kvm_mips_build_exception() local 530 memset(relocs, 0, sizeof(relocs)); in kvm_mips_build_exception() 568 struct uasm_reloc relocs[3]; in kvm_mips_build_exit() local 573 memset(relocs, 0, sizeof(relocs)); in kvm_mips_build_exit() 794 struct uasm_reloc relocs[2]; in kvm_mips_build_ret_from_exit() local [all …]
|
/linux/arch/x86/realmode/rm/ |
A D | Makefile | 18 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)
|
A D | .gitignore | 4 realmode.relocs
|
/linux/drivers/gpu/drm/radeon/ |
A D | radeon_cs.c | 98 if (p->relocs == NULL) { in radeon_cs_parser_relocs() 138 p->relocs[i].preferred_domains = in radeon_cs_parser_relocs() 141 p->relocs[i].allowed_domains = in radeon_cs_parser_relocs() 159 p->relocs[i].allowed_domains = domain; in radeon_cs_parser_relocs() 178 if (!p->relocs[i].allowed_domains) { in radeon_cs_parser_relocs() 185 p->relocs[i].tv.bo = &p->relocs[i].robj->tbo; in radeon_cs_parser_relocs() 441 if (parser->relocs != NULL) { in radeon_cs_parser_fini() 451 kvfree(parser->relocs); in radeon_cs_parser_fini() 526 bo = p->relocs[i].robj; in radeon_bo_vm_update_pte() 876 *cs_reloc = p->relocs; in radeon_cs_packet_next_reloc() [all …]
|
/linux/arch/mips/mm/ |
A D | tlbex.c | 1303 struct uasm_reloc *r = relocs; in build_r4000_tlb_refill_handler() 1311 memset(relocs, 0, sizeof(relocs)); in build_r4000_tlb_refill_handler() 1532 struct uasm_reloc *r = relocs; in build_loongson3_tlb_refill_handler() 1535 memset(relocs, 0, sizeof(relocs)); in build_loongson3_tlb_refill_handler() 1599 memset(relocs, 0, sizeof(relocs)); in build_setup_pgd() 1940 memset(relocs, 0, sizeof(relocs)); in build_r3000_tlb_load_handler() 1970 memset(relocs, 0, sizeof(relocs)); in build_r3000_tlb_store_handler() 2000 memset(relocs, 0, sizeof(relocs)); in build_r3000_tlb_modify_handler() 2117 memset(relocs, 0, sizeof(relocs)); in build_r4000_tlb_load_handler() 2318 memset(relocs, 0, sizeof(relocs)); in build_r4000_tlb_store_handler() [all …]
|
A D | page.c | 68 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()
|
/linux/arch/x86/tools/ |
A D | Makefile | 42 hostprogs += relocs 43 relocs-objs := relocs_32.o relocs_64.o relocs_common.o 44 PHONY += relocs 45 relocs: $(obj)/relocs target
|
A D | relocs.c | 22 struct relocs { struct 28 static struct relocs relocs16; argument 29 static struct relocs relocs32; 31 static struct relocs relocs32neg; 32 static struct relocs relocs64; 705 static void add_reloc(struct relocs *r, uint32_t offset) in add_reloc() 1044 static void sort_relocs(struct relocs *r) in sort_relocs()
|
A D | .gitignore | 2 relocs
|
/linux/arch/x86/boot/compressed/ |
A D | Makefile | 112 targets += $(patsubst $(obj)/%,%,$(vmlinux-objs-y)) vmlinux.bin.all vmlinux.relocs 114 CMD_RELOCS = arch/x86/tools/relocs 116 cmd_relocs = $(CMD_RELOCS) $< > $@;$(CMD_RELOCS) --abs-relocs $< 117 $(obj)/vmlinux.relocs: vmlinux FORCE 118 $(call if_changed,relocs) 121 vmlinux.bin.all-$(CONFIG_X86_NEED_RELOCS) += $(obj)/vmlinux.relocs
|
A D | .gitignore | 2 relocs 4 vmlinux.relocs
|
/linux/include/trace/events/ |
A D | host1x.h | 131 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,
|
/linux/arch/mips/kernel/ |
A D | pm-cps.c | 70 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()
|
/linux/arch/mips/ |
A D | Makefile.postlink | 19 CMD_RELOCS = arch/mips/boot/tools/relocs 31 $(call if_changed,relocs)
|
/linux/scripts/ |
A D | sorttable.h | 209 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()
|
/linux/arch/powerpc/kernel/ |
A D | module_64.c | 191 unsigned long relocs = 1; in get_stubs_size() local 211 relocs += count_relocs((void *)sechdrs[i].sh_addr, in get_stubs_size() 219 relocs++; in get_stubs_size() 222 relocs++; in get_stubs_size() 226 pr_debug("Looks like a total of %lu stubs, max\n", relocs); in get_stubs_size() 227 return relocs * sizeof(struct ppc64_stub_entry); in get_stubs_size()
|
/linux/drivers/gpu/drm/i915/gem/ |
A D | i915_gem_execbuffer.c | 272 struct list_head relocs; member 576 list_add_tail(&ev->reloc_link, &eb->relocs); in eb_add_vma() 890 INIT_LIST_HEAD(&eb->relocs); in eb_lookup_vmas() 1563 size = nreloc * sizeof(*relocs); in eb_copy_relocations() 1566 if (!relocs) { in eb_copy_relocations() 1604 eb->exec[i].relocs_ptr = (uintptr_t)relocs; in eb_copy_relocations() 1612 kvfree(relocs); in eb_copy_relocations() 1616 relocs = u64_to_ptr(typeof(*relocs), eb->exec[i].relocs_ptr); in eb_copy_relocations() 1618 kvfree(relocs); in eb_copy_relocations() 1779 relocs = u64_to_ptr(typeof(*relocs), entry->relocs_ptr); in eb_relocate_parse_slow() [all …]
|
/linux/drivers/gpu/drm/msm/ |
A D | msm_gem_submit.c | 88 kfree(submit->cmd[i].relocs); in __msm_gem_submit_destroy() 203 userptr = u64_to_user_ptr(submit_cmd.relocs); in submit_lookup_cmds() 212 submit->cmd[i].relocs = kmalloc(sz, GFP_KERNEL); in submit_lookup_cmds() 213 ret = copy_from_user(submit->cmd[i].relocs, userptr, sz); in submit_lookup_cmds() 427 uint32_t offset, uint32_t nr_relocs, struct drm_msm_gem_submit_reloc *relocs) in submit_reloc() argument 453 struct drm_msm_gem_submit_reloc submit_reloc = relocs[i]; in submit_reloc() 868 submit->cmd[i].nr_relocs, submit->cmd[i].relocs); in msm_ioctl_gem_submit()
|
/linux/fs/ |
A D | binfmt_flat.c | 445 int i, rev, relocs; in load_flat_file() local 461 relocs = ntohl(hdr->reloc_count); in load_flat_file() 464 full_data = data_len + relocs * sizeof(unsigned long); in load_flat_file() 561 relocs * sizeof(unsigned long)); in load_flat_file() 815 for (i = 0; i < relocs; i++) { in load_flat_file() 865 for (i = 0; i < relocs; i++) { in load_flat_file()
|