Home
last modified time | relevance | path

Searched refs:path (Results 76 – 100 of 6792) sorted by relevance

12345678910>>...272

/openbmc/linux/tools/perf/util/
H A Ddata.c26 zfree(&files[nr].path); in close_dir()
51 ret = asprintf(&file->path, "%s/data.%d", data->path, i); in perf_data__create_dir()
107 snprintf(path, sizeof(path), "%s/%s", data->path, dent->d_name); in perf_data__open_dir()
123 file->path = strdup(path); in perf_data__open_dir()
124 if (!file->path) in perf_data__open_dir()
176 if (!data->path) { in check_pipe()
215 data->path); in check_backup()
277 data->file.path); in open_file_read()
322 data->file.path = strdup(data->path); in open_file_dup()
337 if (asprintf(&data->file.path, "%s/data", data->path) < 0) in open_dir()
[all …]
H A Dpath.c16 if (!memcmp(path, "./", 2)) { in cleanup_path()
17 path += 2; in cleanup_path()
18 while (*path == '/') in cleanup_path()
19 path++; in cleanup_path()
21 return path; in cleanup_path()
61 char path[PATH_MAX]; in is_directory() local
64 snprintf(path, sizeof(path), "%s/%s", base_path, dent->d_name); in is_directory()
65 if (stat(path, &st)) in is_directory()
73 char path[PATH_MAX]; in is_executable_file() local
76 snprintf(path, sizeof(path), "%s/%s", base_path, dent->d_name); in is_executable_file()
[all …]
/openbmc/phosphor-led-manager/manager/lamptest/
H A Dlamptest.cpp13 static const fs::path lampTestIndicator =
30 [&path](const auto& name) { return name == path; }); in processLEDUpdates()
44 [&path](const auto& name) { return name == path; }); in processLEDUpdates()
76 [&path](const auto& skip) { return skip == path; }); in stop()
124 [&path](const auto& skipLed) { return skipLed == path; }); in storePhysicalLEDsStates()
229 [&path](const auto& skip) { return skip == path; }); in start()
323 void LampTest::getPhysicalLEDNamesFromJson(const fs::path& path) in getPhysicalLEDNamesFromJson() argument
325 if (!fs::exists(path) || fs::is_empty(path)) in getPhysicalLEDNamesFromJson()
328 "PATH", path); in getPhysicalLEDNamesFromJson()
334 std::ifstream jsonFile(path); in getPhysicalLEDNamesFromJson()
[all …]
/openbmc/openbmc/poky/scripts/lib/devtool/
H A Dupgrade.py21 sys.path = sys.path + [devtool_path]
44 dest_dir = os.path.join(dest, os.path.dirname(path))
46 dest_path = os.path.join(dest, path)
47 shutil.move(os.path.join(orig, path), dest_path)
69 shutil.move(os.path.join(path, olddir), os.path.join(path, newdir))
77 os.path.join(path, newfile))
84 shutil.move(os.path.join(path, oldrecipe), os.path.join(path, newrecipe))
87 return os.path.join(path, newrecipe)
102 brf = os.path.basename(os.path.splitext(rc)[0]) # rc basename
339 path = os.path.join(workspace, 'recipes', bpn)
[all …]
/openbmc/linux/tools/lib/api/fs/
H A Dfs.c93 char *path; member
167 fs->path = strdup(path); in fs__read_mounts()
196 if (!fs->path) in fs__check_mounts()
236 if (!fs->path) in fs__env_override()
248 assert(fs->path); in fs__init_once()
254 return fs->path; in fs__mountpoint()
421 snprintf(path, sizeof(path), "%s/%s", procfs, entry); in procfs__read_str()
435 snprintf(path, sizeof(path), "%s/%s", sysfs, entry); in sysfs__read_ull_base()
458 snprintf(path, sizeof(path), "%s/%s", sysfs, entry); in sysfs__read_int()
471 snprintf(path, sizeof(path), "%s/%s", sysfs, entry); in sysfs__read_str()
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/
H A Dgitarchivetests.py9 basepath = os.path.abspath(os.path.dirname(__file__) + '/../../../../../')
11 sys.path = sys.path + [lib_path]
48 def delete_fake_repository(path): argument
49 shutil.rmtree(path)
73 ga.gitarchive(path, path, True, False,
79 delete_fake_repository(path)
87 ga.gitarchive(path, path, True, False,
93 delete_fake_repository(path)
105 delete_fake_repository(path)
116 delete_fake_repository(path)
[all …]
H A Drecipetool.py72 filesdir = os.path.join(os.path.dirname(bbappendfile), testrecipe)
80 createdfiles.append(os.path.relpath(os.path.join(root, f), filesdir))
141 copiedfile = os.path.join(os.path.dirname(bbappendfile), 'coreutils', testfile2name)
319 createdfiles.append(os.path.relpath(os.path.join(root, f), exttemplayerdir))
399 if len(dirlist) < 1 or not os.path.isfile(os.path.join(temprecipe, dirlist[0])):
555 if len(dirlist) < 1 or not os.path.isfile(os.path.join(temprecipe, dirlist[0])):
1017 dstfile = os.path.join(dstdir, os.path.basename(srcfile))
1039 path for path in searchpath
1048 self.assertEqual(os.path.realpath(result.output), os.path.realpath(path))
1074 shutil.copy(os.path.join(commonlicdir, 'MIT'), os.path.join(srctree, 'LICENSE'))
[all …]
/openbmc/qemu/tests/qtest/
H A Dqos-test.c101 if (g_strcmp0(old_path, path)) { in restart_qemu_or_continue()
104 old_path = g_strdup(path); in restart_qemu_or_continue()
105 qtest_start(path); in restart_qemu_or_continue()
166 char **path = (char **) arg; in run_one_test() local
171 current_path = path; in run_one_test()
172 test_node = qos_graph_get_node(path[(g_strv_length(path) - 1)]); in run_one_test()
187 const gchar *path = arg; in subprocess_run_one_test() local
220 QOSGraphNode *path; in walk_path() local
244 path = qos_graph_get_node(node_name); in walk_path()
245 if (!path->path_edge) { in walk_path()
[all …]
H A Dtest-x86-cpuid-compat.c13 char *path; in get_cpu0_qom_path() local
22 return path; in get_cpu0_qom_path()
30 path, prop); in qom_get()
55 char *path; in test_cpuid_prop() local
60 path = get_cpu0_qom_path(); in test_cpuid_prop()
67 g_free(path); in test_cpuid_prop()
128 char *path; in test_feature_flag() local
133 path = get_cpu0_qom_path(); in test_feature_flag()
144 g_free(path); in test_feature_flag()
170 char *path; in test_plus_minus_subprocess() local
[all …]
/openbmc/bmcweb/test/include/
H A Ddbus_utility_test.cpp18 std::string path("/0th/1st/2nd/3rd"); in TEST() local
20 EXPECT_TRUE(getNthStringFromPath(path, 0, result)); in TEST()
22 EXPECT_TRUE(getNthStringFromPath(path, 1, result)); in TEST()
24 EXPECT_TRUE(getNthStringFromPath(path, 2, result)); in TEST()
26 EXPECT_TRUE(getNthStringFromPath(path, 3, result)); in TEST()
28 EXPECT_FALSE(getNthStringFromPath(path, 4, result)); in TEST()
30 path = "////0th///1st//\2nd///3rd?/"; in TEST()
31 EXPECT_TRUE(getNthStringFromPath(path, 0, result)); in TEST()
33 EXPECT_TRUE(getNthStringFromPath(path, 1, result)); in TEST()
35 EXPECT_TRUE(getNthStringFromPath(path, 2, result)); in TEST()
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/systemd/systemd-systemctl/
H A Dsystemctl30 self._parse(root, path)
31 dirname = os.path.basename(path.name) + ".d"
48 if path.is_symlink():
50 path.resolve()
53 path = root / Path(os.readlink(str(path))).relative_to(ROOT)
129 presets[path.name] = path
152 def add_link(path, target): argument
164 self.path = path
177 if path.exists() or path.is_symlink():
178 return path
[all …]
/openbmc/linux/fs/btrfs/
H A Duuid-tree.c42 if (!path) { in btrfs_uuid_tree_lookup()
56 eb = path->nodes[0]; in btrfs_uuid_tree_lookup()
57 slot = path->slots[0]; in btrfs_uuid_tree_lookup()
81 btrfs_free_path(path); in btrfs_uuid_tree_lookup()
110 if (!path) { in btrfs_uuid_tree_add()
119 eb = path->nodes[0]; in btrfs_uuid_tree_add()
128 eb = path->nodes[0]; in btrfs_uuid_tree_add()
145 btrfs_free_path(path); in btrfs_uuid_tree_add()
173 if (!path) { in btrfs_uuid_tree_remove()
189 eb = path->nodes[0]; in btrfs_uuid_tree_remove()
[all …]
/openbmc/phosphor-bmc-code-mgmt/
H A Dimage_verify.cpp39 Signature::Signature(const fs::path& imageDirPath, in Signature()
84 auto key = p.path().parent_path(); in getAvailableKeyTypesFromSystem()
125 fs::path pkeyFullFile(tmpFullFile); in verifyFullImage()
191 fs::path file(imageDirPath); in verify()
199 fs::path sigFile(file); in verify()
255 fs::path pkeyFileSig(pkeyFile); in systemLevelVerify()
260 fs::path manifestFileSig(manifestFile); in systemLevelVerify()
300 bool Signature::verifyFile(const fs::path& file, const fs::path& sigFile, in verifyFile()
405 CustomMap Signature::mapFile(const fs::path& path, size_t size) in mapFile() argument
423 fs::path file(filePath); in checkAndVerifyImage()
[all …]
/openbmc/linux/fs/
H A Dnamei.c569 struct path path; member
1013 nd->path = *path; in nd_jump_link()
1838 struct path path; in step_into() local
1859 nd->path = path; in step_into()
1882 struct path path; in follow_dotdot_rcu() local
1889 nd->path = path; in follow_dotdot_rcu()
1922 struct path path; in follow_dotdot() local
1928 nd->path = path; in follow_dotdot()
2505 struct path *path, struct path *root) in filename_lookup() argument
3740 struct path path; in do_tmpfile() local
[all …]
/openbmc/openbmc/poky/meta/lib/oe/
H A Dbuildhistory_analysis.py14 import os.path
61 self.path = path
219 self.path = path
280 path = path.split(' -> ')[0]
444 pkgname = os.path.basename(path)
631 path = os.path.dirname(d.a_blob.path)
633 filename = os.path.basename(d.a_blob.path)
649 filename = os.path.basename(d.a_blob.path)
681 path = os.path.dirname(d.b_blob.path)
683 filename = os.path.basename(d.b_blob.path)
[all …]
H A Dcopy_buildsystem.py87 if os.path.exists(layerconf):
104 elif os.path.commonpath([layer, corebase]) == os.path.dirname(corebase):
105 layer_relative = os.path.relpath(layer, os.path.dirname(corebase))
125 if os.path.exists(os.path.join(layerdestpath, 'conf/layer.conf')):
134 if os.path.isdir(srcdir):
139 … image_bbappend = os.path.splitext(os.path.basename(self.d.getVar('FILE')))[0] + '.bbappend'
141 if os.path.isdir(appenddir):
149 if os.path.exists(readme):
263 if os.path.isdir(nativedir):
268 dest = os.path.join(destdir, os.path.relpath(src, nativedir))
[all …]
/openbmc/u-boot/fs/btrfs/
H A Dinode.c14 struct btrfs_path path; in btrfs_lookup_inode_ref() local
20 &path); in btrfs_lookup_inode_ref()
43 btrfs_free_path(&path); in btrfs_lookup_inode_ref()
53 struct btrfs_path path; in btrfs_lookup_inode() local
82 btrfs_free_path(&path); in btrfs_lookup_inode()
88 struct btrfs_path path; in btrfs_readlink() local
134 btrfs_free_path(&path); in btrfs_readlink()
193 while (*path != '\0' && *path != '/' && res <= BTRFS_NAME_LEN) in next_length()
194 ++res, ++path; in next_length()
220 const char *cur = path; in btrfs_lookup_path()
[all …]
/openbmc/openbmc/poky/scripts/lib/
H A Dscriptpath.py11 import os.path
14 basepath = os.path.abspath(os.path.dirname(__file__) + '/../..')
16 sys.path.insert(0, newpath)
19 basepath = os.path.abspath(os.path.dirname(__file__) + '/../..')
21 if os.path.exists(basepath + '/bitbake/lib/bb'):
26 if os.path.exists(os.path.join(pth, '../lib/bb')):
27 bitbakepath = os.path.abspath(os.path.join(pth, '..'))
31 sys.path.insert(0, bitbakepath + '/lib')
/openbmc/linux/drivers/net/wireless/realtek/rtw88/
H A Drtw8822c.c126 for (path = 0; path < DACK_PATH_8822C; path++) { in rtw8822c_dac_backup_reg()
146 for (path = 0; path < DACK_PATH_8822C; path++) { in rtw8822c_dac_restore_reg()
1033 for (path = 0; path < rtwdev->hal.rf_path_num; path++) { in rtw8822c_set_power_trim()
1097 for (path = 0; path < rtwdev->hal.rf_path_num; path++) { in rtw8822c_thermal_trim()
1116 for (path = 0; path < rtwdev->hal.rf_path_num; path++) { in rtw8822c_pa_bias()
1124 for (path = 0; path < rtwdev->hal.rf_path_num; path++) { in rtw8822c_pa_bias()
2740 for (path = 0; path < hal->rf_path_num; path++) { in rtw8822c_set_write_tx_power_ref()
2745 for (path = 0; path < hal->rf_path_num; path++) { in rtw8822c_set_write_tx_power_ref()
3699 u8 path = data->path; in rtw8822c_loss_check_state() local
3723 data.path = path; in rtw8822c_dpk_pas_agc()
[all …]
/openbmc/qemu/fsdev/
H A Dvirtfs-proxy-helper.c421 V9fsString path; in do_getversion() local
449 v9fs_string_free(&path); in do_getversion()
460 v9fs_string_init(&path); in do_getxattr()
506 v9fs_string_free(&path); in do_getxattr()
555 V9fsString path; in do_stat() local
561 v9fs_string_init(&path); in do_stat()
602 v9fs_string_free(&path); in do_stat()
610 V9fsString target, path; in do_readlink() local
612 v9fs_string_init(&path); in do_readlink()
700 V9fsString path; in do_create() local
[all …]
/openbmc/linux/fs/autofs/
H A Ddev-ioctl.c185 int test(const struct path *path, void *data), in find_autofs_mount() argument
188 struct path path; in find_autofs_mount() local
195 while (path.dentry == path.mnt->mnt_root) { in find_autofs_mount()
211 static int test_by_dev(const struct path *path, void *p) in test_by_dev() argument
216 static int test_by_type(const struct path *path, void *p) in test_by_type() argument
234 struct path path; in autofs_dev_ioctl_open_mountpoint() local
273 path = param->path; in autofs_dev_ioctl_openmount()
425 struct path path; in autofs_dev_ioctl_requester() local
508 struct path path; in autofs_dev_ioctl_ismountpoint() local
525 &path); in autofs_dev_ioctl_ismountpoint()
[all …]
/openbmc/linux/include/video/
H A Dmmp_disp.h147 struct mmp_path *path; member
192 int (*get_modelist)(struct mmp_path *path,
241 if (path) in mmp_path_set_mode()
242 path->ops.set_mode(path, mode); in mmp_path_set_mode()
246 if (path) in mmp_path_set_onoff()
247 path->ops.set_onoff(path, status); in mmp_path_set_onoff()
252 if (path) in mmp_path_get_modelist()
253 return path->ops.get_modelist(path, modelist); in mmp_path_get_modelist()
257 struct mmp_path *path, int overlay_id) in mmp_path_get_overlay() argument
259 if (path) in mmp_path_get_overlay()
[all …]
/openbmc/openbmc/poky/bitbake/lib/bb/tests/
H A Dfetch.py1123 if os.path.exists(os.path.join(repo_path, 'bitbake-gitsm-test1')):
1603 msg = path
1604 open(os.path.join(self.gitdir, path), 'w').close()
1735 open(os.path.join(cwd, path), 'w').close()
1877 assert os.path.exists(os.path.join(self.gitdir, 'a'))
1878 assert os.path.exists(os.path.join(self.gitdir, 'b'))
1902 assert os.path.exists(os.path.join(self.gitdir, 'a'))
1903 assert os.path.exists(os.path.join(self.gitdir, 'b'))
1904 assert not os.path.exists(os.path.join(self.gitdir, 'c'))
2005 assert os.path.exists(os.path.join(self.gitdir, 'c'))
[all …]
/openbmc/qemu/docs/
H A Dconf.py41 qemu_docdir = os.path.abspath(".")
49 sys.path.insert(0, os.path.join(qemu_docdir, "sphinx"))
50 sys.path.insert(0, os.path.join(qemu_docdir, "../scripts"))
74 templates_path = [os.path.join(qemu_docdir, '_templates')]
105 with open(os.path.join(qemu_docdir, '../VERSION')) as f:
148 with open(os.path.join(qemu_docdir, 'defs.rst.inc')) as f:
181 html_static_path = [os.path.join(qemu_docdir, "sphinx-static")]
291 kerneldoc_srctree = os.path.join(qemu_docdir, '..')
292 hxtool_srctree = os.path.join(qemu_docdir, '..')
293 qapidoc_srctree = os.path.join(qemu_docdir, '..')
[all …]
/openbmc/linux/tools/hv/
H A Dvmbus_testing30 if not os.path.isdir(debugfs_hyperv_path):
78 path = args.path if "path" in arg_set else None
79 if (path and path[-1] == "/"):
80 path = path[:-1]
138 def get_device_test_values(path, file_map): argument
140 for name in file_map[path]:
146 def recursive_file_lookup(path, file_map): argument
175 def read_test_files(path): argument
177 with open(path,"r") as f:
191 def write_test_files(path, value): argument
[all …]

12345678910>>...272