Home
last modified time | relevance | path

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

/linux-4.4.14/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.c27 static void bch_data_insert_start(struct closure *);
56 static void bch_data_insert_keys(struct closure *cl) in bch_data_insert_keys()
118 static void bch_data_invalidate(struct closure *cl) in bch_data_invalidate()
146 static void bch_data_insert_error(struct closure *cl) in bch_data_insert_error()
178 struct closure *cl = bio->bi_private; in bch_data_insert_endio()
194 static void bch_data_insert_start(struct closure *cl) in bch_data_insert_start()
316 void bch_data_insert(struct closure *cl) in bch_data_insert()
462 struct closure cl;
483 struct closure *cl = bio->bi_private; in bch_cache_read_endio()
573 static void cache_lookup(struct closure *cl) in cache_lookup()
[all …]
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);
Dbcache.h247 struct closure cl;
298 struct closure sb_write;
391 struct closure prio;
472 struct closure cl;
491 struct closure caching;
493 struct closure sb_write;
615 struct closure uuid_write;
883 void bch_write_bdev_super(struct cached_dev *, struct closure *);
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()
656 static void journal_write(struct closure *cl) in journal_write()
667 struct closure *cl = &c->journal.io; in journal_try_write()
684 struct closure cl; in journal_wait_for_write()
754 struct closure *parent) in bch_journal()
[all …]
Dsuper.c244 static void bch_write_bdev_super_unlock(struct closure *cl) in bch_write_bdev_super_unlock()
251 void bch_write_bdev_super(struct cached_dev *dc, struct closure *parent) in bch_write_bdev_super()
253 struct closure *cl = &dc->sb_write; in bch_write_bdev_super()
278 static void bcache_write_super_unlock(struct closure *cl) in bcache_write_super_unlock()
287 struct closure *cl = &c->sb_write; in bcache_write_super()
321 struct closure *cl = bio->bi_private; in uuid_endio()
329 static void uuid_io_unlock(struct closure *cl) in uuid_io_unlock()
337 struct bkey *k, struct closure *parent) in uuid_io()
339 struct closure *cl = &c->uuid_write; in uuid_io()
376 static char *uuid_read(struct cache_set *c, struct jset *j, struct closure *cl) in uuid_read()
[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 *);
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()
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\
Dio.c140 struct closure *cl = bio->bi_private; in bch_bbio_endio()
Dstats.c228 struct closure *parent) in bch_cache_accounting_init()
Dutil.h18 struct closure;
/linux-4.4.14/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.4.14/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()
234 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.4.14/drivers/gpu/drm/
Ddrm_edid.c1545 typedef void detailed_cb(struct detailed_timing *timing, void *closure);
1548 cea_for_each_detailed_block(u8 *ext, detailed_cb *cb, void *closure) in cea_for_each_detailed_block() argument
1556 cb((struct detailed_timing *)(det_base + 18 * i), closure); in cea_for_each_detailed_block()
1560 vtb_for_each_detailed_block(u8 *ext, detailed_cb *cb, void *closure) in vtb_for_each_detailed_block() argument
1569 cb((struct detailed_timing *)(det_base + 18 * i), closure); in vtb_for_each_detailed_block()
1573 drm_for_each_detailed_block(u8 *raw_edid, detailed_cb *cb, void *closure) in drm_for_each_detailed_block() argument
1582 cb(&(edid->detailed_timings[i]), closure); in drm_for_each_detailed_block()
1588 cea_for_each_detailed_block(ext, cb, closure); in drm_for_each_detailed_block()
1591 vtb_for_each_detailed_block(ext, cb, closure); in drm_for_each_detailed_block()
2157 struct detailed_mode_closure *closure = c; in do_inferred_modes() local
[all …]
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/
Dcl_lock.c1553 struct cl_lock_closure *closure, in cl_lock_closure_init() argument
1559 INIT_LIST_HEAD(&closure->clc_list); in cl_lock_closure_init()
1560 closure->clc_origin = origin; in cl_lock_closure_init()
1561 closure->clc_wait = wait; in cl_lock_closure_init()
1562 closure->clc_nr = 0; in cl_lock_closure_init()
1577 struct cl_lock_closure *closure) in cl_lock_closure_build() argument
1582 LINVRNT(cl_lock_is_mutexed(closure->clc_origin)); in cl_lock_closure_build()
1583 LINVRNT(cl_lock_invariant(env, closure->clc_origin)); in cl_lock_closure_build()
1585 result = cl_lock_enclosure(env, lock, closure); in cl_lock_closure_build()
1590 closure); in cl_lock_closure_build()
[all …]
/linux-4.4.14/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.4.14/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.4.14/drivers/staging/lustre/lustre/ldlm/
Dldlm_request.c1666 ldlm_iterator_t iter, void *closure) in ldlm_resource_foreach() argument
1679 if (iter(lock, closure) == LDLM_ITER_STOP) { in ldlm_resource_foreach()
1688 if (iter(lock, closure) == LDLM_ITER_STOP) { in ldlm_resource_foreach()
1700 void *closure; member
1703 static int ldlm_iter_helper(struct ldlm_lock *lock, void *closure) in ldlm_iter_helper() argument
1705 struct iter_helper_data *helper = closure; in ldlm_iter_helper()
1707 return helper->iter(lock, helper->closure); in ldlm_iter_helper()
1721 ldlm_iterator_t iter, void *closure) in ldlm_namespace_foreach() argument
1726 .closure = closure, in ldlm_namespace_foreach()
1765 static int ldlm_chain_lock_for_replay(struct ldlm_lock *lock, void *closure) in ldlm_chain_lock_for_replay() argument
[all …]
/linux-4.4.14/include/sound/
Dseq_oss.h52 int (*open)(struct snd_seq_oss_arg *p, void *closure);
/linux-4.4.14/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.4.14/drivers/staging/lustre/lustre/include/
Dcl_object.h1794 struct cl_lock_closure *closure);
3002 struct cl_lock_closure *closure,
3004 void cl_lock_closure_fini (struct cl_lock_closure *closure);
3006 struct cl_lock_closure *closure);
3008 struct cl_lock_closure *closure);
3010 struct cl_lock_closure *closure);
Dlustre_import.h311 typedef void (*obd_import_callback)(struct obd_import *imp, void *closure,
/linux-4.4.14/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.4.14/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.4.14/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.4.14/Documentation/locking/
Dlockdep-design.txt175 The validator achieves perfect, mathematical 'closure' (proof of locking