Lines Matching refs:fp

55 struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *fp)  in bpf_int_jit_compile()  argument
67 struct bpf_prog *org_fp = fp; in bpf_int_jit_compile()
74 if (!fp->jit_requested) in bpf_int_jit_compile()
83 fp = tmp_fp; in bpf_int_jit_compile()
86 jit_data = fp->aux->jit_data; in bpf_int_jit_compile()
90 fp = org_fp; in bpf_int_jit_compile()
93 fp->aux->jit_data = jit_data; in bpf_int_jit_compile()
96 flen = fp->len; in bpf_int_jit_compile()
111 fp = org_fp; in bpf_int_jit_compile()
119 cgctx.stack_size = round_up(fp->aux->stack_depth, 16); in bpf_int_jit_compile()
122 if (bpf_jit_build_body(fp, 0, &cgctx, addrs, 0, false)) { in bpf_int_jit_compile()
124 fp = org_fp; in bpf_int_jit_compile()
137 if (bpf_jit_build_body(fp, 0, &cgctx, addrs, 0, false)) { in bpf_int_jit_compile()
138 fp = org_fp; in bpf_int_jit_compile()
150 addrs[fp->len] = cgctx.idx * 4; in bpf_int_jit_compile()
153 fixup_len = fp->aux->num_exentries * BPF_FIXUP_LEN * 4; in bpf_int_jit_compile()
154 extable_len = fp->aux->num_exentries * sizeof(struct exception_table_entry); in bpf_int_jit_compile()
161 fp = org_fp; in bpf_int_jit_compile()
166 fp->aux->extable = (void *)image + FUNCTION_DESCR_SIZE + proglen + fixup_len; in bpf_int_jit_compile()
177 if (bpf_jit_build_body(fp, code_base, &cgctx, addrs, pass, extra_pass)) { in bpf_int_jit_compile()
179 fp = org_fp; in bpf_int_jit_compile()
202 fp->bpf_func = (void *)image; in bpf_int_jit_compile()
203 fp->jited = 1; in bpf_int_jit_compile()
204 fp->jited_len = proglen + FUNCTION_DESCR_SIZE; in bpf_int_jit_compile()
207 if (!fp->is_func || extra_pass) { in bpf_int_jit_compile()
209 bpf_prog_fill_jited_linfo(fp, addrs); in bpf_int_jit_compile()
213 fp->aux->jit_data = NULL; in bpf_int_jit_compile()
224 bpf_jit_prog_release_other(fp, fp == org_fp ? tmp_fp : org_fp); in bpf_int_jit_compile()
226 return fp; in bpf_int_jit_compile()
233 int bpf_add_extable_entry(struct bpf_prog *fp, u32 *image, int pass, struct codegen_context *ctx, in bpf_add_extable_entry() argument
245 if (!fp->aux->extable || in bpf_add_extable_entry()
246 WARN_ON_ONCE(ctx->exentry_idx >= fp->aux->num_exentries)) in bpf_add_extable_entry()
251 fixup = (void *)fp->aux->extable - in bpf_add_extable_entry()
252 (fp->aux->num_exentries * BPF_FIXUP_LEN * 4) + in bpf_add_extable_entry()
262 ex = &fp->aux->extable[ctx->exentry_idx]; in bpf_add_extable_entry()