/drivers/tty/vt/ |
D | vc_screen.c | 67 struct vcs_poll_data *poll = in vcs_notifier() local 69 int currcons = poll->cons_num; in vcs_notifier() 81 poll->seen_last_update = false; in vcs_notifier() 82 wake_up_interruptible(&poll->waitq); in vcs_notifier() 83 kill_fasync(&poll->fasync, SIGIO, POLL_IN); in vcs_notifier() 88 vcs_poll_data_free(struct vcs_poll_data *poll) in vcs_poll_data_free() argument 90 unregister_vt_notifier(&poll->notifier); in vcs_poll_data_free() 91 kfree(poll); in vcs_poll_data_free() 97 struct vcs_poll_data *poll = file->private_data, *kill = NULL; in vcs_poll_data_get() local 99 if (poll) in vcs_poll_data_get() [all …]
|
/drivers/iio/common/hid-sensors/ |
D | hid-sensor-attributes.c | 177 st->poll.report_id, in hid_sensor_read_poll_value() 178 st->poll.index, sizeof(value), &value); in hid_sensor_read_poll_value() 183 if (st->poll.units == HID_USAGE_SENSOR_UNITS_SECOND) in hid_sensor_read_poll_value() 198 st->poll.report_id, in hid_sensor_read_samp_freq_value() 199 st->poll.index, sizeof(value), &value); in hid_sensor_read_samp_freq_value() 204 if (st->poll.units == HID_USAGE_SENSOR_UNITS_MILLISECOND) in hid_sensor_read_samp_freq_value() 206 else if (st->poll.units == HID_USAGE_SENSOR_UNITS_SECOND) in hid_sensor_read_samp_freq_value() 229 if (st->poll.units == HID_USAGE_SENSOR_UNITS_MILLISECOND) in hid_sensor_write_samp_freq_value() 231 else if (st->poll.units == HID_USAGE_SENSOR_UNITS_SECOND) in hid_sensor_write_samp_freq_value() 236 ret = sensor_hub_set_feature(st->hsdev, st->poll.report_id, in hid_sensor_write_samp_freq_value() [all …]
|
/drivers/dma-buf/ |
D | dma-buf.c | 154 spin_lock_irqsave(&dcb->poll->lock, flags); in dma_buf_poll_cb() 155 wake_up_locked_poll(dcb->poll, dcb->active); in dma_buf_poll_cb() 157 spin_unlock_irqrestore(&dcb->poll->lock, flags); in dma_buf_poll_cb() 160 static unsigned int dma_buf_poll(struct file *file, poll_table *poll) in dma_buf_poll() argument 175 poll_wait(file, &dmabuf->poll, poll); in dma_buf_poll() 177 events = poll_requested_events(poll) & (POLLIN | POLLOUT); in dma_buf_poll() 203 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll() 209 spin_unlock_irq(&dmabuf->poll.lock); in dma_buf_poll() 236 spin_lock_irq(&dmabuf->poll.lock); in dma_buf_poll() 241 spin_unlock_irq(&dmabuf->poll.lock); in dma_buf_poll() [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 | 100 bool poll = true; in da9063_poll_on() local 127 poll = false; in da9063_poll_on() 165 if (poll) in da9063_poll_on()
|
/drivers/vhost/ |
D | vhost.c | 162 struct vhost_poll *poll; in vhost_poll_func() local 164 poll = container_of(pt, struct vhost_poll, table); in vhost_poll_func() 165 poll->wqh = wqh; in vhost_poll_func() 166 add_wait_queue(wqh, &poll->wait); in vhost_poll_func() 172 struct vhost_poll *poll = container_of(wait, struct vhost_poll, wait); in vhost_poll_wakeup() local 174 if (!((unsigned long)key & poll->mask)) in vhost_poll_wakeup() 177 vhost_poll_queue(poll); in vhost_poll_wakeup() 190 void vhost_poll_init(struct vhost_poll *poll, vhost_work_fn_t fn, in vhost_poll_init() argument 193 init_waitqueue_func_entry(&poll->wait, vhost_poll_wakeup); in vhost_poll_init() 194 init_poll_funcptr(&poll->table, vhost_poll_func); in vhost_poll_init() [all …]
|
D | vhost.h | 45 void vhost_poll_init(struct vhost_poll *poll, vhost_work_fn_t fn, 47 int vhost_poll_start(struct vhost_poll *poll, struct file *file); 48 void vhost_poll_stop(struct vhost_poll *poll); 49 void vhost_poll_flush(struct vhost_poll *poll); 50 void vhost_poll_queue(struct vhost_poll *poll); 105 struct vhost_poll poll; member
|
D | net.c | 124 struct vhost_poll poll[VHOST_NET_VQ_MAX]; member 372 vhost_poll_queue(&vq->poll); in vhost_zerocopy_callback() 396 struct vhost_poll *poll = n->poll + (nvq - n->vqs); in vhost_net_disable_vq() local 399 vhost_poll_stop(poll); in vhost_net_disable_vq() 407 struct vhost_poll *poll = n->poll + (nvq - n->vqs); in vhost_net_enable_vq() local 414 return vhost_poll_start(poll, sock->file); in vhost_net_enable_vq() 641 vhost_poll_queue(&vq->poll); in vhost_net_rx_peek_head_len() 644 vhost_poll_queue(&vq->poll); in vhost_net_rx_peek_head_len() 874 poll.work); in handle_tx_kick() 883 poll.work); in handle_rx_kick() [all …]
|
/drivers/media/ |
D | media-devnode.c | 103 struct poll_table_struct *poll) in media_poll() argument 109 if (!devnode->fops->poll) in media_poll() 111 return devnode->fops->poll(filp, poll); in media_poll() 215 .poll = media_poll,
|
/drivers/isdn/mISDN/ |
D | dsp_core.c | 169 static int poll; variable 175 module_param(poll, uint, S_IRUGO | S_IWUSR); 1129 dsp_poll = poll; in dsp_init() 1133 "maximum.\n", __func__, poll, MAX_POLL); in dsp_init() 1143 dsp_tics = poll * HZ / 8000; in dsp_init() 1144 if (dsp_tics * 8000 != poll * HZ) { in dsp_init() 1147 "%d HZ.\n", poll, HZ); in dsp_init() 1152 poll = 8; in dsp_init() 1153 while (poll <= MAX_POLL) { in dsp_init() 1154 tics = (poll * HZ) / 8000; in dsp_init() [all …]
|
/drivers/pci/hotplug/ |
D | cpcihp_zt5550.c | 61 static bool poll; variable 220 if (!poll) { in zt5550_hc_init_one() 327 module_param(poll, bool, 0644); 328 MODULE_PARM_DESC(poll, "#ENUM polling mode enabled or not");
|
/drivers/power/supply/ |
D | bq24735-charger.c | 53 struct delayed_work poll; member 244 struct bq24735 *charger = container_of(work, struct bq24735, poll.work); in bq24735_poll() 248 schedule_delayed_work(&charger->poll, in bq24735_poll() 477 INIT_DELAYED_WORK(&charger->poll, bq24735_poll); in bq24735_charger_probe() 478 schedule_delayed_work(&charger->poll, in bq24735_charger_probe() 490 cancel_delayed_work_sync(&charger->poll); in bq24735_charger_remove()
|
/drivers/staging/comedi/drivers/ |
D | pcl816.c | 455 unsigned int poll; in pcl816_ai_poll() local 460 poll = comedi_isadma_poll(dma); in pcl816_ai_poll() 461 poll = comedi_bytes_to_samples(s, poll); in pcl816_ai_poll() 462 if (poll > devpriv->ai_poll_ptr) { in pcl816_ai_poll() 466 poll - devpriv->ai_poll_ptr); in pcl816_ai_poll() 468 devpriv->ai_poll_ptr = poll; in pcl816_ai_poll() 641 s->poll = pcl816_ai_poll; in pcl816_attach()
|
D | pcl812.c | 863 unsigned int poll; in pcl812_ai_poll() local 872 poll = comedi_isadma_poll(dma); in pcl812_ai_poll() 873 poll = comedi_bytes_to_samples(s, poll); in pcl812_ai_poll() 874 if (poll > devpriv->ai_poll_ptr) { in pcl812_ai_poll() 878 poll - devpriv->ai_poll_ptr); in pcl812_ai_poll() 880 devpriv->ai_poll_ptr = poll; in pcl812_ai_poll() 1215 s->poll = pcl812_ai_poll; in pcl812_attach()
|
/drivers/net/phy/ |
D | sfp.c | 120 struct delayed_work poll; member 782 struct sfp *sfp = container_of(work, struct sfp, poll.work); in sfp_poll() 785 mod_delayed_work(system_wq, &sfp->poll, poll_jiffies); in sfp_poll() 800 INIT_DELAYED_WORK(&sfp->poll, sfp_poll); in sfp_alloc() 810 cancel_delayed_work_sync(&sfp->poll); in sfp_cleanup() 824 bool poll = false; in sfp_probe() local 885 poll = true; in sfp_probe() 895 poll = true; in sfp_probe() 898 if (poll) in sfp_probe() 899 mod_delayed_work(system_wq, &sfp->poll, poll_jiffies); in sfp_probe()
|
/drivers/mfd/ |
D | arizona-irq.c | 102 bool poll; in arizona_irq_thread() local 113 poll = false; in arizona_irq_thread() 151 poll = true; in arizona_irq_thread() 154 poll = true; in arizona_irq_thread() 156 } while (poll); in arizona_irq_thread()
|
/drivers/staging/octeon/ |
D | ethernet-mdio.c | 103 if (priv->poll) in cvm_oct_adjust_link() 104 priv->poll(dev); in cvm_oct_adjust_link() 125 priv->poll = NULL; in cvm_oct_common_stop()
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_minidump.c | 911 struct __pollrdmwr *poll = &entry->region.pollrdmwr; in qlcnic_read_pollrdmwr() local 914 poll_wait = poll->poll_wait; in qlcnic_read_pollrdmwr() 916 qlcnic_ind_wr(adapter, poll->addr1, poll->val1); in qlcnic_read_pollrdmwr() 920 data = qlcnic_ind_rd(adapter, poll->addr1); in qlcnic_read_pollrdmwr() 921 if ((data & poll->poll_mask) != 0) in qlcnic_read_pollrdmwr() 933 data = qlcnic_ind_rd(adapter, poll->addr2) & poll->mod_mask; in qlcnic_read_pollrdmwr() 934 qlcnic_ind_wr(adapter, poll->addr2, data); in qlcnic_read_pollrdmwr() 935 qlcnic_ind_wr(adapter, poll->addr1, poll->val2); in qlcnic_read_pollrdmwr() 939 temp = qlcnic_ind_rd(adapter, poll->addr1); in qlcnic_read_pollrdmwr() 940 if ((temp & poll->poll_mask) != 0) in qlcnic_read_pollrdmwr() [all …]
|
D | qlcnic_83xx_init.c | 1835 struct qlc_83xx_poll *poll; in qlcnic_83xx_poll_list() local 1839 poll = (struct qlc_83xx_poll *)((char *)p_hdr + in qlcnic_83xx_poll_list() 1842 entry = (struct qlc_83xx_entry *)((char *)poll + in qlcnic_83xx_poll_list() 1849 delay, poll->mask, in qlcnic_83xx_poll_list() 1850 poll->status); in qlcnic_83xx_poll_list() 1858 poll->mask, in qlcnic_83xx_poll_list() 1859 poll->status)){ in qlcnic_83xx_poll_list() 1879 struct qlc_83xx_poll *poll; in qlcnic_83xx_poll_write_list() local 1881 poll = (struct qlc_83xx_poll *)((char *)p_hdr + in qlcnic_83xx_poll_write_list() 1883 entry = (struct qlc_83xx_quad_entry *)((char *)poll + in qlcnic_83xx_poll_write_list() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
D | base.c | 109 bool poll = true; in nvkm_therm_update() local 123 poll = false; in nvkm_therm_update() 136 poll = false; in nvkm_therm_update() 147 poll = false; in nvkm_therm_update() 150 if (poll) in nvkm_therm_update()
|
/drivers/staging/rtl8188eu/hal/ |
D | rtl8188e_cmd.c | 562 u32 poll = 0; in rtl8188e_set_FwJoinBssReport_cmd() local 595 poll = 0; in rtl8188e_set_FwJoinBssReport_cmd() 605 poll++; in rtl8188e_set_FwJoinBssReport_cmd() 606 } while (!bcn_valid && (poll%10) != 0 && !adapt->bSurpriseRemoved && !adapt->bDriverStopped); in rtl8188e_set_FwJoinBssReport_cmd() 612 DBG_88E("%s: 1 Download RSVD page failed! DLBcnCount:%u, poll:%u\n", __func__, DLBcnCount, poll); in rtl8188e_set_FwJoinBssReport_cmd() 614 DBG_88E("%s: 1 Download RSVD success! DLBcnCount:%u, poll:%u\n", __func__, DLBcnCount, poll); in rtl8188e_set_FwJoinBssReport_cmd()
|
/drivers/gpu/drm/ |
D | drm_probe_helper.c | 65 module_param_named(poll, drm_kms_helper_poll, bool, 0600); 228 bool poll = false; in drm_kms_helper_poll_enable() local 240 poll = true; in drm_kms_helper_poll_enable() 255 poll = true; in drm_kms_helper_poll_enable() 259 if (poll) in drm_kms_helper_poll_enable()
|
/drivers/input/ |
D | input-polldev.c | 41 dev->poll(dev); in input_polled_device_work() 54 dev->poll(dev); in input_open_polled_device() 115 static DEVICE_ATTR(poll, S_IRUGO | S_IWUSR, input_polldev_get_poll,
|
/drivers/scsi/qla4xxx/ |
D | ql4_83xx.h | 264 uint32_t poll; member 281 uint32_t poll; member 294 uint32_t poll; member
|
/drivers/usb/atm/ |
D | cxacru.c | 355 int poll = -1; in cxacru_sysfs_store_adsl_state() local 382 poll = CXPOLL_STOPPED; in cxacru_sysfs_store_adsl_state() 402 poll = CXPOLL_POLLING; in cxacru_sysfs_store_adsl_state() 408 poll = CXPOLL_POLLING; in cxacru_sysfs_store_adsl_state() 413 poll = -1; in cxacru_sysfs_store_adsl_state() 416 if (poll == CXPOLL_POLLING) { in cxacru_sysfs_store_adsl_state() 430 poll = -1; in cxacru_sysfs_store_adsl_state() 433 } else if (poll == CXPOLL_STOPPED) { in cxacru_sysfs_store_adsl_state() 443 if (poll == CXPOLL_POLLING) in cxacru_sysfs_store_adsl_state()
|