/Linux-v4.19/arch/riscv/kernel/ |
D | module.c | 20 static int apply_r_riscv_32_rela(struct module *me, u32 *location, Elf_Addr v) in apply_r_riscv_32_rela() argument 27 *location = v; in apply_r_riscv_32_rela() 31 static int apply_r_riscv_64_rela(struct module *me, u32 *location, Elf_Addr v) in apply_r_riscv_64_rela() argument 33 *(u64 *)location = v; in apply_r_riscv_64_rela() 37 static int apply_r_riscv_branch_rela(struct module *me, u32 *location, in apply_r_riscv_branch_rela() argument 40 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_branch_rela() 46 *location = (*location & 0x1fff07f) | imm12 | imm11 | imm10_5 | imm4_1; in apply_r_riscv_branch_rela() 50 static int apply_r_riscv_jal_rela(struct module *me, u32 *location, in apply_r_riscv_jal_rela() argument 53 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_jal_rela() 59 *location = (*location & 0xfff) | imm20 | imm19_12 | imm11 | imm10_1; in apply_r_riscv_jal_rela() [all …]
|
/Linux-v4.19/arch/xtensa/kernel/ |
D | module.c | 26 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-v4.19/arch/microblaze/kernel/ |
D | module.c | 28 unsigned long int *location; in apply_relocate_add() local 39 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr + in apply_relocate_add() 56 old_value = *location; in apply_relocate_add() 57 *location = value + old_value; in apply_relocate_add() 62 *location = value; in apply_relocate_add() 69 old_value = ((location[0] & 0x0000FFFF) << 16) | in apply_relocate_add() 70 (location[1] & 0x0000FFFF); in apply_relocate_add() 73 location[0] = (location[0] & 0xFFFF0000) | in apply_relocate_add() 75 location[1] = (location[1] & 0xFFFF0000) | in apply_relocate_add() 85 old_value = (location[0] & 0xFFFF) << 16 | in apply_relocate_add() [all …]
|
/Linux-v4.19/arch/sh/kernel/ |
D | module.c | 47 uint32_t *location; in apply_relocate_add() local 54 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add() 75 value = get_unaligned(location); in apply_relocate_add() 77 put_unaligned(value, location); in apply_relocate_add() 80 relocation = (relocation - (Elf32_Addr) location); in apply_relocate_add() 81 value = get_unaligned(location); in apply_relocate_add() 83 put_unaligned(value, location); in apply_relocate_add() 86 *location = (*location & ~0x3fffc00) | in apply_relocate_add() 90 *location = (*location & ~0x3fffc00) | in apply_relocate_add() 94 relocation -= (Elf32_Addr) location; in apply_relocate_add() [all …]
|
/Linux-v4.19/arch/c6x/kernel/ |
D | module.c | 53 u32 *location, opcode; in apply_relocate_add() local 63 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add() 76 pr_debug("RELA ABS32: [%p] = 0x%x\n", location, v); in apply_relocate_add() 77 *location = v; in apply_relocate_add() 80 pr_debug("RELA ABS16: [%p] = 0x%x\n", location, v); in apply_relocate_add() 81 *(u16 *)location = v; in apply_relocate_add() 84 pr_debug("RELA ABS8: [%p] = 0x%x\n", location, v); in apply_relocate_add() 85 *(u8 *)location = v; in apply_relocate_add() 88 opcode = *location; in apply_relocate_add() 92 location, v, opcode); in apply_relocate_add() [all …]
|
/Linux-v4.19/arch/mips/kernel/ |
D | module.c | 56 static int apply_r_mips_none(struct module *me, u32 *location, in apply_r_mips_none() argument 62 static int apply_r_mips_32(struct module *me, u32 *location, in apply_r_mips_32() argument 65 *location = base + v; in apply_r_mips_32() 70 static int apply_r_mips_26(struct module *me, u32 *location, in apply_r_mips_26() argument 79 if ((v & 0xf0000000) != (((unsigned long)location + 4) & 0xf0000000)) { in apply_r_mips_26() 85 *location = (*location & ~0x03ffffff) | in apply_r_mips_26() 91 static int apply_r_mips_hi16(struct module *me, u32 *location, in apply_r_mips_hi16() argument 97 *location = (*location & 0xffff0000) | in apply_r_mips_hi16() 111 n->addr = (Elf_Addr *)location; in apply_r_mips_hi16() 130 static int apply_r_mips_lo16(struct module *me, u32 *location, in apply_r_mips_lo16() argument [all …]
|
D | vpe.c | 228 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-v4.19/arch/hexagon/kernel/ |
D | module.c | 86 uint32_t *location; in apply_relocate_add() local 103 location = loc_base + rela[i].r_offset; in apply_relocate_add() 109 i, value, location, ELF32_R_TYPE(rela[i].r_info), in apply_relocate_add() 115 int dist = (int)(value - (uint32_t)location); in apply_relocate_add() 122 dist, value, (uint32_t)location, in apply_relocate_add() 127 DEBUGP("B22_PCREL contents: %08X.\n", *location); in apply_relocate_add() 128 *location &= ~0x01ff3fff; in apply_relocate_add() 129 *location |= 0x00003fff & dist; in apply_relocate_add() 130 *location |= 0x01ff0000 & (dist<<2); in apply_relocate_add() 131 DEBUGP("Contents after reloc: %08x\n", *location); in apply_relocate_add() [all …]
|
/Linux-v4.19/arch/powerpc/kernel/ |
D | module_32.c | 182 static uint32_t do_plt_call(void *location, in do_plt_call() argument 189 pr_debug("Doing plt for call to 0x%x at 0x%x\n", val, (unsigned int)location); in do_plt_call() 191 if (location >= mod->core_layout.base in do_plt_call() 192 && location < mod->core_layout.base + mod->core_layout.size) in do_plt_call() 221 uint32_t *location; in apply_relocate_add() local 228 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add() 240 *(uint32_t *)location = value; in apply_relocate_add() 245 *(uint16_t *)location = value; in apply_relocate_add() 250 *(uint16_t *)location = (value >> 16); in apply_relocate_add() 258 *(uint16_t *)location = (value + 0x8000) >> 16; in apply_relocate_add() [all …]
|
D | module_64.c | 548 unsigned long *location; in apply_relocate_add() local 566 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add() 573 location, (long)ELF64_R_TYPE(rela[i].r_info), in apply_relocate_add() 583 *(u32 *)location = value; in apply_relocate_add() 588 *(unsigned long *)location = value; in apply_relocate_add() 592 *(unsigned long *)location = my_r2(sechdrs, me); in apply_relocate_add() 603 *((uint16_t *) location) in apply_relocate_add() 604 = (*((uint16_t *) location) & ~0xffff) in apply_relocate_add() 611 *((uint16_t *) location) in apply_relocate_add() 612 = (*((uint16_t *) location) & ~0xffff) in apply_relocate_add() [all …]
|
/Linux-v4.19/arch/sparc/kernel/ |
D | module.c | 92 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-v4.19/lib/ |
D | ubsan.c | 46 static bool was_reported(struct source_location *location) in was_reported() argument 48 return test_and_set_bit(REPORTED_BIT, &location->reported); in was_reported() 146 static void ubsan_prologue(struct source_location *location, in ubsan_prologue() argument 154 print_source_location("UBSAN: Undefined behaviour in", location); in ubsan_prologue() 175 if (suppress_report(&data->location)) in handle_overflow() 178 ubsan_prologue(&data->location, &flags); in handle_overflow() 224 if (suppress_report(&data->location)) in __ubsan_handle_negate_overflow() 227 ubsan_prologue(&data->location, &flags); in __ubsan_handle_negate_overflow() 246 if (suppress_report(&data->location)) in __ubsan_handle_divrem_overflow() 249 ubsan_prologue(&data->location, &flags); in __ubsan_handle_divrem_overflow() [all …]
|
D | ubsan.h | 29 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 66 struct source_location location; member 72 struct source_location location; member 78 struct source_location location; member 82 struct source_location location; member
|
/Linux-v4.19/arch/alpha/kernel/ |
D | module.c | 152 void *base, *location; in apply_relocate_add() local 174 location = base + rela[i].r_offset; in apply_relocate_add() 185 *(u32 *)location = value; in apply_relocate_add() 189 ((u32 *)location)[0] = value; in apply_relocate_add() 190 ((u32 *)location)[1] = value >> 32; in apply_relocate_add() 196 *(u32 *)location = value; in apply_relocate_add() 203 *(u16 *)location = lo; in apply_relocate_add() 209 value = gp - (u64)location; in apply_relocate_add() 214 *(u16 *)location = hi >> 16; in apply_relocate_add() 215 *(u16 *)(location + rela[i].r_addend) = lo; in apply_relocate_add() [all …]
|
/Linux-v4.19/arch/openrisc/kernel/ |
D | module.c | 29 uint32_t *location; in apply_relocate_add() local 36 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add() 47 *location = value; in apply_relocate_add() 50 *((uint16_t *)location + 1) = value; in apply_relocate_add() 53 *((uint16_t *)location + 1) = value >> 16; in apply_relocate_add() 56 value -= (uint32_t)location; in apply_relocate_add() 59 value |= *location & 0xfc000000; in apply_relocate_add() 60 *location = value; in apply_relocate_add()
|
/Linux-v4.19/arch/m68k/kernel/ |
D | module.c | 31 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-v4.19/drivers/staging/gasket/ |
D | gasket_core.h | 591 ulong location) in gasket_dev_read_64() argument 593 return readq(&gasket_dev->bar_data[bar].virt_base[location]); in gasket_dev_read_64() 597 int bar, ulong location) in gasket_dev_write_64() argument 599 writeq(value, &dev->bar_data[bar].virt_base[location]); in gasket_dev_write_64() 603 int bar, ulong location) in gasket_dev_write_32() argument 605 writel(value, &dev->bar_data[bar].virt_base[location]); in gasket_dev_write_32() 609 ulong location) in gasket_dev_read_32() argument 611 return readl(&dev->bar_data[bar].virt_base[location]); in gasket_dev_read_32() 615 ulong location, u64 value, in gasket_read_modify_write_64() argument 620 tmp = gasket_dev_read_64(dev, bar, location); in gasket_read_modify_write_64() [all …]
|
/Linux-v4.19/tools/wmi/ |
D | dell-smbios-example.c | 56 static int find_token(__u16 token, __u16 *location, __u16 *value) in find_token() argument 90 *location = (__u16) strtol(buf, NULL, 16); in find_token() 92 if (*location) in find_token() 97 static int token_is_active(__u16 *location, __u16 *cmpvalue, in token_is_active() argument 104 buffer->std.input[0] = *location; in token_is_active() 114 __u16 location; in query_token() local 118 ret = find_token(token, &location, &value); in query_token() 123 return token_is_active(&location, &value, buffer); in query_token() 129 __u16 location; in activate_token() local 133 ret = find_token(token, &location, &value); in activate_token() [all …]
|
/Linux-v4.19/include/trace/events/ |
D | skb.h | 17 TP_PROTO(struct sk_buff *skb, void *location), 19 TP_ARGS(skb, location), 23 __field( void *, location ) 29 __entry->location = location; 34 __entry->skbaddr, __entry->protocol, __entry->location)
|
/Linux-v4.19/fs/nfs/ |
D | nfs4namespace.c | 240 const struct nfs4_fs_location *location) in try_location() argument 249 mnt_path = nfs4_pathname_string(&location->rootpath, page2, PAGE_SIZE); in try_location() 259 for (s = 0; s < location->nservers; s++) { in try_location() 260 const struct nfs4_string *buf = &location->servers[s]; in try_location() 328 const struct nfs4_fs_location *location = &locations->locations[loc]; in nfs_follow_referral() local 330 if (location == NULL || location->nservers <= 0 || in nfs_follow_referral() 331 location->rootpath.ncomponents == 0) in nfs_follow_referral() 334 mnt = try_location(&mountdata, page, page2, location); in nfs_follow_referral() 424 const struct nfs4_fs_location *location) in nfs4_try_replacing_one_location() argument 438 for (s = 0; s < location->nservers; s++) { in nfs4_try_replacing_one_location() [all …]
|
/Linux-v4.19/Documentation/ABI/testing/ |
D | sysfs-bus-fsl-mc | 5 Writing a device location to this file will cause 7 this location. The format for the location is Object.Id 16 Writing a device location to this file will cause the 18 this location. The format for the location is Object.Id
|
/Linux-v4.19/arch/arc/kernel/ |
D | module.c | 57 Elf32_Addr relocation, location, tgt_addr; in apply_relocate_add() local 80 location = tgt_addr + rel_entry[i].r_offset; in apply_relocate_add() 96 sym_entry->st_value, location, relocation, s); in apply_relocate_add() 106 arc_write_me((unsigned short *)location, relocation); in apply_relocate_add() 108 *((Elf32_Addr *) location) = relocation; in apply_relocate_add() 110 *((Elf32_Addr *) location) = relocation - location; in apply_relocate_add()
|
/Linux-v4.19/samples/seccomp/ |
D | bpf-helper.c | 37 if (labels->labels[instr->k].location == 0xffffffff) { in bpf_resolve_jumps() 42 instr->k = labels->labels[instr->k].location - in bpf_resolve_jumps() 48 if (labels->labels[instr->k].location != 0xffffffff) { in bpf_resolve_jumps() 53 labels->labels[instr->k].location = offset; in bpf_resolve_jumps() 75 begin->location = 0xffffffff; in seccomp_bpf_label() 85 begin->location = 0xffffffff; in seccomp_bpf_label()
|
/Linux-v4.19/Documentation/devicetree/bindings/powerpc/nintendo/ |
D | wii.txt | 31 - reg : should contain the VI registers location and length 42 - reg : should contain the PI registers location and length 64 - reg : should contain the DSP registers location and length 76 - reg : should contain the SI registers location and length 87 - reg : should contain the AI registers location and length 97 - reg : should contain the EXI registers location and length 107 - reg : should contain the OHCI registers location and length 117 - reg : should contain the EHCI registers location and length 127 - reg : should contain the SDHCI registers location and length 136 - reg : should contain the IPC registers location and length [all …]
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_fs_ethtool.c | 376 if (iter->flow_spec.location > rule->flow_spec.location) in add_rule_to_list() 455 int location) in find_ethtool_rule() argument 460 if (iter->flow_spec.location == location) in find_ethtool_rule() 467 int location) in get_ethtool_rule() argument 471 eth_rule = find_ethtool_rule(priv, location); in get_ethtool_rule() 624 if (fs->location >= MAX_NUM_OF_ETHTOOL_RULES) in validate_flow() 699 eth_rule = get_ethtool_rule(priv, fs->location); in mlx5e_ethtool_flow_replace() 728 mlx5e_ethtool_flow_remove(struct mlx5e_priv *priv, int location) in mlx5e_ethtool_flow_remove() argument 733 if (location >= MAX_NUM_OF_ETHTOOL_RULES) in mlx5e_ethtool_flow_remove() 736 eth_rule = find_ethtool_rule(priv, location); in mlx5e_ethtool_flow_remove() [all …]
|