Searched refs:arth (Results 1 – 3 of 3) sorted by relevance
| /freebsd-12-stable/contrib/libpcap/ |
| D | gencode.h | 272 struct arth { struct 289 struct arth *gen_loadi(compiler_state_t *, int); argument 290 struct arth *gen_load(compiler_state_t *, int, struct arth *, int); 291 struct arth *gen_loadlen(compiler_state_t *); 292 struct arth *gen_neg(compiler_state_t *, struct arth *); 293 struct arth *gen_arth(compiler_state_t *, int, struct arth *, struct arth *); 311 struct block *gen_relation(compiler_state_t *, int, struct arth *, 312 struct arth *, int);
|
| D | grammar.y | 296 struct arth *a; 309 %type <a> arth narth 467 | arth relop arth { CHECK_PTR_VAL(($$.b = gen_relation(cstate, $2, $1, $3, 0))); 469 | arth irelop arth { CHECK_PTR_VAL(($$.b = gen_relation(cstate, $2, $1, $3, 1))); 700 arth: pnum { CHECK_PTR_VAL(($$ = gen_loadi(cstate, $1))); } 703 narth: pname '[' arth ']' { CHECK_PTR_VAL(($$ = gen_load(cstate, $1, $3, 1))); } 704 | pname '[' arth ':' NUM ']' { CHECK_PTR_VAL(($$ = gen_load(cstate, $1, $3, $5))); } 705 | arth '+' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_ADD, $1, $3))); } 706 | arth '-' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_SUB, $1, $3))); } 707 | arth '*' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_MUL, $1, $3))); } [all …]
|
| D | gencode.c | 561 static struct slist *xfer_to_x(compiler_state_t *, struct arth *); 562 static struct slist *xfer_to_a(compiler_state_t *, struct arth *); 7254 xfer_to_x(compiler_state_t *cstate, struct arth *a) in xfer_to_x() 7264 xfer_to_a(compiler_state_t *cstate, struct arth *a) in xfer_to_a() 7280 static struct arth * 7281 gen_load_internal(compiler_state_t *cstate, int proto, struct arth *inst, int size) in gen_load_internal() 7553 struct arth * 7554 gen_load(compiler_state_t *cstate, int proto, struct arth *inst, int size) in gen_load() 7567 gen_relation_internal(compiler_state_t *cstate, int code, struct arth *a0, in gen_relation_internal() 7568 struct arth *a1, int reversed) in gen_relation_internal() [all …]
|