Lines Matching refs:cgctx
70 struct codegen_context cgctx; in bpf_int_jit_compile() local
109 cgctx = jit_data->ctx; in bpf_int_jit_compile()
122 cgctx.exentry_idx = 0; in bpf_int_jit_compile()
132 memset(&cgctx, 0, sizeof(struct codegen_context)); in bpf_int_jit_compile()
133 bpf_jit_init_reg_mapping(&cgctx); in bpf_int_jit_compile()
136 cgctx.stack_size = round_up(fp->aux->stack_depth, 16); in bpf_int_jit_compile()
139 if (bpf_jit_build_body(fp, NULL, NULL, &cgctx, addrs, 0, false)) { in bpf_int_jit_compile()
152 if (cgctx.seen & SEEN_TAILCALL || !is_offset_in_branch_range((long)cgctx.idx * 4)) { in bpf_int_jit_compile()
153 cgctx.idx = 0; in bpf_int_jit_compile()
154 if (bpf_jit_build_body(fp, NULL, NULL, &cgctx, addrs, 0, false)) { in bpf_int_jit_compile()
160 bpf_jit_realloc_regs(&cgctx); in bpf_int_jit_compile()
166 bpf_jit_build_prologue(NULL, &cgctx); in bpf_int_jit_compile()
167 addrs[fp->len] = cgctx.idx * 4; in bpf_int_jit_compile()
168 bpf_jit_build_epilogue(NULL, &cgctx); in bpf_int_jit_compile()
173 proglen = cgctx.idx * 4; in bpf_int_jit_compile()
193 cgctx.idx = 0; in bpf_int_jit_compile()
194 cgctx.alt_exit_addr = 0; in bpf_int_jit_compile()
195 bpf_jit_build_prologue(code_base, &cgctx); in bpf_int_jit_compile()
196 if (bpf_jit_build_body(fp, code_base, fcode_base, &cgctx, addrs, pass, in bpf_int_jit_compile()
203 bpf_jit_build_epilogue(code_base, &cgctx); in bpf_int_jit_compile()
207 proglen - (cgctx.idx * 4), cgctx.seen); in bpf_int_jit_compile()
239 jit_data->ctx = cgctx; in bpf_int_jit_compile()