Lines Matching refs:stack_off
40 #define stack_off(field) \ macro
252 static void move_stack2blob(struct bpf_gen *gen, int off, int size, int stack_off) in move_stack2blob() argument
254 emit(gen, BPF_LDX_MEM(insn_bytes_to_bpf_size(size), BPF_REG_0, BPF_REG_10, stack_off)); in move_stack2blob()
260 static void move_stack2ctx(struct bpf_gen *gen, int ctx_off, int size, int stack_off) in move_stack2ctx() argument
262 emit(gen, BPF_LDX_MEM(insn_bytes_to_bpf_size(size), BPF_REG_0, BPF_REG_10, stack_off)); in move_stack2ctx()
356 static void emit_sys_close_stack(struct bpf_gen *gen, int stack_off) in emit_sys_close_stack() argument
358 emit(gen, BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_10, stack_off)); in emit_sys_close_stack()
380 emit_sys_close_stack(gen, stack_off(btf_fd)); in bpf_gen__finish()
387 stack_off(prog_fd[i])); in bpf_gen__finish()
445 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_7, stack_off(btf_fd))); in bpf_gen__load_btf()
480 stack_off(btf_fd)); in bpf_gen__map_create()
485 stack_off(inner_map_fd)); in bpf_gen__map_create()
511 stack_off(inner_map_fd))); in bpf_gen__map_create()
523 emit_sys_close_stack(gen, stack_off(inner_map_fd)); in bpf_gen__map_create()
1004 stack_off(btf_fd)); in bpf_gen__prog_load()
1030 stack_off(prog_fd[gen->nr_progs]))); in bpf_gen__prog_load()