Lines Matching refs:vmap
508 struct vmapinfo *vmap; variable
517 memset((char *)vmap, 0, maxval * sizeof(*vmap)); in init_val()
539 vmap[val].const_val = v0; in F()
540 vmap[val].is_const = 1; in F()
567 a = vmap[v0].const_val; in fold_op()
568 b = vmap[v1].const_val; in fold_op()
745 if (vmap[val].is_const) { in opt_peep()
748 b->s.k += vmap[val].const_val; in opt_peep()
804 if (vmap[val].is_const && BPF_SRC(b->s.code) == BPF_K) { in opt_peep()
805 bpf_int32 v = vmap[val].const_val; in opt_peep()
861 if (alter && vmap[v].is_const) { in opt_stmt()
863 s->k += vmap[v].const_val; in opt_stmt()
894 if (alter && vmap[val[A_ATOM]].is_const) { in opt_stmt()
896 s->k = -vmap[val[A_ATOM]].const_val; in opt_stmt()
926 if (vmap[val[A_ATOM]].is_const) { in opt_stmt()
944 if (alter && vmap[val[X_ATOM]].is_const) { in opt_stmt()
945 if (vmap[val[A_ATOM]].is_const) { in opt_stmt()
951 s->k = vmap[val[X_ATOM]].const_val; in opt_stmt()
965 if (alter && vmap[val[A_ATOM]].is_const in opt_stmt()
966 && vmap[val[A_ATOM]].const_val == 0) { in opt_stmt()
994 if (alter && vmap[v].is_const) { in opt_stmt()
996 s->k = vmap[v].const_val; in opt_stmt()
1008 if (alter && vmap[v].is_const) { in opt_stmt()
1010 s->k = vmap[v].const_val; in opt_stmt()
1670 free((void *)vmap); in opt_cleanup()
1851 vmap = reallocarray(NULL, maxval, sizeof(*vmap)); in opt_init()
1853 if (vmap == NULL || vnode_base == NULL) in opt_init()