Home
last modified time | relevance | path

Searched refs:completion (Results 1 – 25 of 1172) sorted by relevance

12345678910>>...47

/Linux-v4.19/include/linux/
Dcompletion.h26 struct completion { struct
33 static inline void complete_acquire(struct completion *x) {} in complete_acquire() argument
34 static inline void complete_release(struct completion *x) {} in complete_release()
54 struct completion work = COMPLETION_INITIALIZER(work)
70 struct completion work = COMPLETION_INITIALIZER_ONSTACK(work)
72 struct completion work = COMPLETION_INITIALIZER_ONSTACK_MAP(work, map)
85 static inline void __init_completion(struct completion *x) in __init_completion()
98 static inline void reinit_completion(struct completion *x) in reinit_completion()
103 extern void wait_for_completion(struct completion *);
104 extern void wait_for_completion_io(struct completion *);
[all …]
/Linux-v4.19/kernel/sched/
Dcompletion.c28 void complete(struct completion *x) in complete()
57 void complete_all(struct completion *x) in complete_all()
69 do_wait_for_common(struct completion *x, in do_wait_for_common()
96 __wait_for_common(struct completion *x, in __wait_for_common()
113 wait_for_common(struct completion *x, long timeout, int state) in wait_for_common()
119 wait_for_common_io(struct completion *x, long timeout, int state) in wait_for_common_io()
134 void __sched wait_for_completion(struct completion *x) in wait_for_completion()
153 wait_for_completion_timeout(struct completion *x, unsigned long timeout) in wait_for_completion_timeout()
167 void __sched wait_for_completion_io(struct completion *x) in wait_for_completion_io()
187 wait_for_completion_io_timeout(struct completion *x, unsigned long timeout) in wait_for_completion_io_timeout()
[all …]
/Linux-v4.19/Documentation/scheduler/
Dcompletion.txt1 completions - wait for completion handling
24 struct completion that tells the waiting threads of execution if they
28 kernel/sched/completion.c.
35 struct completion, the waiting part through a call to one of the variants of
40 To use completions one needs to include <linux/completion.h> and
41 create a variable of type struct completion. The structure used for
44 struct completion {
75 wait queue. Calling init_completion() twice on the same completion object is
89 happy. Note also that one needs to make *sure* the completion passed to
95 additional synchronization to prevent the on-stack completion object in
[all …]
/Linux-v4.19/tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/
Dlocks.h176 struct completion { struct
182 #define DECLARE_COMPLETION(x) struct completion x = COMPLETION_INITIALIZER(x) argument
185 static inline void init_completion(struct completion *c) in init_completion()
190 static inline void wait_for_completion(struct completion *c) in wait_for_completion()
197 static inline void complete(struct completion *c) in complete()
205 static inline bool try_wait_for_completion(struct completion *c) in try_wait_for_completion()
210 static inline bool completion_done(struct completion *c) in completion_done()
216 static inline void complete_all(struct completion *c) in complete_all()
/Linux-v4.19/drivers/scsi/aic94xx/
Daic94xx_tmf.c85 complete(ascb->completion); in asd_clear_nexus_tasklet_complete()
96 complete(ascb->completion); in asd_clear_nexus_timedout()
103 DECLARE_COMPLETION_ONSTACK(completion); \
112 ascb->completion = &completion; \
124 wait_for_completion(&completion); \
270 complete(ascb->completion); in asd_tmf_timedout()
338 complete(ascb->completion); in asd_tmf_tasklet_complete()
347 DECLARE_COMPLETION_ONSTACK(completion); in asd_clear_nexus()
350 tascb->completion = &completion; in asd_clear_nexus()
357 leftover = wait_for_completion_timeout(&completion, in asd_clear_nexus()
[all …]
/Linux-v4.19/arch/powerpc/sysdev/
Dpmi.c46 struct completion *completion; member
65 if (type & PMI_ACK && !data->completion) { in pmi_irq_handler()
71 if (data->completion && !(type & PMI_ACK)) { in pmi_irq_handler()
91 complete(data->completion); in pmi_irq_handler()
221 DECLARE_COMPLETION_ONSTACK(completion); in pmi_send_message()
231 data->completion = &completion; in pmi_send_message()
242 wait_for_completion_interruptible_timeout(data->completion, in pmi_send_message()
245 data->completion = NULL; in pmi_send_message()
/Linux-v4.19/drivers/staging/rts5208/
Drtsx.h108 struct completion cmnd_ready; /* to sleep thread on */
109 struct completion control_exit; /* control thread exit */
110 struct completion polling_exit; /* polling thread exit */
111 struct completion notify; /* thread begin/end */
112 struct completion scanning_done; /* wait for scan thread */
124 struct completion *done;
/Linux-v4.19/drivers/char/hw_random/
Dtimeriomem-rng.c42 struct completion completion; member
64 wait_for_completion(&priv->completion); in timeriomem_rng_read()
88 reinit_completion(&priv->completion); in timeriomem_rng_read()
101 complete(&priv->completion); in timeriomem_rng_trigger()
159 init_completion(&priv->completion); in timeriomem_rng_probe()
173 complete(&priv->completion); in timeriomem_rng_probe()
/Linux-v4.19/net/bluetooth/
Decdh_helper.c29 struct completion completion; member
41 complete(&res->completion); in ecdh_complete()
79 init_completion(&result.completion); in compute_ecdh_secret()
92 wait_for_completion(&result.completion); in compute_ecdh_secret()
186 init_completion(&result.completion); in generate_ecdh_public_key()
195 wait_for_completion(&result.completion); in generate_ecdh_public_key()
/Linux-v4.19/Documentation/driver-api/usb/
DURB.rst36 - Each URB has a completion handler, which is called after the action
38 context-pointer for passing information to the completion handler.
42 data to an endpoint while your driver handles completion of another.
60 // (IN) all urbs need completion routines
61 void *context; // context for completion routine
62 usb_complete_t complete; // pointer to completion routine
64 // (OUT) status after each completion
110 returned to you in a completion callback. It will automatically be
122 length, the completion handler, and its context. Take a look at the some
156 never look at that value except in your completion callback.
[all …]
/Linux-v4.19/drivers/soc/qcom/
Dglink_ssr.c62 struct completion completion; member
87 complete(&ssr->completion); in qcom_glink_ssr_callback()
101 reinit_completion(&ssr->completion); in qcom_glink_ssr_notify()
113 ret = wait_for_completion_timeout(&ssr->completion, HZ); in qcom_glink_ssr_notify()
128 init_completion(&ssr->completion); in qcom_glink_ssr_probe()
/Linux-v4.19/drivers/s390/char/
Dsclp_ftp.c37 struct completion *completion = data; in sclp_ftp_txcb() local
43 complete(completion); in sclp_ftp_txcb()
87 struct completion completion; in sclp_ftp_et7() local
128 req->callback_data = &completion; in sclp_ftp_et7()
130 init_completion(&completion); in sclp_ftp_et7()
137 wait_for_completion(&completion); in sclp_ftp_et7()
Dsclp_pci.c104 struct completion *completion = data; in sclp_pci_callback() local
106 complete(completion); in sclp_pci_callback()
126 DECLARE_COMPLETION_ONSTACK(completion); in sclp_pci_report()
152 req.callback_data = &completion; in sclp_pci_report()
173 wait_for_completion(&completion); in sclp_pci_report()
/Linux-v4.19/Documentation/blockdev/drbd/
Ddisk-states-8.dot11 Consistent -> Failed [ label = "io completion error" ]
12 Outdated -> Failed [ label = "io completion error" ]
13 UpToDate -> Failed [ label = "io completion error" ]
14 Inconsistent -> Failed [ label = "io completion error" ]
/Linux-v4.19/drivers/staging/vc04_services/interface/vchiq_arm/
Dvchiq_arm.h72 struct completion ka_evt;
77 struct completion vc_suspend_complete;
78 struct completion vc_resume_complete;
106 struct completion resume_blocker;
108 struct completion blocked_blocker;
/Linux-v4.19/Documentation/sparc/oradax/
Doracle-dax.txt39 pointer to a "completion area", which is a 128 byte memory block that
41 interrupt is generated upon completion; the completion area must be
44 processor until the completion status has been updated by the
50 completion of a request and resumption of execution of the requesting
83 call, and gets results (if any) via read(). The completion areas are
94 requests. The completion area buffer is also allocated, and this is
95 large enough to contain the completion areas for many concurrent
113 requests. Since no interrupt is generated upon the completion of a
136 completion area to use, and may be set via lseek() or using the
150 The mmap() function provides access to the completion area allocated
[all …]
/Linux-v4.19/drivers/hwmon/
Djz4740-hwmon.c35 struct completion read_completion;
52 struct completion *completion = &hwmon->read_completion; in in0_input_show() local
59 reinit_completion(completion); in in0_input_show()
64 t = wait_for_completion_interruptible_timeout(completion, HZ); in in0_input_show()
/Linux-v4.19/drivers/net/ethernet/brocade/bna/
Dbnad.h129 struct completion comp;
134 struct completion ioc_comp;
135 struct completion ucast_comp;
136 struct completion mcast_comp;
137 struct completion tx_comp;
138 struct completion rx_comp;
139 struct completion stats_comp;
140 struct completion enet_comp;
141 struct completion mtu_comp;
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/falcon/
Dmsgqueue.h166 struct completion *completion; member
191 struct completion init_done;
202 struct completion *, bool);
/Linux-v4.19/drivers/md/
Ddm-core.h24 struct completion completion; member
136 static inline struct completion *dm_get_completion_from_kobject(struct kobject *kobj) in dm_get_completion_from_kobject()
138 return &container_of(kobj, struct dm_kobject_holder, kobj)->completion; in dm_get_completion_from_kobject()
/Linux-v4.19/drivers/base/firmware_loader/
Dfirmware.h55 struct completion completion; member
93 ret = wait_for_completion_killable_timeout(&fw_st->completion, timeout); in __fw_state_wait_common()
110 complete_all(&fw_st->completion); in __fw_state_set()
/Linux-v4.19/net/smc/
Dsmc_core.h101 struct completion llc_confirm; /* wait for rx of conf link */
102 struct completion llc_confirm_resp; /* wait 4 rx of cnf lnk rsp */
105 struct completion llc_add; /* wait for rx of add link */
106 struct completion llc_add_resp; /* wait for rx of add link rsp*/
108 struct completion llc_testlink_resp; /* wait for rx of testlink */
110 struct completion llc_confirm_rkey; /* wait 4 rx of cnf rkey */
/Linux-v4.19/drivers/scsi/bfa/
Dbfad_drv.h152 struct completion *comp_del;
201 struct completion comp;
202 struct completion suspend;
203 struct completion enable_comp;
204 struct completion disable_comp;
283 struct completion comp;
288 struct completion comp;
/Linux-v4.19/include/target/iscsi/
Discsi_target_core.h556 struct completion conn_post_wait_comp;
557 struct completion conn_wait_comp;
558 struct completion conn_wait_rcfr_comp;
559 struct completion conn_waiting_on_uc_comp;
560 struct completion conn_logout_comp;
561 struct completion tx_half_close_comp;
562 struct completion rx_half_close_comp;
611 struct completion rx_login_comp;
687 struct completion async_msg_comp;
688 struct completion reinstatement_comp;
[all …]
/Linux-v4.19/include/drm/
Ddrm_file.h96 struct completion *completion; member
105 void (*completion_release)(struct completion *completion);

12345678910>>...47