Lines Matching refs:wb
617 #define inc_wb_pos(wb) \ argument
619 wb->pos = (wb->pos + 1) & (wb->size - 1); \
620 wb->len = (wb->len + 1) & (wb->size - 1); \
624 static bool is_loop(struct match_workbuf *wb, unsigned int state, in is_loop() argument
627 unsigned int pos = wb->pos; in is_loop()
630 if (wb->history[pos] < state) in is_loop()
633 for (i = 0; i <= wb->len; i++) { in is_loop()
634 if (wb->history[pos] == state) { in is_loop()
639 pos = wb->size; in is_loop()
648 const char *str, struct match_workbuf *wb, in leftmatch_fb() argument
659 AA_BUG(!wb); in leftmatch_fb()
674 wb->history[wb->pos] = state; in leftmatch_fb()
680 if (is_loop(wb, state, &adjust)) { in leftmatch_fb()
685 inc_wb_pos(wb); in leftmatch_fb()
693 wb->history[wb->pos] = state; in leftmatch_fb()
699 if (is_loop(wb, state, &adjust)) { in leftmatch_fb()
704 inc_wb_pos(wb); in leftmatch_fb()
731 DEFINE_MATCH_WB(wb); in aa_dfa_leftmatch()
735 return leftmatch_fb(dfa, start, str, &wb, count); in aa_dfa_leftmatch()