| /kernel/linux/linux-5.10/arch/riscv/kernel/ |
| D | module.c | 16 static int apply_r_riscv_32_rela(struct module *me, u32 *location, Elf_Addr v) in apply_r_riscv_32_rela() argument 23 *location = v; in apply_r_riscv_32_rela() 27 static int apply_r_riscv_64_rela(struct module *me, u32 *location, Elf_Addr v) in apply_r_riscv_64_rela() argument 29 *(u64 *)location = v; in apply_r_riscv_64_rela() 33 static int apply_r_riscv_branch_rela(struct module *me, u32 *location, in apply_r_riscv_branch_rela() argument 36 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_branch_rela() 42 *location = (*location & 0x1fff07f) | imm12 | imm11 | imm10_5 | imm4_1; in apply_r_riscv_branch_rela() 46 static int apply_r_riscv_jal_rela(struct module *me, u32 *location, in apply_r_riscv_jal_rela() argument 49 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_jal_rela() 55 *location = (*location & 0xfff) | imm20 | imm19_12 | imm11 | imm10_1; in apply_r_riscv_jal_rela() [all …]
|
| /kernel/linux/linux-4.19/arch/riscv/kernel/ |
| D | module.c | 24 static int apply_r_riscv_32_rela(struct module *me, u32 *location, Elf_Addr v) in apply_r_riscv_32_rela() argument 31 *location = v; in apply_r_riscv_32_rela() 35 static int apply_r_riscv_64_rela(struct module *me, u32 *location, Elf_Addr v) in apply_r_riscv_64_rela() argument 37 *(u64 *)location = v; in apply_r_riscv_64_rela() 41 static int apply_r_riscv_branch_rela(struct module *me, u32 *location, in apply_r_riscv_branch_rela() argument 44 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_branch_rela() 50 *location = (*location & 0x1fff07f) | imm12 | imm11 | imm10_5 | imm4_1; in apply_r_riscv_branch_rela() 54 static int apply_r_riscv_jal_rela(struct module *me, u32 *location, in apply_r_riscv_jal_rela() argument 57 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_jal_rela() 63 *location = (*location & 0xfff) | imm20 | imm19_12 | imm11 | imm10_1; in apply_r_riscv_jal_rela() [all …]
|
| /kernel/linux/linux-4.19/drivers/video/fbdev/via/ |
| D | hw.h | 68 /* location: {CR6D,0,7},{CR71,3,3} */ 70 /* location: {CR6E,0,7} */ 72 /* location: {CR6F,0,7},{CR71,0,2} */ 74 /* location: {CR70,0,7},{CR71,4,6} */ 76 /* location: {CR72,0,7},{CR74,4,6} */ 78 /* location: {CR73,0,7},{CR74,0,2} */ 80 /* location: {CR75,0,7},{CR76,4,6} */ 82 /* location: {CR76,0,3} */ 87 /* location: {SR1C,0,7},{SR1D,0,1} */ 96 /* location: {CR65,0,7},{CR67,2,3} */ [all …]
|
| /kernel/linux/linux-5.10/drivers/video/fbdev/via/ |
| D | hw.h | 54 /* location: {CR6D,0,7},{CR71,3,3} */ 56 /* location: {CR6E,0,7} */ 58 /* location: {CR6F,0,7},{CR71,0,2} */ 60 /* location: {CR70,0,7},{CR71,4,6} */ 62 /* location: {CR72,0,7},{CR74,4,6} */ 64 /* location: {CR73,0,7},{CR74,0,2} */ 66 /* location: {CR75,0,7},{CR76,4,6} */ 68 /* location: {CR76,0,3} */ 73 /* location: {SR1C,0,7},{SR1D,0,1} */ 82 /* location: {CR65,0,7},{CR67,2,3} */ [all …]
|
| /kernel/linux/linux-4.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 …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-5.10/arch/microblaze/kernel/ |
| D | module.c | 25 unsigned long int *location; in apply_relocate_add() local 36 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr + in apply_relocate_add() 47 * read the current contents of (*location), add any offset in apply_relocate_add() 53 old_value = *location; in apply_relocate_add() 54 *location = value + old_value; in apply_relocate_add() 59 *location = value; in apply_relocate_add() 66 old_value = ((location[0] & 0x0000FFFF) << 16) | in apply_relocate_add() 67 (location[1] & 0x0000FFFF); in apply_relocate_add() 70 location[0] = (location[0] & 0xFFFF0000) | in apply_relocate_add() 72 location[1] = (location[1] & 0xFFFF0000) | in apply_relocate_add() [all …]
|
| /kernel/linux/linux-4.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() 50 * read the current contents of (*location), add any offset 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() [all …]
|
| /kernel/linux/linux-5.10/arch/sh/kernel/ |
| D | module.c | 34 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 …]
|
| /kernel/linux/linux-4.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 …]
|
| /kernel/linux/linux-5.10/arch/mips/kernel/ |
| D | module.c | 43 static int apply_r_mips_none(struct module *me, u32 *location, in apply_r_mips_none() argument 49 static int apply_r_mips_32(struct module *me, u32 *location, in apply_r_mips_32() argument 52 *location = base + v; in apply_r_mips_32() 57 static int apply_r_mips_26(struct module *me, u32 *location, in apply_r_mips_26() argument 66 if ((v & 0xf0000000) != (((unsigned long)location + 4) & 0xf0000000)) { in apply_r_mips_26() 72 *location = (*location & ~0x03ffffff) | in apply_r_mips_26() 78 static int apply_r_mips_hi16(struct module *me, u32 *location, in apply_r_mips_hi16() argument 84 *location = (*location & 0xffff0000) | in apply_r_mips_hi16() 98 n->addr = (Elf_Addr *)location; in apply_r_mips_hi16() 117 static int apply_r_mips_lo16(struct module *me, u32 *location, in apply_r_mips_lo16() argument [all …]
|
| /kernel/linux/linux-4.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 …]
|
| /kernel/linux/linux-4.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 …]
|
| /kernel/linux/linux-5.10/arch/c6x/kernel/ |
| D | module.c | 49 u32 *location, opcode; in apply_relocate_add() local 59 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add() 72 pr_debug("RELA ABS32: [%p] = 0x%x\n", location, v); in apply_relocate_add() 73 *location = v; in apply_relocate_add() 76 pr_debug("RELA ABS16: [%p] = 0x%x\n", location, v); in apply_relocate_add() 77 *(u16 *)location = v; in apply_relocate_add() 80 pr_debug("RELA ABS8: [%p] = 0x%x\n", location, v); in apply_relocate_add() 81 *(u8 *)location = v; in apply_relocate_add() 84 opcode = *location; in apply_relocate_add() 88 location, v, opcode); in apply_relocate_add() [all …]
|
| /kernel/linux/linux-5.10/arch/powerpc/kernel/ |
| D | module_32.c | 157 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() 202 uint32_t *location; in apply_relocate_add() local 209 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add() 221 *(uint32_t *)location = value; in apply_relocate_add() 226 *(uint16_t *)location = value; in apply_relocate_add() 231 *(uint16_t *)location = (value >> 16); in apply_relocate_add() 239 *(uint16_t *)location = (value + 0x8000) >> 16; in apply_relocate_add() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/ |
| D | aq_filters.c | 76 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() 98 "ethtool: location must be in range [%d, %d]", 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() 116 "ethtool: The specified location for ipv6 must be %d or %d", 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() 135 "ethtool: location must be in range [%d, %d]", in aq_check_approve_fl2() [all …]
|
| /kernel/linux/linux-5.10/arch/csky/kernel/ |
| D | module.c | 28 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() 67 /* We add the value into the location given */ 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() [all …]
|
| /kernel/linux/linux-4.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 …]
|
| /kernel/linux/linux-5.10/lib/ |
| 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 67 struct source_location location; member 73 struct source_location location; member 77 struct source_location location; member 82 struct source_location location; member
|
| /kernel/linux/linux-4.19/lib/ |
| 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
|
| 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() 148 static void ubsan_prologue(struct source_location *location, in ubsan_prologue() argument 156 print_source_location("UBSAN: Undefined behaviour in", location); in ubsan_prologue() 177 if (suppress_report(&data->location)) in handle_overflow() 180 ubsan_prologue(&data->location, &flags); in handle_overflow() 223 if (suppress_report(&data->location)) in __ubsan_handle_negate_overflow() 226 ubsan_prologue(&data->location, &flags); in __ubsan_handle_negate_overflow() 244 if (suppress_report(&data->location)) in __ubsan_handle_divrem_overflow() 247 ubsan_prologue(&data->location, &flags); in __ubsan_handle_divrem_overflow() [all …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-4.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 …]
|
| /kernel/linux/linux-5.10/arch/hexagon/kernel/ |
| D | module.c | 73 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 …]
|
| /kernel/linux/linux-4.19/include/linux/ |
| D | hp_sdc.h | 197 #define HP_SDC_CMD_READ_D0 0xf0 /* Load from i8042 RAM location 0x70 */ 198 #define HP_SDC_CMD_READ_D1 0xf1 /* Load from i8042 RAM location 0x71 */ 199 #define HP_SDC_CMD_READ_D2 0xf2 /* Load from i8042 RAM location 0x72 */ 200 #define HP_SDC_CMD_READ_D3 0xf3 /* Load from i8042 RAM location 0x73 */ 201 #define HP_SDC_CMD_READ_VT1 0xf4 /* Load from i8042 RAM location 0x74 */ 202 #define HP_SDC_CMD_READ_VT2 0xf5 /* Load from i8042 RAM location 0x75 */ 203 #define HP_SDC_CMD_READ_VT3 0xf6 /* Load from i8042 RAM location 0x76 */ 204 #define HP_SDC_CMD_READ_VT4 0xf7 /* Load from i8042 RAM location 0x77 */ 205 #define HP_SDC_CMD_READ_KBN 0xf8 /* Load from i8042 RAM location 0x78 */ 206 #define HP_SDC_CMD_READ_KBC 0xf9 /* Load from i8042 RAM location 0x79 */ [all …]
|