• Home
  • Raw
  • Download

Lines Matching refs:iodev_cb

138 	struct iodev_callback_list *iodev_cb;  in audio_thread_add_events_callback()  local
141 DL_FOREACH (iodev_callbacks, iodev_cb) in audio_thread_add_events_callback()
142 if (iodev_cb->fd == fd && iodev_cb->cb_data == data) in audio_thread_add_events_callback()
145 iodev_cb = (struct iodev_callback_list *)calloc(1, sizeof(*iodev_cb)); in audio_thread_add_events_callback()
146 iodev_cb->fd = fd; in audio_thread_add_events_callback()
147 iodev_cb->cb = cb; in audio_thread_add_events_callback()
148 iodev_cb->cb_data = data; in audio_thread_add_events_callback()
149 iodev_cb->trigger = TRIGGER_POLL; in audio_thread_add_events_callback()
150 iodev_cb->events = events; in audio_thread_add_events_callback()
152 DL_APPEND(iodev_callbacks, iodev_cb); in audio_thread_add_events_callback()
157 struct iodev_callback_list *iodev_cb; in audio_thread_rm_callback() local
159 DL_FOREACH (iodev_callbacks, iodev_cb) { in audio_thread_rm_callback()
160 if (iodev_cb->fd == fd) { in audio_thread_rm_callback()
161 DL_DELETE(iodev_callbacks, iodev_cb); in audio_thread_rm_callback()
162 free(iodev_cb); in audio_thread_rm_callback()
171 struct iodev_callback_list *iodev_cb; in audio_thread_config_events_callback() local
173 DL_FOREACH (iodev_callbacks, iodev_cb) { in audio_thread_config_events_callback()
174 if (iodev_cb->fd == fd) { in audio_thread_config_events_callback()
175 iodev_cb->trigger = trigger; in audio_thread_config_events_callback()
841 struct iodev_callback_list *iodev_cb; in audio_io_thread() local
861 DL_FOREACH (iodev_callbacks, iodev_cb) { in audio_io_thread()
862 if (iodev_cb->trigger != TRIGGER_POLL) { in audio_io_thread()
863 iodev_cb->pollfd = NULL; in audio_io_thread()
866 iodev_cb->pollfd = add_pollfd(thread, iodev_cb->fd, in audio_io_thread()
867 iodev_cb->events); in audio_io_thread()
868 if (!iodev_cb->pollfd) in audio_io_thread()
907 DL_FOREACH (iodev_callbacks, iodev_cb) { in audio_io_thread()
908 if (iodev_cb->trigger == TRIGGER_WAKEUP) { in audio_io_thread()
910 iodev_cb->cb(iodev_cb->cb_data, 0); in audio_io_thread()
924 DL_FOREACH (iodev_callbacks, iodev_cb) { in audio_io_thread()
925 if (iodev_cb->pollfd && in audio_io_thread()
926 iodev_cb->pollfd->revents & iodev_cb->events) { in audio_io_thread()
928 iodev_cb->pollfd->revents, in audio_io_thread()
929 iodev_cb->events, 0); in audio_io_thread()
930 iodev_cb->cb(iodev_cb->cb_data, in audio_io_thread()
931 iodev_cb->pollfd->revents); in audio_io_thread()