Lines Matching refs:ops
143 int textsearch_register(struct ts_ops *ops) in textsearch_register() argument
148 if (ops->name == NULL || ops->find == NULL || ops->init == NULL || in textsearch_register()
149 ops->get_pattern == NULL || ops->get_pattern_len == NULL) in textsearch_register()
154 if (!strcmp(ops->name, o->name)) in textsearch_register()
158 list_add_tail_rcu(&ops->list, &ts_ops); in textsearch_register()
178 int textsearch_unregister(struct ts_ops *ops) in textsearch_unregister() argument
185 if (o == ops) { in textsearch_unregister()
268 struct ts_ops *ops; in textsearch_prepare() local
273 ops = lookup_ts_algo(algo); in textsearch_prepare()
280 if (ops == NULL && flags & TS_AUTOLOAD) { in textsearch_prepare()
282 ops = lookup_ts_algo(algo); in textsearch_prepare()
286 if (ops == NULL) in textsearch_prepare()
289 conf = ops->init(pattern, len, gfp_mask, flags); in textsearch_prepare()
295 conf->ops = ops; in textsearch_prepare()
299 if (ops) in textsearch_prepare()
300 module_put(ops->owner); in textsearch_prepare()
315 if (conf->ops) { in textsearch_destroy()
316 if (conf->ops->destroy) in textsearch_destroy()
317 conf->ops->destroy(conf); in textsearch_destroy()
318 module_put(conf->ops->owner); in textsearch_destroy()