Home
last modified time | relevance | path

Searched refs:location (Results 1 – 25 of 706) sorted by relevance

12345678910>>...29

/Linux-v6.1/arch/riscv/kernel/
Dmodule.c30 static int apply_r_riscv_32_rela(struct module *me, u32 *location, Elf_Addr v) in apply_r_riscv_32_rela() argument
37 *location = v; in apply_r_riscv_32_rela()
41 static int apply_r_riscv_64_rela(struct module *me, u32 *location, Elf_Addr v) in apply_r_riscv_64_rela() argument
43 *(u64 *)location = v; in apply_r_riscv_64_rela()
47 static int apply_r_riscv_branch_rela(struct module *me, u32 *location, in apply_r_riscv_branch_rela() argument
50 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_branch_rela()
56 *location = (*location & 0x1fff07f) | imm12 | imm11 | imm10_5 | imm4_1; in apply_r_riscv_branch_rela()
60 static int apply_r_riscv_jal_rela(struct module *me, u32 *location, in apply_r_riscv_jal_rela() argument
63 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_jal_rela()
69 *location = (*location & 0xfff) | imm20 | imm19_12 | imm11 | imm10_1; in apply_r_riscv_jal_rela()
[all …]
/Linux-v6.1/arch/xtensa/kernel/
Dmodule.c26 decode_calln_opcode (unsigned char *location) in decode_calln_opcode() argument
29 return (location[0] & 0xf0) == 0x50; in decode_calln_opcode()
32 return (location[0] & 0xf) == 0x5; in decode_calln_opcode()
37 decode_l32r_opcode (unsigned char *location) in decode_l32r_opcode() argument
40 return (location[0] & 0xf0) == 0x10; in decode_l32r_opcode()
43 return (location[0] & 0xf) == 0x1; in decode_l32r_opcode()
56 unsigned char *location; in apply_relocate_add() local
63 location = (char *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
79 *(uint32_t *)location += value; in apply_relocate_add()
83 if (decode_calln_opcode(location)) { in apply_relocate_add()
[all …]
/Linux-v6.1/arch/mips/kernel/
Dmodule.c44 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()
[all …]
Dvpe.c228 static int apply_r_mips_none(struct module *me, uint32_t *location, in apply_r_mips_none() argument
234 static int apply_r_mips_gprel16(struct module *me, uint32_t *location, in apply_r_mips_gprel16() argument
239 if (!(*location & 0xffff)) { in apply_r_mips_gprel16()
245 (int)(short)(*location & 0xffff) - gp_addr); in apply_r_mips_gprel16()
254 *location = (*location & 0xffff0000) | (rel & 0xffff); in apply_r_mips_gprel16()
259 static int apply_r_mips_pc16(struct module *me, uint32_t *location, in apply_r_mips_pc16() argument
263 rel = (((unsigned int)v - (unsigned int)location)); in apply_r_mips_pc16()
273 *location = (*location & 0xffff0000) | (rel & 0xffff); in apply_r_mips_pc16()
278 static int apply_r_mips_32(struct module *me, uint32_t *location, in apply_r_mips_32() argument
281 *location += v; in apply_r_mips_32()
[all …]
/Linux-v6.1/arch/sh/kernel/
Dmodule.c34 uint32_t *location; in apply_relocate_add() local
41 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
53 value = get_unaligned(location); in apply_relocate_add()
55 put_unaligned(value, location); in apply_relocate_add()
58 relocation = (relocation - (Elf32_Addr) location); in apply_relocate_add()
59 value = get_unaligned(location); in apply_relocate_add()
61 put_unaligned(value, location); in apply_relocate_add()
64 *location = (*location & ~0x3fffc00) | in apply_relocate_add()
68 *location = (*location & ~0x3fffc00) | in apply_relocate_add()
72 relocation -= (Elf32_Addr) location; in apply_relocate_add()
[all …]
/Linux-v6.1/drivers/net/ethernet/engleder/
Dtsnep_rxnfc.c19 TSNEP_RX_ASSIGN_ETHER_TYPE_OFFSET * rule->location; in tsnep_enable_rule()
24 TSNEP_RX_ASSIGN_OFFSET * rule->location; in tsnep_enable_rule()
34 TSNEP_RX_ASSIGN_OFFSET * rule->location; in tsnep_disable_rule()
39 int location) in tsnep_get_rule() argument
44 if (rule->location == location) in tsnep_get_rule()
46 if (rule->location > location) in tsnep_get_rule()
62 if (cur->location >= rule->location) in tsnep_add_rule()
104 rule = tsnep_get_rule(adapter, fsp->location); in tsnep_rxnfc_get_rule()
142 rule_locs[count] = rule->location; in tsnep_rxnfc_get_all()
156 int location = 0; in tsnep_rxnfc_find_location() local
[all …]
/Linux-v6.1/arch/hexagon/kernel/
Dmodule.c73 uint32_t *location; in apply_relocate_add() local
90 location = loc_base + rela[i].r_offset; in apply_relocate_add()
96 i, value, location, ELF32_R_TYPE(rela[i].r_info), in apply_relocate_add()
102 int dist = (int)(value - (uint32_t)location); in apply_relocate_add()
109 dist, value, (uint32_t)location, in apply_relocate_add()
114 DEBUGP("B22_PCREL contents: %08X.\n", *location); in apply_relocate_add()
115 *location &= ~0x01ff3fff; in apply_relocate_add()
116 *location |= 0x00003fff & dist; in apply_relocate_add()
117 *location |= 0x01ff0000 & (dist<<2); in apply_relocate_add()
118 DEBUGP("Contents after reloc: %08x\n", *location); in apply_relocate_add()
[all …]
/Linux-v6.1/arch/loongarch/kernel/
Dmodule.c43 static int apply_r_larch_none(struct module *mod, u32 *location, Elf_Addr v, in apply_r_larch_none() argument
49 static int apply_r_larch_error(struct module *me, u32 *location, Elf_Addr v, in apply_r_larch_error() argument
56 static int apply_r_larch_32(struct module *mod, u32 *location, Elf_Addr v, in apply_r_larch_32() argument
59 *location = v; in apply_r_larch_32()
63 static int apply_r_larch_64(struct module *mod, u32 *location, Elf_Addr v, in apply_r_larch_64() argument
66 *(Elf_Addr *)location = v; in apply_r_larch_64()
70 static int apply_r_larch_sop_push_pcrel(struct module *mod, u32 *location, Elf_Addr v, in apply_r_larch_sop_push_pcrel() argument
73 return rela_stack_push(v - (u64)location, rela_stack, rela_stack_top); in apply_r_larch_sop_push_pcrel()
76 static int apply_r_larch_sop_push_absolute(struct module *mod, u32 *location, Elf_Addr v, in apply_r_larch_sop_push_absolute() argument
82 static int apply_r_larch_sop_push_dup(struct module *mod, u32 *location, Elf_Addr v, in apply_r_larch_sop_push_dup() argument
[all …]
/Linux-v6.1/arch/sparc/kernel/
Dmodule.c92 u8 *location; in apply_relocate_add() local
99 location = (u8 *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
101 loc32 = (u32 *) location; in apply_relocate_add()
104 BUG_ON(((u64)location >> (u64)32) != (u64)0); in apply_relocate_add()
115 v -= (Elf_Addr) location; in apply_relocate_add()
120 location[0] = v >> 56; in apply_relocate_add()
121 location[1] = v >> 48; in apply_relocate_add()
122 location[2] = v >> 40; in apply_relocate_add()
123 location[3] = v >> 32; in apply_relocate_add()
124 location[4] = v >> 24; in apply_relocate_add()
[all …]
/Linux-v6.1/arch/microblaze/kernel/
Dmodule.c25 unsigned long int *location; in apply_relocate_add() local
33 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr + in apply_relocate_add()
49 *location = value; in apply_relocate_add()
53 location[0] = (location[0] & 0xFFFF0000) | in apply_relocate_add()
55 location[1] = (location[1] & 0xFFFF0000) | in apply_relocate_add()
60 value -= (unsigned long int)(location) + 4; in apply_relocate_add()
61 location[0] = (location[0] & 0xFFFF0000) | in apply_relocate_add()
63 location[1] = (location[1] & 0xFFFF0000) | in apply_relocate_add()
/Linux-v6.1/arch/csky/kernel/
Dmodule.c28 static void jsri_2_lrw_jsr(uint32_t *location) in jsri_2_lrw_jsr() argument
30 uint16_t *location_tmp = (uint16_t *)location; in jsri_2_lrw_jsr()
37 CHANGE_JSRI_TO_LRW(location); in jsri_2_lrw_jsr()
39 SET_JSR32_R26(location + 1); in jsri_2_lrw_jsr()
43 static void inline jsri_2_lrw_jsr(uint32_t *location) in jsri_2_lrw_jsr() argument
55 uint32_t *location; in apply_relocate_add() local
60 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
68 *location = rel[i].r_addend + sym->st_value; in apply_relocate_add()
72 *location = rel[i].r_addend + sym->st_value in apply_relocate_add()
73 - (uint32_t)location; in apply_relocate_add()
[all …]
/Linux-v6.1/arch/powerpc/kernel/
Dmodule_32.c157 static uint32_t do_plt_call(void *location, in do_plt_call() argument
164 pr_debug("Doing plt for call to 0x%x at 0x%x\n", val, (unsigned int)location); in do_plt_call()
166 if (location >= mod->core_layout.base in do_plt_call()
167 && location < mod->core_layout.base + mod->core_layout.size) in do_plt_call()
206 uint32_t *location; in apply_relocate_add() local
213 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
225 *(uint32_t *)location = value; in apply_relocate_add()
230 if (patch_location_16(location, PPC_LO(value))) in apply_relocate_add()
236 if (patch_location_16(location, PPC_HI(value))) in apply_relocate_add()
241 if (patch_location_16(location, PPC_HA(value))) in apply_relocate_add()
[all …]
Dmodule_64.c529 unsigned long *location; in apply_relocate_add() local
547 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
554 location, (long)ELF64_R_TYPE(rela[i].r_info), in apply_relocate_add()
564 *(u32 *)location = value; in apply_relocate_add()
569 *(unsigned long *)location = value; in apply_relocate_add()
573 *(unsigned long *)location = my_r2(sechdrs, me); in apply_relocate_add()
584 *((uint16_t *) location) in apply_relocate_add()
585 = (*((uint16_t *) location) & ~0xffff) in apply_relocate_add()
592 *((uint16_t *) location) in apply_relocate_add()
593 = (*((uint16_t *) location) & ~0xffff) in apply_relocate_add()
[all …]
/Linux-v6.1/lib/
Dubsan.h29 struct source_location location; member
34 struct source_location location; member
41 struct source_location location; member
48 struct source_location *location; member
55 struct source_location location; member
61 struct source_location location; member
67 struct source_location location; member
73 struct source_location location; member
77 struct source_location location; member
82 struct source_location location; member
Dubsan.c44 static bool was_reported(struct source_location *location) in was_reported() argument
46 return test_and_set_bit(REPORTED_BIT, &location->reported); in was_reported()
166 if (suppress_report(&data->location)) in __ubsan_handle_divrem_overflow()
169 ubsan_prologue(&data->location, "division-overflow"); in __ubsan_handle_divrem_overflow()
185 if (suppress_report(data->location)) in handle_null_ptr_deref()
188 ubsan_prologue(data->location, "null-ptr-deref"); in handle_null_ptr_deref()
200 if (suppress_report(data->location)) in handle_misaligned_access()
203 ubsan_prologue(data->location, "misaligned-access"); in handle_misaligned_access()
216 if (suppress_report(data->location)) in handle_object_size_mismatch()
219 ubsan_prologue(data->location, "object-size-mismatch"); in handle_object_size_mismatch()
[all …]
/Linux-v6.1/arch/alpha/kernel/
Dmodule.c140 void *base, *location; in apply_relocate_add() local
162 location = base + rela[i].r_offset; in apply_relocate_add()
173 *(u32 *)location = value; in apply_relocate_add()
177 ((u32 *)location)[0] = value; in apply_relocate_add()
178 ((u32 *)location)[1] = value >> 32; in apply_relocate_add()
184 *(u32 *)location = value; in apply_relocate_add()
191 *(u16 *)location = lo; in apply_relocate_add()
197 value = gp - (u64)location; in apply_relocate_add()
202 *(u16 *)location = hi >> 16; in apply_relocate_add()
203 *(u16 *)(location + rela[i].r_addend) = lo; in apply_relocate_add()
[all …]
/Linux-v6.1/drivers/net/ethernet/aquantia/atlantic/
Daq_filters.c76 if (rule->aq_fsp.location == fsp->location) in aq_rule_already_exists()
95 if (fsp->location < AQ_RX_FIRST_LOC_FL3L4 || in aq_check_approve_fl3l4()
96 fsp->location > last_location) { in aq_check_approve_fl3l4()
113 fsp->location != AQ_RX_FIRST_LOC_FL3L4 + 4 && in aq_check_approve_fl3l4()
114 fsp->location != AQ_RX_FIRST_LOC_FL3L4) { in aq_check_approve_fl3l4()
132 if (fsp->location < AQ_RX_FIRST_LOC_FETHERT || in aq_check_approve_fl2()
133 fsp->location > last_location) { in aq_check_approve_fl2()
158 if (fsp->location < AQ_RX_FIRST_LOC_FVLANID || in aq_check_approve_fvlan()
159 fsp->location > AQ_RX_LAST_LOC_FVLANID) { in aq_check_approve_fvlan()
272 } else if (fsp->location > AQ_RX_MAX_RXNFC_LOC) { in aq_rule_is_not_correct()
[all …]
/Linux-v6.1/arch/openrisc/kernel/
Dmodule.c25 uint32_t *location; in apply_relocate_add() local
32 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
43 *location = value; in apply_relocate_add()
46 *((uint16_t *)location + 1) = value; in apply_relocate_add()
49 *((uint16_t *)location + 1) = value >> 16; in apply_relocate_add()
52 value -= (uint32_t)location; in apply_relocate_add()
55 value |= *location & 0xfc000000; in apply_relocate_add()
56 *location = value; in apply_relocate_add()
/Linux-v6.1/drivers/staging/media/atomisp/pci/runtime/queue/src/
Dqueue_access.c32 if (rdesc->location == IA_CSS_QUEUE_LOC_SP) { in ia_css_queue_load()
66 } else if (rdesc->location == IA_CSS_QUEUE_LOC_HOST) { in ia_css_queue_load()
71 } else if (rdesc->location == IA_CSS_QUEUE_LOC_ISP) { in ia_css_queue_load()
87 if (rdesc->location == IA_CSS_QUEUE_LOC_SP) { in ia_css_queue_store()
113 } else if (rdesc->location == IA_CSS_QUEUE_LOC_HOST) { in ia_css_queue_store()
118 } else if (rdesc->location == IA_CSS_QUEUE_LOC_ISP) { in ia_css_queue_store()
134 if (rdesc->location == IA_CSS_QUEUE_LOC_SP) { in ia_css_queue_item_load()
140 } else if (rdesc->location == IA_CSS_QUEUE_LOC_HOST) { in ia_css_queue_item_load()
145 } else if (rdesc->location == IA_CSS_QUEUE_LOC_ISP) { in ia_css_queue_item_load()
161 if (rdesc->location == IA_CSS_QUEUE_LOC_SP) { in ia_css_queue_item_store()
[all …]
/Linux-v6.1/arch/m68k/kernel/
Dmodule.c31 uint32_t *location; in apply_relocate() local
37 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate()
47 *location += sym->st_value; in apply_relocate()
51 *location += sym->st_value - (uint32_t)location; in apply_relocate()
71 uint32_t *location; in apply_relocate_add() local
77 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
87 *location = rel[i].r_addend + sym->st_value; in apply_relocate_add()
91 *location = rel[i].r_addend + sym->st_value - (uint32_t)location; in apply_relocate_add()
/Linux-v6.1/tools/wmi/
Ddell-smbios-example.c53 static int find_token(__u16 token, __u16 *location, __u16 *value) in find_token() argument
87 *location = (__u16) strtol(buf, NULL, 16); in find_token()
89 if (*location) in find_token()
94 static int token_is_active(__u16 *location, __u16 *cmpvalue, in token_is_active() argument
101 buffer->std.input[0] = *location; in token_is_active()
111 __u16 location; in query_token() local
115 ret = find_token(token, &location, &value); in query_token()
120 return token_is_active(&location, &value, buffer); in query_token()
126 __u16 location; in activate_token() local
130 ret = find_token(token, &location, &value); in activate_token()
[all …]
/Linux-v6.1/fs/nfs/
Dnfs4namespace.c289 const struct nfs4_fs_location *location) in try_location() argument
301 for (s = 0; s < location->nservers; s++) { in try_location()
302 const struct nfs4_string *buf = &location->servers[s]; in try_location()
312 export_path = nfs4_pathname_string(&location->rootpath, in try_location()
327 for (s = 0; s < location->nservers; s++) { in try_location()
328 const struct nfs4_string *buf = &location->servers[s]; in try_location()
386 const struct nfs4_fs_location *location = &locations->locations[loc]; in nfs_follow_referral() local
388 if (location == NULL || location->nservers <= 0 || in nfs_follow_referral()
389 location->rootpath.ncomponents == 0) in nfs_follow_referral()
392 error = try_location(fc, location); in nfs_follow_referral()
[all …]
/Linux-v6.1/include/trace/events/
Dskb.h26 TP_PROTO(struct sk_buff *skb, void *location,
29 TP_ARGS(skb, location, reason),
33 __field(void *, location)
40 __entry->location = location;
46 __entry->skbaddr, __entry->protocol, __entry->location,
/Linux-v6.1/Documentation/ABI/testing/
Dsysfs-bus-fsl-mc5 Writing a device location to this file will cause
7 this location. The format for the location is Object.Id
18 Writing a device location to this file will cause the
20 this location. The format for the location is Object.Id
/Linux-v6.1/arch/arc/kernel/
Dmodule.c54 Elf32_Addr relocation, location, tgt_addr; in apply_relocate_add() local
77 location = tgt_addr + rel_entry[i].r_offset; in apply_relocate_add()
93 sym_entry->st_value, location, relocation, s); in apply_relocate_add()
103 arc_write_me((unsigned short *)location, relocation); in apply_relocate_add()
105 *((Elf32_Addr *) location) = relocation; in apply_relocate_add()
107 *((Elf32_Addr *) location) = relocation - location; in apply_relocate_add()

12345678910>>...29