Home
last modified time | relevance | path

Searched refs:closure (Results 1 – 25 of 28) sorted by relevance

12

/drivers/md/bcache/
Dclosure.h102 struct closure;
103 typedef void (closure_fn) (struct closure *);
148 struct closure { struct
159 struct closure *parent; argument
174 void closure_sub(struct closure *cl, int v); argument
175 void closure_put(struct closure *cl);
177 bool closure_wait(struct closure_waitlist *list, struct closure *cl);
178 void closure_sync(struct closure *cl);
183 void closure_debug_create(struct closure *cl);
184 void closure_debug_destroy(struct closure *cl);
[all …]
Dclosure.c14 static inline void closure_put_after_sub(struct closure *cl, int flags) in closure_put_after_sub()
31 struct closure *parent = cl->parent; in closure_put_after_sub()
46 void closure_sub(struct closure *cl, int v) in closure_sub()
55 void closure_put(struct closure *cl) in closure_put()
67 struct closure *cl; in __closure_wake_up()
85 cl = container_of(reverse, struct closure, list); in __closure_wake_up()
101 bool closure_wait(struct closure_waitlist *waitlist, struct closure *cl) in closure_wait()
120 void closure_sync(struct closure *cl) in closure_sync()
142 void closure_debug_create(struct closure *cl) in closure_debug_create()
155 void closure_debug_destroy(struct closure *cl) in closure_debug_destroy()
[all …]
Djournal.h107 struct closure io;
164 struct closure;
169 atomic_t *bch_journal(struct cache_set *, struct keylist *, struct closure *);
172 void bch_journal_meta(struct cache_set *, struct closure *);
Drequest.c26 static void bch_data_insert_start(struct closure *);
55 static void bch_data_insert_keys(struct closure *cl) in bch_data_insert_keys()
115 static void bch_data_invalidate(struct closure *cl) in bch_data_invalidate()
143 static void bch_data_insert_error(struct closure *cl) in bch_data_insert_error()
175 struct closure *cl = bio->bi_private; in bch_data_insert_endio()
191 static void bch_data_insert_start(struct closure *cl) in bch_data_insert_start()
310 void bch_data_insert(struct closure *cl) in bch_data_insert()
456 struct closure cl;
478 struct closure *cl = bio->bi_private; in bch_cache_read_endio()
568 static void cache_lookup(struct closure *cl) in cache_lookup()
[all …]
Dbcache.h252 struct closure cl;
260 struct closure cl;
313 struct closure sb_write;
407 struct closure prio;
490 struct closure cl;
509 struct closure caching;
511 struct closure sb_write;
633 struct closure uuid_write;
902 void bch_write_bdev_super(struct cached_dev *, struct closure *);
Dmovinggc.c15 struct closure cl;
37 static void moving_io_destructor(struct closure *cl) in moving_io_destructor()
43 static void write_moving_finish(struct closure *cl) in write_moving_finish()
95 static void write_moving(struct closure *cl) in write_moving()
119 static void read_moving_submit(struct closure *cl) in read_moving_submit()
134 struct closure cl; in read_moving()
Drequest.h5 struct closure cl;
36 void bch_data_insert(struct closure *cl);
Djournal.c29 struct closure *cl = bio->bi_private; in journal_read_endio()
41 struct closure cl; in journal_read_bucket()
558 static void journal_write(struct closure *);
560 static void journal_write_done(struct closure *cl) in journal_write_done()
571 static void journal_write_unlock(struct closure *cl) in journal_write_unlock()
579 static void journal_write_unlocked(struct closure *cl) in journal_write_unlocked()
654 static void journal_write(struct closure *cl) in journal_write()
665 struct closure *cl = &c->journal.io; in journal_try_write()
682 struct closure cl; in journal_wait_for_write()
752 struct closure *parent) in bch_journal()
[all …]
Dsuper.c267 static void bch_write_bdev_super_unlock(struct closure *cl) in bch_write_bdev_super_unlock()
274 void bch_write_bdev_super(struct cached_dev *dc, struct closure *parent) in bch_write_bdev_super()
276 struct closure *cl = &dc->sb_write; in bch_write_bdev_super()
301 static void bcache_write_super_unlock(struct closure *cl) in bcache_write_super_unlock()
310 struct closure *cl = &c->sb_write; in bcache_write_super()
344 struct closure *cl = bio->bi_private; in uuid_endio()
352 static void uuid_io_unlock(struct closure *cl) in uuid_io_unlock()
360 struct bkey *k, struct closure *parent) in uuid_io()
362 struct closure *cl = &c->uuid_write; in uuid_io()
399 static char *uuid_read(struct cache_set *c, struct jset *j, struct closure *cl) in uuid_read()
[all …]
Dstats.h29 struct closure cl;
46 struct closure *parent);
Dbtree.h139 struct closure io;
241 void __bch_btree_node_write(struct btree *, struct closure *);
242 void bch_btree_node_write(struct btree *, struct closure *);
Dwriteback.c101 struct closure cl;
122 static void dirty_io_destructor(struct closure *cl) in dirty_io_destructor()
128 static void write_dirty_finish(struct closure *cl) in write_dirty_finish()
181 static void write_dirty(struct closure *cl) in write_dirty()
208 static void read_dirty_submit(struct closure *cl) in read_dirty_submit()
222 struct closure cl; in read_dirty()
Dbtree.c283 struct closure *cl = bio->bi_private; in btree_node_read_endio()
290 struct closure cl; in bch_btree_node_read()
340 static void btree_node_write_unlock(struct closure *cl) in btree_node_write_unlock()
347 static void __btree_node_write_done(struct closure *cl) in __btree_node_write_done()
362 static void btree_node_write_done(struct closure *cl) in btree_node_write_done()
376 struct closure *cl = bio->bi_private; in btree_node_write_endio()
388 struct closure *cl = &b->io; in do_btree_node_write()
446 void __bch_btree_node_write(struct btree *b, struct closure *parent) in __bch_btree_node_write()
477 void bch_btree_node_write(struct btree *b, struct closure *parent) in bch_btree_node_write()
497 struct closure cl; in bch_btree_node_write_sync()
[all …]
Dio.c52 static void bch_bio_submit_split_done(struct closure *cl) in bch_bio_submit_split_done()
66 struct closure *cl = bio->bi_private; in bch_bio_submit_split_endio()
238 struct closure *cl = bio->bi_private; in bch_bbio_endio()
DMakefile4 bcache-y := alloc.o bset.o btree.o closure.o debug.o extents.o\
Dstats.c228 struct closure *parent) in bch_cache_accounting_init()
/drivers/staging/lustre/lustre/lov/
Dlov_lock.c184 struct cl_lock_closure *closure, in lov_sublock_unlock() argument
189 cl_lock_disclosure(env, closure); in lov_sublock_unlock()
195 struct cl_lock_closure *closure, in lov_sublock_lock() argument
202 LASSERT(list_empty(&closure->clc_list)); in lov_sublock_lock()
206 result = cl_lock_closure_build(env, child, closure); in lov_sublock_lock()
208 struct cl_lock *parent = closure->clc_origin; in lov_sublock_lock()
225 lov_sublock_unlock(env, sublock, closure, NULL); in lov_sublock_lock()
233 closure, NULL); in lov_sublock_lock()
547 struct cl_lock_closure *closure = lov_closure_get(env, lock); in lov_lock_enqueue() local
582 rc = lov_sublock_lock(env, lck, lls, closure, &subenv); in lov_lock_enqueue()
[all …]
Dlovsub_lock.c248 struct cl_lock_closure *closure) in lovsub_lock_closure() argument
262 result = cl_lock_closure_build(env, parent, closure); in lovsub_lock_closure()
/drivers/gpu/drm/
Ddrm_edid.c1455 typedef void detailed_cb(struct detailed_timing *timing, void *closure);
1458 cea_for_each_detailed_block(u8 *ext, detailed_cb *cb, void *closure) in cea_for_each_detailed_block() argument
1466 cb((struct detailed_timing *)(det_base + 18 * i), closure); in cea_for_each_detailed_block()
1470 vtb_for_each_detailed_block(u8 *ext, detailed_cb *cb, void *closure) in vtb_for_each_detailed_block() argument
1479 cb((struct detailed_timing *)(det_base + 18 * i), closure); in vtb_for_each_detailed_block()
1483 drm_for_each_detailed_block(u8 *raw_edid, detailed_cb *cb, void *closure) in drm_for_each_detailed_block() argument
1492 cb(&(edid->detailed_timings[i]), closure); in drm_for_each_detailed_block()
1498 cea_for_each_detailed_block(ext, cb, closure); in drm_for_each_detailed_block()
1501 vtb_for_each_detailed_block(ext, cb, closure); in drm_for_each_detailed_block()
2067 struct detailed_mode_closure *closure = c; in do_inferred_modes() local
[all …]
/drivers/staging/lustre/lustre/obdclass/
Dcl_lock.c1579 struct cl_lock_closure *closure, in cl_lock_closure_init() argument
1585 INIT_LIST_HEAD(&closure->clc_list); in cl_lock_closure_init()
1586 closure->clc_origin = origin; in cl_lock_closure_init()
1587 closure->clc_wait = wait; in cl_lock_closure_init()
1588 closure->clc_nr = 0; in cl_lock_closure_init()
1603 struct cl_lock_closure *closure) in cl_lock_closure_build() argument
1608 LINVRNT(cl_lock_is_mutexed(closure->clc_origin)); in cl_lock_closure_build()
1609 LINVRNT(cl_lock_invariant(env, closure->clc_origin)); in cl_lock_closure_build()
1611 result = cl_lock_enclosure(env, lock, closure); in cl_lock_closure_build()
1616 closure); in cl_lock_closure_build()
[all …]
/drivers/firewire/
Dcore-cdev.c113 __u64 closure; member
358 event->closure = client->bus_reset_closure; in fill_bus_reset_event()
609 e->response.closure = request->closure; in init_request()
731 req->closure = handler->closure; in handle_request()
745 req->closure = handler->closure; in handle_request()
794 r->closure = a->closure; in ioctl_allocate()
935 e->interrupt.closure = client->iso_closure; in iso_callback()
954 e->interrupt.closure = client->iso_closure; in iso_mc_callback()
1032 client->iso_closure = a->closure; in ioctl_create_iso_context()
1387 e1->iso_resource.closure = request->closure; in init_iso_resource()
[all …]
/drivers/staging/lustre/lustre/ldlm/
Dldlm_request.c1967 void *closure) in ldlm_resource_foreach() argument
1980 if (iter(lock, closure) == LDLM_ITER_STOP) { in ldlm_resource_foreach()
1989 if (iter(lock, closure) == LDLM_ITER_STOP) { in ldlm_resource_foreach()
1998 if (iter(lock, closure) == LDLM_ITER_STOP) { in ldlm_resource_foreach()
2011 void *closure; member
2014 static int ldlm_iter_helper(struct ldlm_lock *lock, void *closure) in ldlm_iter_helper() argument
2016 struct iter_helper_data *helper = closure; in ldlm_iter_helper()
2017 return helper->iter(lock, helper->closure); in ldlm_iter_helper()
2031 ldlm_iterator_t iter, void *closure) in ldlm_namespace_foreach() argument
2036 .closure = closure, in ldlm_namespace_foreach()
[all …]
/drivers/staging/lustre/lustre/include/
Dcl_object.h1793 struct cl_lock_closure *closure);
3017 struct cl_lock_closure *closure,
3019 void cl_lock_closure_fini (struct cl_lock_closure *closure);
3021 struct cl_lock_closure *closure);
3023 struct cl_lock_closure *closure);
3025 struct cl_lock_closure *closure);
Dlustre_import.h313 typedef void (*obd_import_callback)(struct obd_import *imp, void *closure,
Dlustre_dlm.h1123 void *closure);
1125 void *closure);

12