Searched refs:riscv_insn_rmw (Results 1 – 1 of 1) sorted by relevance
/linux-6.12.1/arch/riscv/kernel/ |
D | module.c | 55 static int riscv_insn_rmw(void *location, u32 keep, u32 set) in riscv_insn_rmw() function 106 return riscv_insn_rmw(location, 0x1fff07f, imm12 | imm11 | imm10_5 | imm4_1); in apply_r_riscv_branch_rela() 118 return riscv_insn_rmw(location, 0xfff, imm20 | imm19_12 | imm11 | imm10_1); in apply_r_riscv_jal_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() 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() 210 return riscv_insn_rmw(location, 0xfffff, (lo12 & 0xfff) << 20); in apply_r_riscv_lo12_i_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() [all …]
|