Searched refs:completion (Results 1 - 200 of 2104) sorted by relevance

1234567891011

/linux-4.1.27/drivers/s390/cio/
H A Dchsc_sch.h5 struct completion completion; member in struct:chsc_request
H A Deadm_sch.h4 #include <linux/completion.h>
13 struct completion *completion; member in struct:eadm_private
H A Deadm_sch.c9 #include <linux/completion.h>
164 if (private->completion) eadm_subchannel_irq()
165 complete(private->completion); eadm_subchannel_irq()
264 DECLARE_COMPLETION_ONSTACK(completion); eadm_quiesce()
274 private->completion = &completion; eadm_quiesce()
277 wait_for_completion_io(&completion); eadm_quiesce()
280 private->completion = NULL; eadm_quiesce()
/linux-4.1.27/include/linux/
H A Dcompletion.h7 * Atomic wait-for-completion handler data structures.
8 * See kernel/sched/completion.c for details.
14 * struct completion - structure used to maintain state for a "completion"
16 * This is the opaque structure used to maintain the state for a "completion".
18 * the "completion" event.
25 struct completion { struct
37 * DECLARE_COMPLETION - declare and initialize a completion structure
38 * @work: identifier for the completion structure
40 * This macro declares and initializes a completion structure. Generally used
45 struct completion work = COMPLETION_INITIALIZER(work)
53 * DECLARE_COMPLETION_ONSTACK - declare and initialize a completion structure
54 * @work: identifier for the completion structure
56 * This macro declares and initializes a completion structure on the kernel
61 struct completion work = COMPLETION_INITIALIZER_ONSTACK(work)
67 * init_completion - Initialize a dynamically allocated completion
68 * @x: pointer to completion structure that is to be initialized
70 * This inline function will initialize a dynamically created completion
73 static inline void init_completion(struct completion *x) init_completion()
80 * reinit_completion - reinitialize a completion structure
81 * @x: pointer to completion structure that is to be reinitialized
83 * This inline function should be used to reinitialize a completion structure so it can
86 static inline void reinit_completion(struct completion *x) reinit_completion()
91 extern void wait_for_completion(struct completion *);
92 extern void wait_for_completion_io(struct completion *);
93 extern int wait_for_completion_interruptible(struct completion *x);
94 extern int wait_for_completion_killable(struct completion *x);
95 extern unsigned long wait_for_completion_timeout(struct completion *x,
97 extern unsigned long wait_for_completion_io_timeout(struct completion *x,
100 struct completion *x, unsigned long timeout);
102 struct completion *x, unsigned long timeout);
103 extern bool try_wait_for_completion(struct completion *x);
104 extern bool completion_done(struct completion *x);
106 extern void complete(struct completion *);
107 extern void complete_all(struct completion *);
H A Di2c-pnx.h21 struct completion complete; /* I/O completion */
H A Ddynamic_queue_limits.h11 * 2) Periodically a completion process executes which retires consumed
14 * actually been consumed, but completion processing has not yet run
25 * dql_completed - called at completion time to indicate how many objects
46 /* Fields accessed only by completion path (dql_completed) */
H A Derrno.h30 #define EIOCBQUEUED 529 /* iocb queued, will get completion event */
H A Dhw_random.h15 #include <linux/completion.h>
50 struct completion cleanup_done;
H A Dbsg-lib.h53 * Upon completion : the message handler must set reply_len
H A Dlibps2.h35 /* Used to signal completion from interrupt handler */
H A Duinput.h50 struct completion done;
H A Ddm-kcopyd.h7 * or with an asynchronous completion notification.
H A Dipmi_smi.h55 * response with an error code in the completion code location. When
119 completion" mode. If this call sets the value to true, the
122 to completion immediately. */
163 netfn << 2, cmd, completion code, data
/linux-4.1.27/kernel/sched/
H A Dcompletion.c2 * Generic wait-for-completion handler;
11 * Waiting for completion is a typically sync point, but not an exclusion point.
15 #include <linux/completion.h>
18 * complete: - signals a single thread waiting on this completion
19 * @x: holds the state of this particular completion
21 * This will wake up a single thread waiting on this completion. Threads will be
29 void complete(struct completion *x) complete()
41 * complete_all: - signals all threads waiting on this completion
42 * @x: holds the state of this particular completion
44 * This will wake up all threads waiting on this particular completion event.
49 void complete_all(struct completion *x) complete_all()
61 do_wait_for_common(struct completion *x, do_wait_for_common()
87 __wait_for_common(struct completion *x, __wait_for_common()
99 wait_for_common(struct completion *x, long timeout, int state) wait_for_common()
105 wait_for_common_io(struct completion *x, long timeout, int state) wait_for_common_io()
111 * wait_for_completion: - waits for completion of a task
112 * @x: holds the state of this particular completion
114 * This waits to be signaled for completion of a specific task. It is NOT
120 void __sched wait_for_completion(struct completion *x) wait_for_completion()
127 * wait_for_completion_timeout: - waits for completion of a task (w/timeout)
128 * @x: holds the state of this particular completion
131 * This waits for either a completion of a specific task to be signaled or for a
139 wait_for_completion_timeout(struct completion *x, unsigned long timeout) wait_for_completion_timeout()
146 * wait_for_completion_io: - waits for completion of a task
147 * @x: holds the state of this particular completion
149 * This waits to be signaled for completion of a specific task. It is NOT
153 void __sched wait_for_completion_io(struct completion *x) wait_for_completion_io()
160 * wait_for_completion_io_timeout: - waits for completion of a task (w/timeout)
161 * @x: holds the state of this particular completion
164 * This waits for either a completion of a specific task to be signaled or for a
173 wait_for_completion_io_timeout(struct completion *x, unsigned long timeout) wait_for_completion_io_timeout()
180 * wait_for_completion_interruptible: - waits for completion of a task (w/intr)
181 * @x: holds the state of this particular completion
183 * This waits for completion of a specific task to be signaled. It is
188 int __sched wait_for_completion_interruptible(struct completion *x) wait_for_completion_interruptible()
198 * wait_for_completion_interruptible_timeout: - waits for completion (w/(to,intr))
199 * @x: holds the state of this particular completion
202 * This waits for either a completion of a specific task to be signaled or for a
209 wait_for_completion_interruptible_timeout(struct completion *x, wait_for_completion_interruptible_timeout()
217 * wait_for_completion_killable: - waits for completion of a task (killable)
218 * @x: holds the state of this particular completion
220 * This waits to be signaled for completion of a specific task. It can be
225 int __sched wait_for_completion_killable(struct completion *x) wait_for_completion_killable()
235 * wait_for_completion_killable_timeout: - waits for completion of a task (w/(to,killable))
236 * @x: holds the state of this particular completion
239 * This waits for either a completion of a specific task to be
247 wait_for_completion_killable_timeout(struct completion *x, wait_for_completion_killable_timeout()
255 * try_wait_for_completion - try to decrement a completion without blocking
256 * @x: completion structure
261 * If a completion is being used as a counting completion,
263 * enables us to avoid waiting if the resource the completion
266 bool try_wait_for_completion(struct completion *x) try_wait_for_completion()
291 * completion_done - Test to see if a completion has any waiters
292 * @x: completion structure
298 bool completion_done(struct completion *x) completion_done()
305 * otherwise we can end up freeing the completion before complete() completion_done()
H A DMakefile16 obj-y += wait.o completion.o idle.o
/linux-4.1.27/drivers/crypto/caam/
H A Dkey_gen.h9 struct completion completion; member in struct:split_key_result
H A Dkey_gen.c27 complete(&res->completion); split_key_done()
101 init_completion(&result.completion); gen_split_key()
106 wait_for_completion_interruptible(&result.completion); gen_split_key()
/linux-4.1.27/fs/nfs/
H A Dcache_lib.h7 #include <linux/completion.h>
17 struct completion completion; member in struct:nfs_cache_defer_req
H A Dcache_lib.c79 complete_all(&dreq->completion); nfs_dns_cache_revisit()
100 init_completion(&dreq->completion); nfs_cache_defer_req_alloc()
109 if (wait_for_completion_timeout(&dreq->completion, nfs_cache_wait_for_upcall()
H A Ddirect.c82 /* completion state */
84 spinlock_t lock; /* protect completion state */
93 struct completion completion; /* wait for i/o completion */ member in struct:nfs_direct_req
310 init_completion(&dreq->completion); nfs_direct_req_alloc()
354 result = wait_for_completion_killable(&dreq->completion); nfs_direct_wait()
394 complete_all(&dreq->completion); nfs_direct_complete()
460 .completion = nfs_direct_read_completion,
534 * generic layer handle the completion. nfs_direct_read_schedule_iovec()
733 .completion = nfs_direct_commit_complete,
842 .completion = nfs_direct_write_completion,
924 * generic layer handle the completion. nfs_direct_write_schedule_iovec()
/linux-4.1.27/include/crypto/
H A Dif_alg.h17 #include <linux/completion.h>
41 struct completion completion; member in struct:af_alg_completion
84 int af_alg_wait_for_completion(int err, struct af_alg_completion *completion);
92 static inline void af_alg_init_completion(struct af_alg_completion *completion) af_alg_init_completion() argument
94 init_completion(&completion->completion); af_alg_init_completion()
/linux-4.1.27/drivers/scsi/isci/
H A Dscu_completion_codes.h60 * This file contains the constants and macros for the SCU hardware completion
72 * This macro constructs an SCU completion type
80 * These macros contain the SCU completion types SCU_COMPLETION_TYPE
92 * an SCU completion code.
107 * This macro returns the SCU completion type.
115 * This macro returns the SCU completion status.
123 * This macro returns the transport layer completion status.
131 * This macro takes a completion code and performs the shift and mask
132 * operations to turn it into a completion code that can be compared to a
153 * This macro returns the SDMA completion status.
161 * This macro returns the Protocol Engine Group from the completion code.
169 * This macro reuturns the logical port index from the completion code.
177 * This macro returns the PE index from the completion code.
185 * This macro returns the index of the completion which is either a TCi or an
186 * RNi depending on the completion type.
198 * completion.
220 * These constants represent normalized completion codes which must be shifted
221 * 18 bits to match it with the hardware completion code. In a 16-bit compiler,
H A Drequest.h104 * - regular requests are completed in the request completion callback
112 struct completion *io_request_completion;
127 * non-NULL the saved frame must be released on IO request completion.
175 * waiting for the TC completion notification for the H2D Register FIS
188 * waiting for the TC completion notification for the H2D Register FIS
194 * after receiving TC completion. While in this state IO request object is
198 * task context completion after every frame submission, so in the
199 * non-accelerated case we need to expect the completion for the "cdb" frame.
H A Dtask.c56 #include <linux/completion.h>
260 DECLARE_COMPLETION_ONSTACK(completion); isci_task_execute_tmf()
291 /* Assign the pointer to the TMF's completion kernel wait structure. */ isci_task_execute_tmf()
292 tmf->complete = &completion; isci_task_execute_tmf()
319 timeleft = wait_for_completion_timeout(&completion, isci_task_execute_tmf()
492 * after completion in the core. isci_task_abort_task()
690 * @completion_status: This parameter specifies the completion status from the
701 struct completion *tmf_complete = NULL; isci_task_request_complete()
/linux-4.1.27/drivers/infiniband/ulp/isert/
H A Dib_isert.h168 struct completion login_comp;
169 struct completion login_req_comp;
175 struct completion wait;
176 struct completion wait_comp_err;
190 * struct isert_comp - iSER completion context
193 * @cq: completion queue
194 * @wcs: work completion array
196 * to completion context
197 * @work: completion work handle
231 struct completion np_login_comp;
/linux-4.1.27/fs/nilfs2/
H A Dsysfs.h30 * @sg_superblock_kobj_unregister: completion state
32 * @sg_segctor_kobj_unregister: completion state
34 * @sg_mounted_snapshots_kobj_unregister: completion state
36 * @sg_checkpoints_kobj_unregister: completion state
38 * @sg_segments_kobj_unregister: completion state
43 struct completion sg_superblock_kobj_unregister;
47 struct completion sg_segctor_kobj_unregister;
51 struct completion sg_mounted_snapshots_kobj_unregister;
55 struct completion sg_checkpoints_kobj_unregister;
59 struct completion sg_segments_kobj_unregister;
H A Dsegbuf.h29 #include <linux/completion.h>
95 struct completion sb_bio_event;
H A Dthe_nilfs.h102 * @ns_dev_kobj_unregister: completion state
202 struct completion ns_dev_kobj_unregister;
249 * @snapshot_kobj_unregister: completion state for kernel object
264 struct completion snapshot_kobj_unregister;
/linux-4.1.27/drivers/staging/unisys/include/
H A Duisthread.h25 #include "linux/completion.h"
30 struct completion has_stopped;
/linux-4.1.27/drivers/char/hw_random/
H A Dtimeriomem-rng.c34 #include <linux/completion.h>
43 struct completion completion; member in struct:timeriomem_rng_private_data
61 wait_for_completion(&priv->completion); timeriomem_rng_data_present()
82 reinit_completion(&priv->completion); timeriomem_rng_data_read()
94 complete(&priv->completion); timeriomem_rng_trigger()
151 init_completion(&priv->completion); timeriomem_rng_probe()
152 complete(&priv->completion); timeriomem_rng_probe()
/linux-4.1.27/drivers/scsi/fnic/
H A Dfnic_io.h65 struct completion *abts_done; /* completion for abts */
66 struct completion *dr_done; /* completion for device reset */
H A Dcq_desc.h34 * All completion queues have this basic layout. The
35 * type_specfic area is unique for each completion
/linux-4.1.27/arch/powerpc/sysdev/
H A Dpmi.c29 #include <linux/completion.h>
46 struct completion *completion; member in struct:pmi_data
65 if (type & PMI_ACK && !data->completion) { pmi_irq_handler()
71 if (data->completion && !(type & PMI_ACK)) { pmi_irq_handler()
91 complete(data->completion); pmi_irq_handler()
221 DECLARE_COMPLETION_ONSTACK(completion); pmi_send_message()
231 data->completion = &completion; pmi_send_message()
240 pr_debug("pmi_send_message: wait for completion\n"); pmi_send_message()
242 wait_for_completion_interruptible_timeout(data->completion, pmi_send_message()
245 data->completion = NULL; pmi_send_message()
/linux-4.1.27/drivers/infiniband/hw/ipath/
H A Dipath_cq.c41 * ipath_cq_enter - add a new entry to the completion queue
42 * @cq: completion queue
43 * @entry: work completion entry to add
119 * ipath_poll_cq - poll for work completion entries
120 * @ibcq: the completion queue to poll
124 * Returns the number of completion entries polled.
137 /* The kernel can only poll a kernel completion queue */ ipath_poll_cq()
172 * The completion handler will most likely rearm the notification send_complete()
173 * and poll for all pending entries. If a new completion entry send_complete()
189 * ipath_create_cq - create a completion queue
190 * @ibdev: the device this completion queue is attached to
191 * @entries: the minimum size of the completion queue
195 * Returns a pointer to the completion queue or negative errno values
215 /* Allocate the completion queue structure. */ ipath_create_cq()
223 * Allocate the completion queue entries and head/tail pointers. ipath_create_cq()
307 * ipath_destroy_cq - destroy a completion queue
308 * @ibcq: the completion queue to destroy.
333 * ipath_req_notify_cq - change the notification type for a completion queue
334 * @ibcq: the completion queue
367 * @ibcq: the completion queue
/linux-4.1.27/drivers/infiniband/hw/qib/
H A Dqib_cq.c44 * qib_cq_enter - add a new entry to the completion queue
45 * @cq: completion queue
46 * @entry: work completion entry to add
126 * qib_poll_cq - poll for work completion entries
127 * @ibcq: the completion queue to poll
131 * Returns the number of completion entries polled.
144 /* The kernel can only poll a kernel completion queue */ qib_poll_cq()
179 * The completion handler will most likely rearm the notification send_complete()
180 * and poll for all pending entries. If a new completion entry send_complete()
204 * qib_create_cq - create a completion queue
205 * @ibdev: the device this completion queue is attached to
206 * @entries: the minimum size of the completion queue
210 * Returns a pointer to the completion queue or negative errno values
230 /* Allocate the completion queue structure. */ qib_create_cq()
238 * Allocate the completion queue entries and head/tail pointers. qib_create_cq()
323 * qib_destroy_cq - destroy a completion queue
324 * @ibcq: the completion queue to destroy.
349 * qib_req_notify_cq - change the notification type for a completion queue
350 * @ibcq: the completion queue
383 * @ibcq: the completion queue
/linux-4.1.27/block/
H A Dblk-exec.c19 * blk_end_sync_rq - executes a completion event on a request
25 struct completion *waiting = rq->end_io_data; blk_end_sync_rq()
42 * @done: I/O completion handler
46 * for execution. Don't wait for completion.
107 * for execution and wait for completion.
H A Dblk-softirq.c118 * Select completion CPU __blk_complete_request()
161 * unless the driver actually implements this in its completion callback
162 * through requeueing. The actual completion happens out-of-order,
163 * through a softirq handler. The user must have registered a completion
H A Dblk-flush.c17 * completion.
57 * complete. The first completion updates the contained bio but doesn't
121 * After flush data completion, @rq->bio is %NULL but we need to blk_flush_restore_request()
157 * completion and trigger the next step.
199 * flush data request completion path. Restore @rq for blk_flush_complete_seq()
200 * normal completion and end it. blk_flush_complete_seq()
236 /* account completion of the flush request */ flush_end_io()
257 * This function is called from request completion path and calling
H A Dbio-integrity.c330 /* Install custom I/O completion handler if read verify is enabled */ bio_integrity_prep()
345 * bio_integrity_verify_fn - Integrity I/O completion worker
362 /* Restore original bio completion handler */ bio_integrity_verify_fn()
368 * bio_integrity_endio - Integrity I/O completion function
374 * Normally I/O completion is done in interrupt context. However,
376 * in process context. This function postpones completion
H A Dblk-map.c103 * normal IO completion path blk_rq_map_user_iov()
143 * the I/O completion may have changed rq->bio.
/linux-4.1.27/drivers/scsi/bnx2fc/
H A Dbnx2fc_constants.h44 /* KCQ (kernel completion queue) response op codes */
55 /* KCQ (kernel completion queue) completion status */
130 /* For completion the ABTS task. */
135 /* Obsolete: Intermediate completion (middle path with local completion) */
145 /* Special completion indication in case of task was aborted. */
149 /* FW only: Special completion indication in case of task was cleaned. */
151 /* Not in used: Special completion indication (in task requested the exchange
155 /* Special completion indication (in task requested the sequence cleanup) in
/linux-4.1.27/drivers/hwmon/
H A Djz4740-hwmon.c25 #include <linux/completion.h>
38 struct completion read_completion;
61 struct completion *completion = &hwmon->read_completion; jz4740_hwmon_read_adcin() local
68 reinit_completion(completion); jz4740_hwmon_read_adcin()
73 t = wait_for_completion_interruptible_timeout(completion, HZ); jz4740_hwmon_read_adcin()
/linux-4.1.27/drivers/media/pci/mantis/
H A Dmantis_i2c.c57 /* wait for xfer completion */ mantis_i2c_read()
66 /* wait for xfer completion */ mantis_i2c_read()
105 /* wait for xfer completion */ mantis_i2c_write()
114 /* wait for xfer completion */ mantis_i2c_write()
159 /* wait for xfer completion */ mantis_i2c_xfer()
166 /* check for xfer completion */ mantis_i2c_xfer()
/linux-4.1.27/drivers/mfd/
H A Dpcf50633-adc.c24 #include <linux/completion.h>
38 struct completion completion; member in struct:pcf50633_adc_sync_request
117 complete(&req->completion); pcf50633_adc_sync_read_callback()
125 init_completion(&req.completion); pcf50633_adc_sync_read()
132 wait_for_completion(&req.completion); pcf50633_adc_sync_read()
H A Dezx-pcap.c34 struct completion completion; member in struct:pcap_adc_sync_request
344 complete(&req->completion); pcap_adc_sync_cb()
353 init_completion(&sync_data.completion); pcap_adc_sync()
358 wait_for_completion(&sync_data.completion); pcap_adc_sync()
/linux-4.1.27/drivers/staging/iio/adc/
H A Dlpc32xx_adc.c32 #include <linux/completion.h>
64 struct completion completion; member in struct:lpc32xx_adc_info
86 wait_for_completion(&info->completion); /* set by ISR */ lpc32xx_read_raw()
124 complete(&info->completion); lpc32xx_adc_isr()
177 init_completion(&info->completion); lpc32xx_adc_probe()
H A Dspear_adc.c18 #include <linux/completion.h>
78 struct completion completion; member in struct:spear_adc_state
160 wait_for_completion(&st->completion); /* set by ISR */ spear_adc_read_raw()
233 complete(&st->completion); spear_adc_isr()
340 init_completion(&st->completion); spear_adc_probe()
/linux-4.1.27/drivers/staging/rts5208/
H A Drtsx.h114 struct completion cmnd_ready; /* to sleep thread on */
115 struct completion control_exit; /* control thread exit */
116 struct completion polling_exit; /* polling thread exit */
117 struct completion notify; /* thread begin/end */
118 struct completion scanning_done; /* wait for scan thread */
130 struct completion *done;
/linux-4.1.27/fs/jffs2/
H A Djffs2_fs_sb.h19 #include <linux/completion.h>
57 struct completion gc_thread_start; /* GC thread start completion */
58 struct completion gc_thread_exit; /* GC thread exit completion port */
111 against erase completion handler */
/linux-4.1.27/drivers/s390/char/
H A Dsclp_cpi_sys.c22 #include <linux/completion.h>
73 struct completion *completion = data; cpi_callback() local
75 complete(completion); cpi_callback()
127 struct completion completion; cpi_req() local
146 init_completion(&completion); cpi_req()
147 req->callback_data = &completion; cpi_req()
154 wait_for_completion(&completion); cpi_req()
H A Dsclp_ftp.c36 struct completion *completion = data; sclp_ftp_txcb() local
42 complete(completion); sclp_ftp_txcb()
86 struct completion completion; sclp_ftp_et7() local
127 req->callback_data = &completion; sclp_ftp_et7()
129 init_completion(&completion); sclp_ftp_et7()
136 wait_for_completion(&completion); sclp_ftp_et7()
145 * asynchronously and the completion is indicated with an sclp_ftp_et7()
H A Dsclp_cmd.c11 #include <linux/completion.h>
33 struct completion *completion = data; sclp_sync_callback() local
35 complete(completion); sclp_sync_callback()
45 struct completion completion; sclp_sync_request_timeout() local
58 request->callback_data = &completion; sclp_sync_request_timeout()
59 init_completion(&completion); sclp_sync_request_timeout()
65 wait_for_completion(&completion); sclp_sync_request_timeout()
703 * and wait for completion. On success return 0. Return non-zero otherwise.
724 * Perform read channel-path information sclp command and wait for completion.
H A Dsclp_quiesce.c25 /* Shutdown handler. Signal completion of shutdown by loading special PSW. */ do_machine_quiesce()
H A Dsclp_sdias.c11 #include <linux/completion.h>
74 /* initiated, wait for completion of service call */ sdias_sclp_send()
94 /* otherwise we wait for completion */ sdias_sclp_send()
/linux-4.1.27/drivers/net/ethernet/brocade/bna/
H A 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-4.1.27/drivers/usb/image/
H A Dmicrotek.h25 u8 *scsi_status; /* status returned from ep_response after command completion */
/linux-4.1.27/drivers/video/fbdev/
H A Dpxafb.h104 struct completion branch_done;
149 struct completion disable_done;
154 struct completion command_done;
155 struct completion refresh_done;
H A Dsh_mobile_lcdcfb.h4 #include <linux/completion.h>
76 struct completion vsync_completion;
/linux-4.1.27/arch/cris/arch-v10/lib/
H A Ddmacopy.c36 /* wait for completion */; dma_memcpy()
/linux-4.1.27/drivers/scsi/aic94xx/
H A Daic94xx_tmf.c86 complete(ascb->completion); asd_clear_nexus_tasklet_complete()
97 complete(ascb->completion); asd_clear_nexus_timedout()
104 DECLARE_COMPLETION_ONSTACK(completion); \
113 ascb->completion = &completion; \
125 wait_for_completion(&completion); \
271 complete(ascb->completion); asd_tmf_timedout()
339 complete(ascb->completion); asd_tmf_tasklet_complete()
348 DECLARE_COMPLETION_ONSTACK(completion); asd_clear_nexus()
351 tascb->completion = &completion; asd_clear_nexus()
358 leftover = wait_for_completion_timeout(&completion, asd_clear_nexus()
360 tascb->completion = NULL; asd_clear_nexus()
415 DECLARE_COMPLETION_ONSTACK(completion); asd_abort_task()
418 tascb->completion = &tascb_completion; asd_abort_task()
434 ascb->completion = &completion; asd_abort_task()
478 wait_for_completion(&completion); asd_abort_task()
545 tascb->completion = NULL; asd_abort_task()
582 DECLARE_COMPLETION_ONSTACK(completion); asd_initiate_ssp_tmf()
592 ascb->completion = &completion; asd_initiate_ssp_tmf()
626 wait_for_completion(&completion); asd_initiate_ssp_tmf()
/linux-4.1.27/drivers/i2c/busses/
H A Di2c-bcm2835.c15 #include <linux/completion.h>
61 struct completion completion; member in struct:bcm2835_i2c_dev
119 complete(&i2c_dev->completion); bcm2835_i2c_isr()
134 complete(&i2c_dev->completion); bcm2835_i2c_isr()
154 reinit_completion(&i2c_dev->completion); bcm2835_i2c_xfer_msg()
170 time_left = wait_for_completion_timeout(&i2c_dev->completion, bcm2835_i2c_xfer_msg()
232 init_completion(&i2c_dev->completion); bcm2835_i2c_probe()
H A Di2c-designware-core.h38 * @cmd_complete: tx completion indicator
75 struct completion cmd_complete;
/linux-4.1.27/arch/um/drivers/
H A Dxterm_kern.c7 #include <linux/completion.h>
14 struct completion ready;
/linux-4.1.27/sound/soc/codecs/
H A Dwm_hubs.h17 #include <linux/completion.h>
51 struct completion dcs_done;
H A Dwm8994.h14 #include <linux/completion.h>
86 struct completion fll_locked[2];
/linux-4.1.27/arch/powerpc/platforms/52xx/
H A Dmpc52xx_lpbfifo.c101 /* Unmask both error and completion irqs */ mpc52xx_lpbfifo_kick()
158 bit_fields |= 0x00000100; /* completion irq too */ mpc52xx_lpbfifo_kick()
182 * On transmit, the dma completion irq triggers before the fifo completion
183 * triggers. Handle the dma completion here instead of the LPB FIFO Bestcomm
184 * task completion irq because everything is not really done until the LPB FIFO
185 * completion irq triggers.
188 * For DMA, on receive, the "Fat Lady" is the bestcom completion irq. on
189 * transmit, the fifo completion irq is the "Fat Lady". The opera (or in this
193 * 1) PIO mode rx and tx completion irq
194 * 2) DMA interrupt mode tx completion irq
209 * Condition 3 requires executing the callback to report completion
290 * Count the DMA as complete only when the FIFO completion mpc52xx_lpbfifo_irq()
375 * mpc52xx_lpbfifo_bcom_poll - Poll for DMA completion
/linux-4.1.27/crypto/
H A Daf_alg.c479 int af_alg_wait_for_completion(int err, struct af_alg_completion *completion) af_alg_wait_for_completion() argument
484 wait_for_completion(&completion->completion); af_alg_wait_for_completion()
485 reinit_completion(&completion->completion); af_alg_wait_for_completion()
486 err = completion->err; af_alg_wait_for_completion()
496 struct af_alg_completion *completion = req->data; af_alg_complete() local
501 completion->err = err; af_alg_complete()
502 complete(&completion->completion); af_alg_complete()
H A Dalgif_hash.c29 struct af_alg_completion completion; member in struct:hash_ctx
58 &ctx->completion); hash_sendmsg()
80 &ctx->completion); hash_sendmsg()
95 &ctx->completion); hash_sendmsg()
129 err = af_alg_wait_for_completion(err, &ctx->completion); hash_sendpage()
137 err = af_alg_wait_for_completion(err, &ctx->completion); hash_sendpage()
168 &ctx->completion); hash_recvmsg()
418 af_alg_init_completion(&ctx->completion); hash_accept_parent_nokey()
424 af_alg_complete, &ctx->completion); hash_accept_parent_nokey()
H A Dinternal.h17 #include <linux/completion.h>
45 struct completion completion; member in struct:crypto_larval
/linux-4.1.27/drivers/iio/adc/
H A Drockchip_saradc.c23 #include <linux/completion.h>
54 struct completion completion; member in struct:rockchip_saradc
71 reinit_completion(&info->completion); rockchip_saradc_read_raw()
82 if (!wait_for_completion_timeout(&info->completion, rockchip_saradc_read_raw()
118 complete(&info->completion); rockchip_saradc_isr()
202 init_completion(&info->completion); rockchip_saradc_probe()
H A Dad_sigma_delta.c191 reinit_completion(&sigma_delta->completion); ad_sd_calibrate()
199 ret = wait_for_completion_timeout(&sigma_delta->completion, 2*HZ); ad_sd_calibrate()
262 reinit_completion(&sigma_delta->completion); ad_sigma_delta_single_conversion()
269 &sigma_delta->completion, HZ); ad_sigma_delta_single_conversion()
346 reinit_completion(&sigma_delta->completion); ad_sd_buffer_postdisable()
347 wait_for_completion_timeout(&sigma_delta->completion, HZ); ad_sd_buffer_postdisable()
410 complete(&sigma_delta->completion); ad_sd_data_rdy_trig_poll()
453 init_completion(&sigma_delta->completion); ad_sd_probe_trigger()
H A Dvf610_adc.c29 #include <linux/completion.h>
146 struct completion completion; member in struct:vf610_adc
289 if (!wait_for_completion_timeout(&info->completion, VF610_ADC_TIMEOUT)) vf610_adc_calibration()
443 complete(&info->completion); vf610_adc_isr()
491 reinit_completion(&info->completion); vf610_read_raw()
497 (&info->completion, VF610_ADC_TIMEOUT); vf610_read_raw()
656 init_completion(&info->completion); vf610_adc_probe()
H A Dda9150-gpadc.c20 #include <linux/completion.h>
83 struct completion complete;
109 /* Consume left-over completion from a previous timeout */ da9150_gpadc_read_adc()
112 /* Check for actual completion */ da9150_gpadc_read_adc()
H A Dxilinx-xadc.h71 struct completion completion; member in struct:xadc
/linux-4.1.27/drivers/iio/humidity/
H A Ddht11.c31 #include <linux/completion.h>
64 struct completion completion; member in struct:dht11
162 complete(&dht11->completion); dht11_handle_irq()
177 reinit_completion(&dht11->completion); dht11_read_raw()
194 ret = wait_for_completion_killable_timeout(&dht11->completion, dht11_read_raw()
282 init_completion(&dht11->completion); dht11_probe()
/linux-4.1.27/drivers/scsi/bfa/
H A Dbfad_drv.h151 struct completion *comp_del;
200 struct completion comp;
201 struct completion suspend;
202 struct completion enable_comp;
203 struct completion disable_comp;
282 struct completion comp;
287 struct completion comp;
H A Dbfa_fcpim.h181 bfa_cb_cbfn_t io_cbfn; /* IO completion handler */
343 * BFA completion callback for bfa_itnim_online().
348 * BFA completion callback for bfa_itnim_offline().
376 * I/O completion notification.
379 * @param[in] io_status IO completion status
393 * I/O good completion notification.
398 * I/O abort completion notification
/linux-4.1.27/drivers/bluetooth/
H A Dbtwilink.c38 /* Number of seconds to wait for registration completion
49 * @wait_reg_completion - completion sync between ti_st_open
56 struct completion wait_reg_completion;
82 /* Called by ST layer to indicate protocol registration completion
170 /* Prepare wait-for-completion handler */ ti_st_open()
193 "completion signal from ST"); ti_st_open()
200 "completion signal from ST", ti_st_open()
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
H A Dcore.h21 #include <linux/completion.h>
140 struct completion service_ready;
141 struct completion unified_ready;
364 struct completion fw_stats_complete;
402 * prevents completion timeouts and makes the driver more responsive to
530 struct completion target_suspend;
572 struct completion started;
573 struct completion completed;
574 struct completion on_channel;
613 struct completion install_key_done;
615 struct completion vdev_setup_done;
639 struct completion offchan_tx_completed;
H A Dthermal.h28 struct completion wmi_sync;
/linux-4.1.27/drivers/scsi/bnx2i/
H A D57xx_iscsi_constants.h47 /* KCQ (kernel completion queue) response op codes */
60 /* KCQ (kernel completion queue) completion status */
/linux-4.1.27/fs/ext4/
H A Dext4_crypto.h90 struct completion completion; member in struct:ext4_completion_result
96 COMPLETION_INITIALIZER((ecr).completion), 0 }
H A Dcrypto_key.c28 complete(&ecr->completion); derive_crypt_complete()
75 wait_for_completion(&ecr.completion); ext4_derive_key_aes()
/linux-4.1.27/include/linux/ceph/
H A Dmon_client.h4 #include <linux/completion.h>
53 struct completion completion; member in struct:ceph_mon_generic_request
H A Dosd_client.h4 #include <linux/completion.h>
22 * completion callback for async writepages
159 struct completion r_completion, r_safe_completion;
207 struct completion map_waiters;
/linux-4.1.27/include/linux/mfd/
H A Dipaq-micro.h9 #include <linux/completion.h>
79 * @ack: a completion that will be completed when RX is complete
88 struct completion ack;
/linux-4.1.27/drivers/misc/vmw_vmci/
H A Dvmci_resource.h40 struct completion done;
/linux-4.1.27/arch/tile/include/gxio/
H A Ddma_queue.h78 bool completion) __gxio_dma_queue_reserve()
113 if (completion) { __gxio_dma_queue_reserve()
153 /* Check whether a particular "completion slot" has completed.
155 * Note that this function requires a "completion slot", and thus
76 __gxio_dma_queue_reserve(__gxio_dma_queue_t *dma_queue, unsigned int num, bool wait, bool completion) __gxio_dma_queue_reserve() argument
/linux-4.1.27/fs/xfs/
H A Dxfs_dquot.h64 struct completion q_flush; /* flush completion queue */
80 * Manage the q_flush completion queue embedded in the dquot. This completion
H A Dxfs_aops.h24 * Types of I/O for bmap clustering and I/O completion tracking.
H A Dxfs_buf.c1023 * Pull in IO completion errors now. We are guaranteed to be running xfs_buf_ioend()
1231 * Initialize the I/O completion workqueue if we haven't yet or the _xfs_buf_ioapply()
1333 * The caller's reference is released during I/O completion. xfs_buf_submit()
1343 * Set the count to 1 initially, this will stop an I/O completion xfs_buf_submit()
1352 * reference we took above. If we drop it to zero, run completion so xfs_buf_submit()
1353 * that we don't return to the caller with completion still pending. xfs_buf_submit()
1395 * are about to take until we've waited for all IO completion to occur, xfs_buf_submit_wait()
1401 * Set the count to 1 initially, this will stop an I/O completion xfs_buf_submit_wait()
1409 * make sure we run completion synchronously if it raced with us and is xfs_buf_submit_wait()
1415 /* wait for completion before gathering the error from the buffer */ xfs_buf_submit_wait()
1534 * completion processing is 100% done. Just waiting on buffer locks is xfs_wait_buftarg()
1833 * for IO completion we need to take an extra reference so the list_for_each_entry_safe()
1852 * out and not wait for I/O completion on any of the buffers. This interface
1853 * is only safely useable for callers that can track I/O completion by higher
1869 * completion on all of the buffers. @buffer_list is consumed by the function,
1889 /* locking the buffer will wait for async IO completion. */ xfs_buf_delwri_submit()
/linux-4.1.27/drivers/media/rc/
H A Diguanair.c27 #include <linux/completion.h>
50 struct completion completion; member in struct:iguanair
103 complete(&ir->completion); process_ir_data()
109 complete(&ir->completion); process_ir_data()
115 complete(&ir->completion); process_ir_data()
123 complete(&ir->completion); process_ir_data()
203 complete(&ir->completion); iguanair_irq_out()
210 reinit_completion(&ir->completion); iguanair_send()
217 if (wait_for_completion_timeout(&ir->completion, TIMEOUT) == 0) iguanair_send()
464 init_completion(&ir->completion); iguanair_probe()
/linux-4.1.27/drivers/isdn/mISDN/
H A Dl1oip.h70 struct completion socket_complete;/* completion of sock thread */
/linux-4.1.27/drivers/mtd/
H A Dsm_ftl.h17 #include <linux/completion.h>
57 struct completion erase_completion;
/linux-4.1.27/drivers/net/ethernet/cisco/enic/
H A Dcq_desc.h36 * All completion queues have this basic layout. The
37 * type_specfic area is unique for each completion
/linux-4.1.27/drivers/net/wireless/p54/
H A Dp54pci.h107 struct completion boot_comp;
108 struct completion fw_loaded;
H A Dp54spi.h114 struct completion fw_comp;
H A Dp54.h206 struct completion stat_comp;
244 struct completion beacon_comp;
264 struct completion eeprom_comp;
/linux-4.1.27/drivers/net/wireless/rsi/
H A Drsi_common.h65 init_completion(&thread->completion); rsi_create_kthread()
78 wait_for_completion(&handle->completion); rsi_kill_thread()
H A Drsi_main.h139 struct completion completion; member in struct:rsi_thread
/linux-4.1.27/drivers/nfc/nxp-nci/
H A Dnxp-nci.h25 #include <linux/completion.h>
59 struct completion cmd_completion;
/linux-4.1.27/drivers/input/mouse/
H A Delan_i2c.h41 struct completion;
80 struct completion *reset_done);
/linux-4.1.27/sound/aoa/soundbus/i2sbus/
H A Di2sbus.h13 #include <linux/completion.h>
50 struct completion *stop_completion;
/linux-4.1.27/drivers/infiniband/ulp/iser/
H A Discsi_iser.h124 * to have at max for SCSI command. The tx posting & completion handling code *
311 * struct iser_comp - iSER completion context
314 * @cq: completion queue
315 * @wcs: work completion array
318 * to completion context
338 * @comps_used: Number of completion contexts used, Min between online
339 * cpus and device max completion vectors
340 * @comps: Dinamically allocated array of completion handlers
416 * @comp: iser completion context
440 struct completion flush_comp;
469 * @stop_completion: conn_stop completion
470 * @ib_completion: RDMA cleanup completion
495 struct completion stop_completion;
496 struct completion ib_completion;
497 struct completion up_completion;
/linux-4.1.27/drivers/usb/core/
H A Durb.c195 * describing that request to the USB subsystem. Request completion will
196 * be indicated later, asynchronously, by calling the completion handler.
197 * The three types of completion are success, error, and unlink
210 * (HCD) are finished with the URB. When the completion function is called,
212 * request. The completion handler may then immediately free or reuse that
260 * completion processing for earlier (successful) requests.
283 * periods during completion callbacks). When there is no longer an urb
285 * drivers can use their completion handlers to ensure they keep bandwidth
299 * (a) you are inside a completion handler, an interrupt, bottom half,
556 * and the completion handler will be called with a status code
568 * must not hold any locks that may be taken by the completion function.
571 * eventually called, the completion function will see @urb->status ==
576 * finished with it), even if the completion handler has not yet run.
580 * completion handler cannot deallocate the URB.
594 * completion routine returns. It is guaranteed that a stopped queue
596 * with their completion routines run, even if that's not until some time
597 * after the original completion handler returns. The same behavior and
639 * upon return all completion handlers will have finished and the URB
643 * the completion handler will see urb->status == -ENOENT.
646 * with error -EPERM. Thus even if the URB's completion handler always
651 * completion handler cannot deallocate the URB.
654 * half or a completion handler), or when holding a spinlock, or in other
680 * upon return all completion handlers will have finished and the URB
684 * the completion handler will see urb->status == -ENOENT.
687 * with error -EPERM. Thus even if the URB's completion handler always
692 * completion handler cannot deallocate the URB.
695 * half or a completion handler), or when holding a spinlock, or in other
730 * with error -EPERM. Thus even if the URB's completion handler always
735 * completion handler cannot deallocate the URB.
858 * back path to delay waking up until after the completion handler has run.
/linux-4.1.27/include/target/iscsi/
H A Discsi_target_core.h554 struct completion conn_post_wait_comp;
555 struct completion conn_wait_comp;
556 struct completion conn_wait_rcfr_comp;
557 struct completion conn_waiting_on_uc_comp;
558 struct completion conn_logout_comp;
559 struct completion tx_half_close_comp;
560 struct completion rx_half_close_comp;
609 struct completion rx_login_comp;
685 struct completion async_msg_comp;
686 struct completion reinstatement_comp;
687 struct completion session_wait_comp;
688 struct completion session_waiting_on_uc_comp;
792 struct completion np_restart_comp;
811 struct completion tpg_np_comp;
/linux-4.1.27/kernel/
H A Dstop_machine.c11 #include <linux/completion.h>
26 * Structure to determine completion condition and record errors. May
33 struct completion completion; /* fired if nr_todo reaches 0 */ member in struct:cpu_stop_done
59 init_completion(&done->completion); cpu_stop_init_done()
62 /* signal completion unless @done is NULL */ cpu_stop_signal_done()
69 complete(&done->completion); cpu_stop_signal_done()
123 wait_for_completion(&done.completion); stop_one_cpu()
300 wait_for_completion(&done.completion); stop_two_cpus()
306 * stop_one_cpu_nowait - stop a cpu but don't wait for completion
312 * Similar to stop_one_cpu() but doesn't wait for completion. The
363 wait_for_completion(&done.completion); __stop_cpus()
640 /* Busy wait for completion. */ stop_machine_from_inactive_cpu()
641 while (!completion_done(&done.completion)) stop_machine_from_inactive_cpu()
H A Dbacktracetest.c13 #include <linux/completion.h>
H A Dkthread.c10 #include <linux/completion.h>
36 struct completion *done;
45 struct completion parked;
46 struct completion exited;
66 struct completion *vfork = ACCESS_ONCE(k->vfork_done); to_live_kthread()
181 struct completion *done; kthread()
234 struct completion *done = xchg(&create->done, NULL); create_kthread()
290 * Wait for completion in killable state, for I might be chosen by kthread_create_on_node()
625 struct completion done;
/linux-4.1.27/drivers/dma/ioat/
H A Ddma.c203 chansts = *chan->completion & IOAT_CHANSTS_STATUS; ioat1_reset_channel()
320 /* Setup register to interrupt and write completion status on error */ ioat1_dma_alloc_chan_resources()
344 /* allocate a completion writeback area */ ioat1_dma_alloc_chan_resources()
346 chan->completion = pci_pool_alloc(chan->device->completion_pool, ioat1_dma_alloc_chan_resources()
348 memset(chan->completion, 0, sizeof(*chan->completion)); ioat1_dma_alloc_chan_resources()
445 chan->completion, ioat1_dma_free_chan_resources()
571 u64 completion; ioat_get_current_completion() local
573 completion = *chan->completion; ioat_get_current_completion()
574 phys_complete = ioat_chansts_to_addr(completion); ioat_get_current_completion()
579 if (is_ioat_halted(completion)) { ioat_get_current_completion()
646 * completion timeout __cleanup()
650 "%s cancel completion timeout\n", __cleanup()
669 * completion notification errors.
676 prefetch(chan->completion); ioat1_cleanup()
724 * acknowledged a pending completion once, then be more ioat1_timer_event()
734 /* manually update the last completion address */ ioat1_timer_event()
736 *chan->completion = status; ioat1_timer_event()
806 struct completion *cmp = dma_async_param; ioat_dma_test_callback()
827 struct completion cmp; ioat_dma_self_test()
H A Ddma_v3.c310 u64 completion; ioat3_get_current_completion() local
312 completion = *chan->completion; ioat3_get_current_completion()
313 phys_complete = ioat_chansts_to_addr(completion); ioat3_get_current_completion()
384 * At restart of the channel, the completion address and the __cleanup()
433 BUG_ON(active && !seen_current); /* no active descs have written a completion? */ __cleanup()
437 dev_dbg(to_dev(chan), "%s: cancel completion timeout\n", __cleanup()
457 if (is_ioat_halted(*chan->completion)) { ioat3_cleanup()
559 *chan->completion = desc->txd.phys; ioat3_eh()
602 * programming errors before advancing the completion state ioat3_timer_event()
617 * acknowledged a pending completion once, then be more ioat3_timer_event()
690 /* completion writes from the raid engine may pass completion __ioat3_prep_xor_lock()
692 * (legacy) descriptor to ensure all completion writes arrive in __ioat3_prep_xor_lock()
737 /* completion descriptor carries interrupt bit */ __ioat3_prep_xor_lock()
874 /* completion writes from the raid engine may pass completion __ioat3_prep_pq_lock()
876 * (legacy) descriptor to ensure all completion writes arrive in __ioat3_prep_pq_lock()
942 /* completion descriptor carries interrupt bit */ __ioat3_prep_pq_lock()
983 * 16 source pq is only available on cb3.3 and has no completion __ioat3_prep_pq16_lock()
1050 /* with cb3.3 we should be able to do completion w/o a null desc */ __ioat3_prep_pq16_lock()
1210 struct completion *cmp = dma_async_param; ioat3_dma_test_callback()
1231 struct completion cmp; ioat_xor_val_self_test()
H A Ddma_v2.c160 BUG_ON(active && !seen_current); /* no active descs have written a completion? */ __cleanup()
164 dev_dbg(to_dev(chan), "%s: cancel completion timeout\n", __cleanup()
307 * programming errors before advancing the completion state ioat2_timer_event()
322 * acknowledged a pending completion once, then be more ioat2_timer_event()
527 /* Setup register to interrupt and write completion status on error */ ioat2_alloc_chan_resources()
530 /* allocate a completion writeback area */ ioat2_alloc_chan_resources()
532 chan->completion = pci_pool_alloc(chan->device->completion_pool, ioat2_alloc_chan_resources()
534 if (!chan->completion) ioat2_alloc_chan_resources()
537 memset(chan->completion, 0, sizeof(*chan->completion)); ioat2_alloc_chan_resources()
836 pci_pool_free(device->completion_pool, chan->completion, ioat2_free_chan_resources()
/linux-4.1.27/drivers/md/
H A Ddm.h18 #include <linux/completion.h>
165 struct completion completion; member in struct:dm_kobject_holder
168 static inline struct completion *dm_get_completion_from_kobject(struct kobject *kobj) dm_get_completion_from_kobject()
170 return &container_of(kobj, struct dm_kobject_holder, kobj)->completion; dm_get_completion_from_kobject()
H A Dmd-cluster.c28 struct completion completion; /* completion for synchronized locking */ member in struct:dlm_lock_resource
53 struct completion completion; member in struct:md_cluster_info
67 struct completion newdisk_completion;
94 complete(&res->completion); sync_ast()
101 init_completion(&res->completion); dlm_lock_sync()
107 wait_for_completion(&res->completion); dlm_lock_sync()
170 init_completion(&res->completion); lockres_free()
172 wait_for_completion(&res->completion); lockres_free()
309 complete(&cinfo->completion); recover_done()
638 init_completion(&cinfo->completion); join()
650 wait_for_completion(&cinfo->completion); join()
H A Ddm-builtin.c23 * 4. dm_sysfs_exit waits on the completion
/linux-4.1.27/drivers/media/pci/solo6x10/
H A Dsolo6x10-p2m.c86 reinit_completion(&p2m_dev->completion); solo_p2m_dma_desc()
114 timeout = wait_for_completion_timeout(&p2m_dev->completion, solo_p2m_dma_desc()
176 complete(&p2m_dev->completion); solo_p2m_isr()
204 complete(&p2m_dev->completion); solo_p2m_error_isr()
271 init_completion(&p2m_dev->completion); solo_p2m_init()
/linux-4.1.27/drivers/staging/nvec/
H A Dnvec.h22 #include <linux/completion.h>
127 * @ec_transfer: A completion that will be completed once a message has been
132 * @sync_write: A completion to signal that a synchronous message is complete
155 struct completion ec_transfer;
161 struct completion sync_write;
/linux-4.1.27/drivers/block/
H A Dskd_s1120.h184 * Used to set completion queue address (FIT_MTD_SET_COMPQ_ADDR)
231 * Format of a completion entry. The completion queue is circular
236 * infer the presence of new completion records.
248 * Protocol major version 1 completion entry.
/linux-4.1.27/drivers/infiniband/core/
H A Dmad_priv.h39 #include <linux/completion.h>
109 struct completion comp;
118 struct completion comp;
H A Diwcm.h51 struct completion destroy_comp;
H A Duverbs.h43 #include <linux/completion.h>
82 * and released when that file is closed. For completion event files,
90 struct completion comp;
/linux-4.1.27/arch/tile/gxio/
H A Ddma_queue.c55 * 16 bit completion counter. __gxio_dma_queue_init()
76 * Read the 64-bit completion count without touching the cache, so __gxio_dma_queue_update_credits()
113 * We succeeded in advancing the completion count; add back the __gxio_dma_queue_update_credits()
/linux-4.1.27/drivers/block/rsxx/
H A Dcregs.c25 #include <linux/completion.h>
366 struct completion *cmd_done;
394 struct creg_completion completion; __issue_creg_rw() local
398 completion.cmd_done = &cmd_done; __issue_creg_rw()
399 completion.st = 0; __issue_creg_rw()
400 completion.creg_status = 0; __issue_creg_rw()
403 &completion); __issue_creg_rw()
419 st = wait_for_completion_timeout(completion.cmd_done, timeout); __issue_creg_rw()
431 *hw_stat = completion.creg_status; __issue_creg_rw()
433 if (completion.st) { __issue_creg_rw()
445 completion.st, addr); __issue_creg_rw()
446 return completion.st; __issue_creg_rw()
/linux-4.1.27/drivers/usb/atm/
H A Dusbatm.h29 #include <linux/completion.h>
162 struct completion thread_started;
163 struct completion thread_exited;
/linux-4.1.27/arch/metag/include/asm/
H A Dl2cache.h97 * Start an initialisation of the L2 cachelines and wait for completion.
109 * Start a writeback of dirty L2 cachelines and wait for completion.
217 * detect completion, so keep this operation atomic with other threads. meta_l2c_writeback()
/linux-4.1.27/tools/perf/
H A Dperf-completion.sh1 # perf bash and zsh completion
3 # Taken from git.git's completion script.
14 # List of word completion separators has shrunk;
/linux-4.1.27/fs/ceph/
H A Dmds_client.h4 #include <linux/completion.h>
169 * request completion callback
174 * wait for request completion callback
249 struct completion r_completion;
250 struct completion r_safe_completion;
271 struct completion safe_umount_waiters;
/linux-4.1.27/net/core/
H A Dflow.c17 #include <linux/completion.h>
45 struct completion completion; member in struct:flow_flush_info
309 complete(&info->completion); flow_cache_flush_tasklet()
362 init_completion(&info.completion); flow_cache_flush()
371 wait_for_completion(&info.completion); flow_cache_flush()
/linux-4.1.27/drivers/net/vmxnet3/
H A Dvmxnet3_defs.h134 u32 cq:1; /* completion request */
142 u32 cq:1; /* completion request */
186 u32 type:7; /* completion type */
255 u32 type:7; /* completion type */
275 u32 type:7; /* completion type */
304 /* a union for accessing all cmd/completion descriptors */
352 VMXNET3_ERR_TXD_REUSE = 0x80000001, /* reuse TxDesc before tx completion */
361 /* completion descriptor types */
/linux-4.1.27/drivers/scsi/ibmvscsi/
H A Dibmvscsi.h34 #include <linux/completion.h>
74 struct completion comp;
/linux-4.1.27/drivers/dma/
H A Dvirt-dma.h79 * vchan_cookie_complete - report completion of a descriptor
99 * vchan_cyclic_callback - report the completion of a period
H A Dvirt-dma.c56 * This tasklet handles the completion of a DMA descriptor by
/linux-4.1.27/drivers/media/common/siano/
H A Dsmsdvb.h45 struct completion tune_done;
46 struct completion stats_done;
/linux-4.1.27/arch/s390/crypto/
H A Dcrypt_s390.h179 "1: brc 1,0b\n" /* handle partial completion */ crypt_s390_km()
215 "1: brc 1,0b\n" /* handle partial completion */ crypt_s390_kmc()
250 "1: brc 1,0b\n" /* handle partial completion */ crypt_s390_kimd()
284 "1: brc 1,0b\n" /* handle partial completion */ crypt_s390_klmd()
319 "1: brc 1,0b\n" /* handle partial completion */ crypt_s390_kmac()
357 "1: brc 1,0b\n" /* handle partial completion */ crypt_s390_kmctr()
398 "1: brc 1,0b\n" /* handle partial completion */ crypt_s390_ppno()
484 "1: brc 1,0b\n" /* handle partial completion */ crypt_s390_pcc()
/linux-4.1.27/arch/arm/include/asm/
H A Dsmp.h82 extern int register_ipi_completion(struct completion *completion, int cpu);
/linux-4.1.27/security/integrity/ima/
H A Dima_crypto.c31 struct completion completion; member in struct:ahash_completion
206 complete(&res->completion); ahash_complete()
216 wait_for_completion(&res->completion); ahash_wait()
217 reinit_completion(&res->completion); ahash_wait()
245 init_completion(&res.completion); ima_calc_file_hash_atfm()
288 * read/request, wait for the completion of the ima_calc_file_hash_atfm()
304 * read/request, wait for the completion of the ima_calc_file_hash_atfm()
/linux-4.1.27/drivers/media/platform/s5p-mfc/
H A Ds5p_mfc_intr.c5 * This file contains functions used to wait for command completion.
/linux-4.1.27/drivers/net/ethernet/toshiba/
H A Dps3_gelic_wireless.h251 struct completion scan_done;
255 struct completion cmd_done_intr;
272 struct completion assoc_done;
314 struct completion done;
/linux-4.1.27/drivers/net/wireless/mwifiex/
H A Dtxrx.c77 * On successful completion, the function calls the completion callback
269 * Packet send completion callback handler.
272 * completion callback which checks conditions, updates statistics,
/linux-4.1.27/drivers/staging/lustre/lnet/klnds/o2iblnd/
H A Do2iblnd.h428 __u64 ibprm_cookie; /* opaque completion cookie */
432 __u64 ibpam_src_cookie; /* reflected completion cookie */
433 __u64 ibpam_dst_cookie; /* opaque completion cookie */
439 __u64 ibgm_cookie; /* opaque completion cookie */
444 __u64 ibcm_cookie; /* opaque completion cookie */
468 kib_completion_msg_t completion; member in union:__anon9929::__anon9930
483 #define IBLND_MSG_PUT_NAK 0xd3 /* completion (sink->src) */
485 #define IBLND_MSG_PUT_DONE 0xd5 /* completion (src->sink) */
487 #define IBLND_MSG_GET_DONE 0xd7 /* completion (src->sink: all OK) */
516 enum ib_wc_status rx_status; /* completion status */
537 int tx_status; /* LNET completion status */
538 unsigned long tx_deadline; /* completion deadline */
539 __u64 tx_cookie; /* completion cookie */
540 lnet_msg_t *tx_lntmsg[2]; /* lnet msgs to finalize on completion */
593 struct list_head ibc_active_txs; /* active tx awaiting completion */
599 struct ib_cq *ibc_cq; /* completion queue */
/linux-4.1.27/drivers/nfc/st21nfca/
H A Dst21nfca_se.h32 struct completion req_completion;
/linux-4.1.27/drivers/nfc/st21nfcb/
H A Dst21nfcb_se.h30 struct completion req_completion;
/linux-4.1.27/drivers/gpu/drm/exynos/
H A Dexynos_drm_ipp.h57 * @start_complete: completion of start of command.
58 * @stop_complete: completion of stop of command.
73 struct completion start_complete;
74 struct completion stop_complete;
/linux-4.1.27/fs/logfs/
H A Ddev_mtd.c9 #include <linux/completion.h>
64 * declare a completion variable and wait for completion before returning
69 complete((struct completion *)ei->priv); logfs_erase_callback()
/linux-4.1.27/include/rdma/
H A Dib_mad.h241 * using RMPP, this applies per window. On completion, returns the number
314 * @mad_send_wc: Send work completion information on the sent MAD.
323 * @mad_send_wc: Work completion information on the sent MAD. Valid
324 * only for snooping that occurs on a send completion.
336 * @mad_recv_wc: Received work completion information on the received MAD.
381 * ib_mad_send_wc - MAD send completion information.
456 * @send_handler: The completion callback routine invoked after a send
458 * @recv_handler: The completion callback routine invoked for a received
536 * @mad_recv_wc: Work completion information for a received MAD.
539 * routine to return the work completion buffers to the access layer.
572 * @send_handler: The completion callback routine invoked after a send
574 * @recv_handler: The completion callback routine invoked for a received
589 * ib_process_mad_wc - Processes a work completion associated with a
592 * @wc: References a work completion associated with a sent or received
596 * If the work completion is associated with a send operation, calling
598 * corresponding response, if it is a request. If the work completion is
/linux-4.1.27/include/uapi/linux/
H A Dbsg.h52 __u32 device_status; /* [o] {SCSI: command completion status} */
H A Dptrace.h46 * On the successful completion, iov.len will be updated by the kernel,
/linux-4.1.27/arch/powerpc/include/asm/
H A Dps3stor.h44 struct completion done;
/linux-4.1.27/arch/c6x/platforms/
H A Dcache.c121 /* Wait for completion */ cache_block_operation_wait()
153 /* Wait for previous operation completion */ cache_block_operation()
172 /* Wait for completion */ cache_block_operation()
204 /* Don't wait for completion on last cache operation */ cache_block_operation_nowait()
/linux-4.1.27/fs/cachefiles/
H A Dmain.c16 #include <linux/completion.h>
/linux-4.1.27/net/sunrpc/
H A Dsunrpc_syms.c132 rcu_barrier(); /* Wait for completion of call_rcu()'s */ cleanup_sunrpc()
/linux-4.1.27/sound/firewire/
H A Dlib.c17 * snd_fw_transaction - send a request and wait for its completion
/linux-4.1.27/sound/pci/hda/
H A Dhda_intel.h29 struct completion probe_wait;
/linux-4.1.27/include/linux/mmc/
H A Dcore.h12 #include <linux/completion.h>
136 struct completion completion; member in struct:mmc_request
137 void (*done)(struct mmc_request *);/* completion function */
/linux-4.1.27/drivers/crypto/ccp/
H A Dccp-dev.c36 struct completion completion; member in struct:ccp_tasklet_data
81 * called to notify the caller of completion (if the cmd was not
221 complete(&tdata->completion); ccp_do_cmd_complete()
248 /* Schedule the completion callback */ ccp_cmd_queue_thread()
250 init_completion(&tdata.completion); ccp_cmd_queue_thread()
252 wait_for_completion(&tdata.completion); ccp_cmd_queue_thread()
H A Dccp-crypto-main.c75 struct completion completion; member in struct:ccp_crypto_cpu
155 * the completion callbacks and retrieve the next cmd (cmd with ccp_crypto_complete()
282 * completion callback for the request and the req pointer ccp_crypto_enqueue_request()
/linux-4.1.27/drivers/video/fbdev/omap2/dss/
H A Ddispc-compat.c464 struct completion *compl = data; dispc_mgr_disable_isr()
514 struct completion *compl = data; dispc_digit_out_enable_isr()
639 complete((struct completion *)data); dispc_irq_wait_handler()
647 DECLARE_COMPLETION_ONSTACK(completion); omap_dispc_wait_for_irq_interruptible_timeout()
649 r = omap_dispc_register_isr(dispc_irq_wait_handler, &completion, omap_dispc_wait_for_irq_interruptible_timeout()
655 timeout = wait_for_completion_interruptible_timeout(&completion, omap_dispc_wait_for_irq_interruptible_timeout()
658 omap_dispc_unregister_isr(dispc_irq_wait_handler, &completion, irqmask); omap_dispc_wait_for_irq_interruptible_timeout()
/linux-4.1.27/drivers/net/wimax/i2400m/
H A Dusb-fw.c240 * @completion: completion varible to complete when done
246 struct completion *completion) i2400mu_notif_submit()
257 __i2400mu_bm_notif_cb, completion, i2400mu_notif_submit()
245 i2400mu_notif_submit(struct i2400mu *i2400mu, struct urb *urb, struct completion *completion) i2400mu_notif_submit() argument
/linux-4.1.27/drivers/s390/scsi/
H A Dzfcp_def.h165 completion races */
287 * @completion: used to signal the completion of the request
304 struct completion completion; member in struct:zfcp_fsf_req
H A Dzfcp_fc.c362 DECLARE_COMPLETION_ONSTACK(completion); zfcp_fc_ns_gid_pn_request()
370 fc_req->ct_els.handler_data = &completion; zfcp_fc_ns_gid_pn_request()
384 wait_for_completion(&completion); zfcp_fc_ns_gid_pn_request()
620 DECLARE_COMPLETION_ONSTACK(completion); zfcp_fc_send_gpn_ft()
627 ct_els->handler_data = &completion; zfcp_fc_send_gpn_ft()
634 wait_for_completion(&completion); zfcp_fc_send_gpn_ft()
770 DECLARE_COMPLETION_ONSTACK(completion); zfcp_fc_gspn()
785 ct_els->handler_data = &completion; zfcp_fc_gspn()
794 wait_for_completion(&completion); zfcp_fc_gspn()
815 DECLARE_COMPLETION_ONSTACK(completion); zfcp_fc_rspn()
833 ct_els->handler_data = &completion; zfcp_fc_rspn()
840 wait_for_completion(&completion); zfcp_fc_rspn()
/linux-4.1.27/drivers/scsi/pm8001/
H A Dpm8001_ctl.c389 DECLARE_COMPLETION_ONSTACK(completion); pm8001_ctl_bios_version_show()
392 pm8001_ha->nvmd_completion = &completion; pm8001_ctl_bios_version_show()
403 wait_for_completion(&completion); pm8001_ctl_bios_version_show()
526 DECLARE_COMPLETION_ONSTACK(completion); pm8001_set_nvmd()
547 pm8001_ha->nvmd_completion = &completion; pm8001_set_nvmd()
553 wait_for_completion(&completion); pm8001_set_nvmd()
562 DECLARE_COMPLETION_ONSTACK(completion); pm8001_update_flash()
617 pm8001_ha->nvmd_completion = &completion; pm8001_update_flash()
623 wait_for_completion(&completion); pm8001_update_flash()
H A Dpm8001_sas.c160 DECLARE_COMPLETION_ONSTACK(completion); pm8001_phy_control()
163 pm8001_ha->phy[phy_id].enable_completion = &completion; pm8001_phy_control()
177 wait_for_completion(&completion); pm8001_phy_control()
185 wait_for_completion(&completion); pm8001_phy_control()
193 wait_for_completion(&completion); pm8001_phy_control()
591 DECLARE_COMPLETION_ONSTACK(completion); pm8001_dev_found_notify()
604 pm8001_device->dcompletion = &completion; pm8001_dev_found_notify()
634 wait_for_completion(&completion); pm8001_dev_found_notify()
653 complete(&task->slow_task->completion); pm8001_task_done()
661 complete(&task->slow_task->completion); pm8001_tmf_timedout()
708 wait_for_completion(&task->slow_task->completion); pm8001_exec_internal_tmf_task()
804 wait_for_completion(&task->slow_task->completion); pm8001_exec_internal_task_abort()
1003 * This function handle the IT_NEXUS_XXX event or completion
/linux-4.1.27/arch/arm/kernel/
H A Dsmp.c26 #include <linux/completion.h>
264 * before the completion to ensure that data is safely written out cpu_die()
278 * Ensure that the cache lines associated with that completion are cpu_die()
280 * powering down, to ensure that the completion is visible to the cpu_die()
463 S(IPI_COMPLETION, "completion interrupts"),
552 static DEFINE_PER_CPU(struct completion *, cpu_completion);
554 int register_ipi_completion(struct completion *completion, int cpu) register_ipi_completion() argument
556 per_cpu(cpu_completion, cpu) = completion; register_ipi_completion()
/linux-4.1.27/fs/
H A Ddirect-io.c19 * added IO completion notifier.
114 dio_iodone_t *end_io; /* IO completion function */
118 /* BIO completion state */
122 bool defer_completion; /* defer AIO completion to workqueue? */
123 int io_error; /* IO error in completion path */
139 struct work_struct complete_work;/* deferred AIO completion */
230 * AIO submission can race with bio completion to get here while dio_complete()
231 * expecting to have the last io completed by bio completion. dio_complete()
315 * The BIO completion handler simply queues the BIO up for the process-context
341 * has done it's completion work.
380 * During IO completion, any of these pages which happen to have been written
434 * completion drops the count, maybe adds to the list, and wakes while dio_await_one()
634 /* Store for completion */ get_more_blocks()
1063 * completion paths can drop their ref and use the remaining count to drop_refcount()
1175 * In that case we need to wait for I/O completion even if asked do_blockdev_direct_IO()
1208 * Will be decremented at I/O completion time. do_blockdev_direct_IO()
1292 * bio completion will call aio_complete. The only time it's safe to do_blockdev_direct_IO()
/linux-4.1.27/drivers/mtd/nand/
H A Dr852.h11 #include <linux/completion.h>
117 struct completion dma_done; /* data transfer done */
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
H A Dhtc_hst.h122 struct completion target_wait;
123 struct completion cmd_wait;
H A Dhif_usb.h96 struct completion fw_done;
/linux-4.1.27/drivers/scsi/ufs/
H A Dufshcd.h54 #include <linux/completion.h>
87 * @done: UIC command completion
96 struct completion done;
195 * @complete: internal commands completion
201 struct completion *complete;
298 * completion before gating clocks.
353 * @pwr_done: completion for power mode change
435 struct completion *uic_async_done;
/linux-4.1.27/drivers/staging/rtl8712/
H A Ddrv_types.h41 #include <linux/completion.h>
182 struct completion rtl8712_fw_ready;
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb3/
H A Dcxgb3_ctl_defs.h146 * Structure used to request an operation on an RDMA completion queue.
155 * Structure used to setup RDMA completion queues.
/linux-4.1.27/drivers/block/aoe/
H A Daoechr.c9 #include <linux/completion.h>
49 static struct completion emsgs_comp;
/linux-4.1.27/drivers/watchdog/
H A Dmtx-1_wdt.c45 #include <linux/completion.h>
60 struct completion stop;
/linux-4.1.27/include/scsi/
H A Dscsi_transport.h72 * Used as callback for the completion of i_t_nexus request
78 * Used as callback for the completion of task management
/linux-4.1.27/include/target/
H A Dtarget_core_base.h331 struct completion *tg_pt_gp_transition_complete;
520 struct completion cmd_wait_comp;
544 struct completion t_transport_stop_comp;
559 /* old task stop completion, consider merging with some of the above */
560 struct completion task_stop_comp;
613 struct completion acl_free_comp;
729 struct completion lun_shutdown_comp;
735 struct completion lun_ref_comp;
/linux-4.1.27/arch/powerpc/platforms/powernv/
H A Dopal-async.c2 * PowerNV OPAL asynchronous completion interfaces
192 "completion init\n", __func__); opal_async_comp_init()
/linux-4.1.27/lib/
H A Ddynamic_queue_limits.c45 * may have becomes starved between completion processing dql_completed()
66 * completion routine. dql_completed()
/linux-4.1.27/net/netfilter/ipvs/
H A Dip_vs_sed.c17 * completion. The expected delay that the job will experience is
22 * minimize its expected delay of completion.
/linux-4.1.27/sound/firewire/dice/
H A Ddice.h14 #include <linux/completion.h>
76 struct completion clock_accepted;
/linux-4.1.27/include/linux/iio/adc/
H A Dad_sigma_delta.h65 struct completion completion; member in struct:ad_sigma_delta
/linux-4.1.27/include/linux/mfd/da9052/
H A Dda9052.h30 #include <linux/completion.h>
96 struct completion done;
/linux-4.1.27/drivers/misc/
H A Darm-charlcd.c15 #include <linux/completion.h>
63 * @complete: completion structure for the last LCD command
71 struct completion complete;
97 /* Disable IRQ after completion */ charlcd_wait_complete_irq()
/linux-4.1.27/drivers/scsi/qla2xxx/
H A Dtcm_qla2xxx.h51 struct completion tpg_base_comp;
/linux-4.1.27/drivers/staging/media/davinci_vpfe/
H A Dvpfe_mc_capture.h65 /* IRQ number for DMA transfer completion at the image processor */
/linux-4.1.27/arch/sparc/include/asm/
H A Destate.h28 * 3) As the result of store merge completion, writeback, or copyout will
/linux-4.1.27/drivers/base/power/
H A Dmain.c97 init_completion(&dev->power.completion); device_pm_sleep_init()
98 complete_all(&dev->power.completion); device_pm_sleep_init()
143 complete_all(&dev->power.completion); device_pm_remove()
230 wait_for_completion(&dev->power.completion); dpm_wait()
513 complete_all(&dev->power.completion); device_resume_noirq()
558 reinit_completion(&dev->power.completion); dpm_resume_noirq()
645 complete_all(&dev->power.completion); device_resume_early()
680 reinit_completion(&dev->power.completion); dpm_resume_early()
812 complete_all(&dev->power.completion); device_resume()
850 reinit_completion(&dev->power.completion); dpm_resume()
1062 complete_all(&dev->power.completion); __device_suspend_noirq()
1083 reinit_completion(&dev->power.completion); device_suspend_noirq()
1209 complete_all(&dev->power.completion); __device_suspend_late()
1228 reinit_completion(&dev->power.completion); device_suspend_late()
1455 complete_all(&dev->power.completion); __device_suspend()
1479 reinit_completion(&dev->power.completion); device_suspend()
/linux-4.1.27/drivers/thunderbolt/
H A Dnhi_regs.h24 RING_DESC_INTERRUPT = 0x8, /* request an interrupt on completion */
/linux-4.1.27/drivers/usb/gadget/function/
H A Duvc_video.c136 * - USB request completion: the completion handler will resubmit the request
156 * The USB request completion handler will get the buffer at the irqqueue head
292 /* FIXME TODO Race between uvcg_video_pump and requests completion uvcg_video_pump()
/linux-4.1.27/drivers/usb/gadget/legacy/
H A Dtcm_usb_gadget.h83 struct completion write_complete;
/linux-4.1.27/drivers/usb/usbip/
H A Dstub_tx.c56 * stub_complete - completion handler of a usbip urb
93 "urb completion with non-zero status %d\n", stub_complete()
373 * looks at only priv_init queue. If the completion of a URB is stub_tx_loop()
379 * completion of the unlink request. The request of the stub_tx_loop()
/linux-4.1.27/include/video/
H A Duvesafb.h107 struct completion *done;
/linux-4.1.27/arch/mips/include/uapi/asm/
H A Dsiginfo.h117 #define SI_ASYNCIO -2 /* sent by AIO completion */
/linux-4.1.27/arch/blackfin/kernel/
H A Dreboot.c29 /* Wait for completion of "system" events such as cache line bfin_reset()
/linux-4.1.27/arch/ia64/sn/kernel/sn2/
H A Dptc_deadlock.S63 st8.rel [ptc0]=data0 // Write PTC0 & wait for completion.
/linux-4.1.27/fs/gfs2/
H A Dacl.c13 #include <linux/completion.h>
H A Ddentry.c11 #include <linux/completion.h>
/linux-4.1.27/drivers/media/radio/wl128x/
H A Dfmdrv.h224 /* Main task completion handler */
225 struct completion maintask_comp;
229 struct completion *resp_comp;
/linux-4.1.27/drivers/scsi/csiostor/
H A Dcsio_mb.h39 #include <linux/completion.h>
128 struct completion cmplobj; /* MB Completion
141 struct list_head cbfn_q; /* Mbox completion q */
/linux-4.1.27/drivers/scsi/
H A Dst.h5 #include <linux/completion.h>
31 struct completion *waiting;
102 struct completion wait; /* For SCSI commands */
/linux-4.1.27/drivers/staging/fsl-mc/bus/
H A Dmc-sys.c43 * Timeout in jiffies to wait for the completion of an MC command
49 * iterations while waiting for MC command completion
256 * TODO: When MC command completion interrupts are supported mc_send_command()
/linux-4.1.27/drivers/staging/lustre/lustre/ldlm/
H A Dldlm_lockd.c105 struct completion blp_comp;
119 struct completion blwi_comp;
176 * Callback handler for receiving incoming completion ASTs.
189 LDLM_DEBUG(lock, "client completion callback handler START"); ldlm_handle_cp_callback()
249 /* If we receive the completion AST before the actual enqueue returned, ldlm_handle_cp_callback()
253 LDLM_DEBUG(lock, "completion AST, new lock mode"); ldlm_handle_cp_callback()
261 LDLM_DEBUG(lock, "completion AST, new policy data"); ldlm_handle_cp_callback()
275 LDLM_DEBUG(lock, "completion AST, new resource"); ldlm_handle_cp_callback()
285 LDLM_DEBUG(lock, "completion AST includes blocking AST"); ldlm_handle_cp_callback()
308 LDLM_DEBUG_NOLOCK("client completion callback handler END (lock %p)", ldlm_handle_cp_callback()
704 CDEBUG(D_INODE, "completion ast\n"); ldlm_callback_handler()
753 struct completion bltd_comp;

Completed in 4277 milliseconds

1234567891011