Lines Matching refs:ops
141 int textsearch_register(struct ts_ops *ops) in textsearch_register() argument
146 if (ops->name == NULL || ops->find == NULL || ops->init == NULL || in textsearch_register()
147 ops->get_pattern == NULL || ops->get_pattern_len == NULL) in textsearch_register()
152 if (!strcmp(ops->name, o->name)) in textsearch_register()
156 list_add_tail_rcu(&ops->list, &ts_ops); in textsearch_register()
176 int textsearch_unregister(struct ts_ops *ops) in textsearch_unregister() argument
183 if (o == ops) { in textsearch_unregister()
266 struct ts_ops *ops; in textsearch_prepare() local
271 ops = lookup_ts_algo(algo); in textsearch_prepare()
278 if (ops == NULL && flags & TS_AUTOLOAD) { in textsearch_prepare()
280 ops = lookup_ts_algo(algo); in textsearch_prepare()
284 if (ops == NULL) in textsearch_prepare()
287 conf = ops->init(pattern, len, gfp_mask, flags); in textsearch_prepare()
293 conf->ops = ops; in textsearch_prepare()
297 if (ops) in textsearch_prepare()
298 module_put(ops->owner); in textsearch_prepare()
313 if (conf->ops) { in textsearch_destroy()
314 if (conf->ops->destroy) in textsearch_destroy()
315 conf->ops->destroy(conf); in textsearch_destroy()
316 module_put(conf->ops->owner); in textsearch_destroy()