Lines Matching refs:location
44 static void apply_r_mips_32(u32 *location, u32 base, Elf_Addr v) in apply_r_mips_32() argument
46 *location = base + v; in apply_r_mips_32()
49 static int apply_r_mips_26(struct module *me, u32 *location, u32 base, in apply_r_mips_26() argument
58 if ((v & 0xf0000000) != (((unsigned long)location + 4) & 0xf0000000)) { in apply_r_mips_26()
64 *location = (*location & ~0x03ffffff) | in apply_r_mips_26()
70 static int apply_r_mips_hi16(struct module *me, u32 *location, Elf_Addr v, in apply_r_mips_hi16() argument
76 *location = (*location & 0xffff0000) | in apply_r_mips_hi16()
90 n->addr = (Elf_Addr *)location; in apply_r_mips_hi16()
109 static int apply_r_mips_lo16(struct module *me, u32 *location, in apply_r_mips_lo16() argument
117 *location = (*location & 0xffff0000) | (v & 0xffff); in apply_r_mips_lo16()
168 *location = insnlo; in apply_r_mips_lo16()
181 static int apply_r_mips_pc(struct module *me, u32 *location, u32 base, in apply_r_mips_pc() argument
198 offset += ((long)v - (long)location) >> 2; in apply_r_mips_pc()
207 *location = (*location & ~mask) | (offset & mask); in apply_r_mips_pc()
212 static int apply_r_mips_pc16(struct module *me, u32 *location, u32 base, in apply_r_mips_pc16() argument
215 return apply_r_mips_pc(me, location, base, v, 16); in apply_r_mips_pc16()
218 static int apply_r_mips_pc21(struct module *me, u32 *location, u32 base, in apply_r_mips_pc21() argument
221 return apply_r_mips_pc(me, location, base, v, 21); in apply_r_mips_pc21()
224 static int apply_r_mips_pc26(struct module *me, u32 *location, u32 base, in apply_r_mips_pc26() argument
227 return apply_r_mips_pc(me, location, base, v, 26); in apply_r_mips_pc26()
230 static int apply_r_mips_64(u32 *location, Elf_Addr v, bool rela) in apply_r_mips_64() argument
235 *(Elf_Addr *)location = v; in apply_r_mips_64()
240 static int apply_r_mips_higher(u32 *location, Elf_Addr v, bool rela) in apply_r_mips_higher() argument
245 *location = (*location & 0xffff0000) | in apply_r_mips_higher()
251 static int apply_r_mips_highest(u32 *location, Elf_Addr v, bool rela) in apply_r_mips_highest() argument
256 *location = (*location & 0xffff0000) | in apply_r_mips_highest()
279 static int reloc_handler(u32 type, struct module *me, u32 *location, u32 base, in reloc_handler() argument
286 apply_r_mips_32(location, base, v); in reloc_handler()
289 return apply_r_mips_26(me, location, base, v); in reloc_handler()
291 return apply_r_mips_hi16(me, location, v, rela); in reloc_handler()
293 return apply_r_mips_lo16(me, location, base, v, rela); in reloc_handler()
295 return apply_r_mips_pc16(me, location, base, v); in reloc_handler()
297 return apply_r_mips_pc21(me, location, base, v); in reloc_handler()
299 return apply_r_mips_pc26(me, location, base, v); in reloc_handler()
301 return apply_r_mips_64(location, v, rela); in reloc_handler()
303 return apply_r_mips_higher(location, v, rela); in reloc_handler()
305 return apply_r_mips_highest(location, v, rela); in reloc_handler()
323 u32 *location, base; in __apply_relocate() local
337 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in __apply_relocate()
360 base = *location; in __apply_relocate()
364 err = reloc_handler(type, me, location, base, v, rela); in __apply_relocate()