Searched refs:consumed (Results 1 – 5 of 5) sorted by relevance
/lib/ |
D | textsearch.c | 200 static unsigned int get_linear_data(unsigned int consumed, const u8 **dst, in get_linear_data() argument 206 if (likely(consumed < st->len)) { in get_linear_data() 207 *dst = st->data + consumed; in get_linear_data() 208 return st->len - consumed; in get_linear_data()
|
D | ts_kmp.c | 49 unsigned int i, q = 0, text_len, consumed = state->offset; in kmp_find() local 54 text_len = conf->get_next_block(consumed, &text, conf, state); in kmp_find() 67 state->offset = consumed + i + 1; in kmp_find() 72 consumed += text_len; in kmp_find()
|
D | ts_bm.c | 65 unsigned int i, text_len, consumed = state->offset; in bm_find() local 71 text_len = conf->get_next_block(consumed, &text, conf, state); in bm_find() 87 return consumed += (shift-(bm->patlen-1)); in bm_find() 94 consumed += text_len; in bm_find()
|
D | scatterlist.c | 498 miter->consumed = miter->length = miter->__remaining; in sg_miter_next() 525 WARN_ON(miter->consumed > miter->length); in sg_miter_stop() 529 miter->__offset += miter->consumed; in sg_miter_stop() 530 miter->__remaining -= miter->consumed; in sg_miter_stop() 544 miter->consumed = 0; in sg_miter_stop()
|
D | ts_fsm.c | 143 unsigned block_len = 0, strict, consumed = state->offset; in fsm_find() local 147 ({ consumed += block_idx; \ in fsm_find() 149 block_len = conf->get_next_block(consumed, &data, conf, state); }) in fsm_find() 167 match_start = consumed + block_idx; in fsm_find() 241 match_start = consumed + block_idx; in fsm_find() 255 state->offset = consumed + block_idx; in fsm_find()
|