Searched refs:ops (Results 1 – 9 of 9) sorted by relevance
/lib/ |
D | textsearch.c | 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() [all …]
|
D | parman.c | 51 const struct parman_ops *ops; member 62 parman->ops->resize_step; in parman_enlarge() 65 err = parman->ops->resize(parman->priv, new_count); in parman_enlarge() 75 parman->ops->resize_step; in parman_shrink() 78 if (new_count < parman->ops->base_count) in parman_shrink() 80 err = parman->ops->resize(parman->priv, new_count); in parman_shrink() 130 parman->ops->move(parman->priv, item->index, to_index, count); in __parman_prio_move() 216 if (parman->limit_count - parman->count >= parman->ops->resize_step) in parman_lsort_item_remove() 268 struct parman *parman_create(const struct parman_ops *ops, void *priv) in parman_create() argument 276 parman->ops = ops; in parman_create() [all …]
|
D | objagg.c | 22 const struct objagg_ops *ops; member 44 const struct objagg_ops *ops; member 170 delta_priv = objagg->ops->delta_create(objagg->priv, parent->obj, in objagg_obj_parent_assign() 217 objagg->ops->delta_destroy(objagg->priv, objagg_obj->delta_priv); in objagg_obj_parent_unassign() 270 objagg_obj->root_priv = objagg->ops->root_create(objagg->priv, in objagg_obj_root_create() 289 objagg->ops->root_destroy(objagg->priv, objagg_obj->root_priv); in objagg_obj_root_destroy() 369 objagg_obj = kzalloc(sizeof(*objagg_obj) + objagg->ops->obj_size, in objagg_obj_create() 374 memcpy(objagg_obj->obj, obj, objagg->ops->obj_size); in objagg_obj_create() 514 struct objagg *objagg_create(const struct objagg_ops *ops, in objagg_create() argument 520 if (WARN_ON(!ops || !ops->root_create || !ops->root_destroy || in objagg_create() [all …]
|
D | assoc_array.c | 171 const struct assoc_array_ops *ops, in assoc_array_walk() argument 199 segments = ops->get_key_chunk(index_key, level); in assoc_array_walk() 253 segments = ops->get_key_chunk(index_key, sc_level); in assoc_array_walk() 305 const struct assoc_array_ops *ops, in assoc_array_find() argument 314 if (assoc_array_walk(array, ops, index_key, &result) != in assoc_array_find() 331 if (ops->compare_object(leaf, index_key)) in assoc_array_find() 344 const struct assoc_array_ops *ops) in assoc_array_destroy_subtree() argument 391 if (ops) { in assoc_array_destroy_subtree() 393 ops->free_object(assoc_array_ptr_to_leaf(ptr)); in assoc_array_destroy_subtree() 442 const struct assoc_array_ops *ops) in assoc_array_destroy() argument [all …]
|
D | logic_pio.c | 240 if (entry && entry->ops) \ 241 ret = entry->ops->in(entry->hostdata, \ 256 if (entry && entry->ops) \ 257 entry->ops->out(entry->hostdata, \ 272 if (entry && entry->ops) \ 273 entry->ops->ins(entry->hostdata, \ 289 if (entry && entry->ops) \ 290 entry->ops->outs(entry->hostdata, \
|
D | kobject_uevent.c | 238 const struct kobj_ns_type_operations *ops; in kobj_usermode_filter() local 240 ops = kobj_ns_ops(kobj); in kobj_usermode_filter() 241 if (ops) { in kobj_usermode_filter() 245 init_ns = ops->initial_ns(); in kobj_usermode_filter() 388 const struct kobj_ns_type_operations *ops; in kobject_uevent_net_broadcast() local 391 ops = kobj_ns_ops(kobj); in kobject_uevent_net_broadcast() 392 if (!ops && kobj->kset) { in kobject_uevent_net_broadcast() 396 ops = kobj_ns_ops(ksobj->parent); in kobject_uevent_net_broadcast() 403 if (ops && ops->netlink_ns && kobj->ktype->namespace) in kobject_uevent_net_broadcast() 404 if (ops->type == KOBJ_NS_TYPE_NET) in kobject_uevent_net_broadcast()
|
D | kobject.c | 86 const struct kobj_ns_type_operations *ops; in create_dir() local 117 ops = kobj_child_ns_ops(kobj); in create_dir() 118 if (ops) { in create_dir() 119 BUG_ON(ops->type <= KOBJ_NS_TYPE_NONE); in create_dir() 120 BUG_ON(ops->type >= KOBJ_NS_TYPES); in create_dir() 121 BUG_ON(!kobj_ns_type_registered(ops->type)); in create_dir() 1014 int kobj_ns_type_register(const struct kobj_ns_type_operations *ops) in kobj_ns_type_register() argument 1016 enum kobj_ns_type type = ops->type; in kobj_ns_type_register() 1034 kobj_ns_ops_tbl[type] = ops; in kobj_ns_type_register() 1055 const struct kobj_ns_type_operations *ops = NULL; in kobj_child_ns_ops() local [all …]
|
D | test_parman.c | 217 static struct test_parman *test_parman_create(const struct parman_ops *ops) in test_parman_create() argument 228 test_parman->parman = parman_create(ops, test_parman); in test_parman_create()
|
D | iov_iter.c | 351 pipe->bufs[idx].ops, in sanity() 400 buf->ops = &page_cache_pipe_buf_ops; in copy_page_to_iter_pipe() 480 return buf->ops == &default_pipe_buf_ops; in allocated() 526 pipe->bufs[idx].ops = &default_pipe_buf_ops; in push_pipe()
|