/linux/drivers/tty/vt/ |
A D | vc_screen.c | 122 kfree(poll); in vcs_poll_data_free() 130 if (poll) in vcs_poll_data_get() 131 return poll; in vcs_poll_data_get() 133 poll = kzalloc(sizeof(*poll), GFP_KERNEL); in vcs_poll_data_get() 134 if (!poll) in vcs_poll_data_get() 149 kfree(poll); in vcs_poll_data_get() 166 kill = poll; in vcs_poll_data_get() 173 return poll; in vcs_poll_data_get() 710 if (poll) { in vcs_poll() 737 if (!poll) in vcs_fasync() [all …]
|
/linux/arch/um/os-Linux/ |
A D | sigio.c | 38 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() 118 kfree(polls->poll); in need_poll() 120 polls->poll = new; in need_poll() 179 p = &all_sigio_fds.poll[i]; in __add_sigio_fd() 191 memcpy(next_poll.poll, current_poll.poll, in __add_sigio_fd() 193 next_poll.poll[n] = *p; in __add_sigio_fd() 237 p = ¤t_poll.poll[i]; in __ignore_sigio_fd() [all …]
|
/linux/Documentation/userspace-api/media/v4l/ |
A D | func-poll.rst | 4 .. _func-poll: 7 V4L2 poll() 13 v4l2-poll - Wait for some event on a file descriptor 20 #include <sys/poll.h> 31 With the :c:func:`poll()` function applications can suspend execution 44 On success :c:func:`poll()` returns the number of file descriptors 52 :ref:`VIDIOC_STREAMON <VIDIOC_STREAMON>` the :c:func:`poll()` 64 :c:func:`poll()` will return. 80 the ``events`` field), then :c:func:`poll()` will *not* start 82 just poll for events and not for buffers. [all …]
|
/linux/Documentation/devicetree/bindings/serial/ |
A D | pl011.yaml | 77 auto-poll: 82 poll-rate-ms: 84 Rate at which poll occurs when auto-poll is set. 88 poll-timeout-ms: 90 Poll timeout when auto-poll is set, default 100 poll-rate-ms: [ auto-poll ] 101 poll-timeout-ms: [ auto-poll ]
|
/linux/Documentation/userspace-api/media/mediactl/ |
A D | request-func-poll.rst | 4 .. _request-func-poll: 7 request poll() 13 request-poll - Wait for some event on a file descriptor 20 #include <sys/poll.h> 22 .. c:function:: int poll( struct pollfd *ufds, unsigned int nfds, int timeout ) 39 With the :c:func:`poll()` function applications can wait 42 On success :c:func:`poll()` returns the number of file 50 Attempting to poll for a request that is not yet queued will 56 On success, :c:func:`poll()` returns the number of
|
/linux/Documentation/userspace-api/media/cec/ |
A D | cec-func-poll.rst | 4 .. _cec-func-poll: 7 cec poll() 13 cec-poll - Wait for some event on a file descriptor 20 #include <sys/poll.h> 22 .. c:function:: int poll( struct pollfd *ufds, unsigned int nfds, int timeout ) 39 With the :c:func:`poll()` function applications can wait for CEC 42 On success :c:func:`poll()` returns the number of file descriptors 53 For more details see the :c:func:`poll()` manual page. 58 On success, :c:func:`poll()` returns the number structures which have
|
/linux/drivers/iio/common/hid-sensors/ |
A D | hid-sensor-attributes.c | 160 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() 220 st->poll.index, sizeof(value), &value); in hid_sensor_write_samp_freq_value() 225 st->poll.report_id, in hid_sensor_write_samp_freq_value() 226 st->poll.index, sizeof(value), &value); in hid_sensor_write_samp_freq_value() 443 &st->poll); in hid_sensor_get_reporting_interval() 445 if (st->poll.units == 0) in hid_sensor_get_reporting_interval() [all …]
|
/linux/include/trace/events/ |
A D | scmi.h | 12 bool poll), 13 TP_ARGS(transfer_id, msg_id, protocol_id, seq, poll), 20 __field(bool, poll) 28 __entry->poll = poll; 33 __entry->seq, __entry->poll)
|
/linux/arch/arm/boot/dts/ |
A D | at91-natte.dtsi | 74 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/drivers/input/misc/ |
A D | wm831x-on.c | 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()
|
/linux/Documentation/translations/zh_CN/accounting/ |
A D | psi.rst | 63 用户可注册触发器,通过poll()监控资源压力是否超过门限。 69 所打开的文件描述符用于等待事件,可使用select()、poll()、epoll()。 102 #include <poll.h> 128 n = poll(&fds, 1, -1); 130 printf("poll error: %s\n", strerror(errno));
|
/linux/drivers/dma-buf/ |
A D | dma-buf.c | 200 struct dma_buf *dmabuf = container_of(dcb->poll, struct dma_buf, poll); in dma_buf_poll_cb() 203 spin_lock_irqsave(&dcb->poll->lock, flags); in dma_buf_poll_cb() 204 wake_up_locked_poll(dcb->poll, dcb->active); in dma_buf_poll_cb() 242 poll_wait(file, &dmabuf->poll, poll); in dma_buf_poll() 254 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll() 259 spin_unlock_irq(&dmabuf->poll.lock); in dma_buf_poll() 277 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll() 282 spin_unlock_irq(&dmabuf->poll.lock); in dma_buf_poll() 405 .poll = dma_buf_poll, 538 init_waitqueue_head(&dmabuf->poll); in dma_buf_export() [all …]
|
/linux/kernel/ |
A D | utsname_sysctl.c | 63 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/drivers/vhost/ |
A D | vhost.c | 157 struct vhost_poll *poll; in vhost_poll_func() local 160 poll->wqh = wqh; in vhost_poll_func() 194 poll->mask = mask; in vhost_poll_init() 195 poll->dev = dev; in vhost_poll_init() 196 poll->wqh = NULL; in vhost_poll_init() 208 if (poll->wqh) in vhost_poll_start() 215 vhost_poll_stop(poll); in vhost_poll_start() 227 if (poll->wqh) { in vhost_poll_stop() 228 remove_wait_queue(poll->wqh, &poll->wait); in vhost_poll_stop() 229 poll->wqh = NULL; in vhost_poll_stop() [all …]
|
A D | vhost.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); 84 struct vhost_poll poll; member
|
A D | net.c | 406 vhost_poll_queue(&vq->poll); in vhost_zerocopy_callback() 427 struct vhost_poll *poll = n->poll + (nvq - n->vqs); in vhost_net_disable_vq() local 430 vhost_poll_stop(poll); in vhost_net_disable_vq() 438 struct vhost_poll *poll = n->poll + (nvq - n->vqs); in vhost_net_enable_vq() local 511 vhost_poll_queue(&vq->poll); in vhost_net_busy_poll_try_queue() 514 vhost_poll_queue(&vq->poll); in vhost_net_busy_poll_try_queue() 798 vhost_poll_queue(&vq->poll); in handle_tx_copy() 892 vhost_poll_queue(&vq->poll); in handle_tx_zerocopy() 1245 vhost_poll_queue(&vq->poll); in handle_rx() 1256 poll.work); in handle_tx_kick() [all …]
|
/linux/drivers/input/ |
A D | input-poller.c | 16 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,
|
/linux/tools/testing/selftests/powerpc/nx-gzip/ |
A D | gzip_vas.c | 137 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()
|
/linux/drivers/isdn/mISDN/ |
A D | dsp_core.c | 167 static int poll; variable 1126 dsp_poll = poll; in dsp_init() 1140 dsp_tics = poll * HZ / 8000; in dsp_init() 1144 "%d HZ.\n", poll, HZ); in dsp_init() 1149 poll = 8; in dsp_init() 1150 while (poll <= MAX_POLL) { in dsp_init() 1151 tics = (poll * HZ) / 8000; in dsp_init() 1152 if (tics * 8000 == poll * HZ) { in dsp_init() 1154 dsp_poll = poll; in dsp_init() 1155 if (poll >= 64) in dsp_init() [all …]
|
/linux/include/linux/ |
A D | sysctl.h | 103 static inline void *proc_sys_poll_event(struct ctl_table_poll *poll) in proc_sys_poll_event() argument 105 return (void *)(unsigned long)atomic_read(&poll->event); in proc_sys_poll_event() 123 struct ctl_table_poll *poll; member 181 void proc_sys_poll_notify(struct ctl_table_poll *poll);
|
/linux/drivers/media/mc/ |
A D | mc-devnode.c | 95 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/drivers/pci/hotplug/ |
A D | cpcihp_zt5550.c | 42 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/drivers/firmware/arm_scmi/ |
A D | perf.c | 437 u32 domain, u32 level, bool poll) in scmi_perf_mb_level_set() argument 447 t->hdr.poll_completion = poll; in scmi_perf_mb_level_set() 459 u32 domain, u32 level, bool poll) in scmi_perf_level_set() argument 470 return scmi_perf_mb_level_set(ph, domain, level, poll); in scmi_perf_level_set() 474 u32 domain, u32 *level, bool poll) in scmi_perf_mb_level_get() argument 484 t->hdr.poll_completion = poll; in scmi_perf_mb_level_get() 496 u32 domain, u32 *level, bool poll) in scmi_perf_level_get() argument 506 return scmi_perf_mb_level_get(ph, domain, level, poll); in scmi_perf_level_get() 689 unsigned long freq, bool poll) in scmi_dvfs_freq_set() argument 698 unsigned long *freq, bool poll) in scmi_dvfs_freq_get() argument [all …]
|
/linux/drivers/comedi/drivers/ |
A D | pcl816.c | 456 unsigned int poll; in pcl816_ai_poll() local 461 poll = comedi_isadma_poll(dma); in pcl816_ai_poll() 462 poll = comedi_bytes_to_samples(s, poll); in pcl816_ai_poll() 463 if (poll > devpriv->ai_poll_ptr) { in pcl816_ai_poll() 467 poll - devpriv->ai_poll_ptr); in pcl816_ai_poll() 469 devpriv->ai_poll_ptr = poll; in pcl816_ai_poll() 642 s->poll = pcl816_ai_poll; in pcl816_attach()
|
/linux/fs/ |
A D | io_uring.c | 5347 add_wait_queue(poll->head, &poll->wait); in io_poll_rewait() 5376 if (poll && poll->head) { in io_poll_remove_double() 5434 add_wait_queue(req->poll.head, &req->poll.wait); in io_poll_task_func() 5460 return poll->wait.func(&poll->wait, mode, sync, key); in io_poll_double_wake() 5476 poll->wait.func(&poll->wait, mode, sync, key); in io_poll_double_wake() 5526 poll = kmalloc(sizeof(*poll), GFP_ATOMIC); in __io_queue_proc() 5527 if (!poll) { in __io_queue_proc() 5585 struct io_poll_iocb *poll = &req->apoll->poll; in io_async_wake() local 5847 struct io_poll_iocb *poll = &req->poll; in io_poll_wake() local 5862 struct io_poll_iocb *poll = &req->poll; in io_poll_add_prep() local [all …]
|