Searched refs:nb_attrs (Results 1 – 10 of 10) sorted by relevance
346 unsigned int nb_attrs = iio_channel_get_attrs_count(ch); in main() local347 if (!nb_attrs) in main()351 nb_attrs); in main()354 for (k = 0; k < nb_attrs; k++) { in main()371 unsigned int nb_attrs = iio_device_get_attrs_count(dev); in main() local372 if (nb_attrs) { in main()374 nb_attrs); in main()375 for (j = 0; j < nb_attrs; j++) { in main()393 nb_attrs = iio_device_get_buffer_attrs_count(dev); in main()394 if (nb_attrs) { in main()[all …]
584 unsigned int nb_attrs, nb_channels, j; in main() local605 unsigned int k, nb_attrs; in main() local671 nb_attrs = iio_channel_get_attrs_count(ch); in main()674 nb_attrs); in main()676 if (!nb_attrs || !channel_index) in main()679 for (k = 0; k < nb_attrs; k++) { in main()693 nb_attrs = iio_device_get_attrs_count(dev); in main()695 printf("found %u device attributes\n", nb_attrs); in main()697 if (search_device && device_index && nb_attrs) { in main()699 for (j = 0; j < nb_attrs; j++) { in main()[all …]
65 for (i = 0; i < ctx->nb_attrs; i++) in iio_context_create_xml()108 for (i = 0; i < ctx->nb_attrs; i++) in iio_context_create_xml()157 for (i = 0; i < ctx->nb_attrs; i++) { in iio_context_destroy()161 if (ctx->nb_attrs) { in iio_context_destroy()375 return ctx->nb_attrs; in iio_context_get_attrs_count()381 if (index >= ctx->nb_attrs) in iio_context_get_attr()396 for (i = 0; i < ctx->nb_attrs; i++) { in iio_context_get_attr_value()410 (ctx->nb_attrs + 1) * sizeof(*ctx->attrs)); in iio_context_add_attr()417 (ctx->nb_attrs + 1) * sizeof(*ctx->values)); in iio_context_add_attr()433 ctx->attrs[ctx->nb_attrs] = new_key; in iio_context_add_attr()[all …]
186 if (chn->nb_attrs + pdata->nb_protected_attrs < 2) in set_channel_name()189 if (chn->nb_attrs) in set_channel_name()203 for (i = 1; can_fix && i < chn->nb_attrs; i++) in set_channel_name()206 for (i = !chn->nb_attrs; in set_channel_name()231 for (i = 0; i < chn->nb_attrs; i++) in set_channel_name()529 nb = dev->nb_attrs; in local_read_all_dev_attrs()567 for (i = 0; len >= 4 && i < chn->nb_attrs; i++) { in local_read_all_chn_attrs()620 nb = dev->nb_attrs; in local_write_all_dev_attrs()661 unsigned int i, nb = chn->nb_attrs; in local_write_all_chn_attrs()770 for (i = 0; i < chn->nb_attrs; i++) in get_filename()[all …]
54 attrs = realloc(chn->attrs, (1 + chn->nb_attrs) * in add_attr_to_channel()59 attrs[chn->nb_attrs].filename = filename; in add_attr_to_channel()60 attrs[chn->nb_attrs++].name = name; in add_attr_to_channel()98 (1 + dev->nb_attrs) * sizeof(char *)); in add_attr_to_device()117 attrs[dev->nb_attrs++] = name; in add_attr_to_device()409 for (i = 0; i < ctx->nb_attrs; i++) { in iio_create_xml_context_helper()
233 attrs_len = malloc(chn->nb_attrs * sizeof(*attrs_len)); in iio_channel_get_xml()237 attrs = malloc(chn->nb_attrs * sizeof(*attrs)); in iio_channel_get_xml()241 for (i = 0; i < chn->nb_attrs; i++) { in iio_channel_get_xml()269 for (i = 0; i < chn->nb_attrs; i++) { in iio_channel_get_xml()327 return chn->nb_attrs; in iio_channel_get_attrs_count()333 if (index >= chn->nb_attrs) in iio_channel_get_attr()343 for (i = 0; i < chn->nb_attrs; i++) { in iio_channel_find_attr()419 for (i = 0; i < chn->nb_attrs; i++) { in free_channel()423 if (chn->nb_attrs) in free_channel()732 for (i = 0; i < chn->nb_attrs; i++) { in iio_channel_attr_get_filename()
74 attrs_len = malloc(dev->nb_attrs * sizeof(*attrs_len)); in iio_device_get_xml()78 attrs = malloc(dev->nb_attrs * sizeof(*attrs)); in iio_device_get_xml()82 for (i = 0; i < dev->nb_attrs; i++) { in iio_device_get_xml()167 for (i = 0; i < dev->nb_attrs; i++) { in iio_device_get_xml()267 return dev->nb_attrs; in iio_device_get_attrs_count()273 if (index >= dev->nb_attrs) in iio_device_get_attr()283 for (i = 0; i < dev->nb_attrs; i++) { in iio_device_find_attr()511 for (i = 0; i < dev->nb_attrs; i++) in free_device()513 if (dev->nb_attrs) in free_device()854 for (j = 0; j < ch->nb_attrs; j++) { in iio_device_identify_filename()[all …]
169 unsigned int nb_attrs; member186 unsigned int nb_attrs; member199 unsigned int nb_attrs; member
143 uint nb_attrs = iio_channel_get_attrs_count(chn); in Channel()145 for (uint i = 0; i < nb_attrs; i++) in Channel()
164 nb_attrs = iio_device_get_attrs_count(dev), in Device()170 for (uint i = 0; i < nb_attrs; i++) in Device()