Lines Matching refs:wb
671 #define inc_wb_pos(wb) \ argument
673 wb->pos = (wb->pos + 1) & (WB_HISTORY_SIZE - 1); \
674 wb->len = (wb->len + 1) & (WB_HISTORY_SIZE - 1); \
678 static bool is_loop(struct match_workbuf *wb, aa_state_t state, in is_loop() argument
681 aa_state_t pos = wb->pos; in is_loop()
684 if (wb->history[pos] < state) in is_loop()
687 for (i = 0; i <= wb->len; i++) { in is_loop()
688 if (wb->history[pos] == state) { in is_loop()
702 const char *str, struct match_workbuf *wb, in leftmatch_fb() argument
713 AA_BUG(!wb); in leftmatch_fb()
728 wb->history[wb->pos] = state; in leftmatch_fb()
734 if (is_loop(wb, state, &adjust)) { in leftmatch_fb()
739 inc_wb_pos(wb); in leftmatch_fb()
747 wb->history[wb->pos] = state; in leftmatch_fb()
753 if (is_loop(wb, state, &adjust)) { in leftmatch_fb()
758 inc_wb_pos(wb); in leftmatch_fb()
785 DEFINE_MATCH_WB(wb); in aa_dfa_leftmatch()
789 return leftmatch_fb(dfa, start, str, &wb, count); in aa_dfa_leftmatch()