Home
last modified time | relevance | path

Searched refs:ent (Results 1 – 13 of 13) 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/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/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/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/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/libhardware/modules/camera/3_4/
Dv4l2_camera_hal.cpp64 dirent* ent; in V4L2CameraHAL() local
66 while ((ent = readdir(dir))) { in V4L2CameraHAL()
69 if (strncmp(desired.c_str(), ent->d_name, len) == 0) { in V4L2CameraHAL()
70 if (strlen(ent->d_name) > len && isdigit(ent->d_name[len])) { in V4L2CameraHAL()
72 nodes.push_back(std::string("/dev/") + ent->d_name); in V4L2CameraHAL()
/hardware/google/pixel/powerstats/dataproviders/
DIioEnergyMeterDataProvider.cpp41 struct dirent *ent; in findIioEnergyMeterNodes() local
50 while (ent = readdir(iioDir), ent) { in findIioEnergyMeterNodes()
51 std::string devTypeDir = ent->d_name; in findIioEnergyMeterNodes()
/hardware/interfaces/power/stats/1.0/default/
DPowerStats.cpp49 struct dirent* ent; in findIioPowerMonitorNodes() local
58 while (ent = readdir(iioDir), ent) { in findIioPowerMonitorNodes()
59 if (strcmp(ent->d_name, ".") != 0 && strcmp(ent->d_name, "..") != 0 && in findIioPowerMonitorNodes()
60 strlen(ent->d_name) > strlen(kDeviceType) && in findIioPowerMonitorNodes()
61 strncmp(ent->d_name, kDeviceType, strlen(kDeviceType)) == 0) { in findIioPowerMonitorNodes()
62 snprintf(filePath, MAX_FILE_PATH_LEN, "%s/%s", ent->d_name, "name"); in findIioPowerMonitorNodes()
75 snprintf(filePath, MAX_FILE_PATH_LEN, "%s/%s", kIioDirRoot, ent->d_name); in findIioPowerMonitorNodes()
/hardware/google/pixel/perfstatsd/
Dcpu_usage.cpp77 struct dirent *ent; in profileProcess() local
81 while ((ent = readdir(dir)) != NULL) { in profileProcess()
82 if (ent->d_type == DT_DIR) { in profileProcess()
83 std::string pidStr = ent->d_name; in profileProcess()
Dio_usage.cpp98 struct dirent *ent; in update() local
103 while ((ent = readdir(dir)) != NULL) { in update()
104 if (ent->d_type == DT_DIR) { in update()
106 if (android::base::ParseUint(ent->d_name, &pid)) { in update()
/hardware/google/gfxstream/guest/mesa/src/vulkan/device-select-layer/
Ddevice_select_layer.c574 vk_outarray_append_typed(VkPhysicalDevice, &out, ent) { in device_select_EnumeratePhysicalDevices()
575 *ent = selected_physical_devices[i]; in device_select_EnumeratePhysicalDevices()
640 vk_outarray_append_typed(VkPhysicalDeviceGroupProperties, &out, ent) { in device_select_EnumeratePhysicalDeviceGroups()
641 *ent = selected_physical_device_groups[i]; in device_select_EnumeratePhysicalDeviceGroups()
/hardware/google/gfxstream/guest/mesa/src/util/
Dxmlconfig.c1008 scandir_filter(const struct dirent *ent) in scandir_filter() argument
1013 if ((lstat(ent->d_name, &st) != 0) || in scandir_filter()
1020 if (ent->d_type != DT_REG && ent->d_type != DT_LNK && ent->d_type != DT_UNKNOWN) in scandir_filter()
1024 int len = strlen(ent->d_name); in scandir_filter()
1025 if (len <= 5 || strcmp(ent->d_name + len - 5, ".conf")) in scandir_filter()
/hardware/google/pixel/thermal/utils/
Dpower_files.cpp159 while (struct dirent *ent = readdir(dir.get())) { in findEnergySourceToWatch() local
160 std::string devTypeDir = ent->d_name; in findEnergySourceToWatch()