Searched refs:location (Results 1 - 25 of 63) sorted by relevance

123

/arch/mips/kernel/
H A Dmodule-rela.c26 extern int apply_r_mips_none(struct module *me, u32 *location, Elf_Addr v);
28 static int apply_r_mips_32_rela(struct module *me, u32 *location, Elf_Addr v) argument
30 *location = v;
35 static int apply_r_mips_26_rela(struct module *me, u32 *location, Elf_Addr v) argument
43 if ((v & 0xf0000000) != (((unsigned long)location + 4) & 0xf0000000)) {
50 *location = (*location & ~0x03ffffff) | ((v >> 2) & 0x03ffffff);
55 static int apply_r_mips_hi16_rela(struct module *me, u32 *location, Elf_Addr v) argument
57 *location = (*location
63 apply_r_mips_lo16_rela(struct module *me, u32 *location, Elf_Addr v) argument
70 apply_r_mips_64_rela(struct module *me, u32 *location, Elf_Addr v) argument
77 apply_r_mips_higher_rela(struct module *me, u32 *location, Elf_Addr v) argument
86 apply_r_mips_highest_rela(struct module *me, u32 *location, Elf_Addr v) argument
113 u32 *location; local
[all...]
H A Dmodule.c55 int apply_r_mips_none(struct module *me, u32 *location, Elf_Addr v) argument
60 static int apply_r_mips_32_rel(struct module *me, u32 *location, Elf_Addr v) argument
62 *location += v;
67 static int apply_r_mips_26_rel(struct module *me, u32 *location, Elf_Addr v) argument
75 if ((v & 0xf0000000) != (((unsigned long)location + 4) & 0xf0000000)) {
82 *location = (*location & ~0x03ffffff) |
83 ((*location + (v >> 2)) & 0x03ffffff);
88 static int apply_r_mips_hi16_rel(struct module *me, u32 *location, Elf_Addr v) argument
101 n->addr = (Elf_Addr *)location;
120 apply_r_mips_lo16_rel(struct module *me, u32 *location, Elf_Addr v) argument
201 u32 *location; local
[all...]
H A Dvpe.c228 static int apply_r_mips_none(struct module *me, uint32_t *location, argument
234 static int apply_r_mips_gprel16(struct module *me, uint32_t *location, argument
239 if (!(*location & 0xffff)) {
245 (int)(short)(*location & 0xffff) - gp_addr);
254 *location = (*location & 0xffff0000) | (rel & 0xffff);
259 static int apply_r_mips_pc16(struct module *me, uint32_t *location, argument
263 rel = (((unsigned int)v - (unsigned int)location));
273 *location = (*location
278 apply_r_mips_32(struct module *me, uint32_t *location, Elf32_Addr v) argument
286 apply_r_mips_26(struct module *me, uint32_t *location, Elf32_Addr v) argument
311 apply_r_mips_hi16(struct module *me, uint32_t *location, Elf32_Addr v) argument
333 apply_r_mips_lo16(struct module *me, uint32_t *location, Elf32_Addr v) argument
433 uint32_t *location; local
[all...]
/arch/microblaze/kernel/
H A Dmodule.c28 unsigned long int *location; local
39 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr +
50 * read the current contents of (*location), add any offset
56 old_value = *location;
57 *location = value + old_value;
62 *location = value;
69 old_value = ((location[0] & 0x0000FFFF) << 16) |
70 (location[1] & 0x0000FFFF);
73 location[0] = (location[
[all...]
/arch/xtensa/kernel/
H A Dmodule.c28 decode_calln_opcode (unsigned char *location) argument
31 return (location[0] & 0xf0) == 0x50;
34 return (location[0] & 0xf) == 0x5;
39 decode_l32r_opcode (unsigned char *location) argument
42 return (location[0] & 0xf0) == 0x10;
45 return (location[0] & 0xf) == 0x1;
58 unsigned char *location; local
66 location = (char *)sechdrs[sechdrs[relsec].sh_info].sh_addr
82 *(uint32_t *)location += value;
86 if (decode_calln_opcode(location)) {
[all...]
/arch/c6x/kernel/
H A Dmodule.c53 u32 *location, opcode; local
63 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
76 pr_debug("RELA ABS32: [%p] = 0x%x\n", location, v);
77 *location = v;
80 pr_debug("RELA ABS16: [%p] = 0x%x\n", location, v);
81 *(u16 *)location = v;
84 pr_debug("RELA ABS8: [%p] = 0x%x\n", location, v);
85 *(u8 *)location = v;
88 opcode = *location;
92 location,
[all...]
/arch/sh/kernel/
H A Dmodule.c47 uint32_t *location; local
54 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
75 value = get_unaligned(location);
77 put_unaligned(value, location);
80 relocation = (relocation - (Elf32_Addr) location);
81 value = get_unaligned(location);
83 put_unaligned(value, location);
86 *location = (*location & ~0x3fffc00) |
90 *location
[all...]
/arch/hexagon/kernel/
H A Dmodule.c86 uint32_t *location; local
103 location = loc_base + rela[i].r_offset;
109 i, value, location, ELF32_R_TYPE(rela[i].r_info),
115 int dist = (int)(value - (uint32_t)location);
122 dist, value, (uint32_t)location,
127 DEBUGP("B22_PCREL contents: %08X.\n", *location);
128 *location &= ~0x01ff3fff;
129 *location |= 0x00003fff & dist;
130 *location |= 0x01ff0000 & (dist<<2);
131 DEBUGP("Contents after reloc: %08x\n", *location);
[all...]
/arch/openrisc/kernel/
H A Dmodule.c29 uint32_t *location; local
36 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
47 *location = value;
50 *((uint16_t *)location + 1) = value;
53 *((uint16_t *)location + 1) = value >> 16;
56 value -= (uint32_t)location;
59 value |= *location & 0xfc000000;
60 *location = value;
/arch/mn10300/kernel/
H A Dmodule.c66 uint8_t *location; local
74 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
103 * store the adjustment at the location given */
105 reloc_put32(location, relocation);
108 reloc_put24(location, relocation);
111 reloc_put16(location, relocation);
114 *location = relocation;
119 * value at the location given */
121 value = relocation - (uint32_t) location;
122 reloc_put32(location, valu
[all...]
/arch/powerpc/kernel/
H A Dmodule_32.c182 static uint32_t do_plt_call(void *location, argument
189 pr_debug("Doing plt for call to 0x%x at 0x%x\n", val, (unsigned int)location);
191 if (location >= mod->module_core
192 && location < mod->module_core + mod->core_size)
221 uint32_t *location; local
228 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
240 *(uint32_t *)location = value;
245 *(uint16_t *)location = value;
250 *(uint16_t *)location = (value >> 16);
258 *(uint16_t *)location
[all...]
H A Dmodule_64.c496 unsigned long *location; local
514 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
521 location, (long)ELF64_R_TYPE(rela[i].r_info),
531 *(u32 *)location = value;
536 *(unsigned long *)location = value;
540 *(unsigned long *)location = my_r2(sechdrs, me);
551 *((uint16_t *) location)
552 = (*((uint16_t *) location) & ~0xffff)
559 *((uint16_t *) location)
560 = (*((uint16_t *) location)
[all...]
/arch/arm/boot/dts/
H A Defm32gg-dk3750.dts29 efm32,location = <3>;
46 location = <1>;
60 location = <1>;
73 location = <2>;
/arch/m68k/kernel/
H A Dmodule.c31 uint32_t *location; local
37 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
46 /* We add the value into the location given */
47 *location += sym->st_value;
51 *location += sym->st_value - (uint32_t)location;
71 uint32_t *location; local
77 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
86 /* We add the value into the location given */
87 *location
[all...]
/arch/m32r/kernel/
H A Dmodule.c81 uint32_t *location; local
92 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
99 align = (int)location & 3;
103 COPY_UNALIGNED_WORD (*location, value, align);
105 COPY_UNALIGNED_WORD (value, *location, align);
108 COPY_UNALIGNED_WORD (*location, value, align);
112 COPY_UNALIGNED_WORD (value, *location, align);
115 COPY_UNALIGNED_WORD (*location, value, align);
120 COPY_UNALIGNED_WORD (value, *location, align);
123 hlocation = (unsigned short *)location;
[all...]
/arch/tile/kernel/
H A Dbacktrace.c252 static void find_caller_pc_and_caller_sp(CallerLocation *location, argument
288 location->sp_location = SP_LOC_OFFSET;
289 location->sp_offset = 0;
292 location->pc_location = PC_LOC_UNKNOWN;
327 location->pc_location = PC_LOC_IN_LR;
376 location->pc_location =
379 location->pc_location =
384 location->pc_location = PC_LOC_UNKNOWN;
385 location->sp_location = SP_LOC_UNKNOWN;
390 location
553 CallerLocation location; local
[all...]
H A Dmodule.c131 u64 *location; local
138 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
152 (*location = ((*location & ~func(-1)) | func(value)))
159 (*location = swab64((swab64(*location) & ~func(-1)) | func(value)))
164 *(uint32_t *)location = value;
179 value -= (unsigned long) location; /* pc-relative */
185 *location = value;
210 value -= (unsigned long) location; /* p
[all...]
/arch/sparc/kernel/
H A Dmodule.c91 u8 *location; local
98 location = (u8 *)sechdrs[sechdrs[relsec].sh_info].sh_addr
100 loc32 = (u32 *) location;
103 BUG_ON(((u64)location >> (u64)32) != (u64)0);
114 v -= (Elf_Addr) location;
119 location[0] = v >> 56;
120 location[1] = v >> 48;
121 location[2] = v >> 40;
122 location[3] = v >> 32;
123 location[
[all...]
/arch/alpha/kernel/
H A Dmodule.c152 void *base, *location; local
174 location = base + rela[i].r_offset;
186 ((u32 *)location)[0] = value;
187 ((u32 *)location)[1] = value >> 32;
193 *(u32 *)location = value;
200 *(u16 *)location = lo;
206 value = gp - (u64)location;
211 *(u16 *)location = hi >> 16;
212 *(u16 *)(location + rela[i].r_addend) = lo;
226 value -= (u64)location
[all...]
/arch/metag/kernel/
H A Dmodule.c162 static uint32_t do_plt_call(void *location, Elf32_Addr val, argument
179 if (location >= mod->module_core
180 && location < mod->module_core + mod->core_size)
208 uint32_t *location; local
215 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
229 *location = (*location & 0xfff80007) |
237 put_unaligned(relocation, location);
240 *location += ((relocation & 0xfff) << 7);
243 if (*location
[all...]
/arch/s390/kernel/
H A Dtraps.c186 __u16 __user *location; local
190 location = get_trap_ip(regs);
193 if (get_user(*((__u16 *) opcode), (__u16 __user *) location))
200 info.si_addr = location;
210 if (get_user(*((__u16 *) (opcode+2)), location+1))
215 (__u32 __user *)(location+1)))
219 if (get_user(*((__u16 *) (opcode+2)), location+1))
223 if (get_user(*((__u16 *) (opcode+2)), location+1))
227 if (get_user(*((__u16 *) (opcode+2)), location+1))
261 __u16 __user *location local
378 __u16 __user *location; local
[all...]
/arch/avr32/kernel/
H A Dmodule.c162 uint32_t *location; local
165 location = (void *)dstsec->sh_addr + rel->r_offset;
196 *location = relocation;
199 relocation -= (Elf32_Addr)location;
207 value = *location;
212 *location = value;
215 relocation -= (Elf32_Addr)location;
221 value = get_u16(location);
225 put_u16(location, value);
228 relocation -= (Elf32_Addr)location;
[all...]
/arch/arc/kernel/
H A Dmodule.c71 Elf32_Addr location; local
89 location = sec_to_patch + rel_entry[i].r_offset;
99 sym_entry->st_value, location, relocation,
110 arc_write_me((unsigned short *)location, relocation);
112 *((Elf32_Addr *) location) = relocation;
/arch/blackfin/kernel/
H A Dmodule.c158 unsigned long location, value, size; local
165 location = sechdrs[sechdrs[relsec].sh_info].sh_addr +
176 if (location >= COREB_L1_DATA_A_START) {
183 pr_debug("location is %lx, value is %lx type is %d\n",
184 location, value, ELF32_R_TYPE(rel[i].r_info));
213 switch (bfin_mem_access_type(location, size)) {
216 memcpy((void *)location, &value, size);
219 dma_memcpy((void *)location, &value, size);
222 isram_memcpy((void *)location, &value, size);
225 pr_err("invalid relocation for %#lx\n", location);
[all...]
/arch/mips/include/asm/octeon/
H A Dcvmx-mdio.h296 * @location: Register location to read
300 static inline int cvmx_mdio_read(int bus_id, int phy_id, int location) argument
312 smi_cmd.s.reg_adr = location;
333 * @location: Register location to write
339 static inline int cvmx_mdio_write(int bus_id, int phy_id, int location, int val) argument
355 smi_cmd.s.reg_adr = location;
376 * @location: Register location t
381 cvmx_mdio_45_read(int bus_id, int phy_id, int device, int location) argument
457 cvmx_mdio_45_write(int bus_id, int phy_id, int device, int location, int val) argument
[all...]

Completed in 168 milliseconds

123