Home
last modified time | relevance | path

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

/linux-4.1.27/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;
477 struct closure *cl = bio->bi_private; in bch_cache_read_endio()
567 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;
406 struct closure prio;
489 struct closure cl;
508 struct closure caching;
510 struct closure sb_write;
632 struct closure uuid_write;
901 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);
Dstats.h29 struct closure cl;
46 struct closure *parent);
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 …]
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 *);
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 …]
Dwriteback.c100 struct closure cl;
121 static void dirty_io_destructor(struct closure *cl) in dirty_io_destructor()
127 static void write_dirty_finish(struct closure *cl) in write_dirty_finish()
180 static void write_dirty(struct closure *cl) in write_dirty()
207 static void read_dirty_submit(struct closure *cl) in read_dirty_submit()
221 struct closure cl; in read_dirty()
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()
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 …]
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()
Dutil.h17 struct closure;
/linux-4.1.27/include/uapi/linux/
Dfirewire-cdev.h62 __u64 closure; member
86 __u64 closure; member
117 __u64 closure; member
133 __u64 closure; member
192 __u64 closure; member
258 __u64 closure; member
297 __u64 closure; member
324 __u64 closure; member
348 __u64 closure; member
509 __u64 closure; member
[all …]
/linux-4.1.27/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()
549 struct cl_lock_closure *closure = lov_closure_get(env, lock); in lov_lock_enqueue() local
584 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()
/linux-4.1.27/drivers/gpu/drm/
Ddrm_edid.c1493 typedef void detailed_cb(struct detailed_timing *timing, void *closure);
1496 cea_for_each_detailed_block(u8 *ext, detailed_cb *cb, void *closure) in cea_for_each_detailed_block() argument
1504 cb((struct detailed_timing *)(det_base + 18 * i), closure); in cea_for_each_detailed_block()
1508 vtb_for_each_detailed_block(u8 *ext, detailed_cb *cb, void *closure) in vtb_for_each_detailed_block() argument
1517 cb((struct detailed_timing *)(det_base + 18 * i), closure); in vtb_for_each_detailed_block()
1521 drm_for_each_detailed_block(u8 *raw_edid, detailed_cb *cb, void *closure) in drm_for_each_detailed_block() argument
1530 cb(&(edid->detailed_timings[i]), closure); in drm_for_each_detailed_block()
1536 cea_for_each_detailed_block(ext, cb, closure); in drm_for_each_detailed_block()
1539 vtb_for_each_detailed_block(ext, cb, closure); in drm_for_each_detailed_block()
2105 struct detailed_mode_closure *closure = c; in do_inferred_modes() local
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/
Dcl_lock.c1578 struct cl_lock_closure *closure, in cl_lock_closure_init() argument
1584 INIT_LIST_HEAD(&closure->clc_list); in cl_lock_closure_init()
1585 closure->clc_origin = origin; in cl_lock_closure_init()
1586 closure->clc_wait = wait; in cl_lock_closure_init()
1587 closure->clc_nr = 0; in cl_lock_closure_init()
1602 struct cl_lock_closure *closure) in cl_lock_closure_build() argument
1607 LINVRNT(cl_lock_is_mutexed(closure->clc_origin)); in cl_lock_closure_build()
1608 LINVRNT(cl_lock_invariant(env, closure->clc_origin)); in cl_lock_closure_build()
1610 result = cl_lock_enclosure(env, lock, closure); in cl_lock_closure_build()
1615 closure); in cl_lock_closure_build()
[all …]
/linux-4.1.27/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 …]
/linux-4.1.27/sound/drivers/opl3/
Dopl3_oss.c24 static int snd_opl3_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure);
160 static int snd_opl3_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure) in snd_opl3_open_seq_oss() argument
162 struct snd_opl3 *opl3 = closure; in snd_opl3_open_seq_oss()
/linux-4.1.27/drivers/staging/lustre/lustre/ldlm/
Dldlm_request.c1966 void *closure) in ldlm_resource_foreach() argument
1979 if (iter(lock, closure) == LDLM_ITER_STOP) { in ldlm_resource_foreach()
1988 if (iter(lock, closure) == LDLM_ITER_STOP) { in ldlm_resource_foreach()
1997 if (iter(lock, closure) == LDLM_ITER_STOP) { in ldlm_resource_foreach()
2010 void *closure; member
2013 static int ldlm_iter_helper(struct ldlm_lock *lock, void *closure) in ldlm_iter_helper() argument
2015 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 …]
Dldlm_lock.c1864 static int reprocess_one_queue(struct ldlm_resource *res, void *closure) in reprocess_one_queue() argument
/linux-4.1.27/include/sound/
Dseq_oss.h52 int (*open)(struct snd_seq_oss_arg *p, void *closure);
/linux-4.1.27/sound/synth/emux/
Demux_oss.c34 static int snd_emux_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure);
111 snd_emux_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure) in snd_emux_open_seq_oss() argument
118 emu = closure; in snd_emux_open_seq_oss()
/linux-4.1.27/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.h315 typedef void (*obd_import_callback)(struct obd_import *imp, void *closure,
Dlustre_dlm.h1123 void *closure);
1125 void *closure);
/linux-4.1.27/Documentation/input/
Datarikbd.txt25 closure) codes start at 1, and are defined in Appendix A. For example, the
388 Enter JOYSTICK EVENT REPORTING mode (DEFAULT). Each opening or closure of a
442 TX ; length (in tenths of seconds) of joystick closure
445 TY ; length (in tenths of seconds) of joystick closure
448 VX ; length (in tenths of seconds) of joystick closure
451 VY ; length (in tenths of seconds) of joystick closure
456 On initial closure, a keystroke pair (make/break) is generated. Then up to Rn
/linux-4.1.27/net/sunrpc/
Dsvc_xprt.c25 static void svc_age_temp_xprts(unsigned long closure);
904 static void svc_age_temp_xprts(unsigned long closure) in svc_age_temp_xprts() argument
906 struct svc_serv *serv = (struct svc_serv *)closure; in svc_age_temp_xprts()
/linux-4.1.27/drivers/isdn/i4l/
Disdn_ppp.c53 static void isdn_ppp_ccp_timer_callback(unsigned long closure);
2324 static void isdn_ppp_ccp_timer_callback(unsigned long closure) in isdn_ppp_ccp_timer_callback() argument
2327 (struct ippp_ccp_reset_state *)closure; in isdn_ppp_ccp_timer_callback()
/linux-4.1.27/Documentation/locking/
Dlockdep-design.txt175 The validator achieves perfect, mathematical 'closure' (proof of locking