| /linux/io_uring/ |
| A D | poll.c | 118 return &req->apoll->poll; in io_poll_get_single() 174 poll->head = NULL; in io_init_poll_iocb() 189 poll->head = NULL; in io_poll_remove_entry() 370 struct io_poll *poll; in io_poll_task_func() local 456 poll->head = NULL; in io_poll_wake() 519 poll = kmalloc(sizeof(*poll), GFP_ATOMIC); in __io_queue_proc() 520 if (!poll) { in __io_queue_proc() 530 kfree(poll); in __io_queue_proc() 533 *poll_ptr = poll; in __io_queue_proc() 540 poll->head = head; in __io_queue_proc() [all …]
|
| /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() 717 if (poll) { in vcs_poll() 744 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/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/include/trace/events/ |
| A D | scmi.h | 39 bool poll), 40 TP_ARGS(transfer_id, msg_id, protocol_id, seq, poll), 47 __field(bool, poll) 55 __entry->poll = poll; 60 __entry->transfer_id, __entry->poll) 65 u32 timeout, bool poll), 66 TP_ARGS(transfer_id, msg_id, protocol_id, seq, timeout, poll), 74 __field(bool, poll) 83 __entry->poll = poll; 88 __entry->transfer_id, __entry->timeout, __entry->poll)
|
| /linux/Documentation/devicetree/bindings/serial/ |
| A D | pl011.yaml | 78 auto-poll: 83 poll-rate-ms: 85 Rate at which poll occurs when auto-poll is set. 89 poll-timeout-ms: 91 Poll timeout when auto-poll is set, default 110 poll-rate-ms: [ auto-poll ] 111 poll-timeout-ms: [ auto-poll ]
|
| /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/arch/arm/boot/dts/microchip/ |
| 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/sound/core/ |
| A D | misc.c | 92 int poll; member 110 kill_fasync(&fasync->fasync, fasync->signal, fasync->poll); in snd_fasync_work_fn() 147 void snd_kill_fasync(struct snd_fasync *fasync, int signal, int poll) in snd_kill_fasync() argument 155 fasync->poll = poll; in snd_kill_fasync()
|
| /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/kernel/ |
| A D | utsname_sysctl.c | 65 proc_sys_poll_notify(table->poll); in proc_do_uts_string() 113 .poll = &hostname_poll, 121 .poll = &domainname_poll, 134 proc_sys_poll_notify(table->poll); in uts_proc_notify()
|
| /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/Documentation/networking/ |
| A D | napi.rst | 16 interrupts first (:ref:`busy polling<poll>`). 29 and the associated poll method. struct napi_struct holds the state 45 A disabled NAPI can't be scheduled and its poll method is guaranteed 57 napi_schedule() is the basic method of scheduling a NAPI poll. 62 Later, after NAPI is scheduled, the driver's poll method will be 79 The poll method returns the amount of work done. If the driver still 81 the poll method should return exactly ``budget``. In that case, 86 processed) the poll method should call napi_complete_done() 106 it's not guaranteed that the poll method will be called, even 111 to be released, not for the poll method to exit. This means that [all …]
|
| /linux/drivers/dma-buf/ |
| A D | dma-buf.c | 222 struct dma_buf *dmabuf = container_of(dcb->poll, struct dma_buf, poll); in dma_buf_poll_cb() 225 spin_lock_irqsave(&dcb->poll->lock, flags); in dma_buf_poll_cb() 226 wake_up_locked_poll(dcb->poll, dcb->active); in dma_buf_poll_cb() 265 poll_wait(file, &dmabuf->poll, poll); 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() 300 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll() 305 spin_unlock_irq(&dmabuf->poll.lock); in dma_buf_poll() 529 .poll = dma_buf_poll, 671 init_waitqueue_head(&dmabuf->poll); in dma_buf_export() [all …]
|
| /linux/drivers/vhost/ |
| A D | vhost.c | 160 poll->wqh = wqh; in vhost_poll_func() 195 poll->mask = mask; in vhost_poll_init() 196 poll->dev = dev; in vhost_poll_init() 197 poll->wqh = NULL; in vhost_poll_init() 198 poll->vq = vq; in vhost_poll_init() 210 if (poll->wqh) in vhost_poll_start() 217 vhost_poll_stop(poll); in vhost_poll_start() 229 if (poll->wqh) { in vhost_poll_stop() 230 remove_wait_queue(poll->wqh, &poll->wait); in vhost_poll_stop() 231 poll->wqh = NULL; in vhost_poll_stop() [all …]
|
| A D | net.c | 406 vhost_poll_queue(&vq->poll); in vhost_zerocopy_complete() 431 struct vhost_poll *poll = n->poll + (nvq - n->vqs); in vhost_net_disable_vq() local 434 vhost_poll_stop(poll); in vhost_net_disable_vq() 442 struct vhost_poll *poll = n->poll + (nvq - n->vqs); in vhost_net_enable_vq() local 516 vhost_poll_queue(&vq->poll); in vhost_net_busy_poll_try_queue() 519 vhost_poll_queue(&vq->poll); in vhost_net_busy_poll_try_queue() 773 vhost_poll_queue(&vq->poll); in handle_tx_copy() 867 vhost_poll_queue(&vq->poll); in handle_tx_zerocopy() 1225 vhost_poll_queue(&vq->poll); in handle_rx() 1236 poll.work); in handle_tx_kick() [all …]
|
| /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() 206 .poll = media_poll,
|
| /linux/drivers/isdn/mISDN/ |
| A D | dsp_core.c | 167 static int poll; variable 1127 dsp_poll = poll; in dsp_init() 1141 dsp_tics = poll * HZ / 8000; 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() 1153 if (tics * 8000 == poll * HZ) { in dsp_init() 1155 dsp_poll = poll; in dsp_init() 1156 if (poll >= 64) in dsp_init() [all …]
|
| /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/include/linux/ |
| A D | sysctl.h | 122 static inline void *proc_sys_poll_event(struct ctl_table_poll *poll) in proc_sys_poll_event() argument 124 return (void *)(unsigned long)atomic_read(&poll->event); in proc_sys_poll_event() 141 struct ctl_table_poll *poll; member 217 void proc_sys_poll_notify(struct ctl_table_poll *poll);
|
| /linux/drivers/firmware/arm_scmi/ |
| A D | perf.c | 692 u32 domain, u32 level, bool poll) in scmi_perf_msg_level_set() argument 702 t->hdr.poll_completion = poll; in scmi_perf_msg_level_set() 715 bool poll) in __scmi_perf_level_set() argument 731 u32 domain, u32 level, bool poll) in scmi_perf_level_set() argument 756 u32 domain, u32 *level, bool poll) in scmi_perf_msg_level_get() argument 766 t->hdr.poll_completion = poll; in scmi_perf_msg_level_get() 779 bool poll) in __scmi_perf_level_get() argument 792 u32 domain, u32 *level, bool poll) in scmi_perf_level_get() argument 801 ret = __scmi_perf_level_get(ph, dom, level, poll); in scmi_perf_level_get() 946 unsigned long freq, bool poll) in scmi_dvfs_freq_set() argument [all …]
|