/linux/arch/um/kernel/ |
H A D | dyn.lds.S | 35 .rel.init : { *(.rel.init) } 37 .rel.text : { *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*) } 39 .rel.fini : { *(.rel.fini) } 41 .rel.rodata : { *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*) } 43 .rel.data : { *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*) } 45 .rel.tdata : { *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*) } 47 .rel.tbss : { *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*) } 49 .rel.ctors : { *(.rel.ctors) } 51 .rel.dtors : { *(.rel.dtors) } 53 .rel.got : { *(.rel.got) } [all …]
|
/linux/net/devlink/ |
H A D | core.c | 53 static void devlink_rel_free(struct devlink_rel *rel) in devlink_rel_free() argument 55 xa_erase(&devlink_rels, rel->index); in devlink_rel_free() 56 kfree(rel); in devlink_rel_free() 59 static void __devlink_rel_get(struct devlink_rel *rel) in __devlink_rel_get() argument 61 refcount_inc(&rel->refcount); in __devlink_rel_get() 64 static void __devlink_rel_put(struct devlink_rel *rel) in __devlink_rel_put() argument 66 if (refcount_dec_and_test(&rel->refcount)) in __devlink_rel_put() 67 devlink_rel_free(rel); in __devlink_rel_put() 72 struct devlink_rel *rel = container_of(work, struct devlink_rel, in devlink_rel_nested_in_notify_work() local 76 devlink = devlinks_xa_get(rel->nested_in.devlink_index); in devlink_rel_nested_in_notify_work() [all …]
|
/linux/arch/m68k/kernel/ |
H A D | module.c | 29 Elf32_Rel *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate() local 35 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate() 38 + rel[i].r_offset; in apply_relocate() 42 + ELF32_R_SYM(rel[i].r_info); in apply_relocate() 44 switch (ELF32_R_TYPE(rel[i].r_info)) { in apply_relocate() 55 ELF32_R_TYPE(rel[i].r_info)); in apply_relocate() 69 Elf32_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local 75 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 78 + rel[i].r_offset; in apply_relocate_add() 82 + ELF32_R_SYM(rel[i].r_info); in apply_relocate_add() [all …]
|
/linux/arch/csky/kernel/ |
H A D | module.c | 53 Elf32_Rela *rel = (void *) sechdrs[relsec].sh_addr; in apply_relocate_add() local 58 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 61 + rel[i].r_offset; in apply_relocate_add() 63 + ELF32_R_SYM(rel[i].r_info); in apply_relocate_add() 65 switch (ELF32_R_TYPE(rel[i].r_info)) { in apply_relocate_add() 68 *location = rel[i].r_addend + sym->st_value; in apply_relocate_add() 72 *location = rel[i].r_addend + sym->st_value in apply_relocate_add() 83 ((rel[i].r_addend + sym->st_value) >> 16); in apply_relocate_add() 88 ((rel[i].r_addend + sym->st_value) & 0xffff); in apply_relocate_add() 92 me->name, ELF32_R_TYPE(rel[i].r_info)); in apply_relocate_add()
|
/linux/arch/mips/include/asm/ |
H A D | module.h | 51 #define ELF_MIPS_R_SYM(rel) ELF32_R_SYM((rel).r_info) argument 52 #define ELF_MIPS_R_TYPE(rel) ELF32_R_TYPE((rel).r_info) argument 69 #define ELF_MIPS_R_SYM(rel) ((rel).r_sym) argument 70 #define ELF_MIPS_R_TYPE(rel) ((rel).r_type) argument
|
/linux/arch/arm/kernel/ |
H A D | module.c | 82 Elf32_Rel *rel = (void *)relsec->sh_addr; in apply_relocate() local 85 for (i = 0; i < relsec->sh_size / sizeof(Elf32_Rel); i++, rel++) { in apply_relocate() 98 offset = ELF32_R_SYM(rel->r_info); in apply_relocate() 108 if (rel->r_offset < 0 || rel->r_offset > dstsec->sh_size - sizeof(u32)) { in apply_relocate() 111 rel->r_offset, dstsec->sh_size); in apply_relocate() 115 loc = dstsec->sh_addr + rel->r_offset; in apply_relocate() 117 switch (ELF32_R_TYPE(rel->r_info)) { in apply_relocate() 159 ELF32_R_TYPE(rel->r_info), loc, in apply_relocate() 186 ELF32_R_TYPE(rel->r_info), loc, in apply_relocate() 207 if (ELF32_R_TYPE(rel->r_info) == R_ARM_MOVT_PREL || in apply_relocate() [all …]
|
H A D | module-plts.c | 111 static bool is_zero_addend_relocation(Elf32_Addr base, const Elf32_Rel *rel) in is_zero_addend_relocation() argument 113 u32 *tval = (u32 *)(base + rel->r_offset); in is_zero_addend_relocation() 121 switch (ELF32_R_TYPE(rel->r_info)) { in is_zero_addend_relocation() 139 static bool duplicate_rel(Elf32_Addr base, const Elf32_Rel *rel, int num) in duplicate_rel() argument 151 prev = rel + num - 1; in duplicate_rel() 152 return cmp_rel(rel + num, prev) == 0 && in duplicate_rel() 158 const Elf32_Rel *rel, int num, Elf32_Word dstidx) in count_plts() argument 165 switch (ELF32_R_TYPE(rel[i].r_info)) { in count_plts() 182 s = syms + ELF32_R_SYM(rel[i].r_info); in count_plts() 201 if (!is_zero_addend_relocation(base, rel + i) || in count_plts() [all …]
|
/linux/arch/openrisc/kernel/ |
H A D | module.c | 23 Elf32_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local 30 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 33 + rel[i].r_offset; in apply_relocate_add() 38 + ELF32_R_SYM(rel[i].r_info); in apply_relocate_add() 39 value = sym->st_value + rel[i].r_addend; in apply_relocate_add() 41 switch (ELF32_R_TYPE(rel[i].r_info)) { in apply_relocate_add() 70 me->name, ELF32_R_TYPE(rel[i].r_info)); in apply_relocate_add()
|
/linux/arch/sh/kernel/ |
H A D | module.c | 31 Elf32_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local 39 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 42 + rel[i].r_offset; in apply_relocate_add() 46 + ELF32_R_SYM(rel[i].r_info); in apply_relocate_add() 47 relocation = sym->st_value + rel[i].r_addend; in apply_relocate_add() 49 switch (ELF32_R_TYPE(rel[i].r_info)) { in apply_relocate_add() 83 me->name, ELF32_R_TYPE(rel[i].r_info)); in apply_relocate_add()
|
/linux/arch/mips/mm/ |
H A D | uasm.c | 491 void uasm_r_mips_pc16(struct uasm_reloc **rel, u32 *addr, int lid) in uasm_r_mips_pc16() argument 493 (*rel)->addr = addr; in uasm_r_mips_pc16() 494 (*rel)->type = R_MIPS_PC16; in uasm_r_mips_pc16() 495 (*rel)->lab = lid; in uasm_r_mips_pc16() 496 (*rel)++; in uasm_r_mips_pc16() 500 static inline void __resolve_relocs(struct uasm_reloc *rel, 503 void uasm_resolve_relocs(struct uasm_reloc *rel, in uasm_resolve_relocs() argument 508 for (; rel->lab != UASM_LABEL_INVALID; rel++) in uasm_resolve_relocs() 510 if (rel->lab == l->lab) in uasm_resolve_relocs() 511 __resolve_relocs(rel, l); in uasm_resolve_relocs() [all …]
|
/linux/arch/mips/boot/tools/ |
H A D | relocs.c | 386 Elf_Rel *rel = &sec->reltab[j]; in read_relocs() local 388 rel->r_offset = elf_addr_to_cpu(rel->r_offset); in read_relocs() 390 rel->r_offset -= base; in read_relocs() 392 rel->r_info = elf_xword_to_cpu(rel->r_info); in read_relocs() 397 rel->r_info = rel->r_info; in read_relocs() 398 ELF_R_SYM(rel->r_info) = elf32_to_cpu(ELF_R_SYM(rel->r_info)); in read_relocs() 401 rel->r_addend = elf_xword_to_cpu(rel->r_addend); in read_relocs() 467 static void walk_relocs(int (*process)(struct section *sec, Elf_Rel *rel, in walk_relocs() argument 491 Elf_Rel *rel = &sec->reltab[j]; in walk_relocs() local 492 Elf_Sym *sym = &sh_symtab[ELF_R_SYM(rel->r_info)]; in walk_relocs() [all …]
|
/linux/arch/mips/kernel/ |
H A D | vpe.c | 236 int rel; in apply_r_mips_gprel16() local 239 rel = (int)v - gp_addr; in apply_r_mips_gprel16() 243 rel = (int)(short)((int)v + gp_offs + in apply_r_mips_gprel16() 247 if ((rel > 32768) || (rel < -32768)) { in apply_r_mips_gprel16() 249 rel); in apply_r_mips_gprel16() 253 *location = (*location & 0xffff0000) | (rel & 0xffff); in apply_r_mips_gprel16() 261 int rel; in apply_r_mips_pc16() local 262 rel = (((unsigned int)v - (unsigned int)location)); in apply_r_mips_pc16() 263 rel >>= 2; /* because the offset is in _instructions_ not bytes. */ in apply_r_mips_pc16() 264 rel -= 1; /* and one instruction less due to the branch delay slot. */ in apply_r_mips_pc16() [all …]
|
/linux/arch/arm64/include/asm/ |
H A D | atomic_ll_sc.h | 42 #define ATOMIC_OP_RETURN(name, mb, acq, rel, cl, op, asm_op, constraint)\ argument 53 " st" #rel "xr %w1, %w0, %2\n" \ 63 #define ATOMIC_FETCH_OP(name, mb, acq, rel, cl, op, asm_op, constraint) \ argument 74 " st" #rel "xr %w2, %w1, %3\n" \ 138 #define ATOMIC64_OP_RETURN(name, mb, acq, rel, cl, op, asm_op, constraint)\ argument 149 " st" #rel "xr %w1, %0, %2\n" \ 159 #define ATOMIC64_FETCH_OP(name, mb, acq, rel, cl, op, asm_op, constraint)\ argument 170 " st" #rel "xr %w2, %1, %3\n" \ 239 #define __CMPXCHG_CASE(w, sfx, name, sz, mb, acq, rel, cl, constraint) \ argument 261 " st" #rel "xr" #sfx "\t%w[tmp], %" #w "[new], %[v]\n" \ [all …]
|
/linux/arch/sparc/kernel/ |
H A D | module.c | 60 Elf_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add() local 65 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 70 + rel[i].r_offset; in apply_relocate_add() 80 + ELF_R_SYM(rel[i].r_info); in apply_relocate_add() 81 v = sym->st_value + rel[i].r_addend; in apply_relocate_add() 83 switch (ELF_R_TYPE(rel[i].r_info) & 0xff) { in apply_relocate_add() 109 (ELF_R_TYPE(rel[i].r_info) >> 8)) in apply_relocate_add() 146 (int) (ELF_R_TYPE(rel[i].r_info) & 0xff)); in apply_relocate_add()
|
/linux/tools/testing/selftests/timers/ |
H A D | nanosleep.c | 91 struct timespec now, target, rel; in timespec_add() 107 rel.tv_sec = 0; in nanosleep_test() 108 rel.tv_nsec = 0; in nanosleep_test() 109 rel = timespec_add(rel, ns); in nanosleep_test() 111 clock_nanosleep(clockid, 0, &rel, NULL); in nanosleep_test() 103 struct timespec now, target, rel; nanosleep_test() local
|
/linux/arch/x86/realmode/ |
H A D | init.c | 92 const u32 *rel; in setup_real_mode() local 119 rel = (u32 *) real_mode_relocs; in setup_real_mode() 122 count = *rel++; in setup_real_mode() 124 u16 *seg = (u16 *) (base + *rel++); in setup_real_mode() 129 count = *rel++; in setup_real_mode() 131 u32 *ptr = (u32 *) (base + *rel++); in setup_real_mode()
|
/linux/tools/perf/util/intel-pt-decoder/ |
H A D | intel-pt-insn-decoder.c | 35 intel_pt_insn->rel = 0; in intel_pt_insn_decoder() 174 intel_pt_insn->rel = insn->immediate.value; in intel_pt_insn_decoder() 177 intel_pt_insn->rel = in intel_pt_insn_decoder() 181 intel_pt_insn->rel = bswap_32(insn->immediate.value); in intel_pt_insn_decoder() 184 intel_pt_insn->rel = 0; in intel_pt_insn_decoder() 188 intel_pt_insn->rel = insn->immediate.value; in intel_pt_insn_decoder() 274 intel_pt_insn->rel > 0 ? "+" : "", in intel_pt_insn_desc() 275 intel_pt_insn->rel); in intel_pt_insn_desc()
|
/linux/arch/s390/tools/ |
H A D | relocs.c | 240 Elf_Rel *rel = &sec->reltab[j]; in read_relocs() local 242 rel->r_offset = elf_addr_to_cpu(rel->r_offset); in read_relocs() 243 rel->r_info = elf_xword_to_cpu(rel->r_info); in read_relocs() 245 rel->r_addend = elf_xword_to_cpu(rel->r_addend); in read_relocs() 266 static int do_reloc(struct section *sec, Elf_Rel *rel) in do_reloc() argument 268 unsigned int r_type = ELF64_R_TYPE(rel->r_info); in do_reloc() 269 ElfW(Addr) offset = rel->r_offset; in do_reloc() 311 Elf_Rel *rel = &sec->reltab[j]; in walk_relocs() local 313 do_reloc(sec, rel); in walk_relocs()
|
/linux/tools/perf/arch/x86/tests/ |
H A D | gen-insn-x86-dat.awk | 15 rel = 0 44 printf "}, %d, %s, \"%s\", \"%s\",", len, rel, op, branch 48 rel = 0 64 rel = $i
|
/linux/drivers/bluetooth/ |
H A D | hci_bcsp.c | 45 struct sk_buff_head rel; /* Reliable packets queue */ member 147 skb_queue_tail(&bcsp->rel, skb); in bcsp_enqueue() 169 int rel, i; in bcsp_prepare_pkt() local 174 rel = 1; /* reliable channel */ in bcsp_prepare_pkt() 178 rel = 1; /* reliable channel */ in bcsp_prepare_pkt() 182 rel = 0; /* unreliable channel */ in bcsp_prepare_pkt() 186 rel = 0; /* unreliable channel */ in bcsp_prepare_pkt() 190 rel = 0; /* unreliable channel */ in bcsp_prepare_pkt() 230 if (rel) { in bcsp_prepare_pkt() 304 skb = skb_dequeue(&bcsp->rel); in bcsp_dequeue() [all …]
|
/linux/sound/soc/qcom/qdsp6/ |
H A D | q6prm.c | 154 struct prm_cmd_release_rsc *rel; in q6prm_release_lpass_clock() local 159 pkt = audioreach_alloc_cmd_pkt(sizeof(*rel), PRM_CMD_RELEASE_HW_RSC, 0, gdev->svc.id, in q6prm_release_lpass_clock() 164 rel = (void *)pkt + GPR_HDR_SIZE + APM_CMD_HDR_SIZE; in q6prm_release_lpass_clock() 166 param_data = &rel->param_data; in q6prm_release_lpass_clock() 171 param_data->param_size = sizeof(*rel) - APM_MODULE_PARAM_DATA_SIZE; in q6prm_release_lpass_clock() 173 rel->num_clk_id = 1; in q6prm_release_lpass_clock() 174 rel->clock_id.clock_id = clk_id; in q6prm_release_lpass_clock()
|
/linux/scripts/ |
H A D | sphinx-pre-install | 410 my $rel; 412 $rel = $1 if ($system_release =~ /release\s+(\d+)/); 417 if ($rel && $rel < 8) { 426 if ($rel && $rel < 26) { 429 if ($rel && $rel >= 38) { 433 if (!$rel) {
|
/linux/arch/arm64/kvm/ |
H A D | va_layout.c | 91 int32_t *rel; in kvm_apply_hyp_relocations() local 95 for (rel = begin; rel < end; ++rel) { in kvm_apply_hyp_relocations() 102 ptr = (uintptr_t *)lm_alias((char *)rel + *rel); in kvm_apply_hyp_relocations()
|
/linux/drivers/gpu/drm/i915/ |
H A D | intel_device_info.c | 93 if (runtime->graphics.ip.rel) in intel_device_info_print() 96 runtime->graphics.ip.rel); in intel_device_info_print() 101 if (runtime->media.ip.rel) in intel_device_info_print() 104 runtime->media.ip.rel); in intel_device_info_print() 294 u8 expected_rel = ip->rel; in ip_ver_read() 304 ip->rel = REG_FIELD_GET(GMD_ID_RELEASE_MASK, val); in ip_ver_read() 308 if (IP_VER(ip->ver, ip->rel) < IP_VER(expected_ver, expected_rel)) in ip_ver_read() 311 ip->ver, ip->rel, offset, val, expected_ver, expected_rel); in ip_ver_read() 345 RUNTIME_INFO(i915)->graphics.ip.rel = 70; in intel_ipver_early_init()
|
/linux/arch/s390/kernel/ |
H A D | vmlinux.lds.S | 75 .data.rel.ro : { 76 *(.data.rel.ro .data.rel.ro.*) 85 .data.rel : { 86 *(.data.rel*)
|