Home
last modified time | relevance | path

Searched refs:ev_int (Results 1 – 1 of 1) sorted by relevance

/linux-3.4.99/drivers/staging/iio/
Dindustrialio-event.c47 struct iio_event_interface *ev_int = indio_dev->event_interface; in iio_push_event() local
52 spin_lock(&ev_int->wait.lock); in iio_push_event()
53 if (test_bit(IIO_BUSY_BIT_POS, &ev_int->flags)) { in iio_push_event()
58 copied = kfifo_put(&ev_int->det_events, &ev); in iio_push_event()
60 wake_up_locked_poll(&ev_int->wait, POLLIN); in iio_push_event()
62 spin_unlock(&ev_int->wait.lock); in iio_push_event()
74 struct iio_event_interface *ev_int = filep->private_data; in iio_event_poll() local
77 poll_wait(filep, &ev_int->wait, wait); in iio_event_poll()
79 spin_lock(&ev_int->wait.lock); in iio_event_poll()
80 if (!kfifo_is_empty(&ev_int->det_events)) in iio_event_poll()
[all …]