Home
last modified time | relevance | path

Searched refs:ent (Results 1 – 6 of 6) sorted by relevance

/hardware/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/
Diio_utils.h109 const struct dirent *ent; in iioutils_get_type() local
132 while (ent = readdir(dp), ent != NULL) in iioutils_get_type()
137 if ((strcmp(builtname, ent->d_name) == 0) || in iioutils_get_type()
138 (strcmp(builtname_generic, ent->d_name) == 0)) { in iioutils_get_type()
140 "%s/%s", scan_el_dir, ent->d_name); in iioutils_get_type()
203 const struct dirent *ent; in iioutils_get_param_float() local
221 while (ent = readdir(dp), ent != NULL) in iioutils_get_param_float()
222 if ((strcmp(builtname, ent->d_name) == 0) || in iioutils_get_param_float()
223 (strcmp(builtname_generic, ent->d_name) == 0)) { in iioutils_get_param_float()
225 "%s/%s", device_dir, ent->d_name); in iioutils_get_param_float()
[all …]
/hardware/invensense/6515/libsensors_iio/software/simple_apps/mpu_iio/
Diio_utils.h111 const struct dirent *ent; in iioutils_get_type() local
134 while (ent = readdir(dp), ent != NULL) in iioutils_get_type()
139 if ((strcmp(builtname, ent->d_name) == 0) || in iioutils_get_type()
140 (strcmp(builtname_generic, ent->d_name) == 0)) { in iioutils_get_type()
142 "%s/%s", scan_el_dir, ent->d_name); in iioutils_get_type()
205 const struct dirent *ent; in iioutils_get_param_float() local
223 while (ent = readdir(dp), ent != NULL) in iioutils_get_param_float()
224 if ((strcmp(builtname, ent->d_name) == 0) || in iioutils_get_param_float()
225 (strcmp(builtname_generic, ent->d_name) == 0)) { in iioutils_get_param_float()
227 "%s/%s", device_dir, ent->d_name); in iioutils_get_param_float()
[all …]
/hardware/invensense/6515/libsensors_iio/software/simple_apps/devnode_parser/
Diio_utils.h111 const struct dirent *ent; in iioutils_get_type() local
134 while (ent = readdir(dp), ent != NULL) in iioutils_get_type()
139 if ((strcmp(builtname, ent->d_name) == 0) || in iioutils_get_type()
140 (strcmp(builtname_generic, ent->d_name) == 0)) { in iioutils_get_type()
142 "%s/%s", scan_el_dir, ent->d_name); in iioutils_get_type()
205 const struct dirent *ent; in iioutils_get_param_float() local
223 while (ent = readdir(dp), ent != NULL) in iioutils_get_param_float()
224 if ((strcmp(builtname, ent->d_name) == 0) || in iioutils_get_param_float()
225 (strcmp(builtname_generic, ent->d_name) == 0)) { in iioutils_get_param_float()
227 "%s/%s", device_dir, ent->d_name); in iioutils_get_param_float()
[all …]
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/
Dml_sysfs_helper.c59 const struct dirent *ent; in find_type_by_name() local
73 while (ent = readdir(dp), ent != NULL) { in find_type_by_name()
74 if (strcmp(ent->d_name, ".") != 0 && in find_type_by_name()
75 strcmp(ent->d_name, "..") != 0 && in find_type_by_name()
76 strlen(ent->d_name) > strlen(type) && in find_type_by_name()
77 strncmp(ent->d_name, type, strlen(type)) == 0) { in find_type_by_name()
78 numstrlen = sscanf(ent->d_name + strlen(type), in find_type_by_name()
82 if (strncmp(ent->d_name + strlen(type) + numstrlen, in find_type_by_name()
304 const struct dirent *ent; in find_name_by_sensor_type() local
317 while (ent = readdir(dp), ent != NULL) { in find_name_by_sensor_type()
[all …]
/hardware/invensense/6515/libsensors_iio/software/core/mllite/linux/
Dml_sysfs_helper.c67 const struct dirent *ent; in find_type_by_name() local
81 while (ent = readdir(dp), ent != NULL) { in find_type_by_name()
82 if (strcmp(ent->d_name, ".") != 0 && in find_type_by_name()
83 strcmp(ent->d_name, "..") != 0 && in find_type_by_name()
84 strlen(ent->d_name) > strlen(type) && in find_type_by_name()
85 strncmp(ent->d_name, type, strlen(type)) == 0) { in find_type_by_name()
86 numstrlen = sscanf(ent->d_name + strlen(type), in find_type_by_name()
90 if (strncmp(ent->d_name + strlen(type) + numstrlen, in find_type_by_name()
312 const struct dirent *ent; in find_name_by_sensor_type() local
325 while (ent = readdir(dp), ent != NULL) { in find_name_by_sensor_type()
[all …]
/hardware/bsp/intel/peripheral/libmraa/src/iio/
Diio.c76 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()
[all …]