Lines Matching defs:image

1025 static int do_jit(struct bpf_prog *bpf_prog, int *addrs, u8 *image, u8 *rw_image,
1510 u8 *_insn = image + proglen + (start_of_ldx - temp);
1543 ex = (void *)rw_image + ((void *)ex - (void *)image);
1639 if (emit_call(&prog, func, image + addrs[i - 1] + offs))
1647 &prog, image + addrs[i - 1],
1655 image + addrs[i - 1],
1796 * keep the image from shrinking further.
1877 * (5 - 2 = 3) bytes to stop the image from
1907 emit_return(&prog, image + addrs[i - 1] + (prog - temp));
1927 if (image) {
1929 * When populating the image, assert that:
1948 if (image && excnt != bpf_prog->aux->num_exentries) {
2355 int arch_prepare_bpf_trampoline(struct bpf_tramp_image *im, void *image, void *image_end,
2454 prog = image;
2604 ret = prog - (u8 *)image;
2611 static int emit_bpf_dispatcher(u8 **pprog, int a, int b, s64 *progs, u8 *image, u8 *buf)
2627 (void *)progs[a], image + (prog - buf),
2632 emit_indirect_jump(&prog, 2 /* rdx */, image + (prog - buf));
2657 progs, image, buf);
2671 b, progs, image, buf);
2691 int arch_prepare_bpf_dispatcher(void *image, void *buf, s64 *funcs, int num_funcs)
2696 return emit_bpf_dispatcher(&prog, 0, num_funcs - 1, funcs, image, buf);
2703 u8 *image;
2723 u8 *image = NULL;
2756 image = jit_data->image;
2759 rw_image = (void *)rw_header + ((void *)image - (void *)header);
2782 * JITed image shrinks with every pass and the loop iterates
2783 * until the image stops shrinking. Very large BPF programs
2785 * pass to emit the final image.
2787 for (pass = 0; pass < MAX_PASSES || image; pass++) {
2790 proglen = do_jit(prog, addrs, image, rw_image, oldproglen, &ctx, padding);
2793 image = NULL;
2808 if (image) {
2829 &image, align, &rw_header, &rw_image,
2835 prog->aux->extable = (void *) image + roundup(proglen, align);
2844 if (image) {
2864 jit_data->image = image;
2868 prog->bpf_func = (void *)image;
2875 if (!image || !prog->is_func || extra_pass) {
2876 if (image)