Home
last modified time | relevance | path

Searched refs:d_name (Results 1 – 25 of 36) sorted by relevance

12

/hardware/invensense/6515/libsensors_iio/software/simple_apps/devnode_parser/
Diio_utils.h139 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()
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()
303 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array()
306 "%s/%s", scan_el_dir, ent->d_name); in build_channel_array()
334 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()
[all …]
/hardware/invensense/6515/libsensors_iio/software/simple_apps/mpu_iio/
Diio_utils.h139 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()
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()
303 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array()
306 "%s/%s", scan_el_dir, ent->d_name); in build_channel_array()
334 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()
[all …]
/hardware/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/
Diio_utils.h137 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()
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()
302 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array()
305 "%s/%s", scan_el_dir, ent->d_name); in build_channel_array()
333 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array()
337 "%s/%s", scan_el_dir, ent->d_name); in build_channel_array()
[all …]
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/
Dml_sysfs_helper.c74 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()
318 if (strcmp(ent->d_name, ".") != 0 && in find_name_by_sensor_type()
319 strcmp(ent->d_name, "..") != 0 && in find_name_by_sensor_type()
320 strlen(ent->d_name) > strlen(type) && in find_name_by_sensor_type()
321 strncmp(ent->d_name, type, strlen(type)) == 0) { in find_name_by_sensor_type()
[all …]
/hardware/invensense/6515/libsensors_iio/software/core/mllite/linux/
Dml_sysfs_helper.c82 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()
326 if (strcmp(ent->d_name, ".") != 0 && in find_name_by_sensor_type()
327 strcmp(ent->d_name, "..") != 0 && in find_name_by_sensor_type()
328 strlen(ent->d_name) > strlen(type) && in find_name_by_sensor_type()
329 strncmp(ent->d_name, type, strlen(type)) == 0) { in find_name_by_sensor_type()
[all …]
/hardware/libhardware/tests/input/evdev/
DTestHelpers.cpp77 if (strcmp(entry->d_name, ".") == 0 || in ~TempDir()
78 strcmp(entry->d_name, "..") == 0) { in ~TempDir()
81 ALOGD("stale file %s, removing", entry->d_name); in ~TempDir()
82 unlink(entry->d_name); in ~TempDir()
/hardware/invensense/65xx/libsensors_iio/
DSensorBase.cpp161 if(de->d_name[0] == '.' && in openInput()
162 (de->d_name[1] == '\0' || in openInput()
163 (de->d_name[1] == '.' && de->d_name[2] == '\0'))) in openInput()
165 strcpy(filename, de->d_name); in openInput()
DMPLSupport.cpp298 LOGV_IF(0,"file name %s", ep->d_name); in read_sysfs_dir()
299 if(!strcmp(ep->d_name, ".") || !strcmp(ep->d_name, "..") || in read_sysfs_dir()
300 !strcmp(ep->d_name, "uevent") || !strcmp(ep->d_name, "dev") || in read_sysfs_dir()
301 !strcmp(ep->d_name, "self_test")) in read_sysfs_dir()
303 sprintf(full_path, "%s%s%s", sysfs_path, "/", ep->d_name); in read_sysfs_dir()
/hardware/invensense/6515/libsensors_iio/
DSensorBase.cpp164 if(de->d_name[0] == '.' && in openInput()
165 (de->d_name[1] == '\0' || in openInput()
166 (de->d_name[1] == '.' && de->d_name[2] == '\0'))) in openInput()
168 strcpy(filename, de->d_name); in openInput()
DMPLSupport.cpp301 LOGV_IF(0,"file name %s", ep->d_name); in read_sysfs_dir()
302 if(!strcmp(ep->d_name, ".") || !strcmp(ep->d_name, "..") || in read_sysfs_dir()
303 !strcmp(ep->d_name, "uevent") || !strcmp(ep->d_name, "dev") || in read_sysfs_dir()
304 !strcmp(ep->d_name, "self_test")) in read_sysfs_dir()
306 sprintf(full_path, "%s%s%s", sysfs_path, "/", ep->d_name); in read_sysfs_dir()
/hardware/qcom/sdm845/thermal/
Dthermal_common.c158 if (strncmp(tdirent->d_name, TZ_DIR_NAME, in get_tzn()
162 tzdir = opendir(tdirent->d_name); in get_tzn()
166 if (strcmp(tzdirent->d_name, "type")) in get_tzn()
169 tdirent->d_name); in get_tzn()
173 __func__, tdirent->d_name); in get_tzn()
192 sscanf(tdirent->d_name, TZ_DIR_FMT, &tzn); in get_tzn()
/hardware/libhardware/modules/camera/3_4/
Dv4l2_camera_hal.cpp69 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/drm/1.2/vts/functional/
Dvendor_modules.cpp42 ALOGD("checking file %s", entry->d_name); in scanModules()
43 string fullpath = directory + "/" + entry->d_name; in scanModules()
/hardware/interfaces/drm/1.0/vts/functional/
Dvendor_modules.cpp42 ALOGD("checking file %s", entry->d_name); in scanModules()
43 string fullpath = directory + "/" + entry->d_name; in scanModules()
/hardware/interfaces/drm/1.0/default/include/
DPluginLoader.h48 String8 file(pEntry->d_name); in PluginLoader()
50 String8 path = pluginDir + "/" + pEntry->d_name; in PluginLoader()
/hardware/qcom/wlan/qcwcn/wcnss-service/
Dwcnss_service.c247 rc = lstat(dr->d_name, &st); in find_full_path()
253 if ((strcmp(dr->d_name, ".")) && in find_full_path()
254 (strcmp(dr->d_name, ".."))) { in find_full_path()
255 find_full_path(dr->d_name, in find_full_path()
258 } else if (!strcmp(file_to_find, dr->d_name)) { in find_full_path()
/hardware/interfaces/camera/provider/2.4/default/
DExternalCameraProviderImpl_2_4.cpp286 if (!strncmp(kPrefix, de->d_name, kPrefixLen)) { in threadLoop()
289 std::string deviceId(de->d_name + kPrefixLen); in threadLoop()
291 ALOGV("Non-internal v4l device %s found", de->d_name); in threadLoop()
294 "%s%s", kDevicePath, de->d_name); in threadLoop()
/hardware/interfaces/power/stats/1.0/default/
DPowerStats.cpp59 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/libhardware/modules/thermal/
Dthermal.c57 if (!strncmp(de->d_name, THERMAL_DIR, strlen(THERMAL_DIR))) { in get_temperatures()
58 snprintf(file_name, MAX_LENGTH, "%s/%s/temp", TEMPERATURE_DIR, de->d_name); in get_temperatures()
/hardware/qcom/audio/hal/audio_extn/
Dsndmonitor.c295 static int add_new_dev_event(char * d_name, int fd) in add_new_dev_event() argument
302 d->dev = strdup(d_name); in add_new_dev_event()
324 if (!strstr(in_file->d_name, "qc_")) in enum_dev_events()
328 events_dir, in_file->d_name); in enum_dev_events()
335 if (!add_new_dev_event(in_file->d_name, fd)) in enum_dev_events()
/hardware/google/pixel/usb/
DUsbGadgetUtils.cpp39 if ((strstr(function->d_name, FUNCTION_NAME) == NULL)) in unlinkFunctions()
42 sprintf(filepath, "%s/%s", path, function->d_name); in unlinkFunctions()
/hardware/interfaces/cas/1.0/default/
DFactoryLoader.h105 String8 pluginPath = dirPath + "/" + pEntry->d_name; in findFactoryForScheme()
142 String8 pluginPath = dirPath + "/" + pEntry->d_name; in enumeratePlugins()
/hardware/interfaces/cas/1.1/default/
DFactoryLoader.h98 String8 pluginPath = dirPath + "/" + pEntry->d_name; in findFactoryForScheme()
133 String8 pluginPath = dirPath + "/" + pEntry->d_name; in enumeratePlugins()
/hardware/broadcom/libbt/src/
Dhardware.c468 if ((hw_strncmp(dp->d_name, p_chip_id_str, strlen(p_chip_id_str)) \ in hw_config_findpatch()
472 filenamelen = strlen(dp->d_name); in hw_config_findpatch()
475 &dp->d_name[filenamelen-FW_PATCHFILE_EXTENSION_LEN], \ in hw_config_findpatch()
481 fw_patchfile_path, dp->d_name); in hw_config_findpatch()
500 strcat(p_chip_id_str, dp->d_name); in hw_config_findpatch()
/hardware/libhardware/modules/sensors/dynamic_sensor/
DConnectionDetector.cpp153 const std::string name(dp->d_name); in processExistingFiles()

12