Lines Matching +full:0 +full:x800

38 	return 0;  in apply_r_riscv_32_rela()
44 return 0; in apply_r_riscv_64_rela()
51 u32 imm12 = (offset & 0x1000) << (31 - 12); in apply_r_riscv_branch_rela()
52 u32 imm11 = (offset & 0x800) >> (11 - 7); in apply_r_riscv_branch_rela()
53 u32 imm10_5 = (offset & 0x7e0) << (30 - 10); in apply_r_riscv_branch_rela()
54 u32 imm4_1 = (offset & 0x1e) << (11 - 4); in apply_r_riscv_branch_rela()
56 *location = (*location & 0x1fff07f) | imm12 | imm11 | imm10_5 | imm4_1; in apply_r_riscv_branch_rela()
57 return 0; in apply_r_riscv_branch_rela()
64 u32 imm20 = (offset & 0x100000) << (31 - 20); in apply_r_riscv_jal_rela()
65 u32 imm19_12 = (offset & 0xff000); in apply_r_riscv_jal_rela()
66 u32 imm11 = (offset & 0x800) << (20 - 11); in apply_r_riscv_jal_rela()
67 u32 imm10_1 = (offset & 0x7fe) << (30 - 10); in apply_r_riscv_jal_rela()
69 *location = (*location & 0xfff) | imm20 | imm19_12 | imm11 | imm10_1; in apply_r_riscv_jal_rela()
70 return 0; in apply_r_riscv_jal_rela()
77 u16 imm8 = (offset & 0x100) << (12 - 8); in apply_r_riscv_rvc_branch_rela()
78 u16 imm7_6 = (offset & 0xc0) >> (6 - 5); in apply_r_riscv_rvc_branch_rela()
79 u16 imm5 = (offset & 0x20) >> (5 - 2); in apply_r_riscv_rvc_branch_rela()
80 u16 imm4_3 = (offset & 0x18) << (12 - 5); in apply_r_riscv_rvc_branch_rela()
81 u16 imm2_1 = (offset & 0x6) << (12 - 10); in apply_r_riscv_rvc_branch_rela()
83 *(u16 *)location = (*(u16 *)location & 0xe383) | in apply_r_riscv_rvc_branch_rela()
85 return 0; in apply_r_riscv_rvc_branch_rela()
92 u16 imm11 = (offset & 0x800) << (12 - 11); in apply_r_riscv_rvc_jump_rela()
93 u16 imm10 = (offset & 0x400) >> (10 - 8); in apply_r_riscv_rvc_jump_rela()
94 u16 imm9_8 = (offset & 0x300) << (12 - 11); in apply_r_riscv_rvc_jump_rela()
95 u16 imm7 = (offset & 0x80) >> (7 - 6); in apply_r_riscv_rvc_jump_rela()
96 u16 imm6 = (offset & 0x40) << (12 - 11); in apply_r_riscv_rvc_jump_rela()
97 u16 imm5 = (offset & 0x20) >> (5 - 2); in apply_r_riscv_rvc_jump_rela()
98 u16 imm4 = (offset & 0x10) << (12 - 5); in apply_r_riscv_rvc_jump_rela()
99 u16 imm3_1 = (offset & 0xe) << (12 - 10); in apply_r_riscv_rvc_jump_rela()
101 *(u16 *)location = (*(u16 *)location & 0xe003) | in apply_r_riscv_rvc_jump_rela()
103 return 0; in apply_r_riscv_rvc_jump_rela()
119 hi20 = (offset + 0x800) & 0xfffff000; in apply_r_riscv_pcrel_hi20_rela()
120 *location = (*location & 0xfff) | hi20; in apply_r_riscv_pcrel_hi20_rela()
121 return 0; in apply_r_riscv_pcrel_hi20_rela()
131 *location = (*location & 0xfffff) | ((v & 0xfff) << 20); in apply_r_riscv_pcrel_lo12_i_rela()
132 return 0; in apply_r_riscv_pcrel_lo12_i_rela()
142 u32 imm11_5 = (v & 0xfe0) << (31 - 11); in apply_r_riscv_pcrel_lo12_s_rela()
143 u32 imm4_0 = (v & 0x1f) << (11 - 4); in apply_r_riscv_pcrel_lo12_s_rela()
145 *location = (*location & 0x1fff07f) | imm11_5 | imm4_0; in apply_r_riscv_pcrel_lo12_s_rela()
146 return 0; in apply_r_riscv_pcrel_lo12_s_rela()
161 hi20 = ((s32)v + 0x800) & 0xfffff000; in apply_r_riscv_hi20_rela()
162 *location = (*location & 0xfff) | hi20; in apply_r_riscv_hi20_rela()
163 return 0; in apply_r_riscv_hi20_rela()
170 s32 hi20 = ((s32)v + 0x800) & 0xfffff000; in apply_r_riscv_lo12_i_rela()
172 *location = (*location & 0xfffff) | ((lo12 & 0xfff) << 20); in apply_r_riscv_lo12_i_rela()
173 return 0; in apply_r_riscv_lo12_i_rela()
180 s32 hi20 = ((s32)v + 0x800) & 0xfffff000; in apply_r_riscv_lo12_s_rela()
182 u32 imm11_5 = (lo12 & 0xfe0) << (31 - 11); in apply_r_riscv_lo12_s_rela()
183 u32 imm4_0 = (lo12 & 0x1f) << (11 - 4); in apply_r_riscv_lo12_s_rela()
184 *location = (*location & 0x1fff07f) | imm11_5 | imm4_0; in apply_r_riscv_lo12_s_rela()
185 return 0; in apply_r_riscv_lo12_s_rela()
205 hi20 = (offset + 0x800) & 0xfffff000; in apply_r_riscv_got_hi20_rela()
206 *location = (*location & 0xfff) | hi20; in apply_r_riscv_got_hi20_rela()
207 return 0; in apply_r_riscv_got_hi20_rela()
229 hi20 = (offset + 0x800) & 0xfffff000; in apply_r_riscv_call_plt_rela()
230 lo12 = (offset - hi20) & 0xfff; in apply_r_riscv_call_plt_rela()
231 *location = (*location & 0xfff) | hi20; in apply_r_riscv_call_plt_rela()
232 *(location + 1) = (*(location + 1) & 0xfffff) | (lo12 << 20); in apply_r_riscv_call_plt_rela()
233 return 0; in apply_r_riscv_call_plt_rela()
249 hi20 = (offset + 0x800) & 0xfffff000; in apply_r_riscv_call_rela()
250 lo12 = (offset - hi20) & 0xfff; in apply_r_riscv_call_rela()
251 *location = (*location & 0xfff) | hi20; in apply_r_riscv_call_rela()
252 *(location + 1) = (*(location + 1) & 0xfffff) | (lo12 << 20); in apply_r_riscv_call_rela()
253 return 0; in apply_r_riscv_call_rela()
259 return 0; in apply_r_riscv_relax_rela()
275 return 0; in apply_r_riscv_add32_rela()
282 return 0; in apply_r_riscv_add64_rela()
289 return 0; in apply_r_riscv_sub32_rela()
296 return 0; in apply_r_riscv_sub64_rela()
339 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add()
373 for (j = 0; j < sechdrs[relsec].sh_size / sizeof(*rel); j++) { in apply_relocate_add()
399 hi20 = (offset + 0x800) & 0xfffff000; in apply_relocate_add()
419 return 0; in apply_relocate_add()
427 PAGE_KERNEL, 0, NUMA_NO_NODE, in module_alloc()
428 __builtin_return_address(0)); in module_alloc()
440 if (strcmp(name, secstrs + s->sh_name) == 0) in find_section()
457 return 0; in module_finalize()