• Home
  • Raw
  • Download

Lines Matching refs:ent

99 	const struct dirent *ent;  in iioutils_get_type()  local
123 while (ent = readdir(dp), ent) in iioutils_get_type()
128 if ((strcmp(builtname, ent->d_name) == 0) || in iioutils_get_type()
129 (strcmp(builtname_generic, ent->d_name) == 0)) { in iioutils_get_type()
131 "%s/%s", scan_el_dir, ent->d_name); in iioutils_get_type()
225 const struct dirent *ent; in iioutils_get_param_float() local
245 while (ent = readdir(dp), ent) in iioutils_get_param_float()
246 if ((strcmp(builtname, ent->d_name) == 0) || in iioutils_get_param_float()
247 (strcmp(builtname_generic, ent->d_name) == 0)) { in iioutils_get_param_float()
249 "%s/%s", device_dir, ent->d_name); in iioutils_get_param_float()
319 const struct dirent *ent; in build_channel_array() local
334 while (ent = readdir(dp), ent) in build_channel_array()
335 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array()
338 "%s/%s", scan_el_dir, ent->d_name); in build_channel_array()
379 while (ent = readdir(dp), ent) { in build_channel_array()
380 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array()
386 "%s/%s", scan_el_dir, ent->d_name); in build_channel_array()
425 current->name = strndup(ent->d_name, in build_channel_array()
426 strlen(ent->d_name) - in build_channel_array()
565 const struct dirent *ent; in find_type_by_name() local
579 while (ent = readdir(dp), ent) { in find_type_by_name()
580 if (strcmp(ent->d_name, ".") != 0 && in find_type_by_name()
581 strcmp(ent->d_name, "..") != 0 && in find_type_by_name()
582 strlen(ent->d_name) > strlen(type) && in find_type_by_name()
583 strncmp(ent->d_name, type, strlen(type)) == 0) { in find_type_by_name()
585 ret = sscanf(ent->d_name + strlen(type), "%d", &number); in find_type_by_name()
600 if (strncmp(ent->d_name + strlen(type) + numstrlen, in find_type_by_name()