Lines Matching refs:BPF_ALU
312 if (i && (BPF_CLASS(code) == BPF_ALU64 || BPF_CLASS(code) == BPF_ALU) && in bpf_jit_build_body()
313 (BPF_CLASS(prevcode) == BPF_ALU64 || BPF_CLASS(prevcode) == BPF_ALU) && in bpf_jit_build_body()
352 case BPF_ALU | BPF_ADD | BPF_X: /* (u32) dst += (u32) src */ in bpf_jit_build_body()
359 case BPF_ALU | BPF_SUB | BPF_X: /* (u32) dst -= (u32) src */ in bpf_jit_build_body()
366 case BPF_ALU | BPF_SUB | BPF_K: /* (u32) dst -= (u32) imm */ in bpf_jit_build_body()
369 case BPF_ALU | BPF_ADD | BPF_K: /* (u32) dst += (u32) imm */ in bpf_jit_build_body()
408 case BPF_ALU | BPF_MUL | BPF_X: /* (u32) dst *= (u32) src */ in bpf_jit_build_body()
411 case BPF_ALU | BPF_MUL | BPF_K: /* (u32) dst *= (u32) imm */ in bpf_jit_build_body()
451 case BPF_ALU | BPF_DIV | BPF_X: /* (u32) dst /= (u32) src */ in bpf_jit_build_body()
454 case BPF_ALU | BPF_MOD | BPF_X: /* (u32) dst %= (u32) src */ in bpf_jit_build_body()
463 case BPF_ALU | BPF_DIV | BPF_K: /* (u32) dst /= (u32) imm */ in bpf_jit_build_body()
475 case BPF_ALU | BPF_MOD | BPF_K: /* (u32) dst %= (u32) imm */ in bpf_jit_build_body()
527 case BPF_ALU | BPF_NEG: /* (u32) dst = -dst */ in bpf_jit_build_body()
542 case BPF_ALU | BPF_AND | BPF_X: /* (u32) dst = dst & src */ in bpf_jit_build_body()
549 case BPF_ALU | BPF_AND | BPF_K: /* (u32) dst = dst & imm */ in bpf_jit_build_body()
566 case BPF_ALU | BPF_OR | BPF_X: /* dst = (u32) dst | (u32) src */ in bpf_jit_build_body()
574 case BPF_ALU | BPF_OR | BPF_K:/* dst = (u32) dst | (u32) imm */ in bpf_jit_build_body()
591 case BPF_ALU | BPF_XOR | BPF_X: /* (u32) dst ^= src */ in bpf_jit_build_body()
601 case BPF_ALU | BPF_XOR | BPF_K: /* (u32) dst ^= (u32) imm */ in bpf_jit_build_body()
609 case BPF_ALU | BPF_LSH | BPF_X: /* (u32) dst <<= (u32) src */ in bpf_jit_build_body()
623 case BPF_ALU | BPF_LSH | BPF_K: /* (u32) dst <<= (u32) imm */ in bpf_jit_build_body()
646 case BPF_ALU | BPF_RSH | BPF_X: /* (u32) dst >>= (u32) src */ in bpf_jit_build_body()
660 case BPF_ALU | BPF_RSH | BPF_K: /* (u32) dst >>= (u32) imm */ in bpf_jit_build_body()
684 case BPF_ALU | BPF_ARSH | BPF_X: /* (s32) dst >>= src */ in bpf_jit_build_body()
700 case BPF_ALU | BPF_ARSH | BPF_K: /* (s32) dst >>= imm */ in bpf_jit_build_body()
734 case BPF_ALU | BPF_MOV | BPF_X: /* (u32) dst = src */ in bpf_jit_build_body()
745 case BPF_ALU | BPF_MOV | BPF_K: /* (u32) dst = imm */ in bpf_jit_build_body()
752 case BPF_ALU | BPF_END | BPF_FROM_LE: in bpf_jit_build_body()
788 case BPF_ALU | BPF_END | BPF_FROM_BE: in bpf_jit_build_body()
1304 if (BPF_CLASS(code) == BPF_ALU && !fp->aux->verifier_zext && in bpf_jit_build_body()