Lines Matching +full:block +full:- +full:fetch
1 /* SPDX-License-Identifier: GPL-2.0 */
19 * struct ts_state - search state
30 * struct ts_ops - search module operations
53 * struct ts_config - search configuration
56 * @get_next_block: callback to fetch the next block to search in
65 * @get_next_block: fetch next block of data
72 * head of the next block of data to &*dst and return the length
73 * of the block or 0 if at the end. consumed == 0 indicates
74 * a new search. May store/read persistent values in state->cb.
94 * textsearch_next - continue searching for a pattern
108 unsigned int ret = conf->ops->find(conf, state); in textsearch_next()
110 if (conf->finish) in textsearch_next()
111 conf->finish(conf, state); in textsearch_next()
117 * textsearch_find - start searching for a pattern
127 state->offset = 0; in textsearch_find()
132 * textsearch_get_pattern - return head of the pattern
137 return conf->ops->get_pattern(conf); in textsearch_get_pattern()
141 * textsearch_get_pattern_len - return length of the pattern
146 return conf->ops->get_pattern_len(conf); in textsearch_get_pattern_len()
160 #define TS_PRIV_ALIGN(len) (((len) + TS_PRIV_ALIGNTO-1) & ~(TS_PRIV_ALIGNTO-1))
169 return ERR_PTR(-ENOMEM); in alloc_ts_config()