Lines Matching full:location

33 static void apply_r_mips_32(u32 *location, u32 base, Elf_Addr v)  in apply_r_mips_32()  argument
35 *location = base + v; in apply_r_mips_32()
38 static int apply_r_mips_26(struct module *me, u32 *location, u32 base, in apply_r_mips_26() argument
47 if ((v & 0xf0000000) != (((unsigned long)location + 4) & 0xf0000000)) { in apply_r_mips_26()
53 *location = (*location & ~0x03ffffff) | in apply_r_mips_26()
59 static int apply_r_mips_hi16(struct module *me, u32 *location, Elf_Addr v, in apply_r_mips_hi16() argument
65 *location = (*location & 0xffff0000) | in apply_r_mips_hi16()
79 n->addr = (Elf_Addr *)location; in apply_r_mips_hi16()
98 static int apply_r_mips_lo16(struct module *me, u32 *location, in apply_r_mips_lo16() argument
106 *location = (*location & 0xffff0000) | (v & 0xffff); in apply_r_mips_lo16()
157 *location = insnlo; in apply_r_mips_lo16()
170 static int apply_r_mips_pc(struct module *me, u32 *location, u32 base, in apply_r_mips_pc() argument
187 offset += ((long)v - (long)location) >> 2; in apply_r_mips_pc()
196 *location = (*location & ~mask) | (offset & mask); in apply_r_mips_pc()
201 static int apply_r_mips_pc16(struct module *me, u32 *location, u32 base, in apply_r_mips_pc16() argument
204 return apply_r_mips_pc(me, location, base, v, 16); in apply_r_mips_pc16()
207 static int apply_r_mips_pc21(struct module *me, u32 *location, u32 base, in apply_r_mips_pc21() argument
210 return apply_r_mips_pc(me, location, base, v, 21); in apply_r_mips_pc21()
213 static int apply_r_mips_pc26(struct module *me, u32 *location, u32 base, in apply_r_mips_pc26() argument
216 return apply_r_mips_pc(me, location, base, v, 26); in apply_r_mips_pc26()
219 static int apply_r_mips_64(u32 *location, Elf_Addr v, bool rela) in apply_r_mips_64() argument
224 *(Elf_Addr *)location = v; in apply_r_mips_64()
229 static int apply_r_mips_higher(u32 *location, Elf_Addr v, bool rela) in apply_r_mips_higher() argument
234 *location = (*location & 0xffff0000) | in apply_r_mips_higher()
240 static int apply_r_mips_highest(u32 *location, Elf_Addr v, bool rela) in apply_r_mips_highest() argument
245 *location = (*location & 0xffff0000) | in apply_r_mips_highest()
255 * @location: the address at which the reloc is to be applied
256 * @base: the existing value at location for REL-style; 0 for RELA-style
268 static int reloc_handler(u32 type, struct module *me, u32 *location, u32 base, in reloc_handler() argument
275 apply_r_mips_32(location, base, v); in reloc_handler()
278 return apply_r_mips_26(me, location, base, v); in reloc_handler()
280 return apply_r_mips_hi16(me, location, v, rela); in reloc_handler()
282 return apply_r_mips_lo16(me, location, base, v, rela); in reloc_handler()
284 return apply_r_mips_pc16(me, location, base, v); in reloc_handler()
286 return apply_r_mips_pc21(me, location, base, v); in reloc_handler()
288 return apply_r_mips_pc26(me, location, base, v); in reloc_handler()
290 return apply_r_mips_64(location, v, rela); in reloc_handler()
292 return apply_r_mips_higher(location, v, rela); in reloc_handler()
294 return apply_r_mips_highest(location, v, rela); in reloc_handler()
312 u32 *location, base; in __apply_relocate() local
326 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in __apply_relocate()
349 base = *location; in __apply_relocate()
353 err = reloc_handler(type, me, location, base, v, rela); in __apply_relocate()