Lines Matching refs:code
301 dst[i].code == (BPF_LD | BPF_IMM | BPF_DW) && in bpf_prog_calc_tag()
307 dst[i].code == 0 && in bpf_prog_calc_tag()
391 u8 code; in bpf_adj_branches() local
408 code = insn->code; in bpf_adj_branches()
409 if ((BPF_CLASS(code) != BPF_JMP && in bpf_adj_branches()
410 BPF_CLASS(code) != BPF_JMP32) || in bpf_adj_branches()
411 BPF_OP(code) == BPF_EXIT) in bpf_adj_branches()
414 if (BPF_OP(code) == BPF_CALL) { in bpf_adj_branches()
1251 (from->code == (BPF_ALU | BPF_MOV | BPF_K) || in bpf_jit_blind_insn()
1252 from->code == (BPF_ALU64 | BPF_MOV | BPF_K))) { in bpf_jit_blind_insn()
1257 switch (from->code) { in bpf_jit_blind_insn()
1269 *to++ = BPF_ALU32_REG(from->code, from->dst_reg, BPF_REG_AX); in bpf_jit_blind_insn()
1283 *to++ = BPF_ALU64_REG(from->code, from->dst_reg, BPF_REG_AX); in bpf_jit_blind_insn()
1303 *to++ = BPF_JMP_REG(from->code, from->dst_reg, BPF_REG_AX, off); in bpf_jit_blind_insn()
1323 *to++ = BPF_JMP32_REG(from->code, from->dst_reg, BPF_REG_AX, in bpf_jit_blind_insn()
1347 *to++ = BPF_STX_MEM(from->code, from->dst_reg, BPF_REG_AX, from->off); in bpf_jit_blind_insn()
1429 if (insn[0].code == (BPF_LD | BPF_IMM | BPF_DW) && in bpf_jit_blind_constants()
1430 insn[1].code == 0) in bpf_jit_blind_constants()
1611 bool bpf_opcode_in_insntable(u8 code) in bpf_opcode_in_insntable() argument
1629 return public_insntable[code]; in bpf_opcode_in_insntable()
1673 goto *jumptable[insn->code]; in ___bpf_prog_run()
1942 if (BPF_SIZE(insn->code) == BPF_W) \ in ___bpf_prog_run()
1950 if (BPF_SIZE(insn->code) == BPF_W) \ in ___bpf_prog_run()
1970 if (BPF_SIZE(insn->code) == BPF_W) in ___bpf_prog_run()
1980 if (BPF_SIZE(insn->code) == BPF_W) in ___bpf_prog_run()
2003 insn->code, insn->imm); in ___bpf_prog_run()
2076 insn->code = BPF_JMP | BPF_CALL_ARGS; in bpf_patch_call_args()