Lines Matching refs:stack_off
41 #define stack_off(field) \ macro
253 static void move_stack2blob(struct bpf_gen *gen, int off, int size, int stack_off) in move_stack2blob() argument
255 emit(gen, BPF_LDX_MEM(insn_bytes_to_bpf_size(size), BPF_REG_0, BPF_REG_10, stack_off)); in move_stack2blob()
261 static void move_stack2ctx(struct bpf_gen *gen, int ctx_off, int size, int stack_off) in move_stack2ctx() argument
263 emit(gen, BPF_LDX_MEM(insn_bytes_to_bpf_size(size), BPF_REG_0, BPF_REG_10, stack_off)); in move_stack2ctx()
357 static void emit_sys_close_stack(struct bpf_gen *gen, int stack_off) in emit_sys_close_stack() argument
359 emit(gen, BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_10, stack_off)); in emit_sys_close_stack()
381 emit_sys_close_stack(gen, stack_off(btf_fd)); in bpf_gen__finish()
388 stack_off(prog_fd[i])); in bpf_gen__finish()
478 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_7, stack_off(btf_fd))); in bpf_gen__load_btf()
514 stack_off(btf_fd)); in bpf_gen__map_create()
519 stack_off(inner_map_fd)); in bpf_gen__map_create()
545 stack_off(inner_map_fd))); in bpf_gen__map_create()
557 emit_sys_close_stack(gen, stack_off(inner_map_fd)); in bpf_gen__map_create()
1084 stack_off(btf_fd)); in bpf_gen__prog_load()
1110 stack_off(prog_fd[gen->nr_progs]))); in bpf_gen__prog_load()