Searched refs:arth (Results 1 – 3 of 3) sorted by relevance
| /freebsd/contrib/libpcap/ |
| H A D | gencode.h | 297 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 D | grammar.y.in | 349 struct arth *a; 362 %type <a> arth narth 593 | arth relop arth { CHECK_PTR_VAL(($$.b = gen_relation(cstate, $2, $1, $3, 0))); 595 | arth irelop arth { CHECK_PTR_VAL(($$.b = gen_relation(cstate, $2, $1, $3, 1))); 837 arth: pnum { CHECK_PTR_VAL(($$ = gen_loadi(cstate, $1))); } 840 narth: pname '[' arth ']' { CHECK_PTR_VAL(($$ = gen_load(cstate, $1, $3, 1))); } 841 | pname '[' arth ':' NUM ']' { CHECK_PTR_VAL(($$ = gen_load(cstate, $1, $3, $5))); } 842 | arth '+' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_ADD, $1, $3))); } 843 | arth '-' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_SUB, $1, $3))); } 844 | arth '*' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_MUL, $1, $3))); } [all …]
|
| H A D | gencode.c | 245 struct arth a; 586 static struct slist *xfer_to_x(compiler_state_t *, struct arth *); 587 static struct slist *xfer_to_a(compiler_state_t *, struct arth *); 7683 xfer_to_x(compiler_state_t *cstate, struct arth *a) in xfer_to_x() 7693 xfer_to_a(compiler_state_t *cstate, struct arth *a) in xfer_to_a() 7709 static struct arth * 7710 gen_load_internal(compiler_state_t *cstate, int proto, struct arth *inst, in gen_load_internal() 7981 struct arth * 7982 gen_load(compiler_state_t *cstate, int proto, struct arth *inst, in gen_load() 7996 gen_relation_internal(compiler_state_t *cstate, int code, struct arth *a0, in gen_relation_internal() [all …]
|