/linux-6.12.1/net/devlink/ |
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-6.12.1/arch/parisc/include/asm/ |
D | elf.h | 65 #define R_PARISC_PCREL32 9 /* 32-bit rel. address. */ 66 #define R_PARISC_PCREL21L 10 /* Left 21 bits of rel. address. */ 67 #define R_PARISC_PCREL17R 11 /* Right 17 bits of rel. address. */ 68 #define R_PARISC_PCREL17F 12 /* 17 bits of rel. address. */ 69 #define R_PARISC_PCREL14R 14 /* Right 14 bits of rel. address. */ 70 #define R_PARISC_DPREL21L 18 /* Left 21 bits of rel. address. */ 71 #define R_PARISC_DPREL14R 22 /* Right 14 bits of rel. address. */ 76 #define R_PARISC_SECREL32 41 /* 32 bits section rel. address. */ 78 #define R_PARISC_SEGREL32 49 /* 32 bits segment rel. address. */ 79 #define R_PARISC_PLTOFF21L 50 /* PLT rel. address, left 21 bits. */ [all …]
|
/linux-6.12.1/arch/um/kernel/ |
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-6.12.1/arch/m68k/kernel/ |
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-6.12.1/arch/csky/kernel/ |
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-6.12.1/arch/x86/kernel/ |
D | module.c | 47 Elf32_Rel *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate() local 53 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate() 56 + rel[i].r_offset; in apply_relocate() 60 + ELF32_R_SYM(rel[i].r_info); in apply_relocate() 62 switch (ELF32_R_TYPE(rel[i].r_info)) { in apply_relocate() 74 me->name, ELF32_R_TYPE(rel[i].r_info)); in apply_relocate() 90 Elf64_Rela *rel = (void *)sechdrs[relsec].sh_addr; in __write_relocate_add() local 99 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in __write_relocate_add() 104 + rel[i].r_offset; in __write_relocate_add() 109 + ELF64_R_SYM(rel[i].r_info); in __write_relocate_add() [all …]
|
/linux-6.12.1/arch/mips/include/asm/ |
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-6.12.1/arch/mips/mm/ |
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-6.12.1/arch/openrisc/kernel/ |
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-6.12.1/arch/arm/kernel/ |
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 …]
|
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-6.12.1/arch/mips/boot/tools/ |
D | relocs.c | 84 const char *name = "unknown type rel type name"; in rel_type() 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 [all …]
|
/linux-6.12.1/arch/sh/kernel/ |
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-6.12.1/arch/x86/tools/ |
D | relocs.c | 249 const char *name = "unknown type rel type name"; in rel_type() 567 Elf_Rel *rel = &sec->reltab[j]; in read_relocs() local 569 rel->r_offset = elf_addr_to_cpu(rel->r_offset); in read_relocs() 570 rel->r_info = elf_xword_to_cpu(rel->r_info); in read_relocs() 572 rel->r_addend = elf_xword_to_cpu(rel->r_addend); in read_relocs() 660 Elf_Rel *rel; in print_absolute_relocs() local 664 rel = &sec->reltab[j]; in print_absolute_relocs() 665 sym = &sh_symtab[ELF_R_SYM(rel->r_info)]; in print_absolute_relocs() 694 rel->r_offset, in print_absolute_relocs() 695 rel->r_info, in print_absolute_relocs() [all …]
|
/linux-6.12.1/arch/arm64/include/asm/ |
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-6.12.1/arch/s390/tools/ |
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-6.12.1/arch/sparc/kernel/ |
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-6.12.1/tools/perf/util/intel-pt-decoder/ |
D | intel-pt-insn-decoder.c | 35 intel_pt_insn->rel = 0; in intel_pt_insn_decoder() 119 case 0xe8: /* call near rel */ 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-6.12.1/arch/mips/kernel/ |
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 …]
|
D | module.c | 256 * @base: the existing value at location for REL-style; 0 for RELA-style 258 * @rela: indication of is this a RELA (true) or REL (false) relocation 261 * relocation to the module @me. Relocs that may be found in either REL or RELA 308 Elf_Mips_Rel *rel; in __apply_relocate() member 321 r.rel = (void *)sechdrs[relsec].sh_addr; in __apply_relocate() 322 reloc_sz = rela ? sizeof(*r.rela) : sizeof(*r.rel); in __apply_relocate() 327 + r.rel->r_offset; in __apply_relocate() 330 + ELF_MIPS_R_SYM(*r.rel); in __apply_relocate() 341 type = ELF_MIPS_R_TYPE(*r.rel); in __apply_relocate() 350 r.rel = &r.rel[1]; in __apply_relocate()
|
/linux-6.12.1/tools/testing/selftests/timers/ |
D | nanosleep.c | 103 struct timespec now, target, rel; in nanosleep_test() local 119 rel.tv_sec = 0; in nanosleep_test() 120 rel.tv_nsec = 0; in nanosleep_test() 121 rel = timespec_add(rel, ns); in nanosleep_test() 123 clock_nanosleep(clockid, 0, &rel, NULL); in nanosleep_test()
|
/linux-6.12.1/sound/soc/qcom/qdsp6/ |
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-6.12.1/tools/perf/arch/x86/tests/ |
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-6.12.1/arch/x86/realmode/ |
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-6.12.1/drivers/bluetooth/ |
D | hci_bcsp.c | 45 struct sk_buff_head rel; /* Reliable packets queue */ member 72 /* Reliable packet sequence number - used to assign seq to each rel pkt. */ 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() [all …]
|