/external/libiio/src/ |
D | network.c | 85 struct iio_network_io_context io_ctx; member 93 struct iio_network_io_context io_ctx; member 121 static int setup_cancel(struct iio_network_io_context *io_ctx) in setup_cancel() argument 123 io_ctx->events[0] = WSACreateEvent(); in setup_cancel() 124 if (io_ctx->events[0] == WSA_INVALID_EVENT) in setup_cancel() 127 io_ctx->events[1] = WSACreateEvent(); in setup_cancel() 128 if (io_ctx->events[1] == WSA_INVALID_EVENT) { in setup_cancel() 129 WSACloseEvent(io_ctx->events[0]); in setup_cancel() 136 static void cleanup_cancel(struct iio_network_io_context *io_ctx) in cleanup_cancel() argument 138 WSACloseEvent(io_ctx->events[0]); in cleanup_cancel() [all …]
|
D | usb.c | 76 struct iio_usb_io_context io_ctx; member 83 struct iio_usb_io_context io_ctx; member 122 static int usb_io_context_init(struct iio_usb_io_context *io_ctx) in usb_io_context_init() argument 124 io_ctx->lock = iio_mutex_create(); in usb_io_context_init() 125 if (!io_ctx->lock) in usb_io_context_init() 131 static void usb_io_context_exit(struct iio_usb_io_context *io_ctx) in usb_io_context_exit() argument 133 if (io_ctx->lock) { in usb_io_context_exit() 134 iio_mutex_destroy(io_ctx->lock); in usb_io_context_exit() 135 io_ctx->lock = NULL; in usb_io_context_exit() 143 &ctx->pdata->io_ctx, major, minor, git_tag); in usb_get_version() [all …]
|
/external/ltp/testcases/kernel/io/aio/ |
D | aio01.c | 80 io_context_t io_ctx; /* I/O Context */ variable 134 TEST(io_submit(io_ctx, 1, iocbs)); in main() 142 while (io_getevents(io_ctx, 1, 1, &event, &ts) != 1) ; in main() 165 TEST(io_submit(io_ctx, 1, iocbs)); in main() 173 while (io_getevents(io_ctx, 1, 1, &event, &ts) != 1) ; in main() 196 TEST(io_submit(io_ctx, 1, iocbs)); in main() 204 while (io_getevents(io_ctx, 1, 1, &event, &ts) != 1) ; in main() 227 TEST(io_submit(io_ctx, 1, iocbs)); in main() 235 while (io_getevents(io_ctx, 1, 1, &event, &ts) != 1) ; in main() 258 TEST(io_submit(io_ctx, 1, iocbs)); in main() [all …]
|
/external/autotest/client/tests/aiostress/ |
D | aio-stress.c | 215 io_context_t io_ctx; member 482 nr = io_getevents(t->io_ctx, min_nr, t->num_global_events, t->events,NULL); in read_some_events() 484 nr = io_getevents(t->io_ctx, t->num_global_events, t->events, NULL); in read_some_events() 543 while(io_getevents(t->io_ctx, 1, 1, &event, NULL) > 0) { 545 while(io_getevents(t->io_ctx, 1, &event, NULL) > 0) { 747 ret = io_submit(t->io_ctx, num_ios, my_iocbs); 916 void aio_setup(io_context_t *io_ctx, int n) argument 918 int res = io_queue_init(n, io_ctx); 1103 aio_setup(&t->io_ctx, 512); 1207 io_queue_release(t->io_ctx);
|
/external/ltp/testcases/kernel/io/ltp-aiodio/ |
D | aio-stress.c | 217 io_context_t io_ctx; member 496 nr = io_getevents(t->io_ctx, min_nr, t->num_global_events, t->events, in read_some_events() 499 nr = io_getevents(t->io_ctx, t->num_global_events, t->events, NULL); in read_some_events() 559 while (io_getevents(t->io_ctx, 1, 1, &event, NULL) > 0) { 561 while (io_getevents(t->io_ctx, 1, &event, NULL) > 0) { 763 ret = io_submit(t->io_ctx, num_ios, my_iocbs); 936 void aio_setup(io_context_t * io_ctx, int n) argument 938 int res = io_queue_init(n, io_ctx); 1123 aio_setup(&t->io_ctx, 512); 1231 io_queue_release(t->io_ctx);
|