Home
last modified time | relevance | path

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

12345678910>>...36

/Linux-v5.4/drivers/tty/vt/
Dvc_screen.c93 struct vcs_poll_data *poll = in vcs_notifier() local
95 int currcons = poll->cons_num; in vcs_notifier()
116 poll->event = code; in vcs_notifier()
117 wake_up_interruptible(&poll->waitq); in vcs_notifier()
118 kill_fasync(&poll->fasync, SIGIO, fa_band); in vcs_notifier()
123 vcs_poll_data_free(struct vcs_poll_data *poll) in vcs_poll_data_free() argument
125 unregister_vt_notifier(&poll->notifier); in vcs_poll_data_free()
126 kfree(poll); in vcs_poll_data_free()
132 struct vcs_poll_data *poll = file->private_data, *kill = NULL; in vcs_poll_data_get() local
134 if (poll) in vcs_poll_data_get()
[all …]
/Linux-v5.4/Documentation/media/uapi/v4l/
Dfunc-poll.rst10 .. _func-poll:
13 V4L2 poll()
19 v4l2-poll - Wait for some event on a file descriptor
27 #include <sys/poll.h>
30 .. c:function:: int poll( struct pollfd *ufds, unsigned int nfds, int timeout )
31 :name: v4l2-poll
41 With the :ref:`poll() <func-poll>` function applications can suspend execution
54 On success :ref:`poll() <func-poll>` returns the number of file descriptors
62 :ref:`VIDIOC_STREAMON <VIDIOC_STREAMON>` the :ref:`poll() <func-poll>`
67 :ref:`poll() <func-poll>` function succeeds and sets the ``POLLERR`` flag in
[all …]
Drw.rst43 :ref:`poll() <func-poll>` function. [#f2]_
53 At the driver level :ref:`select() <func-select>` and :ref:`poll() <func-poll>` are
/Linux-v5.4/Documentation/media/uapi/cec/
Dcec-func-poll.rst10 .. _cec-func-poll:
13 cec poll()
19 cec-poll - Wait for some event on a file descriptor
27 #include <sys/poll.h>
30 .. c:function:: int poll( struct pollfd *ufds, unsigned int nfds, int timeout )
31 :name: cec-poll
49 With the :c:func:`poll() <cec-poll>` function applications can wait for CEC
52 On success :c:func:`poll() <cec-poll>` returns the number of file descriptors
63 For more details see the :c:func:`poll() <cec-poll>` manual page.
69 On success, :c:func:`poll() <cec-poll>` returns the number structures which have
/Linux-v5.4/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-v5.4/Documentation/media/uapi/mediactl/
Drequest-func-poll.rst27 .. _request-func-poll:
30 request poll()
36 request-poll - Wait for some event on a file descriptor
44 #include <sys/poll.h>
47 .. c:function:: int poll( struct pollfd *ufds, unsigned int nfds, int timeout )
48 :name: request-poll
66 With the :c:func:`poll() <request-func-poll>` function applications can wait
69 On success :c:func:`poll() <request-func-poll>` returns the number of file
77 Attempting to poll for a request that is not yet queued will
84 On success, :c:func:`poll() <request-func-poll>` returns the number of
/Linux-v5.4/drivers/iio/common/hid-sensors/
Dhid-sensor-attributes.c165 st->poll.report_id, in hid_sensor_read_poll_value()
166 st->poll.index, sizeof(value), &value); in hid_sensor_read_poll_value()
171 if (st->poll.units == HID_USAGE_SENSOR_UNITS_SECOND) in hid_sensor_read_poll_value()
186 st->poll.report_id, in hid_sensor_read_samp_freq_value()
187 st->poll.index, sizeof(value), &value); in hid_sensor_read_samp_freq_value()
192 if (st->poll.units == HID_USAGE_SENSOR_UNITS_MILLISECOND) in hid_sensor_read_samp_freq_value()
194 else if (st->poll.units == HID_USAGE_SENSOR_UNITS_SECOND) in hid_sensor_read_samp_freq_value()
217 if (st->poll.units == HID_USAGE_SENSOR_UNITS_MILLISECOND) in hid_sensor_write_samp_freq_value()
219 else if (st->poll.units == HID_USAGE_SENSOR_UNITS_SECOND) in hid_sensor_write_samp_freq_value()
224 ret = sensor_hub_set_feature(st->hsdev, st->poll.report_id, in hid_sensor_write_samp_freq_value()
[all …]
/Linux-v5.4/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-v5.4/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-v5.4/kernel/
Dutsname_sysctl.c63 proc_sys_poll_notify(table->poll); in proc_do_uts_string()
103 .poll = &hostname_poll,
111 .poll = &domainname_poll,
134 proc_sys_poll_notify(table->poll); in uts_proc_notify()
/Linux-v5.4/drivers/input/
Dinput-poller.c16 void (*poll)(struct input_dev *dev); member
42 poller->poll(poller->input); in input_dev_poller_work()
58 poller->poll(poller->input); in input_dev_poller_start()
87 poller->poll = poll_fn; in input_setup_polling()
171 static DEVICE_ATTR(poll, 0644,
/Linux-v5.4/drivers/dma-buf/
Ddma-buf.c189 spin_lock_irqsave(&dcb->poll->lock, flags); in dma_buf_poll_cb()
190 wake_up_locked_poll(dcb->poll, dcb->active); in dma_buf_poll_cb()
192 spin_unlock_irqrestore(&dcb->poll->lock, flags); in dma_buf_poll_cb()
195 static __poll_t dma_buf_poll(struct file *file, poll_table *poll) in dma_buf_poll() argument
210 poll_wait(file, &dmabuf->poll, poll); in dma_buf_poll()
212 events = poll_requested_events(poll) & (EPOLLIN | EPOLLOUT); in dma_buf_poll()
238 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll()
244 spin_unlock_irq(&dmabuf->poll.lock); in dma_buf_poll()
271 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll()
276 spin_unlock_irq(&dmabuf->poll.lock); in dma_buf_poll()
[all …]
/Linux-v5.4/drivers/vhost/
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 …]
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
Dnet.c134 struct vhost_poll poll[VHOST_NET_VQ_MAX]; member
405 vhost_poll_queue(&vq->poll); in vhost_zerocopy_callback()
426 struct vhost_poll *poll = n->poll + (nvq - n->vqs); in vhost_net_disable_vq() local
429 vhost_poll_stop(poll); in vhost_net_disable_vq()
437 struct vhost_poll *poll = n->poll + (nvq - n->vqs); in vhost_net_enable_vq() local
444 return vhost_poll_start(poll, sock->file); in vhost_net_enable_vq()
501 vhost_poll_queue(&vq->poll); in vhost_net_busy_poll_try_queue()
504 vhost_poll_queue(&vq->poll); in vhost_net_busy_poll_try_queue()
789 vhost_poll_queue(&vq->poll); in handle_tx_copy()
881 vhost_poll_queue(&vq->poll); in handle_tx_zerocopy()
[all …]
/Linux-v5.4/include/linux/
Dsysctl.h110 static inline void *proc_sys_poll_event(struct ctl_table_poll *poll) in proc_sys_poll_event() argument
112 return (void *)(unsigned long)atomic_read(&poll->event); in proc_sys_poll_event()
131 struct ctl_table_poll *poll; member
190 void proc_sys_poll_notify(struct ctl_table_poll *poll);
Dscmi_protocol.h103 u32 level, bool poll);
105 u32 *level, bool poll);
112 unsigned long rate, bool poll);
114 unsigned long *rate, bool poll);
/Linux-v5.4/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-v5.4/fs/proc/
Dinode.c249 typeof_member(struct file_operations, poll) poll; in proc_reg_poll()
251 poll = pde->proc_fops->poll; in proc_reg_poll()
252 if (poll) in proc_reg_poll()
253 rv = poll(file, pts); in proc_reg_poll()
404 .poll = proc_reg_poll,
420 .poll = proc_reg_poll,
/Linux-v5.4/drivers/firmware/arm_scmi/
Dperf.c412 u32 level, bool poll) in scmi_perf_mb_level_set() argument
423 t->hdr.poll_completion = poll; in scmi_perf_mb_level_set()
435 u32 level, bool poll) in scmi_perf_level_set() argument
446 return scmi_perf_mb_level_set(handle, domain, level, poll); in scmi_perf_level_set()
450 u32 *level, bool poll) in scmi_perf_mb_level_get() argument
460 t->hdr.poll_completion = poll; in scmi_perf_mb_level_get()
472 u32 *level, bool poll) in scmi_perf_level_get() argument
482 return scmi_perf_mb_level_get(handle, domain, level, poll); in scmi_perf_level_get()
643 unsigned long freq, bool poll) in scmi_dvfs_freq_set() argument
649 poll); in scmi_dvfs_freq_set()
[all …]
/Linux-v5.4/fs/
Dio_uring.c305 struct io_poll_iocb poll; member
1685 struct io_poll_iocb *poll = &req->poll; in io_poll_remove_one() local
1687 spin_lock(&poll->head->lock); in io_poll_remove_one()
1688 WRITE_ONCE(poll->canceled, true); in io_poll_remove_one()
1689 if (!list_empty(&poll->wait.entry)) { in io_poll_remove_one()
1690 list_del_init(&poll->wait.entry); in io_poll_remove_one()
1693 spin_unlock(&poll->head->lock); in io_poll_remove_one()
1744 req->poll.done = true; in io_poll_complete()
1752 struct io_poll_iocb *poll = &req->poll; in io_poll_complete_work() local
1753 struct poll_table_struct pt = { ._key = poll->events }; in io_poll_complete_work()
[all …]
/Linux-v5.4/drivers/media/mc/
Dmc-devnode.c95 struct poll_table_struct *poll) in media_poll() argument
101 if (!devnode->fops->poll) in media_poll()
103 return devnode->fops->poll(filp, poll); in media_poll()
207 .poll = media_poll,
/Linux-v5.4/drivers/isdn/mISDN/
Ddsp_core.c167 static int poll; variable
173 module_param(poll, uint, S_IRUGO | S_IWUSR);
1127 dsp_poll = poll; in dsp_init()
1131 "maximum.\n", __func__, poll, MAX_POLL); in dsp_init()
1141 dsp_tics = poll * HZ / 8000; in dsp_init()
1142 if (dsp_tics * 8000 != poll * HZ) { in dsp_init()
1145 "%d HZ.\n", poll, HZ); in dsp_init()
1150 poll = 8; in dsp_init()
1151 while (poll <= MAX_POLL) { in dsp_init()
1152 tics = (poll * HZ) / 8000; in dsp_init()
[all …]
/Linux-v5.4/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-v5.4/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()

12345678910>>...36