Lines Matching defs:code
19 #define BPF_CLASS(code) ((code) & 0x07)
29 #define BPF_SIZE(code) ((code) & 0x18)
34 #define BPF_MODE(code) ((code) & 0xe0)
38 #define BPF_OP(code) ((code) & 0xf0)
49 #define BPF_SRC(code) ((code) & 0x08)
75 uint8_t code; /* opcode */
482 .code = BPF_ALU64 | BPF_OP(OP) | BPF_X, \
490 .code = BPF_ALU | BPF_OP(OP) | BPF_X, \
498 .code = BPF_ALU64 | BPF_OP(OP) | BPF_K, \
506 .code = BPF_ALU | BPF_OP(OP) | BPF_K, \
514 .code = BPF_ALU64 | BPF_MOV | BPF_X, \
522 .code = BPF_ALU | BPF_MOV | BPF_X, \
533 .code = BPF_LD | BPF_DW | BPF_IMM, \
539 .code = 0, /* zero is reserved opcode */ \
551 .code = BPF_ST | BPF_SIZE(SIZE) | BPF_MEM, \
559 .code = BPF_LDX | BPF_SIZE(SIZE) | BPF_MEM, \
567 .code = BPF_STX | BPF_SIZE(SIZE) | BPF_MEM, \
575 .code = BPF_JMP | BPF_OP(OP) | BPF_K, \
583 .code = BPF_ALU64 | BPF_MOV | BPF_K, \
591 .code = BPF_ALU | BPF_MOV | BPF_K, \
599 .code = BPF_JMP | BPF_CALL, \
607 .code = BPF_JMP | BPF_EXIT, \