Home
last modified time | relevance | path

Searched refs:waitq (Results 1 – 25 of 114) sorted by relevance

12345

/linux/drivers/md/dm-vdo/
H A Dwait-queue.c21 void vdo_waitq_enqueue_waiter(struct vdo_wait_queue *waitq, struct vdo_waiter *waiter) in vdo_waitq_enqueue_waiter() argument
25 if (waitq->last_waiter == NULL) { in vdo_waitq_enqueue_waiter()
33 waiter->next_waiter = waitq->last_waiter->next_waiter; in vdo_waitq_enqueue_waiter()
34 waitq->last_waiter->next_waiter = waiter; in vdo_waitq_enqueue_waiter()
38 waitq->last_waiter = waiter; in vdo_waitq_enqueue_waiter()
39 waitq->length += 1; in vdo_waitq_enqueue_waiter()
83 void vdo_waitq_notify_all_waiters(struct vdo_wait_queue *waitq, in vdo_waitq_notify_all_waiters() argument
93 vdo_waitq_transfer_all_waiters(waitq, &waiters); in vdo_waitq_notify_all_waiters()
106 struct vdo_waiter *vdo_waitq_get_first_waiter(const struct vdo_wait_queue *waitq) in vdo_waitq_get_first_waiter() argument
108 struct vdo_waiter *last_waiter = waitq->last_waiter; in vdo_waitq_get_first_waiter()
[all …]
H A Dwait-queue.h87 static inline void vdo_waitq_init(struct vdo_wait_queue *waitq) in vdo_waitq_init() argument
89 *waitq = (struct vdo_wait_queue) { in vdo_waitq_init()
101 static inline bool __must_check vdo_waitq_has_waiters(const struct vdo_wait_queue *waitq) in vdo_waitq_has_waiters() argument
103 return (waitq->last_waiter != NULL); in vdo_waitq_has_waiters()
106 void vdo_waitq_enqueue_waiter(struct vdo_wait_queue *waitq,
109 struct vdo_waiter *vdo_waitq_dequeue_waiter(struct vdo_wait_queue *waitq);
111 void vdo_waitq_notify_all_waiters(struct vdo_wait_queue *waitq,
114 bool vdo_waitq_notify_next_waiter(struct vdo_wait_queue *waitq,
120 struct vdo_waiter *vdo_waitq_get_first_waiter(const struct vdo_wait_queue *waitq);
122 void vdo_waitq_dequeue_matching_waiters(struct vdo_wait_queue *waitq,
[all …]
H A Ddump.c152 static void dump_vio_waiters(struct vdo_wait_queue *waitq, char *wait_on) in dump_vio_waiters() argument
154 struct vdo_waiter *waiter, *first = vdo_waitq_get_first_waiter(waitq); in dump_vio_waiters()
/linux/drivers/leds/
H A Duleds.c32 wait_queue_head_t waitq; member
48 wake_up_interruptible(&udev->waitq); in uleds_brightness_set()
64 init_waitqueue_head(&udev->waitq); in uleds_open()
162 retval = wait_event_interruptible(udev->waitq, in uleds_read()
174 poll_wait(file, &udev->waitq, wait); in uleds_poll()
/linux/drivers/input/serio/
H A Duserio.c47 wait_queue_head_t waitq; member
68 wake_up_interruptible(&userio->waitq); in userio_device_write()
82 init_waitqueue_head(&userio->waitq); in userio_char_open()
165 error = wait_event_interruptible(userio->waitq, in userio_char_read()
254 poll_wait(file, &userio->waitq, wait); in userio_char_poll()
/linux/fs/orangefs/
H A Dwaitqueue.c270 wait_for_completion(&op->waitq); in orangefs_clean_up_interrupted_operation()
298 reinit_completion(&op->waitq); in orangefs_clean_up_interrupted_operation()
334 n = wait_for_completion_io_timeout(&op->waitq, timeout); in wait_for_matching_downcall()
336 n = wait_for_completion_interruptible_timeout(&op->waitq, in wait_for_matching_downcall()
339 n = wait_for_completion_killable_timeout(&op->waitq, timeout); in wait_for_matching_downcall()
H A Dorangefs-kernel.h127 struct completion waitq; member
141 complete(&op->waitq); in set_op_state_serviced()
169 complete(&op->waitq); in set_op_state_purged()
/linux/drivers/usb/misc/
H A Dyurex.c65 wait_queue_head_t waitq; member
84 wake_up_interruptible(&dev->waitq); in yurex_control_callback()
179 wake_up_interruptible(&dev->waitq); in yurex_interrupt()
206 init_waitqueue_head(&dev->waitq); in yurex_probe()
327 wake_up_interruptible(&dev->waitq); in yurex_disconnect()
494 prepare_to_wait(&dev->waitq, &wait, TASK_INTERRUPTIBLE); in yurex_write()
500 finish_wait(&dev->waitq, &wait); in yurex_write()
/linux/drivers/mailbox/
H A Dmailbox-test.c44 wait_queue_head_t waitq; member
193 add_wait_queue(&tdev->waitq, &wait); in mbox_test_message_read()
237 remove_wait_queue(&tdev->waitq, &wait); in mbox_test_message_read()
248 poll_wait(filp, &tdev->waitq, wait); in mbox_test_message_poll()
303 wake_up_interruptible(&tdev->waitq); in mbox_test_receive_message()
415 init_waitqueue_head(&tdev->waitq); in mbox_test_probe()
/linux/drivers/char/xillybus/
H A Dxillyusb.c78 wait_queue_head_t waitq; member
415 init_waitqueue_head(&fifo->waitq); in fifo_init()
594 wake_up_interruptible(&chan->in_fifo->waitq); in wakeup_all()
598 wake_up_interruptible(&chan->out_ep->fifo.waitq); in wakeup_all()
607 wake_up_interruptible(&xdev->msg_ep->fifo.waitq); in wakeup_all()
870 wake_up_interruptible(&fifo->waitq); in try_queue_bulk_out()
912 wake_up_interruptible(&chan->in_fifo->waitq); in process_in_opcode()
1012 wake_up_interruptible(&fifo->waitq); in process_bulk_in()
1091 while (wait_event_interruptible(fifo->waitq, in xillyusb_send_opcode()
1573 (fifo->waitq, in xillyusb_read()
[all …]
/linux/drivers/net/wireless/marvell/libertas/
H A Dmain.c229 wait_event(priv->waitq, lbs_command_queue_empty(priv)); in lbs_stop_iface()
280 wake_up(&priv->waitq); in lbs_host_to_card_done()
449 add_wait_queue(&priv->waitq, &wait); in lbs_thread()
493 remove_wait_queue(&priv->waitq, &wait); in lbs_thread()
747 wake_up(&priv->waitq); in lbs_cmd_timeout_handler()
771 wake_up_interruptible(&priv->waitq); in lbs_tx_lockup_handler()
954 init_waitqueue_head(&priv->waitq); in lbs_add_card()
1116 wake_up(&priv->waitq); in lbs_queue_event()
1131 wake_up(&priv->waitq); in lbs_notify_command_response()
/linux/arch/arm/mach-pxa/
H A Dam200epd.c287 wake_up_interruptible(&par->waitq); in am200_handle_irq()
315 return wait_event_timeout(par->waitq, gpio_get_value(RDY_GPIO_PIN), HZ); in am200_wait_event()
320 return wait_event_interruptible_timeout(par->waitq, in am200_wait_event_intr()
H A Dam300epd.c103 wait_event(par->waitq, gpio_get_value(RDY_GPIO_PIN)); in am300_wait_event()
235 wake_up(&par->waitq); in am300_handle_irq()
/linux/include/linux/
H A Dbacking-dev-defs.h65 wait_queue_head_t *waitq; member
69 (struct wb_completion){ .cnt = ATOMIC_INIT(1), .waitq = (_waitq) }
/linux/drivers/platform/surface/
H A Dsurface_aggregator_cdev.c67 wait_queue_head_t waitq; member
126 wake_up_interruptible(&client->waitq); in ssam_cdev_notifier()
479 init_waitqueue_head(&client->waitq); in ssam_cdev_device_open()
599 status = wait_event_interruptible(client->waitq, in ssam_cdev_read()
649 poll_wait(file, &client->waitq, pt); in ssam_cdev_poll()
741 wake_up_interruptible(&client->waitq); in ssam_dbg_device_remove()
H A Dsurface_dtx.c154 wait_queue_head_t waitq; member
484 status = wait_event_interruptible(ddev->waitq, in surface_dtx_read()
534 poll_wait(file, &client->ddev->waitq, pt); in surface_dtx_poll()
617 wake_up_interruptible(&ddev->waitq); in sdtx_push_event()
966 init_waitqueue_head(&ddev->waitq); in sdtx_device_init()
1090 wake_up_interruptible(&ddev->waitq); in sdtx_device_destroy()
/linux/drivers/media/pci/cx18/
H A Dcx18-mailbox.c321 wake_up(&s->waitq); in epu_dma_done()
586 wait_queue_head_t *waitq; in cx18_api_call() local
612 waitq = &cx->mb_apu_waitq; in cx18_api_call()
618 waitq = &cx->mb_cpu_waitq; in cx18_api_call()
641 ret = wait_event_timeout(*waitq, in cx18_api_call()
672 prepare_to_wait(waitq, &w, TASK_UNINTERRUPTIBLE); in cx18_api_call()
685 finish_wait(waitq, &w); in cx18_api_call()
/linux/drivers/usb/gadget/function/
H A Df_fs.c311 __releases(&ffs->ev.waitq.lock) in __ffs_ep0_queue_wait()
317 spin_unlock_irq(&ffs->ev.waitq.lock); in __ffs_ep0_queue_wait()
323 spin_unlock_irq(&ffs->ev.waitq.lock); in __ffs_ep0_queue_wait()
437 spin_lock_irq(&ffs->ev.waitq.lock); in ffs_ep0_write()
453 spin_unlock_irq(&ffs->ev.waitq.lock); in ffs_ep0_write()
461 spin_unlock_irq(&ffs->ev.waitq.lock); in ffs_ep0_write()
469 spin_lock_irq(&ffs->ev.waitq.lock); in ffs_ep0_write()
487 spin_unlock_irq(&ffs->ev.waitq.lock); in ffs_ep0_write()
507 __releases(&ffs->ev.waitq.lock) in __ffs_ep0_read_events()
533 spin_unlock_irq(&ffs->ev.waitq.lock); in __ffs_ep0_read_events()
[all …]
/linux/sound/soc/sof/
H A Dipc.c143 wake_up(&msg->waitq); in snd_sof_ipc_reply()
164 init_waitqueue_head(&msg->waitq); in snd_sof_ipc_init()
/linux/fs/autofs/
H A DMakefile8 autofs4-objs := init.o inode.o root.o symlink.o waitq.o expire.o dev-ioctl.o
/linux/drivers/firmware/qcom/
H A Dqcom_scm-smc.c93 static int __scm_smc_do_quirk_handle_waitq(struct device *dev, struct arm_smccc_args *waitq, in __scm_smc_do_quirk_handle_waitq() argument
99 struct arm_smccc_args *smc = waitq; in __scm_smc_do_quirk_handle_waitq()
/linux/kernel/bpf/
H A Dringbuf.c27 wait_queue_head_t waitq; member
154 wake_up_all(&rb->waitq); in bpf_ringbuf_notify()
178 init_waitqueue_head(&rb->waitq); in bpf_ringbuf_alloc()
319 poll_wait(filp, &rb_map->rb->waitq, pts); in ringbuf_map_poll_kern()
332 poll_wait(filp, &rb_map->rb->waitq, pts); in ringbuf_map_poll_user()
/linux/net/sunrpc/
H A Drpc_pipe.c64 static void rpc_purge_list(wait_queue_head_t *waitq, struct list_head *head, in rpc_purge_list() argument
78 if (waitq) in rpc_purge_list()
79 wake_up(waitq); in rpc_purge_list()
99 rpc_purge_list(dentry ? &RPC_I(d_inode(dentry))->waitq : NULL, in rpc_timeout_upcall_queue()
157 wake_up(&RPC_I(d_inode(dentry))->waitq); in rpc_queue_upcall()
186 rpc_purge_list(&RPC_I(inode)->waitq, &free_list, pipe->ops->destroy_msg, -EPIPE); in rpc_close_pipes()
268 rpc_purge_list(&RPC_I(inode)->waitq, &free_list, in rpc_pipe_release()
345 poll_wait(filp, &rpci->waitq, wait); in rpc_pipe_poll()
1482 init_waitqueue_head(&rpci->waitq); in init_once()
/linux/include/video/
H A Dmetronomefb.h32 wait_queue_head_t waitq; member
/linux/drivers/i2c/busses/
H A Di2c-iop3xx.h91 wait_queue_head_t waitq; member

12345