• Home
  • Raw
  • Download

Lines Matching refs:off

160 		if (i < pos && i + insn->off + 1 > pos)  in bpf_adj_branches()
161 insn->off += delta; in bpf_adj_branches()
162 else if (i > pos + delta && i + insn->off + 1 <= pos + delta) in bpf_adj_branches()
163 insn->off -= delta; in bpf_adj_branches()
167 struct bpf_prog *bpf_patch_insn_single(struct bpf_prog *prog, u32 off, in bpf_patch_insn_single() argument
175 memcpy(prog->insnsi + off, patch, sizeof(*patch)); in bpf_patch_insn_single()
200 insn_rest = insn_adj_cnt - off - len; in bpf_patch_insn_single()
202 memmove(prog_adj->insnsi + off + len, prog_adj->insnsi + off + 1, in bpf_patch_insn_single()
204 memcpy(prog_adj->insnsi + off, patch, sizeof(*patch) * len); in bpf_patch_insn_single()
206 bpf_adj_branches(prog_adj, off, insn_delta); in bpf_patch_insn_single()
373 int off; in __bpf_prog_run() local
547 insn += insn->off; in __bpf_prog_run()
551 insn += insn->off; in __bpf_prog_run()
557 insn += insn->off; in __bpf_prog_run()
563 insn += insn->off; in __bpf_prog_run()
569 insn += insn->off; in __bpf_prog_run()
575 insn += insn->off; in __bpf_prog_run()
581 insn += insn->off; in __bpf_prog_run()
587 insn += insn->off; in __bpf_prog_run()
593 insn += insn->off; in __bpf_prog_run()
599 insn += insn->off; in __bpf_prog_run()
605 insn += insn->off; in __bpf_prog_run()
611 insn += insn->off; in __bpf_prog_run()
617 insn += insn->off; in __bpf_prog_run()
623 insn += insn->off; in __bpf_prog_run()
629 insn += insn->off; in __bpf_prog_run()
639 *(SIZE *)(unsigned long) (DST + insn->off) = SRC; \ in __bpf_prog_run()
642 *(SIZE *)(unsigned long) (DST + insn->off) = IMM; \ in __bpf_prog_run()
645 DST = *(SIZE *)(unsigned long) (SRC + insn->off); \ in __bpf_prog_run()
655 (DST + insn->off)); in __bpf_prog_run()
659 (DST + insn->off)); in __bpf_prog_run()
662 off = IMM; in __bpf_prog_run()
686 ptr = bpf_load_pointer((struct sk_buff *) (unsigned long) CTX, off, 4, &tmp); in __bpf_prog_run()
694 off = IMM; in __bpf_prog_run()
696 ptr = bpf_load_pointer((struct sk_buff *) (unsigned long) CTX, off, 2, &tmp); in __bpf_prog_run()
704 off = IMM; in __bpf_prog_run()
706 ptr = bpf_load_pointer((struct sk_buff *) (unsigned long) CTX, off, 1, &tmp); in __bpf_prog_run()
714 off = IMM + SRC; in __bpf_prog_run()
717 off = IMM + SRC; in __bpf_prog_run()
720 off = IMM + SRC; in __bpf_prog_run()