Lines Matching +full:0 +full:xff000
58 u32 insn = (u32)le16_to_cpu(parcel[0]) | (u32)le16_to_cpu(parcel[1]) << 16; in riscv_insn_rmw()
63 parcel[0] = cpu_to_le16(insn); in riscv_insn_rmw()
65 return 0; in riscv_insn_rmw()
77 return 0; in riscv_insn_rvc_rmw()
88 return 0; in apply_r_riscv_32_rela()
94 return 0; in apply_r_riscv_64_rela()
101 u32 imm12 = (offset & 0x1000) << (31 - 12); in apply_r_riscv_branch_rela()
102 u32 imm11 = (offset & 0x800) >> (11 - 7); in apply_r_riscv_branch_rela()
103 u32 imm10_5 = (offset & 0x7e0) << (30 - 10); in apply_r_riscv_branch_rela()
104 u32 imm4_1 = (offset & 0x1e) << (11 - 4); in apply_r_riscv_branch_rela()
106 return riscv_insn_rmw(location, 0x1fff07f, imm12 | imm11 | imm10_5 | imm4_1); in apply_r_riscv_branch_rela()
113 u32 imm20 = (offset & 0x100000) << (31 - 20); in apply_r_riscv_jal_rela()
114 u32 imm19_12 = (offset & 0xff000); in apply_r_riscv_jal_rela()
115 u32 imm11 = (offset & 0x800) << (20 - 11); in apply_r_riscv_jal_rela()
116 u32 imm10_1 = (offset & 0x7fe) << (30 - 10); in apply_r_riscv_jal_rela()
118 return riscv_insn_rmw(location, 0xfff, imm20 | imm19_12 | imm11 | imm10_1); in apply_r_riscv_jal_rela()
125 u16 imm8 = (offset & 0x100) << (12 - 8); in apply_r_riscv_rvc_branch_rela()
126 u16 imm7_6 = (offset & 0xc0) >> (6 - 5); in apply_r_riscv_rvc_branch_rela()
127 u16 imm5 = (offset & 0x20) >> (5 - 2); in apply_r_riscv_rvc_branch_rela()
128 u16 imm4_3 = (offset & 0x18) << (12 - 5); in apply_r_riscv_rvc_branch_rela()
129 u16 imm2_1 = (offset & 0x6) << (12 - 10); in apply_r_riscv_rvc_branch_rela()
131 return riscv_insn_rvc_rmw(location, 0xe383, in apply_r_riscv_rvc_branch_rela()
139 u16 imm11 = (offset & 0x800) << (12 - 11); in apply_r_riscv_rvc_jump_rela()
140 u16 imm10 = (offset & 0x400) >> (10 - 8); in apply_r_riscv_rvc_jump_rela()
141 u16 imm9_8 = (offset & 0x300) << (12 - 11); in apply_r_riscv_rvc_jump_rela()
142 u16 imm7 = (offset & 0x80) >> (7 - 6); in apply_r_riscv_rvc_jump_rela()
143 u16 imm6 = (offset & 0x40) << (12 - 11); in apply_r_riscv_rvc_jump_rela()
144 u16 imm5 = (offset & 0x20) >> (5 - 2); in apply_r_riscv_rvc_jump_rela()
145 u16 imm4 = (offset & 0x10) << (12 - 5); in apply_r_riscv_rvc_jump_rela()
146 u16 imm3_1 = (offset & 0xe) << (12 - 10); in apply_r_riscv_rvc_jump_rela()
148 return riscv_insn_rvc_rmw(location, 0xe003, in apply_r_riscv_rvc_jump_rela()
164 return riscv_insn_rmw(location, 0xfff, (offset + 0x800) & 0xfffff000); in apply_r_riscv_pcrel_hi20_rela()
174 return riscv_insn_rmw(location, 0xfffff, (v & 0xfff) << 20); in apply_r_riscv_pcrel_lo12_i_rela()
184 u32 imm11_5 = (v & 0xfe0) << (31 - 11); in apply_r_riscv_pcrel_lo12_s_rela()
185 u32 imm4_0 = (v & 0x1f) << (11 - 4); in apply_r_riscv_pcrel_lo12_s_rela()
187 return riscv_insn_rmw(location, 0x1fff07f, imm11_5 | imm4_0); in apply_r_riscv_pcrel_lo12_s_rela()
200 return riscv_insn_rmw(location, 0xfff, ((s32)v + 0x800) & 0xfffff000); in apply_r_riscv_hi20_rela()
207 s32 hi20 = ((s32)v + 0x800) & 0xfffff000; in apply_r_riscv_lo12_i_rela()
210 return riscv_insn_rmw(location, 0xfffff, (lo12 & 0xfff) << 20); in apply_r_riscv_lo12_i_rela()
217 s32 hi20 = ((s32)v + 0x800) & 0xfffff000; in apply_r_riscv_lo12_s_rela()
219 u32 imm11_5 = (lo12 & 0xfe0) << (31 - 11); in apply_r_riscv_lo12_s_rela()
220 u32 imm4_0 = (lo12 & 0x1f) << (11 - 4); in apply_r_riscv_lo12_s_rela()
222 return riscv_insn_rmw(location, 0x1fff07f, imm11_5 | imm4_0); in apply_r_riscv_lo12_s_rela()
240 return riscv_insn_rmw(location, 0xfff, (offset + 0x800) & 0xfffff000); in apply_r_riscv_got_hi20_rela()
261 hi20 = (offset + 0x800) & 0xfffff000; in apply_r_riscv_call_plt_rela()
262 lo12 = (offset - hi20) & 0xfff; in apply_r_riscv_call_plt_rela()
263 riscv_insn_rmw(location, 0xfff, hi20); in apply_r_riscv_call_plt_rela()
264 return riscv_insn_rmw(location + 4, 0xfffff, lo12 << 20); in apply_r_riscv_call_plt_rela()
280 hi20 = (offset + 0x800) & 0xfffff000; in apply_r_riscv_call_rela()
281 lo12 = (offset - hi20) & 0xfff; in apply_r_riscv_call_rela()
282 riscv_insn_rmw(location, 0xfff, hi20); in apply_r_riscv_call_rela()
283 return riscv_insn_rmw(location + 4, 0xfffff, lo12 << 20); in apply_r_riscv_call_rela()
289 return 0; in apply_r_riscv_relax_rela()
304 return 0; in apply_r_riscv_add8_rela()
311 return 0; in apply_r_riscv_add16_rela()
318 return 0; in apply_r_riscv_add32_rela()
325 return 0; in apply_r_riscv_add64_rela()
331 return 0; in apply_r_riscv_sub8_rela()
338 return 0; in apply_r_riscv_sub16_rela()
345 return 0; in apply_r_riscv_sub32_rela()
352 return 0; in apply_r_riscv_sub64_rela()
375 *byte = (*byte - (value & 0x3f)) & 0x3f; in apply_r_riscv_sub6_rela()
376 return 0; in apply_r_riscv_sub6_rela()
384 *byte = (*byte & 0xc0) | (value & 0x3f); in apply_r_riscv_set6_rela()
385 return 0; in apply_r_riscv_set6_rela()
391 return 0; in apply_r_riscv_set8_rela()
398 return 0; in apply_r_riscv_set16_rela()
405 return 0; in apply_r_riscv_set32_rela()
412 return 0; in apply_r_riscv_32_pcrel_rela()
432 return 0; in apply_r_riscv_plt32_rela()
438 return 0; in apply_r_riscv_set_uleb128()
444 return 0; in apply_r_riscv_sub_uleb128()
452 if (buffer > 0x3f) { in apply_6_bit_accumulation()
458 *byte = (*byte & 0xc0) | (value & 0x3f); in apply_6_bit_accumulation()
459 return 0; in apply_6_bit_accumulation()
470 return 0; in apply_8_bit_accumulation()
481 return 0; in apply_16_bit_accumulation()
492 return 0; in apply_32_bit_accumulation()
498 return 0; in apply_64_bit_accumulation()
509 while (buffer != 0) { in apply_uleb128_accumulation()
510 u8 value = buffer & 0x7f; in apply_uleb128_accumulation()
517 return 0; in apply_uleb128_accumulation()
633 buffer = 0; in process_accumulated_relocations()
740 return 0; in add_relocation_to_accumulate()
750 * When hashtable_size == 1, hashtable_bits == 0. in initialize_relocation_hashtable()
751 * This is valid because the hashing algorithm returns 0 in this case. in initialize_relocation_hashtable()
769 return 0; in initialize_relocation_hashtable()
785 unsigned int j_idx = 0; in apply_relocate_add()
802 for (i = 0; i < num_relocations; i++) { in apply_relocate_add()
863 hi20 = (offset + 0x800) & 0xfffff000; in apply_relocate_add()
873 j = 0; in apply_relocate_add()
902 return 0; in apply_relocate_add()
915 return 0; in module_finalize()