Lines Matching refs:dir
77 DIR* dir; in mraa_iio_get_channel_data() local
91 dir = opendir(buf); in mraa_iio_get_channel_data()
92 if (dir != NULL) { in mraa_iio_get_channel_data()
93 while ((ent = readdir(dir)) != NULL) { in mraa_iio_get_channel_data()
102 closedir(dir); in mraa_iio_get_channel_data()
107 seekdir(dir, 0); in mraa_iio_get_channel_data()
108 while ((ent = readdir(dir)) != NULL) { in mraa_iio_get_channel_data()
176 closedir(dir); in mraa_iio_get_channel_data()
365 DIR* dir; in mraa_iio_get_event_data() local
377 dir = opendir(buf); in mraa_iio_get_event_data()
378 if (dir != NULL) { in mraa_iio_get_event_data()
379 while ((ent = readdir(dir)) != NULL) { in mraa_iio_get_event_data()
387 closedir(dir); in mraa_iio_get_event_data()
393 closedir(dir); in mraa_iio_get_event_data()
396 rewinddir(dir); in mraa_iio_get_event_data()
398 while ((ent = readdir(dir)) != NULL) { in mraa_iio_get_event_data()
416 closedir(dir); in mraa_iio_get_event_data()
586 DIR* dir; in mraa_iio_update_channels() local
596 dir = opendir(buf); in mraa_iio_update_channels()
597 if (dir != NULL) { in mraa_iio_update_channels()
598 while ((ent = readdir(dir)) != NULL) { in mraa_iio_update_channels()
623 closedir(dir); in mraa_iio_update_channels()
642 closedir(dir); in mraa_iio_update_channels()