Home
last modified time | relevance | path

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

/external/libiio/src/
Dcontext.c70 if (ctx->nb_devices) { in iio_context_create_xml()
71 devices_len = malloc(ctx->nb_devices * sizeof(*devices_len)); in iio_context_create_xml()
77 devices = calloc(ctx->nb_devices, sizeof(*devices)); in iio_context_create_xml()
81 for (i = 0; i < ctx->nb_devices; i++) { in iio_context_create_xml()
113 for (i = 0; i < ctx->nb_devices; i++) { in iio_context_create_xml()
125 for (i = 0; i < ctx->nb_devices; i++) in iio_context_create_xml()
165 for (i = 0; i < ctx->nb_devices; i++) in iio_context_destroy()
167 if (ctx->nb_devices) in iio_context_destroy()
178 return ctx->nb_devices; in iio_context_get_devices_count()
184 if (index >= ctx->nb_devices) in iio_context_get_device()
[all …]
Dxml.c386 devs = realloc(ctx->devices, (1 + ctx->nb_devices) * in iio_create_xml_context_helper()
394 devs[ctx->nb_devices++] = dev; in iio_create_xml_context_helper()
405 for (i = 0; i < ctx->nb_devices; i++) in iio_create_xml_context_helper()
407 if (ctx->nb_devices) in iio_create_xml_context_helper()
Dlocal.c158 for (i = 0; i < ctx->nb_devices; i++) { in local_shutdown()
1087 nb = dev->ctx->nb_devices; in local_get_trigger()
1373 (ctx->nb_devices + 1) * sizeof(struct iio_device *)); in add_device_to_context()
1377 devices[ctx->nb_devices++] = dev; in add_device_to_context()
1907 for (i = 0; i < ctx->nb_devices; i++) { in init_scan_elements()
2008 qsort(ctx->devices, ctx->nb_devices, sizeof(struct iio_device *), in local_create_context()
Diiod-client.c211 unsigned int i, nb_devices = iio_context_get_devices_count(ctx); in iiod_client_get_trigger() local
240 for (i = 0; i < nb_devices; i++) { in iiod_client_get_trigger()
Dusb.c408 for (i = 0; i < ctx->nb_devices; i++) in usb_shutdown()
420 for (i = 0; i < ctx->nb_devices; i++) { in usb_shutdown()
952 for (i = 0; i < ctx->nb_devices; i++) { in usb_create_context()
Diio-private.h163 unsigned int nb_devices; member
Dnetwork.c1214 for (i = 0; i < ctx->nb_devices; i++) { in network_shutdown()
1565 for (i = 0; i < ctx->nb_devices; i++) { in network_create_context()
/external/libiio/src/examples/
Diio-monitor.c284 unsigned int i, nb_devices; in show_main_screen() local
295 nb_devices = iio_context_get_devices_count(ctx); in show_main_screen()
296 dev_names = malloc(nb_devices * sizeof(char *)); in show_main_screen()
298 for (i = 0; i < nb_devices; i++) { in show_main_screen()
311 dev_names, nb_devices, FALSE, in show_main_screen()
326 for (i = 0; i < nb_devices; i++) in show_main_screen()
/external/libiio/src/tests/
Diio_adi_xflow_check.c85 unsigned int i, nb_devices = iio_context_get_devices_count(ctx); in get_device() local
88 for (i = 0; i < nb_devices; i++) { in get_device()
98 if (i < nb_devices) in get_device()
Diio_info.c292 unsigned int nb_devices = iio_context_get_devices_count(ctx); in main() local
293 printf("IIO context has %u devices:\n", nb_devices); in main()
295 for (i = 0; i < nb_devices; i++) { in main()
Diio_attr.c576 unsigned int nb_devices = iio_context_get_devices_count(ctx); in main() local
579 printf("IIO context has %u devices:\n", nb_devices); in main()
581 for (i = 0; i < nb_devices; i++) { in main()
/external/libiio/src/bindings/csharp/
DContext.cs142 uint nb_devices = iio_context_get_devices_count(ctx); in Context()
145 for (uint i = 0; i < nb_devices; i++) in Context()
/external/libiio/src/bindings/matlab/
Dlibiio_if.m174 nb_devices = calllib(obj.libname, 'iio_context_get_devices_count', obj.iio_ctx); variable
177 if(nb_devices == 0)
181 … msg_log = [msg_log sprintf('%s: Found %d devices in the system\n', class(obj), nb_devices)];
185 for i = 0 : nb_devices - 1
Dlibiio_if_daq2.m174 nb_devices = calllib(obj.libname, 'iio_context_get_devices_count', obj.iio_ctx); variable
177 if(nb_devices == 0)
181 … msg_log = [msg_log sprintf('%s: Found %d devices in the system\n', class(obj), nb_devices)];
185 for i = 0 : nb_devices - 1
/external/libiio/src/iiod/
Dops.c1412 for (i = 0; i < ctx->nb_devices; i++) in interpreter()