Home
last modified time | relevance | path

Searched refs:path (Results 151 – 175 of 7222) sorted by relevance

12345678910>>...289

/openbmc/openbmc/poky/scripts/
H A Doe-pkgdata-util14 import os.path
21 scripts_path = os.path.dirname(os.path.realpath(__file__))
23 sys.path = sys.path + [lib_path]
43 if not os.path.exists(args.pkglistfile):
109 if os.path.exists(revlink):
181 if os.path.exists(revlink):
215 if os.path.exists(revlink):
221 if os.path.exists(pkgfile):
280 if os.path.exists(pkgdatafile):
367 if os.path.exists(os.path.join(pkgdata_dir, 'runtime', '%s.packaged' % pkg)):
[all …]
/openbmc/phosphor-ipmi-blobs/test/
H A Dmanager_open_unittest.cpp24 std::string path = "/asdf/asdf"; in TEST() local
26 EXPECT_CALL(*m1ptr, canHandleBlob(path)).WillOnce(Return(false)); in TEST()
27 EXPECT_FALSE(mgr.open(flags, path, &sess)); in TEST()
40 std::string path = "/asdf/asdf"; in TEST() local
42 EXPECT_CALL(*m1ptr, canHandleBlob(path)).WillOnce(Return(true)); in TEST()
44 EXPECT_FALSE(mgr.open(flags, path, &sess)); in TEST()
58 std::string path = "/asdf/asdf"; in TEST() local
61 EXPECT_CALL(*m1ptr, canHandleBlob(path)).WillOnce(Return(true)); in TEST()
63 EXPECT_FALSE(mgr.open(flags, path, &sess)); in TEST()
76 std::string path = "/asdf/asdf"; in TEST() local
[all …]
/openbmc/phosphor-fan-presence/control/json/
H A Ddbus_zone.cpp41 (fs::path{CONTROL_OBJPATH} /= zone.getName()).c_str(), in DBusZone()
73 fs::path path{CONTROL_PERSIST_ROOT_PATH}; in restoreCurrentMode() local
75 path /= _zone.getName(); in restoreCurrentMode()
76 path /= "CurrentMode"; in restoreCurrentMode()
77 fs::create_directories(path.parent_path()); in restoreCurrentMode()
81 if (fs::exists(path)) in restoreCurrentMode()
92 fs::remove(path, ec); in restoreCurrentMode()
106 fs::path path{CONTROL_PERSIST_ROOT_PATH}; in saveCurrentMode() local
108 path /= _zone.getName(); in saveCurrentMode()
109 path /= "CurrentMode"; in saveCurrentMode()
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/
H A Dwic.py167 wksname = os.path.splitext(os.path.basename(wks.name))[0]
199 wksname = os.path.splitext(os.path.basename(wks.name))[0]
867 path = os.path.join(imgdatadir, basename) + '.env'
868 self.assertTrue(os.path.isfile(path), msg="File %s wasn't generated as expected" % path)
928 self.assertTrue(os.path.islink(path), msg="Link %s wasn't generated as expected" % path)
929 …self.assertTrue(os.path.isfile(os.path.realpath(path)), msg="File linked to by %s wasn't generated…
990 wksname = os.path.splitext(os.path.basename(wkspath))[0]
1175 wksname = os.path.splitext(os.path.basename(wks.name))[0]
1263 wksname = os.path.splitext(os.path.basename(wks.name))[0]
1283 wksname = os.path.splitext(os.path.basename(wks.name))[0]
[all …]
H A Dusergrouptests.py34 repropassdir = os.path.join(metaselftestpath, "conf/include")
36 etcdir=os.path.join(os.path.join(os.path.join(get_bb_var("TMPDIR"), "work"), \
37 …os.path.join(get_bb_var("MACHINE").replace("-","_")+"-poky-linux", "core-image-minimal/1.0/rootfs/…
38 … shutil.copy(os.path.join(etcdir, "passwd"), os.path.join(repropassdir, "reproducable-passwd"))
39 shutil.copy(os.path.join(etcdir, "group"), os.path.join(repropassdir, "reproducable-group"))
41 …shutil.copyfile(os.path.join(os.environ.get('BUILDDIR'), 'conf/local.conf'), os.path.join(os.envir…
49 …shutil.copyfile(os.path.join(os.environ.get('BUILDDIR'), 'conf/local.conf.orig'), os.path.join(os.…
/openbmc/linux/drivers/thunderbolt/
H A Dtunnel.c285 if (!path) { in tb_tunnel_discover_pci()
296 if (!path) in tb_tunnel_discover_pci()
358 if (!path) in tb_tunnel_alloc_pci()
366 if (!path) in tb_tunnel_alloc_pci()
1330 if (!path) in tb_tunnel_discover_dp()
1337 if (!path) in tb_tunnel_discover_dp()
1419 if (!path) in tb_tunnel_alloc_dp()
1426 if (!path) in tb_tunnel_alloc_dp()
1433 if (!path) in tb_tunnel_alloc_dp()
1629 if (!path) in tb_tunnel_alloc_dma()
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/vk-gl-cts/files/
H A Dgen-framework-path.patch1 Prepend instead of append to the module search path, as this script needs to use
12 -sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts"))
13 +sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts"))
19 -sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts"))
20 +sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts"))
/openbmc/openpower-occ-control/
H A Docc_dbus.hpp56 bool setMaxValue(const std::string& path, double value);
64 double getMaxValue(const std::string& path) const;
73 bool setMinValue(const std::string& path, double value);
81 double getMinValue(const std::string& path) const;
90 bool setValue(const std::string& path, double value);
98 double getValue(const std::string& path) const;
115 std::string getUnit(const std::string& path) const;
132 bool getOperationalStatus(const std::string& path) const;
144 void setChassisAssociation(const std::string& path);
151 void setDvfsTemp(const std::string& path, double value);
[all …]
/openbmc/phosphor-power/phosphor-regulators/test/
H A Dtest_utils.hpp105 inline void makeFileUnRemovable(const fs::path& path) in makeFileUnRemovable() argument
108 fs::path savePath{path.native() + ".save"}; in makeFileUnRemovable()
109 fs::rename(path, savePath); in makeFileUnRemovable()
112 fs::create_directory(path); in makeFileUnRemovable()
116 std::ofstream childFile{path / "childFile"}; in makeFileUnRemovable()
126 inline void makeFileRemovable(const fs::path& path) in makeFileRemovable() argument
130 fs::remove_all(path); in makeFileRemovable()
133 fs::path savePath{path.native() + ".save"}; in makeFileRemovable()
134 fs::rename(savePath, path); in makeFileRemovable()
/openbmc/openbmc/poky/meta/lib/patchtest/selftest/
H A Dselftest13 currentdir = os.path.dirname(os.path.abspath(__file__))
14 patchesdir = os.path.join(currentdir, 'files')
15 topdir = os.path.dirname(currentdir)
16 parentdir = os.path.dirname(topdir)
19 repodir = os.path.dirname(os.path.dirname(parentdir))
24 print("Testsuite summary for %s" % os.path.basename(topdir))
39 patchpath = os.path.abspath(os.path.join(root, patch))
72 print("XFAIL: %s (file: %s)" % (testid.strip("."), os.path.basename(patch)))
75 print("XPASS: %s (file: %s)" % (testid.strip("."), os.path.basename(patch)))
78 print("XSKIP: %s (file: %s)" % (testid.strip("."), os.path.basename(patch)))
[all …]
/openbmc/qemu/hw/xen/
H A Dxen-bus-helper.c75 char *path, *value; in xs_node_vprintf() local
82 trace_xs_node_vprintf(path, value); in xs_node_vprintf()
86 value, path); in xs_node_vprintf()
90 g_free(path); in xs_node_vprintf()
108 char *path, *value; in xs_node_vscanf() local
115 trace_xs_node_vscanf(path, value); in xs_node_vscanf()
121 path); in xs_node_vscanf()
126 g_free(path); in xs_node_vscanf()
149 char *path; in xs_node_watch() local
155 trace_xs_node_watch(path); in xs_node_watch()
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/
H A Dcase.py88 os.remove(os.path.join(root, f))
111 os.remove(os.path.join(root, f))
141 for path in self._track_for_cleanup:
142 if os.path.isdir(path):
143 bb.utils.remove(path, recurse=True)
144 if os.path.isfile(path):
145 os.remove(path)
159 def track_for_cleanup(self, path): argument
162 self._track_for_cleanup.append(path)
249 if not os.path.exists(expr):
[all …]
/openbmc/linux/sound/pci/hda/
H A Dhda_generic.c326 if (path->path[0] == nid) in is_dac_already_used()
378 path->path[i]); in print_nid_path()
427 path->path[path->depth] = conn[i]; in __parse_nid_path()
459 path->path[path->depth] = to_nid; in snd_hda_parse_nid_path()
572 return path->path[i]; in look_for_out_mute_nid()
575 return path->path[i]; in look_for_out_mute_nid()
831 nid = path->path[i]; in path_power_update()
1661 pin = path->path[path->depth - 1]; in check_aamix_out_path()
4148 path->path[path->depth - 1] == nid) { in set_path_power()
4357 path->path[0] = pin; in snd_hda_gen_fix_pin_power()
[all …]
/openbmc/linux/tools/testing/selftests/openat2/
H A Dhelpers.c24 int ret = syscall(__NR_openat2, dfd, path, how, size); in raw_openat2()
30 return raw_openat2(dfd, path, how, sizeof(*how)); in sys_openat2()
33 int sys_openat(int dfd, const char *path, struct open_how *how) in sys_openat() argument
35 int ret = openat(dfd, path, how->flags, how->mode); in sys_openat()
47 int touchat(int dfd, const char *path) in touchat() argument
49 int fd = openat(dfd, path, O_CREAT, 0700); in touchat()
71 bool fdequal(int fd, int dfd, const char *path) in fdequal() argument
79 if (!path) in fdequal()
81 else if (*path == '/') in fdequal()
82 E_asprintf(&other, "%s", path); in fdequal()
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/utils/
H A Dgit.py18 def __init__(self, path, is_topdir=False): argument
19 git_dir = self._run_git_cmd_at(['rev-parse', '--git-dir'], path)
20 git_dir = git_dir if os.path.isabs(git_dir) else os.path.join(path, git_dir)
21 self.git_dir = os.path.realpath(git_dir)
23 if self._run_git_cmd_at(['rev-parse', '--is-bare-repository'], path) == 'true':
29 path)
30 realpath = os.path.realpath(path)
48 def init(path, bare=False): argument
53 GitRepo._run_git_cmd_at(cmd, cwd=path)
54 return GitRepo(path, is_topdir=True)
/openbmc/telemetry/tests/src/
H A Dtest_trigger_manager.cpp118 EXPECT_THAT(path, Eq(std::string())); in TEST_F()
128 EXPECT_THAT(path, Eq(std::string())); in TEST_F()
136 auto [ec, path] = addTrigger( in TEST_F()
139 EXPECT_THAT(path, Eq(std::string())); in TEST_F()
160 EXPECT_THAT(path, Eq(std::string())); in TEST_F()
171 EXPECT_THAT(path, Eq(std::string())); in TEST_F()
185 EXPECT_THAT(path, Not(Eq(""))); in TEST_F()
197 auto [ec, path] = addTrigger( in TEST_F()
200 EXPECT_THAT(path, Not(Eq(""))); in TEST_F()
209 EXPECT_THAT(path, Not(Eq(""))); in TEST_F()
[all …]
/openbmc/linux/Documentation/sphinx/
H A Dmaintainers_include.py22 import os.path
43 def parse_maintainers(self, path): argument
63 for line in open(path):
171 statemachine.string2lines(output), path)
179 path = self.state_machine.document.attributes['source']
180 path = os.path.realpath(path)
181 tail = path
183 (path, tail) = os.path.split(path)
186 path = os.path.join(path, "MAINTAINERS")
189 self.state.document.settings.record_dependencies.add(path)
[all …]
/openbmc/u-boot/fs/btrfs/
H A Ddir-item.c41 item = btrfs_path_item_ptr(path, struct btrfs_dir_item); in btrfs_match_dir_item_name()
43 total_len = btrfs_path_item_size(path); in btrfs_match_dir_item_name()
67 struct btrfs_path path; in btrfs_lookup_dir_item() local
75 if (btrfs_search_tree(root, &key, &path)) in btrfs_lookup_dir_item()
81 res = btrfs_match_dir_item_name(&path, name, name_len); in btrfs_lookup_dir_item()
85 btrfs_free_path(&path); in btrfs_lookup_dir_item()
92 struct btrfs_path path; in btrfs_readdir() local
101 if (btrfs_search_tree(root, &key, &path)) in btrfs_readdir()
105 found_key = btrfs_path_leaf_key(&path); in btrfs_readdir()
119 } while (!(res = btrfs_next_slot(&path))); in btrfs_readdir()
[all …]
/openbmc/qemu/hw/9pfs/
H A D9p-posix-acl.c30 static ssize_t mp_pacl_getxattr(FsContext *ctx, const char *path, in mp_pacl_getxattr() argument
33 return local_getxattr_nofollow(ctx, path, MAP_ACL_ACCESS, value, size); in mp_pacl_getxattr()
36 static ssize_t mp_pacl_listxattr(FsContext *ctx, const char *path, in mp_pacl_listxattr() argument
58 return local_setxattr_nofollow(ctx, path, MAP_ACL_ACCESS, value, size, in mp_pacl_setxattr()
63 const char *path, const char *name) in mp_pacl_removexattr() argument
67 ret = local_removexattr_nofollow(ctx, path, MAP_ACL_ACCESS); in mp_pacl_removexattr()
84 static ssize_t mp_dacl_getxattr(FsContext *ctx, const char *path, in mp_dacl_getxattr() argument
90 static ssize_t mp_dacl_listxattr(FsContext *ctx, const char *path, in mp_dacl_listxattr() argument
112 return local_setxattr_nofollow(ctx, path, MAP_ACL_DEFAULT, value, size, in mp_dacl_setxattr()
117 const char *path, const char *name) in mp_dacl_removexattr() argument
[all …]
/openbmc/qemu/
H A D.gitmodules2 path = roms/seabios
5 path = roms/SLOF
8 path = roms/ipxe
11 path = roms/openbios
14 path = roms/qemu-palcode
17 path = roms/u-boot
20 path = roms/skiboot
32 path = roms/edk2
35 path = roms/opensbi
38 path = roms/qboot
[all …]
/openbmc/openbmc/poky/meta/lib/bblayers/
H A Dmakesetup.py17 sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
37 return os.path.isfile(os.path.join(repo_path,".git"))
51 …ath} has uncommitted modifications or is not in a git repository.".format(name=l_name,path=l_path))
58 repos[repo_path] = {'path':os.path.basename(repo_path),'git-remote':{
66 …ave any remotes configured. Please add at least one with 'git remote add'.".format(path=repo_path))
69 top_path = os.path.commonpath([os.path.dirname(r) for r in repos.keys()])
73 r_nopath = os.path.basename(r)
75 r_relpath = os.path.relpath(r, top_path)
94 for path in (self.tinfoil.config_data.getVar('BBPATH').split(':')):
95 pluginpath = os.path.join(path, 'lib', 'bblayers', 'setupwriters')
/openbmc/phosphor-mboxd/vpnor/
H A Dpnor_partition.hpp53 fs::path path = getPartitionFilePath(flags); in read() local
54 return fulfil(path, flags, dst, len); in read()
69 fs::path path = getPartitionFilePath(flags); in write() local
70 resize(path, len); in write()
71 return fulfil(path, flags, dst, len); in write()
87 void resize(const std::experimental::filesystem::path& path, size_t len);
121 std::experimental::filesystem::path getPartitionFilePath(int flags);
129 size_t fulfil(const std::experimental::filesystem::path& path, int flags,
/openbmc/phosphor-inventory-manager/
H A Dserialize.hpp22 inline fs::path getStoragePath(const std::string& path, in getStoragePath() argument
25 auto p = fs::path(PIM_PERSIST_PATH); in getStoragePath()
26 p /= fs::path(path).relative_path(); in getStoragePath()
27 p /= fs::path(iface).relative_path(); in getStoragePath()
40 static void serialize(const std::string& path, const std::string& iface) in serialize()
42 auto p = detail::getStoragePath(path, iface); in serialize()
54 static void serialize(const std::string& path, const std::string& iface, in serialize()
57 auto p = detail::getStoragePath(path, iface); in serialize()
76 static void deserialize(const std::string& path, const std::string& iface, in deserialize()
79 auto p = detail::getStoragePath(path, iface); in deserialize()
/openbmc/phosphor-dbus-monitor/src/
H A Devent_serialize.cpp59 fs::path serialize(const Entry& event, const std::string& eventName) in serialize()
61 fs::path dir(EVENTS_PERSIST_PATH); in serialize()
62 auto path = dir / eventName; in serialize() local
63 fs::create_directories(path); in serialize()
64 path /= std::to_string(event.timestamp()); in serialize()
65 std::ofstream os(path.string(), std::ios::binary); in serialize()
68 return path; in serialize()
71 bool deserialize(const fs::path& path, Entry& event) in deserialize() argument
75 if (fs::exists(path)) in deserialize()
77 std::ifstream is(path.c_str(), std::ios::in | std::ios::binary); in deserialize()
[all …]
/openbmc/openbmc/poky/bitbake/lib/bb/
H A Dmonitordisk.py33 def getMountedDev(path): argument
39 parentDev = os.stat(path).st_dev
44 mountPoint = path
46 path = os.path.dirname(path)
48 if path == mountPoint:
88 path = os.path.realpath(pathSpaceInodeRe.group(2))
89 if not path:
120 if not os.path.exists(path):
121 bb.utils.mkdirhier(path)
122 dev = getMountedDev(path)
[all …]

12345678910>>...289