Home
last modified time | relevance | path

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

12345678910>>...34

/Linux-v4.19/Documentation/media/uapi/v4l/
Dfunc-poll.rst3 .. _func-poll:
6 V4L2 poll()
12 v4l2-poll - Wait for some event on a file descriptor
20 #include <sys/poll.h>
23 .. c:function:: int poll( struct pollfd *ufds, unsigned int nfds, int timeout )
24 :name: v4l2-poll
34 With the :ref:`poll() <func-poll>` function applications can suspend execution
47 On success :ref:`poll() <func-poll>` returns the number of file descriptors
55 :ref:`VIDIOC_STREAMON <VIDIOC_STREAMON>` the :ref:`poll() <func-poll>`
60 :ref:`poll() <func-poll>` function succeeds and sets the ``POLLERR`` flag in
[all …]
Drw.rst36 :ref:`poll() <func-poll>` function. [#f2]_
46 At the driver level :ref:`select() <func-select>` and :ref:`poll() <func-poll>` are
/Linux-v4.19/drivers/tty/vt/
Dvc_screen.c93 struct vcs_poll_data *poll = in vcs_notifier() local
95 int currcons = poll->cons_num; in vcs_notifier()
107 poll->seen_last_update = false; in vcs_notifier()
108 wake_up_interruptible(&poll->waitq); in vcs_notifier()
109 kill_fasync(&poll->fasync, SIGIO, POLL_IN); in vcs_notifier()
114 vcs_poll_data_free(struct vcs_poll_data *poll) in vcs_poll_data_free() argument
116 unregister_vt_notifier(&poll->notifier); in vcs_poll_data_free()
117 kfree(poll); in vcs_poll_data_free()
123 struct vcs_poll_data *poll = file->private_data, *kill = NULL; in vcs_poll_data_get() local
125 if (poll) in vcs_poll_data_get()
[all …]
/Linux-v4.19/Documentation/media/uapi/cec/
Dcec-func-poll.rst3 .. _cec-func-poll:
6 cec poll()
12 cec-poll - Wait for some event on a file descriptor
20 #include <sys/poll.h>
23 .. c:function:: int poll( struct pollfd *ufds, unsigned int nfds, int timeout )
24 :name: cec-poll
42 With the :c:func:`poll() <cec-poll>` function applications can wait for CEC
45 On success :c:func:`poll() <cec-poll>` returns the number of file descriptors
56 For more details see the :c:func:`poll() <cec-poll>` manual page.
62 On success, :c:func:`poll() <cec-poll>` returns the number structures which have
/Linux-v4.19/arch/um/os-Linux/
Dsigio.c38 struct pollfd *poll; member
61 n = poll(fds->poll, fds->used, -1); in write_sigio_thread()
69 p = &fds->poll[i]; in write_sigio_thread()
88 memmove(&fds->poll[i], &fds->poll[i + 1], in write_sigio_thread()
89 (fds->used - i) * sizeof(*fds->poll)); in write_sigio_thread()
117 memcpy(new, polls->poll, polls->used * sizeof(struct pollfd)); in need_poll()
118 kfree(polls->poll); in need_poll()
120 polls->poll = new; in need_poll()
174 if (all_sigio_fds.poll[i].fd == fd) in add_sigio_fd()
180 p = &all_sigio_fds.poll[i]; in add_sigio_fd()
[all …]
/Linux-v4.19/drivers/iio/common/hid-sensors/
Dhid-sensor-attributes.c177 st->poll.report_id, in hid_sensor_read_poll_value()
178 st->poll.index, sizeof(value), &value); in hid_sensor_read_poll_value()
183 if (st->poll.units == HID_USAGE_SENSOR_UNITS_SECOND) in hid_sensor_read_poll_value()
198 st->poll.report_id, in hid_sensor_read_samp_freq_value()
199 st->poll.index, sizeof(value), &value); in hid_sensor_read_samp_freq_value()
204 if (st->poll.units == HID_USAGE_SENSOR_UNITS_MILLISECOND) in hid_sensor_read_samp_freq_value()
206 else if (st->poll.units == HID_USAGE_SENSOR_UNITS_SECOND) in hid_sensor_read_samp_freq_value()
229 if (st->poll.units == HID_USAGE_SENSOR_UNITS_MILLISECOND) in hid_sensor_write_samp_freq_value()
231 else if (st->poll.units == HID_USAGE_SENSOR_UNITS_SECOND) in hid_sensor_write_samp_freq_value()
236 ret = sensor_hub_set_feature(st->hsdev, st->poll.report_id, in hid_sensor_write_samp_freq_value()
[all …]
/Linux-v4.19/arch/arm/boot/dts/
Dat91-natte.dtsi74 poll-interval = <20000>;
90 poll-interval = <20000>;
106 poll-interval = <20000>;
122 poll-interval = <20000>;
138 poll-interval = <20000>;
154 poll-interval = <20000>;
170 poll-interval = <20000>;
186 poll-interval = <20000>;
/Linux-v4.19/Documentation/devicetree/bindings/serial/
Dpl011.txt30 - auto-poll:
32 - poll-rate-ms:
33 Rate at which poll occurs when auto-poll is set,
35 - poll-timeout-ms:
36 Poll timeout when auto-poll is set, default
/Linux-v4.19/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()
/Linux-v4.19/drivers/dma-buf/
Ddma-buf.c154 spin_lock_irqsave(&dcb->poll->lock, flags); in dma_buf_poll_cb()
155 wake_up_locked_poll(dcb->poll, dcb->active); in dma_buf_poll_cb()
157 spin_unlock_irqrestore(&dcb->poll->lock, flags); in dma_buf_poll_cb()
160 static __poll_t dma_buf_poll(struct file *file, poll_table *poll) in dma_buf_poll() argument
175 poll_wait(file, &dmabuf->poll, poll); in dma_buf_poll()
177 events = poll_requested_events(poll) & (EPOLLIN | EPOLLOUT); in dma_buf_poll()
203 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll()
209 spin_unlock_irq(&dmabuf->poll.lock); in dma_buf_poll()
236 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll()
241 spin_unlock_irq(&dmabuf->poll.lock); in dma_buf_poll()
[all …]
/Linux-v4.19/kernel/
Dutsname_sysctl.c67 proc_sys_poll_notify(table->poll); in proc_do_uts_string()
107 .poll = &hostname_poll,
115 .poll = &domainname_poll,
138 proc_sys_poll_notify(table->poll); in uts_proc_notify()
/Linux-v4.19/drivers/vhost/
Dnet.c131 struct vhost_poll poll[VHOST_NET_VQ_MAX]; member
393 vhost_poll_queue(&vq->poll); in vhost_zerocopy_callback()
414 struct vhost_poll *poll = n->poll + (nvq - n->vqs); in vhost_net_disable_vq() local
417 vhost_poll_stop(poll); in vhost_net_disable_vq()
425 struct vhost_poll *poll = n->poll + (nvq - n->vqs); in vhost_net_enable_vq() local
432 return vhost_poll_start(poll, sock->file); in vhost_net_enable_vq()
571 vhost_poll_queue(&vq->poll); in handle_tx_copy()
602 vhost_poll_queue(&vq->poll); in handle_tx_copy()
644 vhost_poll_queue(&vq->poll); in handle_tx_zerocopy()
705 vhost_poll_queue(&vq->poll); in handle_tx_zerocopy()
[all …]
Dvhost.h41 void vhost_poll_init(struct vhost_poll *poll, vhost_work_fn_t fn,
43 int vhost_poll_start(struct vhost_poll *poll, struct file *file);
44 void vhost_poll_stop(struct vhost_poll *poll);
45 void vhost_poll_flush(struct vhost_poll *poll);
46 void vhost_poll_queue(struct vhost_poll *poll);
99 struct vhost_poll poll; member
Dvhost.c161 struct vhost_poll *poll; in vhost_poll_func() local
163 poll = container_of(pt, struct vhost_poll, table); in vhost_poll_func()
164 poll->wqh = wqh; in vhost_poll_func()
165 add_wait_queue(wqh, &poll->wait); in vhost_poll_func()
171 struct vhost_poll *poll = container_of(wait, struct vhost_poll, wait); in vhost_poll_wakeup() local
173 if (!(key_to_poll(key) & poll->mask)) in vhost_poll_wakeup()
176 vhost_poll_queue(poll); in vhost_poll_wakeup()
188 void vhost_poll_init(struct vhost_poll *poll, vhost_work_fn_t fn, in vhost_poll_init() argument
191 init_waitqueue_func_entry(&poll->wait, vhost_poll_wakeup); in vhost_poll_init()
192 init_poll_funcptr(&poll->table, vhost_poll_func); in vhost_poll_init()
[all …]
/Linux-v4.19/include/linux/
Dsysctl.h100 static inline void *proc_sys_poll_event(struct ctl_table_poll *poll) in proc_sys_poll_event() argument
102 return (void *)(unsigned long)atomic_read(&poll->event); in proc_sys_poll_event()
121 struct ctl_table_poll *poll; member
180 void proc_sys_poll_notify(struct ctl_table_poll *poll);
Dscmi_protocol.h101 u32 level, bool poll);
103 u32 *level, bool poll);
110 unsigned long rate, bool poll);
112 unsigned long *rate, bool poll);
/Linux-v4.19/Documentation/devicetree/bindings/power/supply/
Dcharger-manager.txt20 - cm-poll-mode : polling mode (enum polling_modes)
21 - cm-poll-interval : polling interval
39 cm-poll-mode = <1>;
40 cm-poll-interval = <30000>;
/Linux-v4.19/drivers/media/
Dmedia-devnode.c103 struct poll_table_struct *poll) in media_poll() argument
109 if (!devnode->fops->poll) in media_poll()
111 return devnode->fops->poll(filp, poll); in media_poll()
215 .poll = media_poll,
/Linux-v4.19/drivers/firmware/arm_scmi/
Dperf.c302 u32 level, bool poll) in scmi_perf_level_set() argument
313 t->hdr.poll_completion = poll; in scmi_perf_level_set()
325 u32 *level, bool poll) in scmi_perf_level_get() argument
335 t->hdr.poll_completion = poll; in scmi_perf_level_get()
406 unsigned long freq, bool poll) in scmi_dvfs_freq_set() argument
412 poll); in scmi_dvfs_freq_set()
416 unsigned long *freq, bool poll) in scmi_dvfs_freq_get() argument
423 ret = scmi_perf_level_get(handle, domain, &level, poll); in scmi_dvfs_freq_get()
/Linux-v4.19/drivers/isdn/mISDN/
Ddsp_core.c169 static int poll; variable
175 module_param(poll, uint, S_IRUGO | S_IWUSR);
1129 dsp_poll = poll; in dsp_init()
1133 "maximum.\n", __func__, poll, MAX_POLL); in dsp_init()
1143 dsp_tics = poll * HZ / 8000; in dsp_init()
1144 if (dsp_tics * 8000 != poll * HZ) { in dsp_init()
1147 "%d HZ.\n", poll, HZ); in dsp_init()
1152 poll = 8; in dsp_init()
1153 while (poll <= MAX_POLL) { in dsp_init()
1154 tics = (poll * HZ) / 8000; in dsp_init()
[all …]
/Linux-v4.19/drivers/pci/hotplug/
Dcpcihp_zt5550.c42 static bool poll; variable
201 if (!poll) { in zt5550_hc_init_one()
308 module_param(poll, bool, 0644);
309 MODULE_PARM_DESC(poll, "#ENUM polling mode enabled or not");
/Linux-v4.19/arch/um/drivers/
Dubd_user.c71 return poll(&kernel_pollfd, 1, timeout); in ubd_read_poll()
76 return poll(&kernel_pollfd, 1, timeout); in ubd_write_poll()
/Linux-v4.19/Documentation/devicetree/bindings/input/
Dclps711x-keypad.txt6 - poll-interval: Poll interval time in milliseconds.
17 poll-interval = <120>;
/Linux-v4.19/drivers/power/supply/
Dbq24735-charger.c53 struct delayed_work poll; member
244 struct bq24735 *charger = container_of(work, struct bq24735, poll.work); in bq24735_poll()
248 schedule_delayed_work(&charger->poll, in bq24735_poll()
477 INIT_DELAYED_WORK(&charger->poll, bq24735_poll); in bq24735_charger_probe()
478 schedule_delayed_work(&charger->poll, in bq24735_charger_probe()
490 cancel_delayed_work_sync(&charger->poll); in bq24735_charger_remove()
/Linux-v4.19/fs/proc/
Dinode.c255 __poll_t (*poll)(struct file *, struct poll_table_struct *); in proc_reg_poll() local
257 poll = pde->proc_fops->poll; in proc_reg_poll()
258 if (poll) in proc_reg_poll()
259 rv = poll(file, pts); in proc_reg_poll()
407 .poll = proc_reg_poll,
423 .poll = proc_reg_poll,

12345678910>>...34