/hardware/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/ |
D | iio_utils.h | 109 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/ |
D | iio_utils.h | 111 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/ |
D | iio_utils.h | 111 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/ |
D | ml_sysfs_helper.c | 59 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/ |
D | ml_sysfs_helper.c | 67 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/libhardware/modules/camera/3_4/ |
D | v4l2_camera_hal.cpp | 64 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/interfaces/power/stats/1.0/default/ |
D | PowerStats.cpp | 49 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/qcom/msm8998/json-c/ |
D | linkhash.c | 463 struct lh_entry *ent; in lh_table_resize() local 466 ent = t->head; in lh_table_resize() 467 while(ent) { in lh_table_resize() 468 lh_table_insert(new_t, ent->k, ent->v); in lh_table_resize() 469 ent = ent->next; in lh_table_resize()
|
D | json_object.c | 78 struct lh_entry *ent; in json_object_fini() local 85 lh_foreach(json_object_table, ent) in json_object_fini() 87 struct json_object* obj = (struct json_object*)ent->v; in json_object_fini() 356 static void json_object_lh_entry_free(struct lh_entry *ent) in json_object_lh_entry_free() argument 358 free(ent->k); in json_object_lh_entry_free() 359 json_object_put((struct json_object*)ent->v); in json_object_lh_entry_free()
|
/hardware/google/pixel/perfstatsd/ |
D | cpu_usage.cpp | 77 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()
|
D | io_usage.cpp | 98 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()
|