Home
last modified time | relevance | path

Searched refs:location (Results 1 – 25 of 94) sorted by relevance

1234

/arch/xtensa/kernel/
Dmodule.c28 decode_calln_opcode (unsigned char *location) in decode_calln_opcode() argument
31 return (location[0] & 0xf0) == 0x50; in decode_calln_opcode()
34 return (location[0] & 0xf) == 0x5; in decode_calln_opcode()
39 decode_l32r_opcode (unsigned char *location) in decode_l32r_opcode() argument
42 return (location[0] & 0xf0) == 0x10; in decode_l32r_opcode()
45 return (location[0] & 0xf) == 0x1; in decode_l32r_opcode()
58 unsigned char *location; in apply_relocate_add() local
66 location = (char *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
82 *(uint32_t *)location += value; in apply_relocate_add()
86 if (decode_calln_opcode(location)) { in apply_relocate_add()
[all …]
/arch/microblaze/kernel/
Dmodule.c28 unsigned long int *location; in apply_relocate_add() local
39 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr + in apply_relocate_add()
56 old_value = *location; in apply_relocate_add()
57 *location = value + old_value; in apply_relocate_add()
62 *location = value; in apply_relocate_add()
69 old_value = ((location[0] & 0x0000FFFF) << 16) | in apply_relocate_add()
70 (location[1] & 0x0000FFFF); in apply_relocate_add()
73 location[0] = (location[0] & 0xFFFF0000) | in apply_relocate_add()
75 location[1] = (location[1] & 0xFFFF0000) | in apply_relocate_add()
85 old_value = (location[0] & 0xFFFF) << 16 | in apply_relocate_add()
[all …]
/arch/sh/kernel/
Dmodule.c47 uint32_t *location; in apply_relocate_add() local
54 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
75 value = get_unaligned(location); in apply_relocate_add()
77 put_unaligned(value, location); in apply_relocate_add()
80 relocation = (relocation - (Elf32_Addr) location); in apply_relocate_add()
81 value = get_unaligned(location); in apply_relocate_add()
83 put_unaligned(value, location); in apply_relocate_add()
86 *location = (*location & ~0x3fffc00) | in apply_relocate_add()
90 *location = (*location & ~0x3fffc00) | in apply_relocate_add()
94 relocation -= (Elf32_Addr) location; in apply_relocate_add()
[all …]
/arch/c6x/kernel/
Dmodule.c53 u32 *location, opcode; in apply_relocate_add() local
63 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
76 pr_debug("RELA ABS32: [%p] = 0x%x\n", location, v); in apply_relocate_add()
77 *location = v; in apply_relocate_add()
80 pr_debug("RELA ABS16: [%p] = 0x%x\n", location, v); in apply_relocate_add()
81 *(u16 *)location = v; in apply_relocate_add()
84 pr_debug("RELA ABS8: [%p] = 0x%x\n", location, v); in apply_relocate_add()
85 *(u8 *)location = v; in apply_relocate_add()
88 opcode = *location; in apply_relocate_add()
92 location, v, opcode); in apply_relocate_add()
[all …]
/arch/m32r/kernel/
Dmodule.c81 uint32_t *location; in apply_relocate_add() local
92 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
99 align = (int)location & 3; in apply_relocate_add()
103 COPY_UNALIGNED_WORD (*location, value, align); in apply_relocate_add()
105 COPY_UNALIGNED_WORD (value, *location, align); in apply_relocate_add()
108 COPY_UNALIGNED_WORD (*location, value, align); in apply_relocate_add()
112 COPY_UNALIGNED_WORD (value, *location, align); in apply_relocate_add()
115 COPY_UNALIGNED_WORD (*location, value, align); in apply_relocate_add()
120 COPY_UNALIGNED_WORD (value, *location, align); in apply_relocate_add()
123 hlocation = (unsigned short *)location; in apply_relocate_add()
[all …]
/arch/hexagon/kernel/
Dmodule.c86 uint32_t *location; in apply_relocate_add() local
103 location = loc_base + rela[i].r_offset; in apply_relocate_add()
109 i, value, location, ELF32_R_TYPE(rela[i].r_info), in apply_relocate_add()
115 int dist = (int)(value - (uint32_t)location); in apply_relocate_add()
122 dist, value, (uint32_t)location, in apply_relocate_add()
127 DEBUGP("B22_PCREL contents: %08X.\n", *location); in apply_relocate_add()
128 *location &= ~0x01ff3fff; in apply_relocate_add()
129 *location |= 0x00003fff & dist; in apply_relocate_add()
130 *location |= 0x01ff0000 & (dist<<2); in apply_relocate_add()
131 DEBUGP("Contents after reloc: %08x\n", *location); in apply_relocate_add()
[all …]
/arch/mips/kernel/
Dmodule.c56 static int apply_r_mips_none(struct module *me, u32 *location, in apply_r_mips_none() argument
62 static int apply_r_mips_32(struct module *me, u32 *location, in apply_r_mips_32() argument
65 *location = base + v; in apply_r_mips_32()
70 static int apply_r_mips_26(struct module *me, u32 *location, in apply_r_mips_26() argument
79 if ((v & 0xf0000000) != (((unsigned long)location + 4) & 0xf0000000)) { in apply_r_mips_26()
85 *location = (*location & ~0x03ffffff) | in apply_r_mips_26()
91 static int apply_r_mips_hi16(struct module *me, u32 *location, in apply_r_mips_hi16() argument
97 *location = (*location & 0xffff0000) | in apply_r_mips_hi16()
111 n->addr = (Elf_Addr *)location; in apply_r_mips_hi16()
130 static int apply_r_mips_lo16(struct module *me, u32 *location, in apply_r_mips_lo16() argument
[all …]
Dvpe.c228 static int apply_r_mips_none(struct module *me, uint32_t *location, in apply_r_mips_none() argument
234 static int apply_r_mips_gprel16(struct module *me, uint32_t *location, in apply_r_mips_gprel16() argument
239 if (!(*location & 0xffff)) { in apply_r_mips_gprel16()
245 (int)(short)(*location & 0xffff) - gp_addr); in apply_r_mips_gprel16()
254 *location = (*location & 0xffff0000) | (rel & 0xffff); in apply_r_mips_gprel16()
259 static int apply_r_mips_pc16(struct module *me, uint32_t *location, in apply_r_mips_pc16() argument
263 rel = (((unsigned int)v - (unsigned int)location)); in apply_r_mips_pc16()
273 *location = (*location & 0xffff0000) | (rel & 0xffff); in apply_r_mips_pc16()
278 static int apply_r_mips_32(struct module *me, uint32_t *location, in apply_r_mips_32() argument
281 *location += v; in apply_r_mips_32()
[all …]
/arch/sparc/kernel/
Dmodule.c92 u8 *location; in apply_relocate_add() local
99 location = (u8 *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
101 loc32 = (u32 *) location; in apply_relocate_add()
104 BUG_ON(((u64)location >> (u64)32) != (u64)0); in apply_relocate_add()
115 v -= (Elf_Addr) location; in apply_relocate_add()
120 location[0] = v >> 56; in apply_relocate_add()
121 location[1] = v >> 48; in apply_relocate_add()
122 location[2] = v >> 40; in apply_relocate_add()
123 location[3] = v >> 32; in apply_relocate_add()
124 location[4] = v >> 24; in apply_relocate_add()
[all …]
/arch/powerpc/kernel/
Dmodule_32.c182 static uint32_t do_plt_call(void *location, in do_plt_call() argument
189 pr_debug("Doing plt for call to 0x%x at 0x%x\n", val, (unsigned int)location); in do_plt_call()
191 if (location >= mod->core_layout.base in do_plt_call()
192 && location < mod->core_layout.base + mod->core_layout.size) in do_plt_call()
221 uint32_t *location; in apply_relocate_add() local
228 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
240 *(uint32_t *)location = value; in apply_relocate_add()
245 *(uint16_t *)location = value; in apply_relocate_add()
250 *(uint16_t *)location = (value >> 16); in apply_relocate_add()
258 *(uint16_t *)location = (value + 0x8000) >> 16; in apply_relocate_add()
[all …]
Dmodule_64.c521 unsigned long *location; in apply_relocate_add() local
539 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
546 location, (long)ELF64_R_TYPE(rela[i].r_info), in apply_relocate_add()
556 *(u32 *)location = value; in apply_relocate_add()
561 *(unsigned long *)location = value; in apply_relocate_add()
565 *(unsigned long *)location = my_r2(sechdrs, me); in apply_relocate_add()
576 *((uint16_t *) location) in apply_relocate_add()
577 = (*((uint16_t *) location) & ~0xffff) in apply_relocate_add()
584 *((uint16_t *) location) in apply_relocate_add()
585 = (*((uint16_t *) location) & ~0xffff) in apply_relocate_add()
[all …]
/arch/mn10300/kernel/
Dmodule.c66 uint8_t *location; in apply_relocate_add() local
74 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
105 reloc_put32(location, relocation); in apply_relocate_add()
108 reloc_put24(location, relocation); in apply_relocate_add()
111 reloc_put16(location, relocation); in apply_relocate_add()
114 *location = relocation; in apply_relocate_add()
121 value = relocation - (uint32_t) location; in apply_relocate_add()
122 reloc_put32(location, value); in apply_relocate_add()
125 value = relocation - (uint32_t) location; in apply_relocate_add()
126 reloc_put16(location, value); in apply_relocate_add()
[all …]
/arch/openrisc/kernel/
Dmodule.c29 uint32_t *location; in apply_relocate_add() local
36 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
47 *location = value; in apply_relocate_add()
50 *((uint16_t *)location + 1) = value; in apply_relocate_add()
53 *((uint16_t *)location + 1) = value >> 16; in apply_relocate_add()
56 value -= (uint32_t)location; in apply_relocate_add()
59 value |= *location & 0xfc000000; in apply_relocate_add()
60 *location = value; in apply_relocate_add()
/arch/tile/kernel/
Dbacktrace.c252 static void find_caller_pc_and_caller_sp(CallerLocation *location, in find_caller_pc_and_caller_sp() argument
288 location->sp_location = SP_LOC_OFFSET; in find_caller_pc_and_caller_sp()
289 location->sp_offset = 0; in find_caller_pc_and_caller_sp()
292 location->pc_location = PC_LOC_UNKNOWN; in find_caller_pc_and_caller_sp()
327 location->pc_location = PC_LOC_IN_LR; in find_caller_pc_and_caller_sp()
376 location->pc_location = in find_caller_pc_and_caller_sp()
379 location->pc_location = in find_caller_pc_and_caller_sp()
384 location->pc_location = PC_LOC_UNKNOWN; in find_caller_pc_and_caller_sp()
385 location->sp_location = SP_LOC_UNKNOWN; in find_caller_pc_and_caller_sp()
390 location->sp_location = SP_LOC_IN_R52; in find_caller_pc_and_caller_sp()
[all …]
Dmodule.c130 u64 *location; in apply_relocate_add() local
137 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
151 (*location = ((*location & ~func(-1)) | func(value))) in apply_relocate_add()
158 (*location = swab64((swab64(*location) & ~func(-1)) | func(value))) in apply_relocate_add()
163 *(uint32_t *)location = value; in apply_relocate_add()
178 value -= (unsigned long) location; /* pc-relative */ in apply_relocate_add()
184 *location = value; in apply_relocate_add()
209 value -= (unsigned long) location; /* pc-relative */ in apply_relocate_add()
215 rel[i].r_offset, location); in apply_relocate_add()
/arch/alpha/kernel/
Dmodule.c152 void *base, *location; in apply_relocate_add() local
174 location = base + rela[i].r_offset; in apply_relocate_add()
185 *(u32 *)location = value; in apply_relocate_add()
189 ((u32 *)location)[0] = value; in apply_relocate_add()
190 ((u32 *)location)[1] = value >> 32; in apply_relocate_add()
196 *(u32 *)location = value; in apply_relocate_add()
203 *(u16 *)location = lo; in apply_relocate_add()
209 value = gp - (u64)location; in apply_relocate_add()
214 *(u16 *)location = hi >> 16; in apply_relocate_add()
215 *(u16 *)(location + rela[i].r_addend) = lo; in apply_relocate_add()
[all …]
/arch/metag/kernel/
Dmodule.c162 static uint32_t do_plt_call(void *location, Elf32_Addr val, in do_plt_call() argument
179 if (location >= mod->core_layout.base in do_plt_call()
180 && location < mod->core_layout.base + mod->core_layout.size) in do_plt_call()
208 uint32_t *location; in apply_relocate_add() local
215 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
229 *location = (*location & 0xfff80007) | in apply_relocate_add()
237 put_unaligned(relocation, location); in apply_relocate_add()
240 *location += ((relocation & 0xfff) << 7); in apply_relocate_add()
243 if (*location & (0x7ffff << 5)) { in apply_relocate_add()
253 (uint32_t)location) > 0xfffff) || in apply_relocate_add()
[all …]
/arch/m68k/kernel/
Dmodule.c31 uint32_t *location; in apply_relocate() local
37 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate()
47 *location += sym->st_value; in apply_relocate()
51 *location += sym->st_value - (uint32_t)location; in apply_relocate()
71 uint32_t *location; in apply_relocate_add() local
77 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
87 *location = rel[i].r_addend + sym->st_value; in apply_relocate_add()
91 *location = rel[i].r_addend + sym->st_value - (uint32_t)location; in apply_relocate_add()
/arch/arc/kernel/
Dmodule.c57 Elf32_Addr relocation, location, tgt_addr; in apply_relocate_add() local
80 location = tgt_addr + rel_entry[i].r_offset; in apply_relocate_add()
96 sym_entry->st_value, location, relocation, s); in apply_relocate_add()
106 arc_write_me((unsigned short *)location, relocation); in apply_relocate_add()
108 *((Elf32_Addr *) location) = relocation; in apply_relocate_add()
110 *((Elf32_Addr *) location) = relocation - location; in apply_relocate_add()
/arch/blackfin/kernel/
Dmodule.c161 unsigned long location, value, size; in apply_relocate_add() local
168 location = sechdrs[sechdrs[relsec].sh_info].sh_addr + in apply_relocate_add()
179 if (location >= COREB_L1_DATA_A_START) { in apply_relocate_add()
187 location, value, ELF32_R_TYPE(rel[i].r_info)); in apply_relocate_add()
216 switch (bfin_mem_access_type(location, size)) { in apply_relocate_add()
219 memcpy((void *)location, &value, size); in apply_relocate_add()
222 dma_memcpy((void *)location, &value, size); in apply_relocate_add()
225 isram_memcpy((void *)location, &value, size); in apply_relocate_add()
228 mod_err(mod, "invalid relocation for %#lx\n", location); in apply_relocate_add()
/arch/arm/boot/dts/
Defm32gg-dk3750.dts31 energymicro,location = <3>;
48 energymicro,location = <1>;
62 energymicro,location = <1>;
75 energymicro,location = <2>;
/arch/ia64/kernel/
Dmodule.c619 Elf64_Shdr *sec, void *location) in do_reloc() argument
635 case RV_PLTREL: val = get_plt(mod, location, val, &ok); break; in do_reloc()
643 if ((in_init(mod, val) && in_core(mod, (uint64_t)location)) || in do_reloc()
644 (in_core(mod, val) && in_init(mod, (uint64_t)location))) { in do_reloc()
649 uint64_t delta = ((int64_t)val - (int64_t)location) / 16; in do_reloc()
652 val = get_plt(mod, location, val, &ok); in do_reloc()
655 val = get_plt(mod, location, val, &ok); in do_reloc()
658 val -= bundle(location); in do_reloc()
665 val -= (uint64_t) location; in do_reloc()
697 val -= bundle(location); in do_reloc()
[all …]
/arch/x86/kernel/
Dmodule.c110 uint32_t *location; in apply_relocate() local
116 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate()
126 *location += sym->st_value; in apply_relocate()
130 *location += sym->st_value - (uint32_t)location; in apply_relocate()
Dmachine_kexec_64.c440 void *location; in arch_kexec_apply_relocations_add() local
485 location = (void *)(section->sh_offset + rel[i].r_offset); in arch_kexec_apply_relocations_add()
535 *(u64 *)location = value; in arch_kexec_apply_relocations_add()
538 *(u32 *)location = value; in arch_kexec_apply_relocations_add()
539 if (value != *(u32 *)location) in arch_kexec_apply_relocations_add()
543 *(s32 *)location = value; in arch_kexec_apply_relocations_add()
544 if ((s64)value != *(s32 *)location) in arch_kexec_apply_relocations_add()
550 *(u32 *)location = value; in arch_kexec_apply_relocations_add()
/arch/ia64/sn/kernel/sn2/
Dsn_hwperf.c89 static int sn_hwperf_location_to_bpos(char *location, in sn_hwperf_location_to_bpos() argument
95 if (sscanf(location, "%03d%c%02d#%d", in sn_hwperf_location_to_bpos()
99 if (sscanf(location, "%03d%c%02d^%02d#%d", in sn_hwperf_location_to_bpos()
106 static int sn_hwperf_geoid_to_cnode(char *location) in sn_hwperf_geoid_to_cnode() argument
114 if (sn_hwperf_location_to_bpos(location, &rack, &bay, &slot, &slab)) in sn_hwperf_geoid_to_cnode()
143 return sn_hwperf_geoid_to_cnode(obj->location); in sn_hwperf_obj_to_cnode()
443 seq_printf(s, "%s %d %s %s asic %s", slabname, ordinal, obj->location, in sn_topology_show()
479 i, obj->location, slice, in sn_topology_show()
515 ordinal+pt, obj->location, ptdata[pt].port); in sn_topology_show()
541 p->location, ptdata[pt].conn_port, in sn_topology_show()
[all …]

1234