Home
last modified time | relevance | path

Searched refs:poll (Results 1 - 25 of 1773) sorted by relevance

12345678910>>...71

/kernel/linux/linux-6.6/io_uring/
H A Dpoll.c8 #include <linux/poll.h>
20 #include "poll.h"
38 /* output value, set only if arm poll returns >0 */
90 * arming poll and wakeups.
106 /* pure poll stashes this in ->async_data, poll driven retry elsewhere */ in io_poll_get_double()
116 return &req->apoll->poll; in io_poll_get_single()
170 static void io_init_poll_iocb(struct io_poll *poll, __poll_t events) in io_init_poll_iocb() argument
172 poll->head = NULL; in io_init_poll_iocb()
175 poll in io_init_poll_iocb()
180 io_poll_remove_entry(struct io_poll *poll) io_poll_remove_entry() argument
363 struct io_poll *poll; io_poll_task_func() local
398 io_pollfree_wake(struct io_kiocb *req, struct io_poll *poll) io_pollfree_wake() argument
427 struct io_poll *poll = container_of(wait, struct io_poll, wait); io_poll_wake() local
464 struct io_poll *poll = io_poll_get_single(req); io_poll_double_prepare() local
486 __io_queue_proc(struct io_poll *poll, struct io_poll_table *pt, struct wait_queue_head *head, struct io_poll **poll_ptr) __io_queue_proc() argument
546 struct io_poll *poll = io_kiocb_to_cmd(pt->req, struct io_poll); io_poll_queue_proc() local
572 __io_arm_poll_handler(struct io_kiocb *req, struct io_poll *poll, struct io_poll_table *ipt, __poll_t mask, unsigned issue_flags) __io_arm_poll_handler() argument
938 struct io_poll *poll = io_kiocb_to_cmd(req, struct io_poll); io_poll_add_prep() local
955 struct io_poll *poll = io_kiocb_to_cmd(req, struct io_poll); io_poll_add() local
1015 struct io_poll *poll = io_kiocb_to_cmd(preq, struct io_poll); io_poll_remove() local
[all...]
/kernel/linux/linux-5.10/drivers/tty/vt/
H A Dvc_screen.c44 #include <linux/poll.h>
89 struct vcs_poll_data *poll = in vcs_notifier() local
91 int currcons = poll->cons_num; in vcs_notifier()
112 poll->event = code; in vcs_notifier()
113 wake_up_interruptible(&poll->waitq); in vcs_notifier()
114 kill_fasync(&poll->fasync, SIGIO, fa_band); in vcs_notifier()
119 vcs_poll_data_free(struct vcs_poll_data *poll) in vcs_poll_data_free() argument
121 unregister_vt_notifier(&poll->notifier); in vcs_poll_data_free()
122 kfree(poll); in vcs_poll_data_free()
128 struct vcs_poll_data *poll in vcs_poll_data_get() local
369 struct vcs_poll_data *poll; vcs_read() local
714 struct vcs_poll_data *poll = vcs_poll_data_get(file); vcs_poll() local
737 struct vcs_poll_data *poll = file->private_data; vcs_fasync() local
772 struct vcs_poll_data *poll = file->private_data; vcs_release() local
[all...]
/kernel/linux/linux-6.6/drivers/tty/vt/
H A Dvc_screen.c44 #include <linux/poll.h>
89 struct vcs_poll_data *poll = in vcs_notifier() local
91 int currcons = poll->cons_num; in vcs_notifier()
112 poll->event = code; in vcs_notifier()
113 wake_up_interruptible(&poll->waitq); in vcs_notifier()
114 kill_fasync(&poll->fasync, SIGIO, fa_band); in vcs_notifier()
119 vcs_poll_data_free(struct vcs_poll_data *poll) in vcs_poll_data_free() argument
121 unregister_vt_notifier(&poll->notifier); in vcs_poll_data_free()
122 kfree(poll); in vcs_poll_data_free()
128 struct vcs_poll_data *poll in vcs_poll_data_get() local
369 struct vcs_poll_data *poll; vcs_read() local
714 struct vcs_poll_data *poll = vcs_poll_data_get(file); vcs_poll() local
737 struct vcs_poll_data *poll = file->private_data; vcs_fasync() local
772 struct vcs_poll_data *poll = file->private_data; vcs_release() local
[all...]
/kernel/linux/linux-5.10/arch/um/os-Linux/
H A Dsigio.c9 #include <poll.h>
38 struct pollfd *poll; member
61 n = poll(fds->poll, fds->used, -1); in write_sigio_thread()
65 printk(UM_KERN_ERR "write_sigio_thread : poll returned " 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, poll in need_poll()
[all...]
/kernel/linux/linux-6.6/arch/um/os-Linux/
H A Dsigio.c9 #include <poll.h>
38 struct pollfd *poll; member
61 n = poll(fds->poll, fds->used, -1); in write_sigio_thread()
65 printk(UM_KERN_ERR "write_sigio_thread : poll returned " 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, poll in need_poll()
[all...]
/kernel/linux/linux-6.6/include/trace/events/
H A Dscmi.h37 bool poll),
38 TP_ARGS(transfer_id, msg_id, protocol_id, seq, poll),
45 __field(bool, poll)
53 __entry->poll = poll;
56 TP_printk("pt=%02X msg_id=%02X seq=%04X transfer_id=%X poll=%u",
58 __entry->transfer_id, __entry->poll)
63 u32 timeout, bool poll),
64 TP_ARGS(transfer_id, msg_id, protocol_id, seq, timeout, poll),
72 __field(bool, poll)
[all...]
/kernel/linux/linux-5.10/drivers/iio/common/hid-sensors/
H A 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 in hid_sensor_write_samp_freq_value()
[all...]
/kernel/linux/linux-6.6/drivers/iio/common/hid-sensors/
H A Dhid-sensor-attributes.c160 st->poll.report_id, in hid_sensor_read_poll_value()
161 st->poll.index, sizeof(value), &value); in hid_sensor_read_poll_value()
166 if (st->poll.units == HID_USAGE_SENSOR_UNITS_SECOND) in hid_sensor_read_poll_value()
181 st->poll.report_id, in hid_sensor_read_samp_freq_value()
182 st->poll.index, sizeof(value), &value); in hid_sensor_read_samp_freq_value()
187 if (st->poll.units == HID_USAGE_SENSOR_UNITS_MILLISECOND) in hid_sensor_read_samp_freq_value()
189 else if (st->poll.units == HID_USAGE_SENSOR_UNITS_SECOND) in hid_sensor_read_samp_freq_value()
212 if (st->poll.units == HID_USAGE_SENSOR_UNITS_MILLISECOND) in hid_sensor_write_samp_freq_value()
214 else if (st->poll.units == HID_USAGE_SENSOR_UNITS_SECOND) in hid_sensor_write_samp_freq_value()
219 ret = sensor_hub_set_feature(st->hsdev, st->poll in hid_sensor_write_samp_freq_value()
[all...]
/kernel/linux/linux-5.10/include/trace/events/
H A Dscmi.h12 bool poll),
13 TP_ARGS(transfer_id, msg_id, protocol_id, seq, poll),
20 __field(bool, poll)
28 __entry->poll = poll;
31 TP_printk("transfer_id=%d msg_id=%u protocol_id=%u seq=%u poll=%u",
33 __entry->seq, __entry->poll)
/kernel/linux/linux-5.10/drivers/input/misc/
H A Dwm831x-on.c38 * then need to poll to see when the pin is deasserted.
45 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()
/kernel/linux/linux-6.6/drivers/input/misc/
H A Dwm831x-on.c38 * then need to poll to see when the pin is deasserted.
45 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()
/kernel/linux/linux-5.10/sound/core/
H A Dmisc.c163 int poll; member
181 kill_fasync(&fasync->fasync, fasync->signal, fasync->poll); in snd_fasync_work_fn()
218 void snd_kill_fasync(struct snd_fasync *fasync, int signal, int poll) in snd_kill_fasync() argument
226 fasync->poll = poll; in snd_kill_fasync()
/kernel/linux/linux-6.6/sound/core/
H A Dmisc.c163 int poll; member
181 kill_fasync(&fasync->fasync, fasync->signal, fasync->poll); in snd_fasync_work_fn()
218 void snd_kill_fasync(struct snd_fasync *fasync, int signal, int poll) in snd_kill_fasync() argument
226 fasync->poll = poll; in snd_kill_fasync()
/kernel/linux/linux-5.10/drivers/dma-buf/
H A Ddma-buf.c23 #include <linux/poll.h>
71 * Any fences that a dma-buf poll can wait on should be signaled in dma_buf_release()
187 * Userspace can query the state of these implicitly tracked fences using poll()
206 spin_lock_irqsave(&dcb->poll->lock, flags); in dma_buf_poll_cb()
207 wake_up_locked_poll(dcb->poll, dcb->active); in dma_buf_poll_cb()
209 spin_unlock_irqrestore(&dcb->poll->lock, flags); in dma_buf_poll_cb()
212 static __poll_t dma_buf_poll(struct file *file, poll_table *poll) in dma_buf_poll() argument
227 poll_wait(file, &dmabuf->poll, poll); in dma_buf_poll()
229 events = poll_requested_events(poll) in dma_buf_poll()
[all...]
/kernel/linux/linux-5.10/arch/um/drivers/
H A Dubd_user.c24 #include <poll.h>
71 return poll(&kernel_pollfd, 1, timeout); in ubd_read_poll()
76 return poll(&kernel_pollfd, 1, timeout); in ubd_write_poll()
/kernel/linux/linux-6.6/arch/um/drivers/
H A Dubd_user.c24 #include <poll.h>
71 return poll(&kernel_pollfd, 1, timeout); in ubd_read_poll()
76 return poll(&kernel_pollfd, 1, timeout); in ubd_write_poll()
/kernel/linux/linux-5.10/kernel/
H A 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()
/kernel/linux/linux-6.6/kernel/
H A Dutsname_sysctl.c65 proc_sys_poll_notify(table->poll); in proc_do_uts_string()
113 .poll = &hostname_poll,
121 .poll = &domainname_poll,
135 proc_sys_poll_notify(table->poll); in uts_proc_notify()
/kernel/linux/linux-5.10/drivers/vhost/
H A Dvhost.h9 #include <linux/poll.h>
43 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);
85 struct vhost_poll poll; member
H A Dvhost.c19 #include <linux/poll.h>
157 struct vhost_poll *poll; in vhost_poll_func() local
159 poll = container_of(pt, struct vhost_poll, table); in vhost_poll_func()
160 poll->wqh = wqh; in vhost_poll_func()
161 add_wait_queue(wqh, &poll->wait); in vhost_poll_func()
167 struct vhost_poll *poll = container_of(wait, struct vhost_poll, wait); in vhost_poll_wakeup() local
168 struct vhost_work *work = &poll->work; in vhost_poll_wakeup()
170 if (!(key_to_poll(key) & poll->mask)) in vhost_poll_wakeup()
173 if (!poll->dev->use_worker) in vhost_poll_wakeup()
176 vhost_poll_queue(poll); in vhost_poll_wakeup()
189 vhost_poll_init(struct vhost_poll *poll, vhost_work_fn_t fn, __poll_t mask, struct vhost_dev *dev) vhost_poll_init() argument
204 vhost_poll_start(struct vhost_poll *poll, struct file *file) vhost_poll_start() argument
225 vhost_poll_stop(struct vhost_poll *poll) vhost_poll_stop() argument
250 vhost_poll_flush(struct vhost_poll *poll) vhost_poll_flush() argument
279 vhost_poll_queue(struct vhost_poll *poll) vhost_poll_queue() argument
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/nx-gzip/
H A Dgzip_vas.c137 long poll = 0; in nx_wait_for_csb() local
153 ++poll; in nx_wait_for_csb()
167 if (poll > CSB_MAX_POLL) in nx_wait_for_csb()
186 (int) poll); in nx_wait_for_csb()
188 (int) poll); in nx_wait_for_csb()
/kernel/linux/linux-5.10/drivers/input/
H A 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()
180 static DEVICE_ATTR(poll, 0644,
/kernel/linux/linux-6.6/drivers/input/
H A 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()
180 static DEVICE_ATTR(poll, 0644,
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/nx-gzip/
H A Dgzip_vas.c137 long poll = 0; in nx_wait_for_csb() local
153 ++poll; in nx_wait_for_csb()
167 if (poll > CSB_MAX_POLL) in nx_wait_for_csb()
186 (int) poll); in nx_wait_for_csb()
188 (int) poll); in nx_wait_for_csb()
/kernel/linux/linux-6.6/drivers/vhost/
H A Dvhost.c19 #include <linux/poll.h>
157 struct vhost_poll *poll; in vhost_poll_func() local
159 poll = container_of(pt, struct vhost_poll, table); in vhost_poll_func()
160 poll->wqh = wqh; in vhost_poll_func()
161 add_wait_queue(wqh, &poll->wait); in vhost_poll_func()
167 struct vhost_poll *poll = container_of(wait, struct vhost_poll, wait); in vhost_poll_wakeup() local
168 struct vhost_work *work = &poll->work; in vhost_poll_wakeup()
170 if (!(key_to_poll(key) & poll->mask)) in vhost_poll_wakeup()
173 if (!poll->dev->use_worker) in vhost_poll_wakeup()
176 vhost_poll_queue(poll); in vhost_poll_wakeup()
189 vhost_poll_init(struct vhost_poll *poll, vhost_work_fn_t fn, __poll_t mask, struct vhost_dev *dev, struct vhost_virtqueue *vq) vhost_poll_init() argument
206 vhost_poll_start(struct vhost_poll *poll, struct file *file) vhost_poll_start() argument
227 vhost_poll_stop(struct vhost_poll *poll) vhost_poll_stop() argument
329 vhost_poll_queue(struct vhost_poll *poll) vhost_poll_queue() argument
[all...]

Completed in 15 milliseconds

12345678910>>...71