Home
last modified time | relevance | path

Searched refs:BPF_REG_1 (Results 1 – 3 of 3) sorted by relevance

/systemd-251/src/core/
Dbpf-devices.c64 BPF_MOV32_REG(BPF_REG_1, BPF_REG_3), in bpf_prog_allow_list_device()
65 BPF_ALU32_IMM(BPF_AND, BPF_REG_1, access), in bpf_prog_allow_list_device()
66 BPF_JMP_REG(BPF_JNE, BPF_REG_1, BPF_REG_3, 4), /* compare access type */ in bpf_prog_allow_list_device()
105 BPF_MOV32_REG(BPF_REG_1, BPF_REG_3), in bpf_prog_allow_list_major()
106 BPF_ALU32_IMM(BPF_AND, BPF_REG_1, access), in bpf_prog_allow_list_major()
107 BPF_JMP_REG(BPF_JNE, BPF_REG_1, BPF_REG_3, 3), /* compare access type */ in bpf_prog_allow_list_major()
144 BPF_MOV32_REG(BPF_REG_1, BPF_REG_3), in bpf_prog_allow_list_class()
145 BPF_ALU32_IMM(BPF_AND, BPF_REG_1, access), in bpf_prog_allow_list_class()
146 BPF_JMP_REG(BPF_JNE, BPF_REG_1, BPF_REG_3, 2), /* compare access type */ in bpf_prog_allow_list_class()
169 BPF_LDX_MEM(BPF_W, BPF_REG_2, BPF_REG_1, in bpf_devices_cgroup_init()
[all …]
Dbpf-firewall.c87 BPF_MOV64_REG(BPF_REG_1, BPF_REG_6), in add_lookup_instructions()
106 BPF_LD_MAP_FD(BPF_REG_1, map_fd), in add_lookup_instructions()
161 BPF_MOV64_REG(BPF_REG_6, BPF_REG_1), in bpf_firewall_compile_bpf()
291 BPF_LD_MAP_FD(BPF_REG_1, accounting_map_fd), /* load map fd to r1 */ in bpf_firewall_compile_bpf()
294 BPF_MOV64_IMM(BPF_REG_1, 1), /* r1 = 1 */ in bpf_firewall_compile_bpf()
295 … BPF_RAW_INSN(BPF_STX | BPF_XADD | BPF_DW, BPF_REG_0, BPF_REG_1, 0, 0), /* xadd r0 += r1 */ in bpf_firewall_compile_bpf()
302 BPF_LD_MAP_FD(BPF_REG_1, accounting_map_fd), in bpf_firewall_compile_bpf()
305 … BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_6, offsetof(struct __sk_buff, len)), /* r1 = skb->len */ in bpf_firewall_compile_bpf()
306 … BPF_RAW_INSN(BPF_STX | BPF_XADD | BPF_DW, BPF_REG_0, BPF_REG_1, 0, 0), /* xadd r0 += r1 */ in bpf_firewall_compile_bpf()
/systemd-251/src/shared/linux/
Dbpf.h55 BPF_REG_1, enumerator