Lines Matching refs:ops
147 int textsearch_register(struct ts_ops *ops) in textsearch_register() argument
152 if (ops->name == NULL || ops->find == NULL || ops->init == NULL || in textsearch_register()
153 ops->get_pattern == NULL || ops->get_pattern_len == NULL) in textsearch_register()
158 if (!strcmp(ops->name, o->name)) in textsearch_register()
162 list_add_tail_rcu(&ops->list, &ts_ops); in textsearch_register()
182 int textsearch_unregister(struct ts_ops *ops) in textsearch_unregister() argument
189 if (o == ops) { in textsearch_unregister()
272 struct ts_ops *ops; in textsearch_prepare() local
277 ops = lookup_ts_algo(algo); in textsearch_prepare()
284 if (ops == NULL && flags & TS_AUTOLOAD) { in textsearch_prepare()
286 ops = lookup_ts_algo(algo); in textsearch_prepare()
290 if (ops == NULL) in textsearch_prepare()
293 conf = ops->init(pattern, len, gfp_mask, flags); in textsearch_prepare()
299 conf->ops = ops; in textsearch_prepare()
303 if (ops) in textsearch_prepare()
304 module_put(ops->owner); in textsearch_prepare()
319 if (conf->ops) { in textsearch_destroy()
320 if (conf->ops->destroy) in textsearch_destroy()
321 conf->ops->destroy(conf); in textsearch_destroy()
322 module_put(conf->ops->owner); in textsearch_destroy()