/drivers/message/i2o/ |
D | exec-osm.c | 82 struct i2o_exec_wait *wait; in i2o_exec_wait_alloc() local 84 wait = kzalloc(sizeof(*wait), GFP_KERNEL); in i2o_exec_wait_alloc() 85 if (!wait) in i2o_exec_wait_alloc() 88 INIT_LIST_HEAD(&wait->list); in i2o_exec_wait_alloc() 89 spin_lock_init(&wait->lock); in i2o_exec_wait_alloc() 91 return wait; in i2o_exec_wait_alloc() 98 static void i2o_exec_wait_free(struct i2o_exec_wait *wait) in i2o_exec_wait_free() argument 100 kfree(wait); in i2o_exec_wait_free() 126 struct i2o_exec_wait *wait; in i2o_msg_post_wait_mem() local 131 wait = i2o_exec_wait_alloc(); in i2o_msg_post_wait_mem() [all …]
|
/drivers/net/ethernet/cisco/enic/ |
D | vnic_dev.c | 268 int wait) in _vnic_dev_cmd() argument 297 for (delay = 0; delay < wait; delay++) { in _vnic_dev_cmd() 337 u64 *a0, u64 *a1, int wait) in vnic_dev_cmd_proxy() argument 349 err = _vnic_dev_cmd(vdev, proxy_cmd, wait); in vnic_dev_cmd_proxy() 369 enum vnic_devcmd_cmd cmd, u64 *a0, u64 *a1, int wait) in vnic_dev_cmd_no_proxy() argument 376 err = _vnic_dev_cmd(vdev, cmd, wait); in vnic_dev_cmd_no_proxy() 397 u64 *a0, u64 *a1, int wait) in vnic_dev_cmd() argument 404 a0, a1, wait); in vnic_dev_cmd() 407 a0, a1, wait); in vnic_dev_cmd() 410 return vnic_dev_cmd_no_proxy(vdev, cmd, a0, a1, wait); in vnic_dev_cmd() [all …]
|
D | enic_res.c | 124 int wait = 1000; in enic_add_vlan() local 127 err = vnic_dev_cmd(enic->vdev, CMD_VLAN_ADD, &a0, &a1, wait); in enic_add_vlan() 137 int wait = 1000; in enic_del_vlan() local 140 err = vnic_dev_cmd(enic->vdev, CMD_VLAN_DEL, &a0, &a1, wait); in enic_del_vlan() 153 int wait = 1000; in enic_set_nic_cfg() local 162 return vnic_dev_cmd(enic->vdev, CMD_NIC_CFG, &a0, &a1, wait); in enic_set_nic_cfg() 168 int wait = 1000; in enic_set_rss_key() local 170 return vnic_dev_cmd(enic->vdev, CMD_RSS_KEY, &a0, &a1, wait); in enic_set_rss_key() 176 int wait = 1000; in enic_set_rss_cpu() local 178 return vnic_dev_cmd(enic->vdev, CMD_RSS_CPU, &a0, &a1, wait); in enic_set_rss_cpu()
|
/drivers/scsi/fnic/ |
D | vnic_dev.c | 233 u64 *a0, u64 *a1, int wait) in vnic_dev_cmd() argument 265 for (delay = 0; delay < wait; delay++) { in vnic_dev_cmd() 297 int wait = 1000; in vnic_dev_fw_info() local 310 err = vnic_dev_cmd(vdev, CMD_MCPU_FW_INFO, &a0, &a1, wait); in vnic_dev_fw_info() 322 int wait = 1000; in vnic_dev_spec() local 328 err = vnic_dev_cmd(vdev, CMD_DEV_SPEC, &a0, &a1, wait); in vnic_dev_spec() 354 int wait = 1000; in vnic_dev_stats_clear() local 355 return vnic_dev_cmd(vdev, CMD_STATS_CLEAR, &a0, &a1, wait); in vnic_dev_stats_clear() 361 int wait = 1000; in vnic_dev_stats_dump() local 374 return vnic_dev_cmd(vdev, CMD_STATS_DUMP, &a0, &a1, wait); in vnic_dev_stats_dump() [all …]
|
D | vnic_wq_copy.c | 32 unsigned int wait; in vnic_wq_copy_disable() local 37 for (wait = 0; wait < 100; wait++) { in vnic_wq_copy_disable()
|
/drivers/iio/ |
D | industrialio-event.c | 37 wait_queue_head_t wait; member 54 spin_lock_irqsave(&ev_int->wait.lock, flags); in iio_push_event() 62 wake_up_locked_poll(&ev_int->wait, POLLIN); in iio_push_event() 64 spin_unlock_irqrestore(&ev_int->wait.lock, flags); in iio_push_event() 74 struct poll_table_struct *wait) in iio_event_poll() argument 79 poll_wait(filep, &ev_int->wait, wait); in iio_event_poll() 81 spin_lock_irq(&ev_int->wait.lock); in iio_event_poll() 84 spin_unlock_irq(&ev_int->wait.lock); in iio_event_poll() 110 ret = wait_event_interruptible(ev_int->wait, in iio_event_chrdev_read() 129 spin_lock_irq(&ev_int->wait.lock); in iio_event_chrdev_release() [all …]
|
/drivers/gpu/drm/omapdrm/ |
D | omap_irq.c | 92 struct omap_irq_wait *wait = in wait_irq() local 94 wait->count--; in wait_irq() 101 struct omap_irq_wait *wait = kzalloc(sizeof(*wait), GFP_KERNEL); in omap_irq_wait_init() local 102 wait->irq.irq = wait_irq; in omap_irq_wait_init() 103 wait->irq.irqmask = irqmask; in omap_irq_wait_init() 104 wait->count = count; in omap_irq_wait_init() 105 omap_irq_register(dev, &wait->irq); in omap_irq_wait_init() 106 return wait; in omap_irq_wait_init() 109 int omap_irq_wait(struct drm_device *dev, struct omap_irq_wait *wait, in omap_irq_wait() argument 112 int ret = wait_event_timeout(wait_event, (wait->count <= 0), timeout); in omap_irq_wait() [all …]
|
/drivers/hid/ |
D | hid-roccat.c | 47 wait_queue_head_t wait; member 83 DECLARE_WAITQUEUE(wait, current); in roccat_read() 89 add_wait_queue(&device->wait, &wait); in roccat_read() 114 remove_wait_queue(&device->wait, &wait); in roccat_read() 140 static unsigned int roccat_poll(struct file *file, poll_table *wait) in roccat_poll() argument 143 poll_wait(file, &reader->device->wait, wait); in roccat_poll() 282 wake_up_interruptible(&device->wait); in roccat_report_event() 337 init_waitqueue_head(&device->wait); in roccat_connect() 372 wake_up_interruptible(&device->wait); in roccat_disconnect()
|
D | hidraw.c | 50 DECLARE_WAITQUEUE(wait, current); in hidraw_read() 56 add_wait_queue(&list->hidraw->wait, &wait); in hidraw_read() 81 remove_wait_queue(&list->hidraw->wait, &wait); in hidraw_read() 239 static unsigned int hidraw_poll(struct file *file, poll_table *wait) in hidraw_poll() argument 243 poll_wait(file, &list->hidraw->wait, wait); in hidraw_poll() 476 wake_up_interruptible(&dev->wait); in hidraw_report_event() 522 init_waitqueue_head(&dev->wait); in hidraw_connect() 550 wake_up_interruptible(&hidraw->wait); in hidraw_disconnect()
|
/drivers/input/serio/ |
D | libps2.c | 46 wait_event_timeout(ps2dev->wait, in ps2_sendbyte() 95 wait_event_timeout(ps2dev->wait, in ps2_drain() 228 timeout = wait_event_timeout(ps2dev->wait, in __ps2_command() 234 wait_event_timeout(ps2dev->wait, in __ps2_command() 276 init_waitqueue_head(&ps2dev->wait); in ps2_init() 329 wake_up(&ps2dev->wait); in ps2_handle_ack() 352 wake_up(&ps2dev->wait); in ps2_handle_response() 357 wake_up(&ps2dev->wait); in ps2_handle_response() 370 wake_up(&ps2dev->wait); in ps2_cmd_aborted()
|
D | serio_raw.c | 40 wait_queue_head_t wait; member 191 error = wait_event_interruptible(serio_raw->wait, in serio_raw_read() 243 static unsigned int serio_raw_poll(struct file *file, poll_table *wait) in serio_raw_poll() argument 249 poll_wait(file, &serio_raw->wait, wait); in serio_raw_poll() 288 wake_up_interruptible(&serio_raw->wait); in serio_raw_interrupt() 310 init_waitqueue_head(&serio_raw->wait); in serio_raw_connect() 391 wake_up_interruptible(&serio_raw->wait); in serio_raw_hangup()
|
/drivers/isdn/mISDN/ |
D | timerdev.c | 38 wait_queue_head_t wait; member 65 init_waitqueue_head(&dev->wait); in mISDN_open() 119 wait_event_interruptible(dev->wait, (dev->work || in mISDN_read() 143 mISDN_poll(struct file *filep, poll_table *wait) in mISDN_poll() argument 149 printk(KERN_DEBUG "%s(%p, %p)\n", __func__, filep, wait); in mISDN_poll() 151 poll_wait(filep, &dev->wait, wait); in mISDN_poll() 172 wake_up_interruptible(&timer->dev->wait); in dev_expire_timer() 183 wake_up_interruptible(&dev->wait); in misdn_add_timer()
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | aq100x.c | 65 static int aq100x_reset(struct cphy *phy, int wait) in aq100x_reset() argument 269 unsigned int v, v2, gpio, wait; in t3_aq100x_phy_prep() local 290 wait = 500; /* in 10ms increments */ in t3_aq100x_phy_prep() 305 } while (v && --wait); in t3_aq100x_phy_prep() 314 wait = (500 - wait) * 10 + 1000; in t3_aq100x_phy_prep() 315 if (wait > 3000) in t3_aq100x_phy_prep() 316 CH_WARN(adapter, "PHY%d: reset took %ums\n", phy_addr, wait); in t3_aq100x_phy_prep()
|
/drivers/md/bcache/ |
D | closure.c | 32 CL_FIELD(closure_with_waitlist, wait); in closure_waitlist() 33 CL_FIELD(closure_with_waitlist_and_timer, wait); in closure_waitlist() 68 struct closure_waitlist *wait = closure_waitlist(cl); in closure_put_after_sub() local 74 if (wait) in closure_put_after_sub() 75 closure_wake_up(wait); in closure_put_after_sub() 199 struct closure wait; in __closure_lock() local 200 closure_init_stack(&wait); in __closure_lock() 206 closure_wait_event_sync(wait_list, &wait, in __closure_lock()
|
/drivers/gpu/host1x/ |
D | job.c | 142 struct host1x_waitchk *wait = &job->waitchk[i]; in do_waitchks() local 144 host1x_syncpt_get(host, wait->syncpt_id); in do_waitchks() 147 if (wait->syncpt_id > host1x_syncpt_nb_pts(host)) in do_waitchks() 151 if (patch != wait->bo) in do_waitchks() 154 trace_host1x_syncpt_wait_check(wait->bo, wait->offset, in do_waitchks() 155 wait->syncpt_id, wait->thresh, in do_waitchks() 158 if (host1x_syncpt_is_expired(sp, wait->thresh)) { in do_waitchks() 161 wait->syncpt_id, sp->name, wait->thresh, in do_waitchks() 164 host1x_syncpt_patch_offset(sp, patch, wait->offset); in do_waitchks() 167 wait->bo = NULL; in do_waitchks()
|
/drivers/char/ |
D | snsc.c | 189 DECLARE_WAITQUEUE(wait, current); in scdrv_read() 199 add_wait_queue(&sd->sd_rq, &wait); in scdrv_read() 204 remove_wait_queue(&sd->sd_rq, &wait); in scdrv_read() 286 DECLARE_WAITQUEUE(wait, current); in scdrv_write() 295 add_wait_queue(&sd->sd_wq, &wait); in scdrv_write() 300 remove_wait_queue(&sd->sd_wq, &wait); in scdrv_write() 326 scdrv_poll(struct file *file, struct poll_table_struct *wait) in scdrv_poll() argument 333 poll_wait(file, &sd->sd_rq, wait); in scdrv_poll() 334 poll_wait(file, &sd->sd_wq, wait); in scdrv_poll()
|
/drivers/isdn/hardware/eicon/ |
D | divasi.c | 77 static unsigned int um_idi_poll(struct file *file, poll_table *wait); 370 static unsigned int um_idi_poll(struct file *file, poll_table *wait) in um_idi_poll() argument 385 poll_wait(file, &p_os->read_wait, wait); in um_idi_poll() 510 DECLARE_WAITQUEUE(wait, curtask); in remove_entity() 512 add_wait_queue(&p_os->close_wait, &wait); in remove_entity() 522 remove_wait_queue(&p_os->close_wait, &wait); in remove_entity() 527 DECLARE_WAITQUEUE(wait, curtask); in remove_entity() 529 add_wait_queue(&p_os->close_wait, &wait); in remove_entity() 539 remove_wait_queue(&p_os->close_wait, &wait); in remove_entity()
|
/drivers/s390/char/ |
D | fs3270.c | 39 wait_queue_head_t wait; /* Init & attention wait queue. */ member 70 rq->callback_data = &fp->wait; in fs3270_do_io() 75 rc = wait_event_interruptible(fp->wait, in fs3270_do_io() 83 wait_event(fp->wait, raw3270_request_final(rq)); in fs3270_do_io() 99 wake_up(&fp->wait); in fs3270_reset_callback() 114 wake_up(&fp->wait); in fs3270_restore_callback() 186 wake_up(&fp->wait); in fs3270_save_callback() 226 wake_up(&fp->wait); in fs3270_irq() 264 rc = wait_event_interruptible(fp->wait, fp->attention); in fs3270_read() 464 init_waitqueue_head(&fp->wait); in fs3270_open()
|
/drivers/input/keyboard/ |
D | sunkbd.c | 81 wait_queue_head_t wait; member 106 wake_up_interruptible(&sunkbd->wait); in sunkbd_interrupt() 112 wake_up_interruptible(&sunkbd->wait); in sunkbd_interrupt() 199 wait_event_interruptible_timeout(sunkbd->wait, sunkbd->reset >= 0, HZ); in sunkbd_initialize() 208 wait_event_interruptible_timeout(sunkbd->wait, in sunkbd_initialize() 228 wait_event_interruptible_timeout(sunkbd->wait, sunkbd->reset >= 0, HZ); in sunkbd_reinit() 268 init_waitqueue_head(&sunkbd->wait); in sunkbd_connect()
|
/drivers/staging/speakup/ |
D | speakup_soft.c | 213 DEFINE_WAIT(wait); in softsynth_read() 217 prepare_to_wait(&speakup_event, &wait, TASK_INTERRUPTIBLE); in softsynth_read() 222 finish_wait(&speakup_event, &wait); in softsynth_read() 226 finish_wait(&speakup_event, &wait); in softsynth_read() 232 finish_wait(&speakup_event, &wait); in softsynth_read() 282 struct poll_table_struct *wait) in softsynth_poll() argument 286 poll_wait(fp, &speakup_event, wait); in softsynth_poll()
|
D | thread.c | 23 DEFINE_WAIT(wait); in speakup_thread() 28 prepare_to_wait(&speakup_event, &wait, in speakup_thread() 42 finish_wait(&speakup_event, &wait); in speakup_thread()
|
/drivers/mtd/chips/ |
D | cfi_cmdset_0020.c | 254 DECLARE_WAITQUEUE(wait, current); in do_read_onechip() 355 add_wait_queue(&chip->wq, &wait); in do_read_onechip() 358 remove_wait_queue(&chip->wq, &wait); in do_read_onechip() 428 DECLARE_WAITQUEUE(wait, current); in do_write_buffer() 488 add_wait_queue(&chip->wq, &wait); in do_write_buffer() 491 remove_wait_queue(&chip->wq, &wait); in do_write_buffer() 545 add_wait_queue(&chip->wq, &wait); in do_write_buffer() 548 remove_wait_queue(&chip->wq, &wait); in do_write_buffer() 740 DECLARE_WAITQUEUE(wait, current); in do_erase_oneblock() 781 add_wait_queue(&chip->wq, &wait); in do_erase_oneblock() [all …]
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_mem.c | 589 exec->wait(exec, tMRD); in nouveau_mem_exec() 598 exec->wait(exec, tCKSRE); in nouveau_mem_exec() 604 exec->wait(exec, tCKSRX); in nouveau_mem_exec() 608 exec->wait(exec, tXS); in nouveau_mem_exec() 609 exec->wait(exec, tXS); in nouveau_mem_exec() 614 exec->wait(exec, tMRD); in nouveau_mem_exec() 620 exec->wait(exec, tMRD); in nouveau_mem_exec() 625 exec->wait(exec, tMRD); in nouveau_mem_exec() 635 exec->wait(exec, tMRD); in nouveau_mem_exec() 638 exec->wait(exec, tMRD); in nouveau_mem_exec() [all …]
|
/drivers/media/pci/ivtv/ |
D | ivtv-fileops.c | 210 DEFINE_WAIT(wait); in ivtv_get_buffer() 274 prepare_to_wait(&s->waitq, &wait, TASK_INTERRUPTIBLE); in ivtv_get_buffer() 278 finish_wait(&s->waitq, &wait); in ivtv_get_buffer() 559 DEFINE_WAIT(wait); in ivtv_write() 634 prepare_to_wait(&s->waitq, &wait, TASK_INTERRUPTIBLE); in ivtv_write() 638 finish_wait(&s->waitq, &wait); in ivtv_write() 695 prepare_to_wait(&itv->dma_waitq, &wait, TASK_INTERRUPTIBLE); in ivtv_write() 700 finish_wait(&itv->dma_waitq, &wait); in ivtv_write() 733 unsigned int ivtv_v4l2_dec_poll(struct file *filp, poll_table *wait) in ivtv_v4l2_dec_poll() argument 746 poll_wait(filp, &id->fh.wait, wait); in ivtv_v4l2_dec_poll() [all …]
|
/drivers/misc/ibmasm/ |
D | r_heartbeat.c | 51 init_waitqueue_head(&rhb->wait); in ibmasm_init_reverse_heartbeat() 80 wait_event_interruptible_timeout(rhb->wait, in ibmasm_start_reverse_heartbeat() 98 wake_up_interruptible(&rhb->wait); in ibmasm_stop_reverse_heartbeat()
|