Home
last modified time | relevance | path

Searched refs:poll (Results 1 – 25 of 385) sorted by relevance

12345678910>>...16

/drivers/tty/vt/
Dvc_screen.c66 struct vcs_poll_data *poll = in vcs_notifier() local
68 int currcons = poll->cons_num; in vcs_notifier()
80 poll->seen_last_update = false; in vcs_notifier()
81 wake_up_interruptible(&poll->waitq); in vcs_notifier()
82 kill_fasync(&poll->fasync, SIGIO, POLL_IN); in vcs_notifier()
87 vcs_poll_data_free(struct vcs_poll_data *poll) in vcs_poll_data_free() argument
89 unregister_vt_notifier(&poll->notifier); in vcs_poll_data_free()
90 kfree(poll); in vcs_poll_data_free()
96 struct vcs_poll_data *poll = file->private_data, *kill = NULL; in vcs_poll_data_get() local
98 if (poll) in vcs_poll_data_get()
[all …]
/drivers/iio/common/hid-sensors/
Dhid-sensor-attributes.c156 st->poll.report_id, in hid_sensor_read_poll_value()
157 st->poll.index, &value); in hid_sensor_read_poll_value()
162 if (st->poll.units == HID_USAGE_SENSOR_UNITS_SECOND) in hid_sensor_read_poll_value()
177 st->poll.report_id, in hid_sensor_read_samp_freq_value()
178 st->poll.index, &value); in hid_sensor_read_samp_freq_value()
183 if (st->poll.units == HID_USAGE_SENSOR_UNITS_MILLISECOND) in hid_sensor_read_samp_freq_value()
185 else if (st->poll.units == HID_USAGE_SENSOR_UNITS_SECOND) in hid_sensor_read_samp_freq_value()
208 if (st->poll.units == HID_USAGE_SENSOR_UNITS_MILLISECOND) in hid_sensor_write_samp_freq_value()
210 else if (st->poll.units == HID_USAGE_SENSOR_UNITS_SECOND) in hid_sensor_write_samp_freq_value()
216 st->poll.report_id, in hid_sensor_write_samp_freq_value()
[all …]
/drivers/vhost/
Dvhost.c42 struct vhost_poll *poll; in vhost_poll_func() local
44 poll = container_of(pt, struct vhost_poll, table); in vhost_poll_func()
45 poll->wqh = wqh; in vhost_poll_func()
46 add_wait_queue(wqh, &poll->wait); in vhost_poll_func()
52 struct vhost_poll *poll = container_of(wait, struct vhost_poll, wait); in vhost_poll_wakeup() local
54 if (!((unsigned long)key & poll->mask)) in vhost_poll_wakeup()
57 vhost_poll_queue(poll); in vhost_poll_wakeup()
72 void vhost_poll_init(struct vhost_poll *poll, vhost_work_fn_t fn, in vhost_poll_init() argument
75 init_waitqueue_func_entry(&poll->wait, vhost_poll_wakeup); in vhost_poll_init()
76 init_poll_funcptr(&poll->table, vhost_poll_func); in vhost_poll_init()
[all …]
Dvhost.h43 void vhost_poll_init(struct vhost_poll *poll, vhost_work_fn_t fn,
45 int vhost_poll_start(struct vhost_poll *poll, struct file *file);
46 void vhost_poll_stop(struct vhost_poll *poll);
47 void vhost_poll_flush(struct vhost_poll *poll);
48 void vhost_poll_queue(struct vhost_poll *poll);
76 struct vhost_poll poll; member
Dnet.c107 struct vhost_poll poll[VHOST_NET_VQ_MAX]; member
327 vhost_poll_queue(&vq->poll); in vhost_zerocopy_callback()
454 vhost_poll_queue(&vq->poll); in handle_tx()
663 vhost_poll_queue(&vq->poll); in handle_rx()
674 poll.work); in handle_tx_kick()
683 poll.work); in handle_rx_kick()
692 poll[VHOST_NET_VQ_TX].work); in handle_tx_net()
699 poll[VHOST_NET_VQ_RX].work); in handle_rx_net()
737 vhost_poll_init(n->poll + VHOST_NET_VQ_TX, handle_tx_net, POLLOUT, dev); in vhost_net_open()
738 vhost_poll_init(n->poll + VHOST_NET_VQ_RX, handle_rx_net, POLLIN, dev); in vhost_net_open()
[all …]
Dtest.c85 vhost_poll_queue(&vq->poll); in handle_vq()
96 poll.work); in handle_vq_kick()
145 vhost_poll_flush(&n->vqs[index].poll); in vhost_test_flush_vq()
/drivers/dma-buf/
Ddma-buf.c127 spin_lock_irqsave(&dcb->poll->lock, flags); in dma_buf_poll_cb()
128 wake_up_locked_poll(dcb->poll, dcb->active); in dma_buf_poll_cb()
130 spin_unlock_irqrestore(&dcb->poll->lock, flags); in dma_buf_poll_cb()
133 static unsigned int dma_buf_poll(struct file *file, poll_table *poll) in dma_buf_poll() argument
148 poll_wait(file, &dmabuf->poll, poll); in dma_buf_poll()
150 events = poll_requested_events(poll) & (POLLIN | POLLOUT); in dma_buf_poll()
176 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll()
182 spin_unlock_irq(&dmabuf->poll.lock); in dma_buf_poll()
209 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll()
214 spin_unlock_irq(&dmabuf->poll.lock); in dma_buf_poll()
[all …]
/drivers/input/misc/
Dwm831x-on.c45 int poll, ret; in wm831x_poll_on() local
49 poll = !(ret & WM831X_ON_PIN_STS); in wm831x_poll_on()
51 input_report_key(wm831x_on->dev, KEY_POWER, poll); in wm831x_poll_on()
55 poll = 1; in wm831x_poll_on()
58 if (poll) in wm831x_poll_on()
/drivers/media/
Dmedia-devnode.c108 struct poll_table_struct *poll) in media_poll() argument
114 if (!mdev->fops->poll) in media_poll()
116 return mdev->fops->poll(filp, poll); in media_poll()
216 .poll = media_poll,
/drivers/isdn/mISDN/
Ddsp_core.c169 static int poll; variable
175 module_param(poll, uint, S_IRUGO | S_IWUSR);
1131 dsp_poll = poll; in dsp_init()
1135 "maximum.\n", __func__, poll, MAX_POLL); in dsp_init()
1145 dsp_tics = poll * HZ / 8000; in dsp_init()
1146 if (dsp_tics * 8000 != poll * HZ) { in dsp_init()
1149 "%d HZ.\n", poll, HZ); in dsp_init()
1154 poll = 8; in dsp_init()
1155 while (poll <= MAX_POLL) { in dsp_init()
1156 tics = (poll * HZ) / 8000; in dsp_init()
[all …]
/drivers/pci/hotplug/
Dcpcihp_zt5550.c61 static bool poll; variable
220 if (!poll) { in zt5550_hc_init_one()
327 module_param(poll, bool, 0644);
328 MODULE_PARM_DESC(poll, "#ENUM polling mode enabled or not");
/drivers/mailbox/
Dmailbox.c131 mod_timer(&mbox->poll, jiffies + in poll_txdone()
420 mbox->poll.function = &poll_txdone; in mbox_controller_register()
421 mbox->poll.data = (unsigned long)mbox; in mbox_controller_register()
422 init_timer(&mbox->poll); in mbox_controller_register()
464 del_timer_sync(&mbox->poll); in mbox_controller_unregister()
/drivers/mfd/
Darizona-irq.c97 bool poll; in arizona_irq_thread() local
108 poll = false; in arizona_irq_thread()
134 poll = true; in arizona_irq_thread()
137 poll = true; in arizona_irq_thread()
139 } while (poll); in arizona_irq_thread()
/drivers/net/wireless/iwlwifi/
Diwl-op-mode.h155 int (*poll)(struct napi_struct *, int),
265 int (*poll)(struct napi_struct *, int), in iwl_op_mode_napi_add()
270 op_mode->ops->napi_add(op_mode, napi, napi_dev, poll, weight); in iwl_op_mode_napi_add()
/drivers/gpu/drm/nouveau/core/subdev/therm/
Dbase.c96 bool poll = true; in nouveau_therm_update() local
110 poll = false; in nouveau_therm_update()
123 poll = false; in nouveau_therm_update()
131 poll = false; in nouveau_therm_update()
134 if (list_empty(&priv->alarm.head) && poll) in nouveau_therm_update()
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_minidump.c910 struct __pollrdmwr *poll = &entry->region.pollrdmwr; in qlcnic_read_pollrdmwr() local
913 poll_wait = poll->poll_wait; in qlcnic_read_pollrdmwr()
915 qlcnic_ind_wr(adapter, poll->addr1, poll->val1); in qlcnic_read_pollrdmwr()
919 data = qlcnic_ind_rd(adapter, poll->addr1); in qlcnic_read_pollrdmwr()
920 if ((data & poll->poll_mask) != 0) in qlcnic_read_pollrdmwr()
932 data = qlcnic_ind_rd(adapter, poll->addr2) & poll->mod_mask; in qlcnic_read_pollrdmwr()
933 qlcnic_ind_wr(adapter, poll->addr2, data); in qlcnic_read_pollrdmwr()
934 qlcnic_ind_wr(adapter, poll->addr1, poll->val2); in qlcnic_read_pollrdmwr()
938 temp = qlcnic_ind_rd(adapter, poll->addr1); in qlcnic_read_pollrdmwr()
939 if ((temp & poll->poll_mask) != 0) in qlcnic_read_pollrdmwr()
[all …]
Dqlcnic_83xx_init.c1839 struct qlc_83xx_poll *poll; in qlcnic_83xx_poll_list() local
1843 poll = (struct qlc_83xx_poll *)((char *)p_hdr + in qlcnic_83xx_poll_list()
1846 entry = (struct qlc_83xx_entry *)((char *)poll + in qlcnic_83xx_poll_list()
1853 delay, poll->mask, in qlcnic_83xx_poll_list()
1854 poll->status); in qlcnic_83xx_poll_list()
1862 poll->mask, in qlcnic_83xx_poll_list()
1863 poll->status)){ in qlcnic_83xx_poll_list()
1883 struct qlc_83xx_poll *poll; in qlcnic_83xx_poll_write_list() local
1885 poll = (struct qlc_83xx_poll *)((char *)p_hdr + in qlcnic_83xx_poll_write_list()
1887 entry = (struct qlc_83xx_quad_entry *)((char *)poll + in qlcnic_83xx_poll_write_list()
[all …]
/drivers/gpu/drm/
Ddrm_probe_helper.c59 module_param_named(poll, drm_kms_helper_poll, bool, 0600);
360 bool poll = false; in drm_kms_helper_poll_enable() local
369 poll = true; in drm_kms_helper_poll_enable()
372 if (poll) in drm_kms_helper_poll_enable()
/drivers/staging/rtl8188eu/hal/
Drtl8188e_cmd.c603 u32 poll = 0; in rtl8188e_set_FwJoinBssReport_cmd() local
636 poll = 0; in rtl8188e_set_FwJoinBssReport_cmd()
646 poll++; in rtl8188e_set_FwJoinBssReport_cmd()
647 } while (!bcn_valid && (poll%10) != 0 && !adapt->bSurpriseRemoved && !adapt->bDriverStopped); in rtl8188e_set_FwJoinBssReport_cmd()
653 DBG_88E("%s: 1 Download RSVD page failed! DLBcnCount:%u, poll:%u\n", __func__, DLBcnCount, poll); in rtl8188e_set_FwJoinBssReport_cmd()
655 DBG_88E("%s: 1 Download RSVD success! DLBcnCount:%u, poll:%u\n", __func__, DLBcnCount, poll); in rtl8188e_set_FwJoinBssReport_cmd()
/drivers/scsi/qla4xxx/
Dql4_83xx.h264 uint32_t poll; member
281 uint32_t poll; member
294 uint32_t poll; member
/drivers/input/
Dinput-polldev.c41 dev->poll(dev); in input_polled_device_work()
54 dev->poll(dev); in input_open_polled_device()
115 static DEVICE_ATTR(poll, S_IRUGO | S_IWUSR, input_polldev_get_poll,
/drivers/staging/octeon/
Dethernet-xaui.c110 priv->poll = cvm_oct_xaui_poll; in cvm_oct_xaui_open()
136 priv->poll = cvm_oct_xaui_poll; in cvm_oct_xaui_init()
/drivers/usb/atm/
Dcxacru.c354 int poll = -1; in cxacru_sysfs_store_adsl_state() local
381 poll = CXPOLL_STOPPED; in cxacru_sysfs_store_adsl_state()
401 poll = CXPOLL_POLLING; in cxacru_sysfs_store_adsl_state()
407 poll = CXPOLL_POLLING; in cxacru_sysfs_store_adsl_state()
412 poll = -1; in cxacru_sysfs_store_adsl_state()
415 if (poll == CXPOLL_POLLING) { in cxacru_sysfs_store_adsl_state()
429 poll = -1; in cxacru_sysfs_store_adsl_state()
432 } else if (poll == CXPOLL_STOPPED) { in cxacru_sysfs_store_adsl_state()
442 if (poll == CXPOLL_POLLING) in cxacru_sysfs_store_adsl_state()
/drivers/misc/cxl/
Dfile.c242 static unsigned int afu_poll(struct file *file, struct poll_table_struct *poll) in afu_poll() argument
249 poll_wait(file, &ctx->wq, poll); in afu_poll()
358 .poll = afu_poll,
369 .poll = afu_poll,
/drivers/scsi/qla2xxx/
Dqla_nx2.c2995 uint32_t poll, mask, data_size, modify_mask; in qla8044_minidump_process_rddfe() local
3009 poll = rddfe->poll; in qla8044_minidump_process_rddfe()
3020 while (wait_count < poll) { in qla8044_minidump_process_rddfe()
3027 if (wait_count == poll) { in qla8044_minidump_process_rddfe()
3041 while (wait_count < poll) { in qla8044_minidump_process_rddfe()
3047 if (wait_count == poll) { in qla8044_minidump_process_rddfe()
3056 while (wait_count < poll) { in qla8044_minidump_process_rddfe()
3063 if (wait_count == poll) { in qla8044_minidump_process_rddfe()
3094 uint32_t poll, mask; in qla8044_minidump_process_rdmdio() local
3108 poll = rdmdio->poll; in qla8044_minidump_process_rdmdio()
[all …]

12345678910>>...16