Home
last modified time | relevance | path

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

123

/hardware/qcom/wlan/wcn6740/qcwcn/wpa_supplicant_8_lib/
Ddriver_cmd_nl80211_extn.c119 if (strncmp(entry->d_name, "libwpa_drv_oem", 14)) in wpa_driver_oem_initialize()
122 wpa_printf(MSG_DEBUG, "%s: Opening lib %s", __FUNCTION__, entry->d_name); in wpa_driver_oem_initialize()
123 oem_handle_n = dlopen(entry->d_name, RTLD_NOW); in wpa_driver_oem_initialize()
126 wpa_printf(MSG_ERROR, "%s: Could not load %s", __FUNCTION__, entry->d_name); in wpa_driver_oem_initialize()
131 if (strlen(entry->d_name) >= (sizeof(cb_sym_name) - sizeof(CB_SUFFIX))) { in wpa_driver_oem_initialize()
132 wpa_printf(MSG_ERROR, "%s: libname (%s) too lengthy", __FUNCTION__, entry->d_name); in wpa_driver_oem_initialize()
136 os_strlcpy(cb_sym_name, entry->d_name, sizeof(cb_sym_name)); in wpa_driver_oem_initialize()
139 wpa_printf(MSG_ERROR, "%s: libname (%s) incorrect?", __FUNCTION__, entry->d_name); in wpa_driver_oem_initialize()
/hardware/interfaces/wifi/aidl/default/
Dwifi_legacy_hal_factory.cpp41 stat(entryPtr->d_name, &entryStat); in isDirectory()
146 if (!isFileExtension(entryPtr->d_name, kVendorHalsDescExt)) in initVendorHalsDescriptorList()
149 LOG(INFO) << "processing config file: " << entryPtr->d_name; in initVendorHalsDescriptorList()
153 fullPath.append(entryPtr->d_name); in initVendorHalsDescriptorList()
156 LOG(ERROR) << "failed to parse: " << entryPtr->d_name << " skipping..."; in initVendorHalsDescriptorList()
161 LOG(ERROR) << "empty config file: " << entryPtr->d_name << " skipping..."; in initVendorHalsDescriptorList()
165 LOG(ERROR) << "bad config, root element not WifiVendorHal: " << entryPtr->d_name in initVendorHalsDescriptorList()
171 LOG(ERROR) << "conf file: " << entryPtr->d_name in initVendorHalsDescriptorList()
191 LOG(ERROR) << "hal library path not provided in: " << entryPtr->d_name in initVendorHalsDescriptorList()
/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/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/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/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/google/pixel/usb/
DI2cHelper.cpp44 if (string::npos != string(ep->d_name).find("i2c-")) { in getI2cBusNumberString()
45 std::strtok(ep->d_name, "-"); in getI2cBusNumberString()
92 if (string::npos != string(ep->d_name).find(devName)) { in getI2cClientPath()
96 if (string::npos != string(ep->d_name).find(i2cClientDevice)) { in getI2cClientPath()
DUsbBusHelper.cpp39 if (string::npos != string(ep->d_name).find(string(busType + "-"))) { in getBusNumberString()
40 std::strtok(ep->d_name, "-"); in getBusNumberString()
95 if (!devName.empty() && string::npos != string(ep->d_name).find(devName)) { in getBusClientPath()
99 if (string::npos != string(ep->d_name).find(busClientDevice)) { in getBusClientPath()
/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/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/google/gfxstream/guest/platform/fuchsia/
Dos_dirent_fuchsia.cpp57 static_assert(sizeof(entry->d_name) >= ZXIO_MAX_FILENAME); in Next()
58 zxio_dirent_t dirent = {.name = entry->d_name}; in Next()
67 entry->d_name[dirent.name_length] = '\0'; in Next()
DFuchsiaVirtGpuDevice.cpp119 ALOGD("Got name %s", de->d_name); in createPlatformVirtGpuDevice()
121 if (strcmp(de->d_name, ".") == 0) { in createPlatformVirtGpuDevice()
125 char name[sizeof(kDevGpu) + sizeof('/') + sizeof(de->d_name) + 1]; in createPlatformVirtGpuDevice()
126 snprintf(name, sizeof(name), "%s/%s", kDevGpu, de->d_name); in createPlatformVirtGpuDevice()
/hardware/google/graphics/common/memtrack-pixel/core/
Dfilesystem.cpp59 if (!strcmp(dent->d_name, ".") || !strcmp(dent->d_name, "..")) in directory_iterator()
63 ss << "/" << dent->d_name; in directory_iterator()
/hardware/qcom/sm8150/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/google/pixel/rebalance_interrupts/
Drebalance_interrupts.cpp134 if (!ParseUint(entry->d_name, &throwaway)) in GetIrqmap()
137 some_success |= AddEntryToIrqmap(entry->d_name, action_to_irqs); in GetIrqmap()
239 if (!ParseUint(entry->d_name, &throwaway)) in ChownIrqAffinity()
243 affinity_path += entry->d_name; in ChownIrqAffinity()
248 affinity_list_path += entry->d_name; in ChownIrqAffinity()
/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.0/vts/functional/
Dvendor_modules.cpp43 ALOGD("checking file %s", entry->d_name); in scanModules()
44 string fullpath = directory + "/" + entry->d_name; in scanModules()
/hardware/interfaces/drm/1.0/default/include/
DPluginLoader.h50 String8 file(pEntry->d_name); in PluginLoader()
52 String8 path = pluginDir + "/" + pEntry->d_name; in PluginLoader()
/hardware/google/aemu/base/include/aemu/base/testing/
DTestTempDir.h163 if (!strcmp(entry->d_name, ".") || !strcmp(entry->d_name, "..")) { in DeleteRecursive()
166 std::string entry_path = StringFormat("%s/%s", path, entry->d_name); in DeleteRecursive()
/hardware/google/gfxstream/guest/mesa/src/util/
Ddisk_cache_os.c215 if (fstatat(dir_fd, dir_ent->d_name, &st, AT_SYMLINK_NOFOLLOW) == 0) { in choose_lru_file_matching()
240 if (fstatat(dir_fd, dir_ent->d_name, &sb, 0) == 0) { in choose_lru_file_matching()
246 size_t len = strlen(dir_ent->d_name); in choose_lru_file_matching()
247 if (!predicate(dir_path, &sb, dir_ent->d_name, len)) in choose_lru_file_matching()
283 memcpy(entry->lru_name, dir_ent->d_name, len + 1); in choose_lru_file_matching()
317 const char *d_name, const size_t len) in is_regular_non_tmp_file() argument
322 if (len >= 4 && strcmp(&d_name[len-4], ".tmp") == 0) in is_regular_non_tmp_file()
355 const char *d_name, const size_t len) in is_two_character_sub_directory() argument
363 if (strcmp(d_name, "..") == 0) in is_two_character_sub_directory()
367 if (asprintf(&subdir, "%s/%s", path, d_name) == -1) in is_two_character_sub_directory()
/hardware/qcom/wlan/legacy/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()

123