Home
last modified time | relevance | path

Searched refs:arth (Results 1 – 3 of 3) sorted by relevance

/freebsd/contrib/libpcap/
H A Dgencode.h297 struct arth { struct
314 struct arth *gen_loadi(compiler_state_t *, bpf_u_int32); argument
315 struct arth *gen_load(compiler_state_t *, int, struct arth *, bpf_u_int32);
316 struct arth *gen_loadlen(compiler_state_t *);
317 struct arth *gen_neg(compiler_state_t *, struct arth *);
318 struct arth *gen_arth(compiler_state_t *, int, struct arth *, struct arth *);
336 struct block *gen_relation(compiler_state_t *, int, struct arth *,
337 struct arth *, int);
H A Dgrammar.y.in362 struct arth *a;
375 %type <a> arth narth
606 | arth relop arth { CHECK_PTR_VAL(($$.b = gen_relation(cstate, $2, $1, $3, 0)));
608 | arth irelop arth { CHECK_PTR_VAL(($$.b = gen_relation(cstate, $2, $1, $3, 1)));
850 arth: pnum { CHECK_PTR_VAL(($$ = gen_loadi(cstate, $1))); }
853 narth: pname '[' arth ']' { CHECK_PTR_VAL(($$ = gen_load(cstate, $1, $3, 1))); }
854 | pname '[' arth ':' NUM ']' { CHECK_PTR_VAL(($$ = gen_load(cstate, $1, $3, $5))); }
855 | arth '+' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_ADD, $1, $3))); }
856 | arth '-' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_SUB, $1, $3))); }
857 | arth '*' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_MUL, $1, $3))); }
[all …]
H A Dgencode.c569 static struct slist *xfer_to_x(compiler_state_t *, struct arth *);
570 static struct slist *xfer_to_a(compiler_state_t *, struct arth *);
7559 xfer_to_x(compiler_state_t *cstate, struct arth *a) in xfer_to_x()
7569 xfer_to_a(compiler_state_t *cstate, struct arth *a) in xfer_to_a()
7585 static struct arth *
7586 gen_load_internal(compiler_state_t *cstate, int proto, struct arth *inst, in gen_load_internal()
7857 struct arth *
7858 gen_load(compiler_state_t *cstate, int proto, struct arth *inst, in gen_load()
7872 gen_relation_internal(compiler_state_t *cstate, int code, struct arth *a0, in gen_relation_internal()
7873 struct arth *a1, int reversed) in gen_relation_internal()
[all …]