Lines Matching refs:location

33 static void apply_r_mips_32(u32 *location, u32 base, Elf_Addr v)
35 *location = base + v;
38 static int apply_r_mips_26(struct module *me, u32 *location, u32 base,
47 if ((v & 0xf0000000) != (((unsigned long)location + 4) & 0xf0000000)) {
53 *location = (*location & ~0x03ffffff) |
59 static int apply_r_mips_hi16(struct module *me, u32 *location, Elf_Addr v,
65 *location = (*location & 0xffff0000) |
79 n->addr = (Elf_Addr *)location;
98 static int apply_r_mips_lo16(struct module *me, u32 *location,
106 *location = (*location & 0xffff0000) | (v & 0xffff);
157 *location = insnlo;
170 static int apply_r_mips_pc(struct module *me, u32 *location, u32 base,
187 offset += ((long)v - (long)location) >> 2;
196 *location = (*location & ~mask) | (offset & mask);
201 static int apply_r_mips_pc16(struct module *me, u32 *location, u32 base,
204 return apply_r_mips_pc(me, location, base, v, 16);
207 static int apply_r_mips_pc21(struct module *me, u32 *location, u32 base,
210 return apply_r_mips_pc(me, location, base, v, 21);
213 static int apply_r_mips_pc26(struct module *me, u32 *location, u32 base,
216 return apply_r_mips_pc(me, location, base, v, 26);
219 static int apply_r_mips_64(u32 *location, Elf_Addr v, bool rela)
224 *(Elf_Addr *)location = v;
229 static int apply_r_mips_higher(u32 *location, Elf_Addr v, bool rela)
234 *location = (*location & 0xffff0000) |
240 static int apply_r_mips_highest(u32 *location, Elf_Addr v, bool rela)
245 *location = (*location & 0xffff0000) |
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,
275 apply_r_mips_32(location, base, v);
278 return apply_r_mips_26(me, location, base, v);
280 return apply_r_mips_hi16(me, location, v, rela);
282 return apply_r_mips_lo16(me, location, base, v, rela);
284 return apply_r_mips_pc16(me, location, base, v);
286 return apply_r_mips_pc21(me, location, base, v);
288 return apply_r_mips_pc26(me, location, base, v);
290 return apply_r_mips_64(location, v, rela);
292 return apply_r_mips_higher(location, v, rela);
294 return apply_r_mips_highest(location, v, rela);
312 u32 *location, base;
326 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
349 base = *location;
353 err = reloc_handler(type, me, location, base, v, rela);