Lines Matching refs:wb
673 #define inc_wb_pos(wb) \
675 wb->pos = (wb->pos + 1) & (WB_HISTORY_SIZE - 1); \
676 wb->len = (wb->len + 1) & (WB_HISTORY_SIZE - 1); \
680 static bool is_loop(struct match_workbuf *wb, unsigned int state,
683 unsigned int pos = wb->pos;
686 if (wb->history[pos] < state)
689 for (i = 0; i <= wb->len; i++) {
690 if (wb->history[pos] == state) {
704 const char *str, struct match_workbuf *wb,
715 AA_BUG(!wb);
730 wb->history[wb->pos] = state;
736 if (is_loop(wb, state, &adjust)) {
741 inc_wb_pos(wb);
749 wb->history[wb->pos] = state;
755 if (is_loop(wb, state, &adjust)) {
760 inc_wb_pos(wb);
787 DEFINE_MATCH_WB(wb);
791 return leftmatch_fb(dfa, start, str, &wb, count);