Home
last modified time | relevance | path

Searched refs:loc (Results 1 – 25 of 32) sorted by relevance

12

/arch/x86/kernel/
Dlivepatch.c39 unsigned long loc, unsigned long value) in klp_write_module_reloc() argument
62 val = (u32)(value - loc); in klp_write_module_reloc()
69 if (loc < core || loc >= core + core_size) in klp_write_module_reloc()
76 if (loc < core + mod->core_ro_size) in klp_write_module_reloc()
81 numpages = ((loc & PAGE_MASK) == ((loc + size) & PAGE_MASK)) ? 1 : 2; in klp_write_module_reloc()
84 set_memory_rw(loc & PAGE_MASK, numpages); in klp_write_module_reloc()
86 ret = probe_kernel_write((void *)loc, &val, size); in klp_write_module_reloc()
89 set_memory_ro(loc & PAGE_MASK, numpages); in klp_write_module_reloc()
Dmodule.c149 void *loc; in apply_relocate_add() local
156 loc = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
166 sym->st_value, rel[i].r_addend, (u64)loc); in apply_relocate_add()
174 if (*(u64 *)loc != 0) in apply_relocate_add()
176 *(u64 *)loc = val; in apply_relocate_add()
179 if (*(u32 *)loc != 0) in apply_relocate_add()
181 *(u32 *)loc = val; in apply_relocate_add()
182 if (val != *(u32 *)loc) in apply_relocate_add()
186 if (*(s32 *)loc != 0) in apply_relocate_add()
188 *(s32 *)loc = val; in apply_relocate_add()
[all …]
/arch/h8300/kernel/
Dmodule.c21 uint32_t *loc = in apply_relocate_add() local
32 loc = (uint32_t *)((uint32_t)loc - 1); in apply_relocate_add()
33 *loc = (*loc & 0xff000000) | ((*loc & 0xffffff) + v); in apply_relocate_add()
37 *loc += v; in apply_relocate_add()
41 *loc += v; in apply_relocate_add()
44 v -= (unsigned long)loc + 2; in apply_relocate_add()
49 *(unsigned short *)loc = v; in apply_relocate_add()
52 v -= (unsigned long)loc + 1; in apply_relocate_add()
57 *(unsigned char *)loc = v; in apply_relocate_add()
/arch/nios2/kernel/
Dmodule.c57 uint32_t *loc in apply_relocate_add() local
75 *loc += v; in apply_relocate_add()
78 v -= (uint32_t)loc + 4; in apply_relocate_add()
85 word = *loc; in apply_relocate_add()
86 *loc = ((((word >> 22) << 16) | (v & 0xffff)) << 6) | in apply_relocate_add()
95 if ((v >> 28) != ((uint32_t)loc >> 28)) { in apply_relocate_add()
100 *loc = (*loc & 0x3f) | ((v >> 2) << 6); in apply_relocate_add()
103 word = *loc; in apply_relocate_add()
104 *loc = ((((word >> 22) << 16) | in apply_relocate_add()
108 word = *loc; in apply_relocate_add()
[all …]
/arch/arm64/kernel/
Dmodule.c205 void *loc; in apply_relocate_add() local
211 loc = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
235 ovf = reloc_data(RELOC_OP_ABS, loc, val, 64); in apply_relocate_add()
238 ovf = reloc_data(RELOC_OP_ABS, loc, val, 32); in apply_relocate_add()
241 ovf = reloc_data(RELOC_OP_ABS, loc, val, 16); in apply_relocate_add()
245 ovf = reloc_data(RELOC_OP_PREL, loc, val, 64); in apply_relocate_add()
248 ovf = reloc_data(RELOC_OP_PREL, loc, val, 32); in apply_relocate_add()
251 ovf = reloc_data(RELOC_OP_PREL, loc, val, 16); in apply_relocate_add()
258 ovf = reloc_insn_movw(RELOC_OP_ABS, loc, val, 0, in apply_relocate_add()
264 ovf = reloc_insn_movw(RELOC_OP_ABS, loc, val, 16, in apply_relocate_add()
[all …]
/arch/s390/kernel/
Dmodule.c177 static int apply_rela_bits(Elf_Addr loc, Elf_Addr val, in apply_rela_bits() argument
199 *(unsigned char *) loc = val; in apply_rela_bits()
201 *(unsigned short *) loc = (val & 0xfff) | in apply_rela_bits()
202 (*(unsigned short *) loc & 0xf000); in apply_rela_bits()
204 *(unsigned short *) loc = val; in apply_rela_bits()
206 *(unsigned int *) loc = (val & 0xfff) << 16 | in apply_rela_bits()
208 (*(unsigned int *) loc & 0xf00000ff); in apply_rela_bits()
210 *(unsigned int *) loc = val; in apply_rela_bits()
212 *(unsigned long *) loc = val; in apply_rela_bits()
220 Elf_Addr loc, val; in apply_rela() local
[all …]
/arch/arm/kernel/
Dmodule.c65 unsigned long loc; in apply_relocate() local
91 loc = dstsec->sh_addr + rel->r_offset; in apply_relocate()
100 *(u32 *)loc += sym->st_value; in apply_relocate()
112 offset = __mem_to_opcode_arm(*(u32 *)loc); in apply_relocate()
117 offset += sym->st_value - loc; in apply_relocate()
128 offset = get_module_plt(module, loc, in apply_relocate()
129 offset + loc + 8) in apply_relocate()
130 - loc - 8; in apply_relocate()
136 ELF32_R_TYPE(rel->r_info), loc, in apply_relocate()
144 *(u32 *)loc &= __opcode_to_mem_arm(0xff000000); in apply_relocate()
[all …]
Dmodule-plts.c38 u32 get_module_plt(struct module *mod, unsigned long loc, Elf32_Addr val) in get_module_plt() argument
43 if (in_init(mod, loc)) { in get_module_plt()
/arch/score/kernel/
Dmodule.c41 unsigned long loc; in apply_relocate() local
64 loc = dstsec->sh_addr + rel->r_offset; in apply_relocate()
69 *(unsigned long *)loc += sym->st_value; in apply_relocate()
77 temp_hi = *((unsigned long *)loc - 1); in apply_relocate()
78 temp = *(unsigned long *)loc; in apply_relocate()
91 *((unsigned long *)loc - 1) = temp_hi; in apply_relocate()
96 *(unsigned long *)loc = temp; in apply_relocate()
104 temp = *(unsigned long *)loc; in apply_relocate()
115 *(unsigned long *)loc = temp; in apply_relocate()
/arch/parisc/kernel/
Dmodule.c101 static inline int in_init(struct module *me, void *loc) in in_init() argument
103 return (loc >= me->module_init && in in_init()
104 loc <= (me->module_init + me->init_size)); in in_init()
107 static inline int in_core(struct module *me, void *loc) in in_core() argument
109 return (loc >= me->module_core && in in_core()
110 loc <= (me->module_core + me->core_size)); in in_core()
113 static inline int in_local(struct module *me, void *loc) in in_local() argument
115 return in_init(me, loc) || in_core(me, loc); in in_local()
547 Elf32_Word *loc; in apply_relocate_add() local
560 loc = (void *)sechdrs[targetsec].sh_addr in apply_relocate_add()
[all …]
/arch/unicore32/kernel/
Dmodule.c43 unsigned long loc; in apply_relocate() local
67 loc = dstsec->sh_addr + rel->r_offset; in apply_relocate()
75 *(u32 *)loc += sym->st_value; in apply_relocate()
81 offset = (*(u32 *)loc & 0x00ffffff) << 2; in apply_relocate()
85 offset += sym->st_value - loc; in apply_relocate()
98 *(u32 *)loc &= 0xff000000; in apply_relocate()
99 *(u32 *)loc |= offset & 0x00ffffff; in apply_relocate()
/arch/blackfin/kernel/
Dshadow_console.c59 int *loc = (int *)SHADOW_CONSOLE_MAGIC_LOC; in mark_shadow_error() local
60 loc[0] = SHADOW_CONSOLE_MAGIC; in mark_shadow_error()
61 loc[1] = SHADOW_CONSOLE_START; in mark_shadow_error()
81 int *loc = (int *)SHADOW_CONSOLE_MAGIC_LOC; in disable_shadow_console() local
83 loc[0] = 0; in disable_shadow_console()
/arch/cris/kernel/
Dmodule.c59 uint32_t *loc in apply_relocate_add() local
69 *loc = sym->st_value + rela[i].r_addend; in apply_relocate_add()
72 *loc = sym->st_value - (unsigned)loc + rela[i].r_addend - 4; in apply_relocate_add()
/arch/powerpc/kernel/
Drtas-proc.c247 struct individual_sensor *s, int state, int error, const char *loc);
250 struct individual_sensor *s, const char *loc);
430 const char *loc; in ppc_rtas_sensors_show() local
434 loc = of_get_property(rtas_node, rstr, &llen); in ppc_rtas_sensors_show()
441 ppc_rtas_process_sensor(m, p, state, error, loc); in ppc_rtas_sensors_show()
443 if (loc) { in ppc_rtas_sensors_show()
444 offs += strlen(loc) + 1; in ppc_rtas_sensors_show()
445 loc += strlen(loc) + 1; in ppc_rtas_sensors_show()
447 loc = NULL; in ppc_rtas_sensors_show()
514 struct individual_sensor *s, int state, int error, const char *loc) in ppc_rtas_process_sensor() argument
[all …]
Deeh_pe.c888 const char *loc = NULL; in eeh_pe_loc_get() local
898 loc = of_get_property(dn, "ibm,io-base-loc-code", NULL); in eeh_pe_loc_get()
900 loc = of_get_property(dn, "ibm,slot-location-code", in eeh_pe_loc_get()
903 if (loc) in eeh_pe_loc_get()
904 return loc; in eeh_pe_loc_get()
/arch/powerpc/include/asm/
Dexception-64s.h445 #define STD_EXCEPTION_PSERIES(loc, vec, label) \ argument
446 . = loc; \
461 #define STD_EXCEPTION_HV(loc, vec, label) \ argument
462 . = loc; \
477 #define STD_RELON_EXCEPTION_PSERIES(loc, vec, label) \ argument
478 . = loc; \
493 #define STD_RELON_EXCEPTION_HV(loc, vec, label) \ argument
494 . = loc; \
557 #define MASKABLE_EXCEPTION_PSERIES(loc, vec, label) \ argument
558 . = loc; \
[all …]
/arch/x86/include/asm/
Dlivepatch.h37 unsigned long loc, unsigned long value);
/arch/s390/include/asm/
Dlivepatch.h29 type, unsigned long loc, unsigned long value) in klp_write_module_reloc() argument
/arch/avr32/kernel/
Dmodule.c142 #define get_u16(loc) (*((uint16_t *)loc)) argument
143 #define put_u16(loc, val) (*((uint16_t *)loc) = (val)) argument
/arch/um/os-Linux/
Dprocess.c141 void *loc; in os_map_memory() local
147 loc = mmap64((void *) virt, len, prot, MAP_SHARED | MAP_FIXED, in os_map_memory()
149 if (loc == MAP_FAILED) in os_map_memory()
/arch/arm/include/asm/
Dmodule.h33 u32 get_module_plt(struct module *mod, unsigned long loc, Elf32_Addr val);
/arch/arc/kernel/
Dunwind.c141 uleb128_t loc, org; member
659 state->loc += delta * state->codeAlign; in advance_loc()
664 unw_debug("delta %3lu => loc 0x%lx: ", delta, state->loc); in advance_loc()
709 state->loc = state->org; in processCFI()
728 state->loc = read_pointer(&ptr.p8, end, in processCFI()
730 if (state->loc == 0) in processCFI()
732 unw_debug("cfa_set_loc: 0x%lx ", state->loc); in processCFI()
802 const uleb128_t loc = state->loc; in processCFI() local
815 state->loc = loc; in processCFI()
879 if (result && targetLoc != 0 && targetLoc < state->loc) in processCFI()
[all …]
/arch/unicore32/mm/
Dproc-ucv2.S51 mov pc, r0 @ jump to loc
/arch/ia64/include/asm/
Dunwind.h82 unsigned long *loc; member
/arch/arm/mm/
Dproc-sa110.S96 ldr r1, =UNCACHEABLE_ADDR @ load from uncacheable loc

12