Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 3608) sorted by relevance

12345678910>>...145

/openbmc/pldm/host-bmc/dbus/
H A Dcustom_dbus.cpp7 void CustomDBus::setLocationCode(const std::string& path, std::string value) in setLocationCode() argument
9 if (!location.contains(path)) in setLocationCode()
11 location.emplace(path, in setLocationCode()
13 pldm::utils::DBusHandler::getBus(), path.c_str())); in setLocationCode()
16 location.at(path)->locationCode(value); in setLocationCode()
20 const std::string& path) const in getLocationCode()
22 if (location.contains(path)) in getLocationCode()
24 return location.at(path)->locationCode(); in getLocationCode()
30 void CustomDBus::implementCpuCoreInterface(const std::string& path) in implementCpuCoreInterface() argument
32 if (!cpuCore.contains(path)) in implementCpuCoreInterface()
[all …]
/openbmc/openpower-occ-control/
H A Docc_dbus.cpp21 bool OccDBusSensors::setMaxValue(const std::string& path, double value) in setMaxValue() argument
23 if (path.empty()) in setMaxValue()
28 if (!sensors.contains(path)) in setMaxValue()
31 path, std::make_unique<SensorIntf>(utils::getBus(), path.c_str())); in setMaxValue()
34 sensors.at(path)->maxValue(value); in setMaxValue()
38 double OccDBusSensors::getMaxValue(const std::string& path) const in getMaxValue()
40 if (sensors.find(path) != sensors.end()) in getMaxValue()
42 return sensors.at(path)->maxValue(); in getMaxValue()
48 bool OccDBusSensors::setMinValue(const std::string& path, double value) in setMinValue() argument
50 if (path.empty()) in setMinValue()
[all …]
/openbmc/openbmc/poky/scripts/
H A Dpythondeps19 import os.path
32 def __init__(self, path, error): argument
33 self.path = path
38 return "Failure determining dependencies of {}: {}".format(self.path, self.error)
54 def walk_up(path): argument
55 while path:
56 yield path
57 path, _, _ = path.rpartition(os.sep)
60 def get_provides(path): argument
61 path = os.path.realpath(path)
[all …]
/openbmc/phosphor-logging/test/openpower-pels/
H A Dtemporary_file_test.cpp23 inline void makeFileRemovable(const fs::path& path) in makeFileRemovable() argument
27 fs::remove_all(path); in makeFileRemovable()
30 fs::path savePath{path.native() + ".save"}; in makeFileRemovable()
31 fs::rename(savePath, path); in makeFileRemovable()
41 inline void makeFileUnRemovable(const fs::path& path) in makeFileUnRemovable() argument
44 fs::path savePath{path.native() + ".save"}; in makeFileUnRemovable()
45 fs::rename(path, savePath); in makeFileUnRemovable()
48 fs::create_directory(path); in makeFileUnRemovable()
52 std::ofstream childFile{path / "childFile"}; in makeFileUnRemovable()
88 fs::path path = tmpFile->getPath(); in TEST_F() local
[all …]
/openbmc/qemu/python/qemu/utils/
H A Dqom_fuse.py90 def get_ino(self, path: str) -> int:
92 if path in self.ino_map:
93 return self.ino_map[path]
94 self.ino_map[path] = self.ino_count
96 return self.ino_map[path]
98 def is_object(self, path: str) -> bool:
101 self.qom_list(path)
106 def is_property(self, path: str) -> bool:
108 path, prop = path.rsplit('/', 1)
109 if path == '':
[all …]
/openbmc/phosphor-power/test/
H A Dtemporary_file_tests.cpp35 inline void makeFileUnRemovable(const fs::path& path) in makeFileUnRemovable() argument
38 fs::path savePath{path.native() + ".save"}; in makeFileUnRemovable()
39 fs::rename(path, savePath); in makeFileUnRemovable()
42 fs::create_directory(path); in makeFileUnRemovable()
46 std::ofstream childFile{path / "childFile"}; in makeFileUnRemovable()
56 inline void makeFileRemovable(const fs::path& path) in makeFileRemovable() argument
60 fs::remove_all(path); in makeFileRemovable()
63 fs::path savePath{path.native() + ".save"}; in makeFileRemovable()
64 fs::rename(savePath, path); in makeFileRemovable()
71 fs::path path = file.getPath(); in TEST() local
[all …]
H A Dtemporary_subdirectory_tests.cpp32 fs::path path = subdirectory.getPath(); in TEST() local
33 EXPECT_FALSE(path.empty()); in TEST()
34 EXPECT_TRUE(fs::exists(path)); in TEST()
35 EXPECT_TRUE(fs::is_directory(path)); in TEST()
37 fs::path parentDir = path.parent_path(); in TEST()
40 std::string baseName = path.filename(); in TEST()
52 fs::path path = subdirectory1.getPath(); in TEST() local
61 EXPECT_EQ(subdirectory2.getPath(), path); in TEST()
75 fs::path path1 = subdirectory1.getPath(); in TEST()
83 fs::path path2 = subdirectory2.getPath(); in TEST()
[all …]
/openbmc/openbmc/poky/meta/lib/oe/
H A Dcachedpath.py29 def normpath(self, path): argument
30 if path in self.normpathcache:
31 return self.normpathcache[path]
32 newpath = os.path.normpath(path)
33 self.normpathcache[path] = newpath
36 def _callstat(self, path): argument
37 if path in self.statcache:
38 return self.statcache[path]
40 st = os.stat(path)
41 self.statcache[path] = st
[all …]
H A Dpath.py11 import os.path
15 return os.path.normpath("/".join(paths))
30 return os.path.relpath(dest, src)
32 def make_relative_symlink(path): argument
34 if not os.path.islink(path):
36 link = os.readlink(path)
37 if not os.path.isabs(link):
41 ancestor = path
48 …nt("make_relative_symlink() Error: unable to find the common ancestor of %s and its target" % path)
56 os.remove(path)
[all …]
H A Dbuildcfg.py7 path = get_scmbasepath(d)
8 return get_metadata_git_revision(path)
11 path = get_scmbasepath(d)
12 return get_metadata_git_branch(path)
15 return os.path.join(d.getVar('COREBASE'), 'meta')
17 def get_metadata_git_branch(path): argument
19 rev, _ = bb.process.run('git rev-parse --abbrev-ref HEAD', cwd=path)
24 def get_metadata_git_revision(path): argument
26 rev, _ = bb.process.run('git rev-parse HEAD', cwd=path)
31 def get_metadata_git_toplevel(path): argument
[all …]
/openbmc/openbmc/poky/meta/recipes-devtools/icecc-create-env/icecc-create-env/
H A Dicecc-create-env40 local path="$1"
42 if ! is_dynamic_elf "$path"; then
45 local old_rpath="`$PATCHELF --print-rpath "$path"`"
52 $PATCHELF --set-rpath "$new_rpath" "$path"
88 local path=$1
89 if test -f "$path"; then
90 pushd $(dirname $path) > /dev/null 2>&1
92 path=$dir_path/$(basename $path)
94 elif test -d "$path"; then
95 pushd $path > /dev/null 2>&1
[all …]
/openbmc/telemetry/src/
H A Dpersistent_json_storage.cpp11 bool isAnySymlink(const std::filesystem::path& path) in isAnySymlink() argument
13 auto currentPath = path; in isAnySymlink()
14 while (currentPath != path.root_path()) in isAnySymlink()
38 const auto path = join(directory, filePath); in store() local
42 "Store to file", phosphor::logging::entry("PATH=%s", path.c_str())); in store()
44 std::filesystem::create_directories(path.parent_path(), ec); in store()
48 "Unable to create directory for file: " + path.string() + in store()
52 assertThatPathIsNotSymlink(path); in store()
54 std::ofstream file(path); in store()
58 throw std::runtime_error("Unable to create file: " + path.string()); in store()
[all …]
/openbmc/phosphor-bmc-code-mgmt/bmc/
H A Dserialize.cpp29 auto path = fs::path(PERSIST_DIR) / flashId; in storePriority() local
30 if (!fs::is_directory(path, ec)) in storePriority()
32 if (fs::exists(path, ec)) in storePriority()
35 warning("Removing non-directory file: {PATH}", "PATH", path); in storePriority()
36 fs::remove_all(path, ec); in storePriority()
38 fs::create_directories(path, ec); in storePriority()
40 path = path / priorityName; in storePriority()
42 std::ofstream os(path.c_str()); in storePriority()
50 auto path = fs::path(PERSIST_DIR) / flashId; in storePurpose() local
51 if (!fs::is_directory(path, ec)) in storePurpose()
[all …]
/openbmc/openbmc/poky/scripts/lib/wic/plugins/source/
H A Drootfs.py19 from oe.path import copyhardlinktree
36 def __validate_path(cmd, rootfs_dir, path): argument
37 if os.path.isabs(path):
38 logger.error("%s: Must be relative: %s" % (cmd, path))
44 full_path = os.path.abspath(os.path.join(rootfs_dir, path))
45 if not full_path.startswith(os.path.realpath(rootfs_dir)):
46 logger.error("%s: Must point inside the rootfs: %s" % (cmd, path))
53 if rootfs_dir and os.path.isdir(rootfs_dir):
54 return os.path.realpath(rootfs_dir)
57 if not os.path.isdir(image_rootfs_dir):
[all …]
/openbmc/phosphor-fan-presence/
H A Dsdbusplus.hpp48 DBusMethodError(const std::string& busName, const std::string& path, in DBusMethodError() argument
50 DBusError(std::format("DBus method failed: {} {} {} {}", busName, path, in DBusMethodError()
52 busName(busName), path(path), interface(interface), method(method) in DBusMethodError()
56 const std::string path; member in phosphor::fan::util::DBusMethodError
70 DBusServiceError(const std::string& path, const std::string& interface) : in DBusServiceError() argument
72 std::format("DBus service lookup failed: {} {}", path, interface)), in DBusServiceError()
73 path(path), interface(interface) in DBusServiceError()
76 const std::string path; member in phosphor::fan::util::DBusServiceError
89 const std::string& path, const std::string& interface, in DBusPropertyError() argument
91 DBusError(msg + std::format(": {} {} {} {}", busName, path, interface, in DBusPropertyError()
[all …]
/openbmc/phosphor-hwmon/
H A Dsysfs.cpp49 fs::path ioChannelsPath{iochanneldir}; in findPhandleMatch()
65 auto path = ofInst.path(); in findPhandleMatch() local
66 if ("phandle" != path.filename()) in findPhandleMatch()
70 std::ifstream pHandleFile(path); in findPhandleMatch()
78 return path; in findPhandleMatch()
89 fs::path devPath{instancePath}; in findCalloutPath()
102 fs::path p{devPath}; in findCalloutPath()
114 fs::path ofDevPath{devPath}; in findCalloutPath()
132 p = iioDev.path(); in findCalloutPath()
168 auto fullOfPath = fs::path(ofRoot) / fs::path(ofNode).relative_path(); in findHwmonFromOFPath()
[all …]
H A Dstart_hwmon.sh.in9 path=$devpath
11 if [[ "$path" =~ (.*)/hwmon/hwmon[0-9]+$ ]];
13 path=${BASH_REMATCH[1]}
15 echo "${path}"
18 path=$of_fullname
19 if [ -z "${path}" ]@FORCE_DEVPATH@
21 path="$(use_devpath)"
24 if [[ "$path" =~ .*/(.*)$ ]];
30 path="$(use_devpath)"
38 path="${path//:/--}"
[all …]
H A Dreadd.cpp48 auto path = devpath; in main() local
49 auto param = path; in main()
50 if (!path.empty()) in main()
54 if (path.substr(0, 8) == "/devices") in main()
56 path = sysfs::findHwmonFromDevPath(path); in main()
60 path = sysfs::findHwmonFromOFPath(path); in main()
64 if (path.empty()) in main()
66 path = syspath; in main()
67 param = path; in main()
70 if (path.empty()) in main()
[all …]
/openbmc/u-boot/fs/yaffs2/
H A Dyaffsfs.h79 int yaffs_open(const YCHAR *path, int oflag, int mode) ;
86 int yaffs_access(const YCHAR *path, int amode);
98 int yaffs_truncate(const YCHAR *path, loff_t new_size);
101 int yaffs_unlink(const YCHAR *path) ;
104 int yaffs_stat(const YCHAR *path, struct yaffs_stat *buf) ;
105 int yaffs_lstat(const YCHAR *path, struct yaffs_stat *buf) ;
108 int yaffs_utime(const YCHAR *path, const struct yaffs_utimbuf *buf);
112 int yaffs_setxattr(const char *path, const char *name,
114 int yaffs_lsetxattr(const char *path, const char *name,
119 int yaffs_getxattr(const char *path, const char *name,
[all …]
/openbmc/webui-vue/src/router/
H A Droutes.js46 path: '/login', property in AnonymousClasse4a86fee0101
50 path: '', property in AnonymousClasse4a86fee0101.AnonymousClasse4a86fee0201
58 path: '/change-password', property in AnonymousClasse4a86fee0101.AnonymousClasse4a86fee0301
69 path: '/console', property in AnonymousClasse4a86fee0401
76 path: 'serial-over-lan-console', property in AnonymousClasse4a86fee0401.AnonymousClasse4a86fee0501
84 path: 'kvm', property in AnonymousClasse4a86fee0401.AnonymousClasse4a86fee0601
94 path: '/', property in AnonymousClasse4a86fee0701
101 path: '', property in AnonymousClasse4a86fee0701.AnonymousClasse4a86fee0801
109 path: '/profile-settings', property in AnonymousClasse4a86fee0701.AnonymousClasse4a86fee0901
117 path: '/logs/event-logs', property in AnonymousClasse4a86fee0701.AnonymousClasse4a86fee0a01
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/
H A Dliboe.py9 import oe.path
27 testloc = oe.path.join(self.tmp_dir, 'liboetests')
28 src = oe.path.join(testloc, 'src')
29 dst = oe.path.join(testloc, 'dst')
35 open(oe.path.join(src, testfilename), 'w+b').close()
36 oe.path.copytree(src, dst)
39 fileindst = os.path.isfile(oe.path.join(dst, testfilename))
42 oe.path.remove(testloc)
52 testloc = oe.path.join(self.tmp_dir, 'liboetests')
53 src = oe.path.join(testloc, 'src')
[all …]
/openbmc/webui-vue/src/env/router/
H A Dintel.js39 path: '/login', property in AnonymousClassfaeba7400101
43 path: '', property in AnonymousClassfaeba7400101.AnonymousClassfaeba7400201
51 path: '/change-password', property in AnonymousClassfaeba7400101.AnonymousClassfaeba7400301
62 path: '/console', property in AnonymousClassfaeba7400401
69 path: 'serial-over-lan-console', property in AnonymousClassfaeba7400401.AnonymousClassfaeba7400501
77 path: 'kvm', property in AnonymousClassfaeba7400401.AnonymousClassfaeba7400601
87 path: '/', property in AnonymousClassfaeba7400701
94 path: '', property in AnonymousClassfaeba7400701.AnonymousClassfaeba7400801
102 path: '/profile-settings', property in AnonymousClassfaeba7400701.AnonymousClassfaeba7400901
110 path: '/logs/event-logs', property in AnonymousClassfaeba7400701.AnonymousClassfaeba7400a01
[all …]
H A Dibm.js36 path: '/login', property in AnonymousClass8eff0dbc0101
40 path: '', property in AnonymousClass8eff0dbc0101.AnonymousClass8eff0dbc0201
48 path: '/change-password', property in AnonymousClass8eff0dbc0101.AnonymousClass8eff0dbc0301
59 path: '/console', property in AnonymousClass8eff0dbc0401
66 path: 'serial-over-lan-console', property in AnonymousClass8eff0dbc0401.AnonymousClass8eff0dbc0501
76 path: '/', property in AnonymousClass8eff0dbc0601
83 path: '', property in AnonymousClass8eff0dbc0601.AnonymousClass8eff0dbc0701
91 path: '/profile-settings', property in AnonymousClass8eff0dbc0601.AnonymousClass8eff0dbc0801
99 path: '/logs/dumps', property in AnonymousClass8eff0dbc0601.AnonymousClass8eff0dbc0901
107 path: '/logs/event-logs', property in AnonymousClass8eff0dbc0601.AnonymousClass8eff0dbc0a01
[all …]
/openbmc/qemu/hw/i386/kvm/
H A Dtrace-events7 xenstore_read(unsigned int tx_id, const char *path) "tx %u path %s"
8 xenstore_write(unsigned int tx_id, const char *path) "tx %u path %s"
9 xenstore_mkdir(unsigned int tx_id, const char *path) "tx %u path %s"
10 xenstore_directory(unsigned int tx_id, const char *path) "tx %u path %s"
11 xenstore_directory_part(unsigned int tx_id, const char *path, unsigned int offset) "tx %u path %s o…
14 xenstore_rm(unsigned int tx_id, const char *path) "tx %u path %s"
15 xenstore_get_perms(unsigned int tx_id, const char *path) "tx %u path %s"
16 xenstore_set_perms(unsigned int tx_id, const char *path) "tx %u path %s"
17 xenstore_watch(const char *path, const char *token) "path %s token %s"
18 xenstore_unwatch(const char *path, const char *token) "path %s token %s"
[all …]
/openbmc/u-boot/arch/arm/mach-omap2/
H A Dfdt-common.c25 const char *path; in ft_hs_disable_rng() local
30 path = "/ocp/rng"; in ft_hs_disable_rng()
31 offs = fdt_path_offset(fdt, path); in ft_hs_disable_rng()
33 debug("Node %s not found.\n", path); in ft_hs_disable_rng()
40 path, fdt_strerror(ret)); in ft_hs_disable_rng()
73 const char *path, *subpath; in ft_hs_fixup_dram() local
82 path = "/reserved-memory/secure_reserved"; in ft_hs_fixup_dram()
83 offs = fdt_path_offset(fdt, path); in ft_hs_fixup_dram()
88 path = "/reserved-memory"; in ft_hs_fixup_dram()
89 offs = fdt_path_offset(fdt, path); in ft_hs_fixup_dram()
[all …]

12345678910>>...145