Lines Matching refs:ops
127 * @ops: operations lookup table
130 * their presence. The specified &@ops must have %name set to a
137 int textsearch_register(struct ts_ops *ops)
142 if (ops->name == NULL || ops->find == NULL || ops->init == NULL ||
143 ops->get_pattern == NULL || ops->get_pattern_len == NULL)
148 if (!strcmp(ops->name, o->name))
152 list_add_tail_rcu(&ops->list, &ts_ops);
161 * @ops: operations lookup table
165 * The &ops parameter must be the same as the one during the
171 int textsearch_unregister(struct ts_ops *ops)
178 if (o == ops) {
260 struct ts_ops *ops;
262 ops = lookup_ts_algo(algo);
269 if (ops == NULL && flags & TS_AUTOLOAD) {
271 ops = lookup_ts_algo(algo);
275 if (ops == NULL)
278 conf = ops->init(pattern, len, gfp_mask);
284 conf->ops = ops;
288 if (ops)
289 module_put(ops->owner);
303 if (conf->ops) {
304 if (conf->ops->destroy)
305 conf->ops->destroy(conf);
306 module_put(conf->ops->owner);