imm11_0 173 arch/riscv/net/bpf_jit_comp.c static u32 rv_i_insn(u16 imm11_0, u8 rs1, u8 funct3, u8 rd, u8 opcode) imm11_0 175 arch/riscv/net/bpf_jit_comp.c return (imm11_0 << 20) | (rs1 << 15) | (funct3 << 12) | (rd << 7) | imm11_0 179 arch/riscv/net/bpf_jit_comp.c static u32 rv_s_insn(u16 imm11_0, u8 rs2, u8 rs1, u8 funct3, u8 opcode) imm11_0 181 arch/riscv/net/bpf_jit_comp.c u8 imm11_5 = imm11_0 >> 5, imm4_0 = imm11_0 & 0x1f; imm11_0 219 arch/riscv/net/bpf_jit_comp.c static u32 rv_addiw(u8 rd, u8 rs1, u16 imm11_0) imm11_0 221 arch/riscv/net/bpf_jit_comp.c return rv_i_insn(imm11_0, rs1, 0, rd, 0x1b); imm11_0 224 arch/riscv/net/bpf_jit_comp.c static u32 rv_addi(u8 rd, u8 rs1, u16 imm11_0) imm11_0 226 arch/riscv/net/bpf_jit_comp.c return rv_i_insn(imm11_0, rs1, 0, rd, 0x13); imm11_0 329 arch/riscv/net/bpf_jit_comp.c static u32 rv_slli(u8 rd, u8 rs1, u16 imm11_0) imm11_0 331 arch/riscv/net/bpf_jit_comp.c return rv_i_insn(imm11_0, rs1, 1, rd, 0x13); imm11_0 334 arch/riscv/net/bpf_jit_comp.c static u32 rv_andi(u8 rd, u8 rs1, u16 imm11_0) imm11_0 336 arch/riscv/net/bpf_jit_comp.c return rv_i_insn(imm11_0, rs1, 7, rd, 0x13); imm11_0 339 arch/riscv/net/bpf_jit_comp.c static u32 rv_ori(u8 rd, u8 rs1, u16 imm11_0) imm11_0 341 arch/riscv/net/bpf_jit_comp.c return rv_i_insn(imm11_0, rs1, 6, rd, 0x13); imm11_0 344 arch/riscv/net/bpf_jit_comp.c static u32 rv_xori(u8 rd, u8 rs1, u16 imm11_0) imm11_0 346 arch/riscv/net/bpf_jit_comp.c return rv_i_insn(imm11_0, rs1, 4, rd, 0x13); imm11_0 349 arch/riscv/net/bpf_jit_comp.c static u32 rv_slliw(u8 rd, u8 rs1, u16 imm11_0) imm11_0 351 arch/riscv/net/bpf_jit_comp.c return rv_i_insn(imm11_0, rs1, 1, rd, 0x1b); imm11_0 354 arch/riscv/net/bpf_jit_comp.c static u32 rv_srliw(u8 rd, u8 rs1, u16 imm11_0) imm11_0 356 arch/riscv/net/bpf_jit_comp.c return rv_i_insn(imm11_0, rs1, 5, rd, 0x1b); imm11_0 359 arch/riscv/net/bpf_jit_comp.c static u32 rv_srli(u8 rd, u8 rs1, u16 imm11_0) imm11_0 361 arch/riscv/net/bpf_jit_comp.c return rv_i_insn(imm11_0, rs1, 5, rd, 0x13); imm11_0 364 arch/riscv/net/bpf_jit_comp.c static u32 rv_sraiw(u8 rd, u8 rs1, u16 imm11_0) imm11_0 366 arch/riscv/net/bpf_jit_comp.c return rv_i_insn(0x400 | imm11_0, rs1, 5, rd, 0x1b); imm11_0 369 arch/riscv/net/bpf_jit_comp.c static u32 rv_srai(u8 rd, u8 rs1, u16 imm11_0) imm11_0 371 arch/riscv/net/bpf_jit_comp.c return rv_i_insn(0x400 | imm11_0, rs1, 5, rd, 0x13); imm11_0 379 arch/riscv/net/bpf_jit_comp.c static u32 rv_jalr(u8 rd, u8 rs1, u16 imm11_0) imm11_0 381 arch/riscv/net/bpf_jit_comp.c return rv_i_insn(imm11_0, rs1, 0, rd, 0x67); imm11_0 414 arch/riscv/net/bpf_jit_comp.c static u32 rv_sb(u8 rs1, u16 imm11_0, u8 rs2) imm11_0 416 arch/riscv/net/bpf_jit_comp.c return rv_s_insn(imm11_0, rs2, rs1, 0, 0x23); imm11_0 419 arch/riscv/net/bpf_jit_comp.c static u32 rv_sh(u8 rs1, u16 imm11_0, u8 rs2) imm11_0 421 arch/riscv/net/bpf_jit_comp.c return rv_s_insn(imm11_0, rs2, rs1, 1, 0x23); imm11_0 424 arch/riscv/net/bpf_jit_comp.c static u32 rv_sw(u8 rs1, u16 imm11_0, u8 rs2) imm11_0 426 arch/riscv/net/bpf_jit_comp.c return rv_s_insn(imm11_0, rs2, rs1, 2, 0x23); imm11_0 429 arch/riscv/net/bpf_jit_comp.c static u32 rv_sd(u8 rs1, u16 imm11_0, u8 rs2) imm11_0 431 arch/riscv/net/bpf_jit_comp.c return rv_s_insn(imm11_0, rs2, rs1, 3, 0x23); imm11_0 434 arch/riscv/net/bpf_jit_comp.c static u32 rv_lbu(u8 rd, u16 imm11_0, u8 rs1) imm11_0 436 arch/riscv/net/bpf_jit_comp.c return rv_i_insn(imm11_0, rs1, 4, rd, 0x03); imm11_0 439 arch/riscv/net/bpf_jit_comp.c static u32 rv_lhu(u8 rd, u16 imm11_0, u8 rs1) imm11_0 441 arch/riscv/net/bpf_jit_comp.c return rv_i_insn(imm11_0, rs1, 5, rd, 0x03); imm11_0 444 arch/riscv/net/bpf_jit_comp.c static u32 rv_lwu(u8 rd, u16 imm11_0, u8 rs1) imm11_0 446 arch/riscv/net/bpf_jit_comp.c return rv_i_insn(imm11_0, rs1, 6, rd, 0x03); imm11_0 449 arch/riscv/net/bpf_jit_comp.c static u32 rv_ld(u8 rd, u16 imm11_0, u8 rs1) imm11_0 451 arch/riscv/net/bpf_jit_comp.c return rv_i_insn(imm11_0, rs1, 3, rd, 0x03);