Lines Matching refs:end_old
363 static int bpf_adj_delta_to_imm(struct bpf_insn *insn, u32 pos, s32 end_old, in bpf_adj_delta_to_imm() argument
367 s32 delta = end_new - end_old; in bpf_adj_delta_to_imm()
370 if (curr < pos && curr + imm + 1 >= end_old) in bpf_adj_delta_to_imm()
381 static int bpf_adj_delta_to_off(struct bpf_insn *insn, u32 pos, s32 end_old, in bpf_adj_delta_to_off() argument
385 s32 delta = end_new - end_old; in bpf_adj_delta_to_off()
397 if (curr < pos && curr + off + 1 >= end_old) in bpf_adj_delta_to_off()
412 static int bpf_adj_branches(struct bpf_prog *prog, u32 pos, s32 end_old, in bpf_adj_branches() argument
415 u32 i, insn_cnt = prog->len + (probe_pass ? end_new - end_old : 0); in bpf_adj_branches()
428 insn = prog->insnsi + end_old; in bpf_adj_branches()
431 ret = bpf_adj_delta_to_imm(insn, pos, end_old, in bpf_adj_branches()
446 ret = bpf_adj_delta_to_imm(insn, pos, end_old, in bpf_adj_branches()
449 ret = bpf_adj_delta_to_off(insn, pos, end_old, in bpf_adj_branches()