| /linux/include/linux/ |
| H A D | closure.h | 105 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 D | closure.c | 30 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 …]
|
| /linux/drivers/firewire/ |
| H A D | uapi-test.c | 22 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() 84 KUNIT_EXPECT_EQ(test, 0, offsetof(struct fw_cdev_event_bus_reset, closure));
|
| H A D | core-cdev.c | 107 __u64 closure; member 417 event->closure = client->bus_reset_closure; in for_each_client() 696 rsp->closure = request->closure; in init_request() 703 rsp->closure = request->closure; in init_request() 810 req->closure = handler->closure; in handle_request() 824 req->closure = handler->closure; in handle_request() [all...] |
| /linux/drivers/gpu/drm/ |
| H A D | drm_edid.c | 3143 typedef void detailed_cb(const struct detailed_timing *timing, void *closure); 3146 cea_for_each_detailed_block(const u8 *ext, detailed_cb *cb, void *closure) in drm_for_each_detailed_block() 3157 cb((const struct detailed_timing *)(det_base + 18 * i), closure); in drm_for_each_detailed_block() 3161 vtb_for_each_detailed_block(const u8 *ext, detailed_cb *cb, void *closure) in drm_for_each_detailed_block() 3170 cb((const struct detailed_timing *)(det_base + 18 * i), closure); in drm_for_each_detailed_block() 3174 detailed_cb *cb, void *closure) in is_rb() 3184 cb(&drm_edid->edid->detailed_timings[i], closure); in is_rb() 3190 cea_for_each_detailed_block(ext, cb, closure); 3193 vtb_for_each_detailed_block(ext, cb, closure); in drm_monitor_supports_rb() 3882 struct detailed_mode_closure *closure in do_inferred_modes() 3117 cea_for_each_detailed_block(const u8 * ext,detailed_cb * cb,void * closure) cea_for_each_detailed_block() argument 3132 vtb_for_each_detailed_block(const u8 * ext,detailed_cb * cb,void * closure) vtb_for_each_detailed_block() argument 3145 drm_for_each_detailed_block(const struct drm_edid * drm_edid,detailed_cb * cb,void * closure) drm_for_each_detailed_block() argument 3853 struct detailed_mode_closure *closure = c; do_inferred_modes() local 3895 struct detailed_mode_closure closure = { add_inferred_modes() local 3938 struct detailed_mode_closure *closure = c; do_established_modes() local 3960 struct detailed_mode_closure closure = { add_established_modes() local 3987 struct detailed_mode_closure *closure = c; do_standard_modes() local 4016 struct detailed_mode_closure closure = { add_standard_modes() local 4096 struct detailed_mode_closure *closure = c; do_cvt_mode() local 4107 struct detailed_mode_closure closure = { add_cvt_modes() local 4126 struct detailed_mode_closure *closure = c; do_detailed_mode() local 4160 struct detailed_mode_closure closure = { add_detailed_modes() local 5545 struct drm_edid_match_closure *closure = data; match_identity() local 5588 struct drm_edid_match_closure closure = { drm_edid_match() local 6545 struct detailed_mode_closure *closure = c; get_monitor_range() local 6582 struct detailed_mode_closure closure = { drm_get_monitor_range() local [all...] |
| /linux/drivers/md/bcache/ |
| H A D | bcache.h | 251 struct closure cl; 312 struct closure sb_write; 433 struct closure prio; 517 struct closure cl; 537 struct closure caching; 539 struct closure sb_write; 683 struct closure uuid_write; 946 struct closure *cl) in closure_bio_submit() 1010 void bch_write_bdev_super(struct cached_dev *dc, struct closure *parent);
|
| H A D | stats.h | 28 struct closure cl; 45 struct closure *parent);
|
| H A D | btree.h | 138 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 D | request.c | 108 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() 1282 struct closure *cl; in flash_dev_submit_bio()
|
| H A D | btree.c | 238 struct closure *cl = bio->bi_private; in btree_node_read_endio() 246 struct closure cl; in bch_btree_node_read() 328 struct closure *cl = bio->bi_private; in btree_node_write_endio() 340 struct closure *cl = &b->io; in do_btree_node_write() 403 void __bch_btree_node_write(struct btree *b, struct closure *parent) in __bch_btree_node_write() 434 void bch_btree_node_write(struct btree *b, struct closure *parent) in bch_btree_node_write() 454 struct closure cl; in bch_btree_node_write_sync() 608 struct closure cl; in mca_reap() 749 struct closure cl; in bch_btree_cache_free() 1365 struct closure cl; in btree_gc_coalesce() [all …]
|
| H A D | request.h | 6 struct closure cl;
|
| H A D | stats.c | 223 struct closure *parent) in bch_cache_accounting_init()
|
| H A D | util.h | 17 struct closure;
|
| /linux/sound/drivers/opl3/ |
| H A D | opl3_oss.c | 11 static int snd_opl3_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure); 132 static int snd_opl3_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure) in snd_opl3_open_seq_oss() 134 struct snd_opl3 *opl3 = closure; in snd_opl3_open_seq_oss() 131 snd_opl3_open_seq_oss(struct snd_seq_oss_arg * arg,void * closure) snd_opl3_open_seq_oss() argument
|
| /linux/rust/pin-init/ |
| H A D | README.md | 150 [`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 195 // - when the closure returns `Ok(())`, then it has successfully initialized and
|
| /linux/sound/synth/emux/ |
| H A D | emux_oss.c | 19 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 D | seq_oss.h | 39 int (*open)(struct snd_seq_oss_arg *p, void *closure);
|
| /linux/Documentation/input/devices/ |
| H A D | atarikbd.rst | 29 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 D | cxgb4_uld.h | 273 void *closure; /* caller's opaque information */ member
|
| /linux/tools/perf/util/ |
| H A D | python.c | 116 static PyObject *pyrf_event__get_member(PyObject *self, void *closure) in pyrf_task_event__repr() 121 return PyMember_GetOne((const char *)event, closure); in pyrf_task_event__repr() 124 static PyObject *pyrf_event__get_sample_member(PyObject *self, void *closure) in pyrf_task_event__repr() 129 return PyMember_GetOne((const char *)sample, closure); 134 .closure = &(struct PyMemberDef){ #field, ptype, \ 155 static PyObject *pyrf_event__get_string_member(PyObject *self, void *closure) in pyrf_comm_event__repr() 158 const struct pyrf_string_member *sm = closure; 167 .closure = &(struct pyrf_string_member){ offsetof(struct type, member), \ 172 .closure = &(struct PyMemberDef){ #field, ptype, \ 175 static PyObject *pyrf_event__get_evsel(PyObject *self, void *closure __maybe_unuse 883 pyrf_counts_values_get_values(struct pyrf_counts_values * self,void * closure) pyrf_counts_values_get_values() argument 896 pyrf_counts_values_set_values(struct pyrf_counts_values * self,PyObject * list,void * closure) pyrf_counts_values_set_values() argument [all...] |
| /linux/Documentation/sound/designs/ |
| H A D | seq-oss.rst | 209 int (*open)(snd_seq_oss_arg_t *p, void *closure);
|
| /linux/Documentation/locking/ |
| H A D | lockdep-design.rst | 284 The validator achieves perfect, mathematical 'closure' (proof of locking
|
| /linux/ |
| H A D | MAINTAINERS | 6590 F: include/linux/closure.h 6591 F: lib/closure.c
|