Lines Matching refs:stack_off

37 #define stack_off(field) \  macro
170 static void emit_rel_store_sp(struct bpf_gen *gen, int off, int stack_off) in emit_rel_store_sp() argument
173 emit(gen, BPF_ALU64_IMM(BPF_ADD, BPF_REG_0, stack_off)); in emit_rel_store_sp()
193 static void move_stack2blob(struct bpf_gen *gen, int off, int size, int stack_off) in move_stack2blob() argument
195 emit(gen, BPF_LDX_MEM(insn_bytes_to_bpf_size(size), BPF_REG_0, BPF_REG_10, stack_off)); in move_stack2blob()
201 static void move_stack2ctx(struct bpf_gen *gen, int ctx_off, int size, int stack_off) in move_stack2ctx() argument
203 emit(gen, BPF_LDX_MEM(insn_bytes_to_bpf_size(size), BPF_REG_0, BPF_REG_10, stack_off)); in move_stack2ctx()
297 static void emit_sys_close_stack(struct bpf_gen *gen, int stack_off) in emit_sys_close_stack() argument
299 emit(gen, BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_10, stack_off)); in emit_sys_close_stack()
315 emit_sys_close_stack(gen, stack_off(btf_fd)); in bpf_gen__finish()
322 stack_off(prog_fd[i])); in bpf_gen__finish()
328 stack_off(map_fd[i])); in bpf_gen__finish()
380 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_7, stack_off(btf_fd))); in bpf_gen__load_btf()
429 stack_off(btf_fd)); in bpf_gen__map_create()
434 stack_off(inner_map_fd)); in bpf_gen__map_create()
460 stack_off(inner_map_fd))); in bpf_gen__map_create()
466 stack_off(map_fd[map_idx]))); in bpf_gen__map_create()
470 emit_sys_close_stack(gen, stack_off(inner_map_fd)); in bpf_gen__map_create()
637 stack_off(map_fd[0])); in bpf_gen__prog_load()
648 stack_off(btf_fd)); in bpf_gen__prog_load()
672 stack_off(prog_fd[gen->nr_progs]))); in bpf_gen__prog_load()
705 stack_off(map_fd[map_idx])); in bpf_gen__map_update_elem()
724 stack_off(map_fd[map_idx])); in bpf_gen__map_freeze()