Lines Matching refs:bc
118 #define GET_EXTWORDS(bc) ((bc) ? (bc)->extwords : 0)
119 #define GET_MEMWORDS(bc) (GET_EXTWORDS(bc) ? GET_EXTWORDS(bc) : BPF_MEMWORDS)
654 const bpf_ctx_t *bc, const struct bpf_insn *pc,
672 BJ_ASSERT(bc != NULL && bc->copfuncs != NULL);
687 call_off = SLJIT_FUNC_OFFSET(bc->copfuncs[pc->k]);
689 /* if (X >= bc->nfuncs) return 0; */
693 bc->nfuncs);
1282 optimize_pass1(const bpf_ctx_t *bc, const struct bpf_insn *insns,
1293 const size_t memwords = GET_MEMWORDS(bc);
1467 optimize_pass2(const bpf_ctx_t *bc, const struct bpf_insn *insns,
1476 const size_t extwords = GET_EXTWORDS(bc);
1578 optimize(const bpf_ctx_t *bc, const struct bpf_insn *insns,
1585 if (!optimize_pass1(bc, insns, insn_dat, insn_count, initmask, hints))
1588 optimize_pass2(bc, insns, insn_dat, insn_count);
1698 const bpf_ctx_t *bc, const struct bpf_insn *insns,
1720 const size_t extwords = GET_EXTWORDS(bc);
1721 const size_t memwords = GET_MEMWORDS(bc);
2108 if (bc == NULL || bc->copfuncs == NULL)
2111 (uint32_t)pc->k >= bc->nfuncs) {
2115 status = emit_cop(compiler, hints, bc, pc,
2153 bpfjit_generate_code(const bpf_ctx_t *bc,
2172 const size_t extwords = GET_EXTWORDS(bc);
2173 const size_t memwords = GET_MEMWORDS(bc);
2174 bc->preinited : 0;
2190 if (!optimize(bc, insns, insn_dat, insn_count, &initmask, &hints))
2244 * bc->preinited wrongly sets those two bits.
2289 bc, insns, insn_dat, insn_count)) {