Lines Matching refs:curr_block
16 struct sock_filter *curr_block = filter;
17 set_bpf_stmt(curr_block++, BPF_LD+BPF_W+BPF_ABS, arch_nr);
18 set_bpf_jump(curr_block++,
20 set_bpf_ret_kill(curr_block++);
21 return curr_block - filter;
27 struct sock_filter *curr_block = filter;
28 set_bpf_jump(curr_block++, BPF_JMP+BPF_JEQ+BPF_K, nr, NEXT, SKIP);
29 set_bpf_stmt(curr_block++, BPF_RET+BPF_K, SECCOMP_RET_ALLOW);
30 return curr_block - filter;
36 struct sock_filter *curr_block = filter;
37 set_bpf_jump(curr_block++, BPF_JMP+BPF_JEQ+BPF_K, nr, NEXT, SKIP);
38 set_bpf_jump_lbl(curr_block++, id);
39 return curr_block - filter;
52 struct sock_filter *curr_block = filter;
53 set_bpf_stmt(curr_block++, BPF_LD+BPF_W+BPF_ABS, LO_ARG(argidx));
54 set_bpf_stmt(curr_block++, BPF_ST, 0); /* lo -> M[0] */
55 set_bpf_stmt(curr_block++, BPF_LD+BPF_W+BPF_ABS, HI_ARG(argidx));
56 set_bpf_stmt(curr_block++, BPF_ST, 1); /* hi -> M[1] */
57 return curr_block - filter;
81 struct sock_filter *curr_block = filter;
84 curr_block += bpf_comp_jeq32(curr_block, hi, NEXT, SKIPN(2) + jf);
85 set_bpf_stmt(curr_block++, BPF_LD+BPF_MEM, 0); /* swap in |lo| */
86 curr_block += bpf_comp_jeq32(curr_block, lo, jt, jf);
88 return curr_block - filter;
112 struct sock_filter *curr_block = filter;
115 curr_block += bpf_comp_jset32(curr_block, mask_hi, SKIPN(2) + jt, NEXT);
116 set_bpf_stmt(curr_block++, BPF_LD+BPF_MEM, 0); /* swap in |lo| */
117 curr_block += bpf_comp_jset32(curr_block, mask_lo, jt, jf);
119 return curr_block - filter;
128 struct sock_filter *curr_block = filter;
134 curr_block += bpf_load_arg(curr_block, argidx);
161 curr_block += comp_function(curr_block, c, jt, jf);
162 curr_block += set_bpf_jump_lbl(curr_block, label_id);
165 return curr_block - filter;