/drivers/tty/vt/ |
D | vc_screen.c | 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 = file->private_data, *kill = NULL; in vcs_poll_data_get() local 130 if (poll) in vcs_poll_data_get() [all …]
|
/drivers/iio/common/hid-sensors/ |
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() 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.report_id, in hid_sensor_write_samp_freq_value() [all …]
|
/drivers/input/misc/ |
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()
|
D | da9063_onkey.c | 90 bool poll = true; in da9063_poll_on() local 117 poll = false; in da9063_poll_on() 155 if (poll) in da9063_poll_on()
|
/drivers/vhost/ |
D | vhost.c | 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 void vhost_poll_init(struct vhost_poll *poll, vhost_work_fn_t fn, in vhost_poll_init() argument [all …]
|
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
|
D | net.c | 134 struct vhost_poll poll[VHOST_NET_VQ_MAX]; member 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 445 return vhost_poll_start(poll, sock->file); in vhost_net_enable_vq() 512 vhost_poll_queue(&vq->poll); in vhost_net_busy_poll_try_queue() 515 vhost_poll_queue(&vq->poll); in vhost_net_busy_poll_try_queue() 799 vhost_poll_queue(&vq->poll); in handle_tx_copy() 893 vhost_poll_queue(&vq->poll); in handle_tx_zerocopy() [all …]
|
D | test.c | 99 poll.work); in handle_vq_kick() 149 vhost_poll_flush(&n->vqs[index].poll); in vhost_test_flush_vq() 292 vhost_poll_stop(&vq->poll); in vhost_test_set_backend() 299 r = vhost_poll_start(&vq->poll, vq->kick); in vhost_test_set_backend()
|
/drivers/dma-buf/ |
D | dma-buf.c | 225 struct dma_buf *dmabuf = container_of(dcb->poll, struct dma_buf, poll); in dma_buf_poll_cb() 228 spin_lock_irqsave(&dcb->poll->lock, flags); in dma_buf_poll_cb() 229 wake_up_locked_poll(dcb->poll, dcb->active); in dma_buf_poll_cb() 231 spin_unlock_irqrestore(&dcb->poll->lock, flags); in dma_buf_poll_cb() 278 static __poll_t dma_buf_poll(struct file *file, poll_table *poll) in dma_buf_poll() argument 290 poll_wait(file, &dmabuf->poll, poll); in dma_buf_poll() 292 events = poll_requested_events(poll) & (EPOLLIN | EPOLLOUT); in dma_buf_poll() 302 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll() 307 spin_unlock_irq(&dmabuf->poll.lock); in dma_buf_poll() 327 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll() [all …]
|
/drivers/input/ |
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,
|
/drivers/isdn/mISDN/ |
D | dsp_core.c | 167 static int poll; variable 173 module_param(poll, uint, S_IRUGO | S_IWUSR); 1126 dsp_poll = poll; in dsp_init() 1130 "maximum.\n", __func__, poll, MAX_POLL); in dsp_init() 1140 dsp_tics = poll * HZ / 8000; in dsp_init() 1141 if (dsp_tics * 8000 != poll * HZ) { 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() [all …]
|
/drivers/media/mc/ |
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,
|
/drivers/pci/hotplug/ |
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");
|
/drivers/firmware/arm_scmi/ |
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 694 return scmi_perf_level_set(ph, domain, freq / dom->mult_factor, poll); in scmi_dvfs_freq_set() [all …]
|
/drivers/comedi/drivers/ |
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()
|
D | pcl812.c | 864 unsigned int poll; in pcl812_ai_poll() local 873 poll = comedi_isadma_poll(dma); in pcl812_ai_poll() 874 poll = comedi_bytes_to_samples(s, poll); in pcl812_ai_poll() 875 if (poll > devpriv->ai_poll_ptr) { in pcl812_ai_poll() 879 poll - devpriv->ai_poll_ptr); in pcl812_ai_poll() 881 devpriv->ai_poll_ptr = poll; in pcl812_ai_poll() 1216 s->poll = pcl812_ai_poll; in pcl812_attach()
|
/drivers/staging/octeon/ |
D | ethernet-mdio.c | 95 if (priv->poll) in cvm_oct_adjust_link() 96 priv->poll(dev); in cvm_oct_adjust_link() 117 priv->poll = NULL; in cvm_oct_common_stop()
|
/drivers/spi/ |
D | spi-sifive.c | 223 static void sifive_spi_wait(struct sifive_spi *spi, u32 bit, int poll) in sifive_spi_wait() argument 225 if (poll) { in sifive_spi_wait() 259 int poll = sifive_spi_prep_transfer(spi, device, t); in sifive_spi_transfer_one() local 276 sifive_spi_wait(spi, SIFIVE_SPI_IP_RXWM, poll); in sifive_spi_transfer_one() 283 sifive_spi_wait(spi, SIFIVE_SPI_IP_TXWM, poll); in sifive_spi_transfer_one()
|
/drivers/mfd/ |
D | arizona-irq.c | 99 bool poll; in arizona_irq_thread() local 110 poll = false; in arizona_irq_thread() 148 poll = true; in arizona_irq_thread() 151 poll = true; in arizona_irq_thread() 153 } while (poll); in arizona_irq_thread()
|
/drivers/cpuidle/ |
D | Kconfig | 66 tristate "Halt poll cpuidle driver" 70 This option enables halt poll cpuidle driver, which allows to poll
|
/drivers/power/supply/ |
D | bq24735-charger.c | 56 struct delayed_work poll; member 247 struct bq24735 *charger = container_of(work, struct bq24735, poll.work); in bq24735_poll() 251 schedule_delayed_work(&charger->poll, in bq24735_poll() 480 ret = devm_delayed_work_autocancel(&client->dev, &charger->poll, in bq24735_charger_probe() 485 schedule_delayed_work(&charger->poll, in bq24735_charger_probe()
|
/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
D | base.c | 112 bool poll = true; in nvkm_therm_update() local 126 poll = false; in nvkm_therm_update() 139 poll = false; in nvkm_therm_update() 150 poll = false; in nvkm_therm_update() 153 if (poll) in nvkm_therm_update()
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_minidump.c | 910 struct __pollrdmwr *poll = &entry->region.pollrdmwr; in qlcnic_read_pollrdmwr() local 913 poll_wait = poll->poll_wait; in qlcnic_read_pollrdmwr() 915 qlcnic_ind_wr(adapter, poll->addr1, poll->val1); in qlcnic_read_pollrdmwr() 919 data = qlcnic_ind_rd(adapter, poll->addr1); in qlcnic_read_pollrdmwr() 920 if ((data & poll->poll_mask) != 0) in qlcnic_read_pollrdmwr() 932 data = qlcnic_ind_rd(adapter, poll->addr2) & poll->mod_mask; in qlcnic_read_pollrdmwr() 933 qlcnic_ind_wr(adapter, poll->addr2, data); in qlcnic_read_pollrdmwr() 934 qlcnic_ind_wr(adapter, poll->addr1, poll->val2); in qlcnic_read_pollrdmwr() 938 temp = qlcnic_ind_rd(adapter, poll->addr1); in qlcnic_read_pollrdmwr() 939 if ((temp & poll->poll_mask) != 0) in qlcnic_read_pollrdmwr() [all …]
|
/drivers/scsi/qla4xxx/ |
D | ql4_83xx.h | 246 uint32_t poll; member 263 uint32_t poll; member 276 uint32_t poll; member
|
/drivers/staging/rtl8723bs/hal/ |
D | rtl8723b_cmd.c | 638 u32 poll = 0; in rtl8723b_download_rsvd_page() local 675 poll = 0; in rtl8723b_download_rsvd_page() 685 poll++; in rtl8723b_download_rsvd_page() 686 …} while (!bcn_valid && (poll%10) != 0 && !padapter->bSurpriseRemoved && !padapter->bDriverStopped); in rtl8723b_download_rsvd_page() 905 u32 poll = 0; in rtl8723b_download_BTCoex_AP_mode_rsvd_page() local 942 poll = 0; in rtl8723b_download_BTCoex_AP_mode_rsvd_page() 951 poll++; in rtl8723b_download_BTCoex_AP_mode_rsvd_page() 952 …} while (!bcn_valid && (poll%10) != 0 && !padapter->bSurpriseRemoved && !padapter->bDriverStopped); in rtl8723b_download_BTCoex_AP_mode_rsvd_page()
|