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