Lines Matching refs:ent

76     const struct dirent* ent;  in mraa_iio_get_channel_data()  local
93 while ((ent = readdir(dir)) != NULL) { in mraa_iio_get_channel_data()
94 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), "_en") == 0) { in mraa_iio_get_channel_data()
108 while ((ent = readdir(dir)) != NULL) { in mraa_iio_get_channel_data()
109 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_index"), "_index") == 0) { in mraa_iio_get_channel_data()
110 … snprintf(buf, MAX_SIZE, IIO_SYSFS_DEVICE "%d/" IIO_SCAN_ELEM "/%s", dev->num, ent->d_name); in mraa_iio_get_channel_data()
364 const struct dirent* ent; in mraa_iio_get_event_data() local
379 while ((ent = readdir(dir)) != NULL) { in mraa_iio_get_event_data()
380 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), "_en") == 0) { in mraa_iio_get_event_data()
398 while ((ent = readdir(dir)) != NULL) { in mraa_iio_get_event_data()
399 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), "_en") == 0) { in mraa_iio_get_event_data()
401 event->name = strdup(ent->d_name); in mraa_iio_get_event_data()
402 … snprintf(buf, MAX_SIZE, IIO_SYSFS_DEVICE "%d/" IIO_EVENTS "/%s", dev->num, ent->d_name); in mraa_iio_get_event_data()
585 const struct dirent* ent; in mraa_iio_update_channels() local
598 while ((ent = readdir(dir)) != NULL) { in mraa_iio_update_channels()
599 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_index"), "_index") == 0) { in mraa_iio_update_channels()
600 … snprintf(buf, MAX_SIZE, IIO_SYSFS_DEVICE "%d/" IIO_SCAN_ELEM "/%s", dev->num, ent->d_name); in mraa_iio_update_channels()