Home
last modified time | relevance | path

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

/linux/include/linux/
H A Dclosure.h105 struct closure;
143 struct closure { struct
154 struct closure *parent; argument
171 void closure_sub(struct closure *cl, int v); argument
172 void closure_put(struct closure *cl);
174 bool closure_wait(struct closure_waitlist *list, struct closure *cl);
175 void __closure_sync(struct closure *cl);
177 static inline unsigned closure_nr_remaining(struct closure *cl) in closure_nr_remaining()
188 static inline void closure_sync(struct closure *cl) in closure_sync()
198 int __closure_sync_timeout(struct closure *cl, unsigned long timeout);
[all …]
/linux/lib/
H A Dclosure.c30 static inline void closure_put_after_sub(struct closure *cl, int flags) in closure_put_after_sub()
44 struct closure *parent = cl->parent; in closure_put_after_sub()
59 void closure_sub(struct closure *cl, int v) in closure_sub()
68 void closure_put(struct closure *cl) in closure_put()
80 struct closure *cl, *t; in __closure_wake_up()
103 bool closure_wait(struct closure_waitlist *waitlist, struct closure *cl) in closure_wait()
124 struct closure *cl = container_of(ws, struct closure, work); in CLOSURE_CALLBACK()
135 void __sched __closure_sync(struct closure *cl) in __closure_sync()
160 void __sched closure_return_sync(struct closure *cl) in closure_return_sync()
188 int __sched __closure_sync_timeout(struct closure *cl, unsigned long timeout) in __closure_sync_timeout()
[all …]
H A DMakefile224 obj-$(CONFIG_CLOSURES) += closure.o
/linux/drivers/firewire/
H A Duapi-test.c22 KUNIT_EXPECT_EQ(test, 0, offsetof(struct fw_cdev_event_response, closure)); in structure_layout_event_response()
34 KUNIT_EXPECT_EQ(test, 0, offsetof(struct fw_cdev_event_request3, closure)); in structure_layout_event_request3()
53 KUNIT_EXPECT_EQ(test, 0, offsetof(struct fw_cdev_event_response2, closure)); in structure_layout_event_response2()
67 KUNIT_EXPECT_EQ(test, 0, offsetof(struct fw_cdev_event_phy_packet2, closure)); in structure_layout_event_phy_packet2()
/linux/drivers/md/bcache/
H A Dstats.h28 struct closure cl;
45 struct closure *parent);
H A Dbtree.h138 struct closure io;
264 void __bch_btree_node_write(struct btree *b, struct closure *parent);
265 void bch_btree_node_write(struct btree *b, struct closure *parent);
H A Drequest.c108 static void bch_data_invalidate(struct closure *cl) in bch_data_invalidate()
171 struct closure *cl = bio->bi_private; in bch_data_insert_endio()
479 struct closure cl;
502 struct closure *cl = bio->bi_private; in bch_cache_read_endio()
637 struct closure *cl = bio->bi_private; in request_endio()
653 struct closure *cl = bio->bi_private; in backing_request_endio()
964 struct closure *cl = &s->cl; in cached_dev_read()
983 struct closure *cl = &s->cl; in cached_dev_write()
1295 struct closure *cl; in flash_dev_submit_bio()
H A Drequest.h6 struct closure cl;
H A Dstats.c223 struct closure *parent) in bch_cache_accounting_init()
H A Dutil.h17 struct closure;
/linux/sound/drivers/opl3/
H A Dopl3_oss.c11 static int snd_opl3_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure);
131 static int snd_opl3_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure) in snd_opl3_open_seq_oss() argument
133 struct snd_opl3 *opl3 = closure; in snd_opl3_open_seq_oss()
/linux/rust/pin-init/
H A DREADME.md150 [`impl PinInit<T, E>`] directly from a closure. Of course you have to ensure that the closure
152 (we are calling the parameter to the closure `slot`):
153 - when the closure returns `Ok(())`, then it has completed the initialization successfully, so
155 - when the closure returns `Err(e)`, then the caller may deallocate the memory at `slot`, so
157 - you may assume that `slot` will stay pinned even after the closure returns until `drop` of
196 // - when the closure returns `Ok(())`, then it has successfully initialized and
/linux/sound/synth/emux/
H A Demux_oss.c19 static int snd_emux_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure);
96 snd_emux_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure) in snd_emux_open_seq_oss() argument
103 emu = closure; in snd_emux_open_seq_oss()
/linux/include/sound/
H A Dseq_oss.h39 int (*open)(struct snd_seq_oss_arg *p, void *closure);
/linux/Documentation/input/devices/
H A Datarikbd.rst29 closure) codes start at 1, and are defined in Appendix A. For example, the
459 Enter JOYSTICK EVENT REPORTING mode (DEFAULT). Each opening or closure of a
528 TX ; length (in tenths of seconds) of joystick closure
531 TY ; length (in tenths of seconds) of joystick closure
534 VX ; length (in tenths of seconds) of joystick closure
537 VY ; length (in tenths of seconds) of joystick closure
542 On initial closure, a keystroke pair (make/break) is generated. Then up to Rn
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_uld.h273 void *closure; /* caller's opaque information */ member
/linux/tools/perf/util/
H A Dpython.c883 static PyObject *pyrf_counts_values_get_values(struct pyrf_counts_values *self, void *closure) in pyrf_counts_values_get_values() argument
896 void *closure) in pyrf_counts_values_set_values() argument
/linux/Documentation/sound/designs/
H A Dseq-oss.rst209 int (*open)(snd_seq_oss_arg_t *p, void *closure);
/linux/Documentation/locking/
H A Dlockdep-design.rst284 The validator achieves perfect, mathematical 'closure' (proof of locking
/linux/Documentation/userspace-api/media/v4l/
H A Dext-ctrls-codec.rst555 GOP closure (default 1)
/linux/
H A DMAINTAINERS6187 F: include/linux/closure.h
6188 F: lib/closure.c