Lines Matching refs:dp
95 DIR *dp; in iioutils_get_type() local
116 dp = opendir(scan_el_dir); in iioutils_get_type()
117 if (!dp) { in iioutils_get_type()
123 while (ent = readdir(dp), ent) in iioutils_get_type()
196 if (closedir(dp) == -1) in iioutils_get_type()
225 DIR *dp; in iioutils_get_param_float() local
241 dp = opendir(device_dir); in iioutils_get_param_float()
242 if (!dp) { in iioutils_get_param_float()
248 while (ent = readdir(dp), ent) in iioutils_get_param_float()
275 if (closedir(dp) == -1) in iioutils_get_param_float()
317 DIR *dp; in build_channel_array() local
331 dp = opendir(scan_el_dir); in build_channel_array()
332 if (!dp) { in build_channel_array()
337 while (ent = readdir(dp), ent) in build_channel_array()
381 seekdir(dp, 0); in build_channel_array()
382 while (ent = readdir(dp), ent) { in build_channel_array()
515 if (closedir(dp) == -1) { in build_channel_array()
535 if (dp) in build_channel_array()
536 if (closedir(dp) == -1) in build_channel_array()
572 DIR *dp; in find_type_by_name() local
576 dp = opendir(iio_dir); in find_type_by_name()
577 if (!dp) { in find_type_by_name()
582 while (ent = readdir(dp), ent) { in find_type_by_name()
638 if (closedir(dp) == -1) in find_type_by_name()
646 if (closedir(dp) == -1) in find_type_by_name()
652 if (closedir(dp) == -1) in find_type_by_name()