ev_int 80 drivers/iio/iio_core.h bool iio_event_enabled(const struct iio_event_interface *ev_int); ev_int 194 drivers/iio/industrialio-core.c const struct iio_event_interface *ev_int = indio_dev->event_interface; ev_int 199 drivers/iio/industrialio-core.c if ((ev_int && iio_event_enabled(ev_int)) || ev_int 44 drivers/iio/industrialio-event.c bool iio_event_enabled(const struct iio_event_interface *ev_int) ev_int 46 drivers/iio/industrialio-event.c return !!test_bit(IIO_BUSY_BIT_POS, &ev_int->flags); ev_int 65 drivers/iio/industrialio-event.c struct iio_event_interface *ev_int = indio_dev->event_interface; ev_int 69 drivers/iio/industrialio-event.c if (!ev_int) ev_int 73 drivers/iio/industrialio-event.c if (iio_event_enabled(ev_int)) { ev_int 78 drivers/iio/industrialio-event.c copied = kfifo_put(&ev_int->det_events, ev); ev_int 80 drivers/iio/industrialio-event.c wake_up_poll(&ev_int->wait, EPOLLIN); ev_int 99 drivers/iio/industrialio-event.c struct iio_event_interface *ev_int = indio_dev->event_interface; ev_int 105 drivers/iio/industrialio-event.c poll_wait(filep, &ev_int->wait, wait); ev_int 107 drivers/iio/industrialio-event.c if (!kfifo_is_empty(&ev_int->det_events)) ev_int 119 drivers/iio/industrialio-event.c struct iio_event_interface *ev_int = indio_dev->event_interface; ev_int 130 drivers/iio/industrialio-event.c if (kfifo_is_empty(&ev_int->det_events)) { ev_int 134 drivers/iio/industrialio-event.c ret = wait_event_interruptible(ev_int->wait, ev_int 135 drivers/iio/industrialio-event.c !kfifo_is_empty(&ev_int->det_events) || ev_int 143 drivers/iio/industrialio-event.c if (mutex_lock_interruptible(&ev_int->read_lock)) ev_int 145 drivers/iio/industrialio-event.c ret = kfifo_to_user(&ev_int->det_events, buf, count, &copied); ev_int 146 drivers/iio/industrialio-event.c mutex_unlock(&ev_int->read_lock); ev_int 168 drivers/iio/industrialio-event.c struct iio_event_interface *ev_int = indio_dev->event_interface; ev_int 170 drivers/iio/industrialio-event.c clear_bit(IIO_BUSY_BIT_POS, &ev_int->flags); ev_int 187 drivers/iio/industrialio-event.c struct iio_event_interface *ev_int = indio_dev->event_interface; ev_int 190 drivers/iio/industrialio-event.c if (ev_int == NULL) ev_int 197 drivers/iio/industrialio-event.c if (test_and_set_bit(IIO_BUSY_BIT_POS, &ev_int->flags)) { ev_int 207 drivers/iio/industrialio-event.c clear_bit(IIO_BUSY_BIT_POS, &ev_int->flags); ev_int 210 drivers/iio/industrialio-event.c kfifo_reset_out(&ev_int->det_events); ev_int 462 drivers/iio/industrialio-event.c static void iio_setup_ev_int(struct iio_event_interface *ev_int) ev_int 464 drivers/iio/industrialio-event.c INIT_KFIFO(ev_int->det_events); ev_int 465 drivers/iio/industrialio-event.c init_waitqueue_head(&ev_int->wait); ev_int 466 drivers/iio/industrialio-event.c mutex_init(&ev_int->read_lock);