Lines Matching refs:conf
78 struct ts_config *conf,
89 void (*finish)(struct ts_config *conf,
105 static inline unsigned int textsearch_next(struct ts_config *conf, in textsearch_next() argument
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()
124 static inline unsigned int textsearch_find(struct ts_config *conf, in textsearch_find() argument
128 return textsearch_next(conf, state); in textsearch_find()
135 static inline void *textsearch_get_pattern(struct ts_config *conf) in textsearch_get_pattern() argument
137 return conf->ops->get_pattern(conf); in textsearch_get_pattern()
144 static inline unsigned int textsearch_get_pattern_len(struct ts_config *conf) in textsearch_get_pattern_len() argument
146 return conf->ops->get_pattern_len(conf); in textsearch_get_pattern_len()
153 extern void textsearch_destroy(struct ts_config *conf);
165 struct ts_config *conf; in alloc_ts_config() local
167 conf = kzalloc(TS_PRIV_ALIGN(sizeof(*conf)) + payload, gfp_mask); in alloc_ts_config()
168 if (conf == NULL) in alloc_ts_config()
171 return conf; in alloc_ts_config()
174 static inline void *ts_config_priv(struct ts_config *conf) in ts_config_priv() argument
176 return ((u8 *) conf + TS_PRIV_ALIGN(sizeof(struct ts_config))); in ts_config_priv()