/openbmc/phosphor-inventory-manager/ |
H A D | serialize.hpp | 22 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 D | event_serialize.cpp | 59 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 D | monitordisk.py | 33 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 …]
|
/openbmc/phosphor-bmc-code-mgmt/usb/ |
H A D | usb_manager.cpp | 17 fs::path dir(usbPath); in run() 30 if (p.path().extension() == ".tar") in run() 32 fs::path dstPath{IMG_UPLOAD_DIR / p.path().filename()}; in run() 37 "DSTPATH", p.path().filename()); in run() 44 return fs::copy_file(fs::absolute(p.path()), dstPath); in run() 49 "SRC", p.path(), "ERROR", e.what()); in run() 77 void USBManager::setRequestedActivation(const std::string& path) in setRequestedActivation() argument 100 sdbusplus::message::object_path path; in updateActivation() local 101 msg.read(path, interfaces); in updateActivation() 116 bus, path.str, imageInterface, "Activation"); in updateActivation() [all …]
|
/openbmc/linux/include/linux/ |
H A D | interconnect.h | 35 struct icc_path *path; member 47 void icc_put(struct icc_path *path); 48 int icc_enable(struct icc_path *path); 49 int icc_disable(struct icc_path *path); 50 int icc_set_bw(struct icc_path *path, u32 avg_bw, u32 peak_bw); 51 void icc_set_tag(struct icc_path *path, u32 tag); 52 const char *icc_get_name(struct icc_path *path); 79 static inline void icc_put(struct icc_path *path) in icc_put() argument 83 static inline int icc_enable(struct icc_path *path) in icc_enable() argument 88 static inline int icc_disable(struct icc_path *path) in icc_disable() argument [all …]
|
/openbmc/openpower-occ-control/ |
H A D | occ_device.hpp | 48 Device(EventPtr& event, const fs::path& path, Manager& manager, in Device() argument 54 devPath(path), in Device() 56 error(event, path / "occ_error", in Device() 60 path / in Device() 70 ffdc(event, path / "ffdc", instance), in Device() 71 presence(event, path / "occs_present", manager, in Device() 75 event, path / "occ_dvfs_overtemp", in Device() 79 event, path / "occ_dvfs_power", in Device() 183 static std::string getPathBack(const fs::path& path); 193 const fs::path devPath; [all …]
|
/openbmc/linux/fs/btrfs/ |
H A D | xattr.c | 32 struct btrfs_path *path; in btrfs_getxattr() local 37 path = btrfs_alloc_path(); in btrfs_getxattr() 38 if (!path) in btrfs_getxattr() 52 leaf = path->nodes[0]; in btrfs_getxattr() 79 btrfs_free_path(path); in btrfs_getxattr() 89 struct btrfs_path *path; in btrfs_setxattr() local 99 if (!path) in btrfs_setxattr() 217 btrfs_free_path(path); in btrfs_setxattr() 298 if (!path) in btrfs_listxattr() 310 leaf = path->nodes[0]; in btrfs_listxattr() [all …]
|
H A D | extent-tree.c | 81 if (!path) in btrfs_lookup_data_extent() 127 if (!path) in btrfs_lookup_extent_info() 150 path->slots[0]--; in btrfs_lookup_extent_info() 1495 if (!path) in __btrfs_inc_extent_ref() 1622 if (!path) in run_delayed_extent_op() 2975 if (!path) in __btrfs_free_extent() 4657 if (!path) in alloc_reserved_file_extent() 4728 if (!path) in alloc_reserved_tree_block() 5204 if (!path) in check_ref_exists() 5651 if (!path) { in btrfs_drop_snapshot() [all …]
|
/openbmc/openbmc/poky/scripts/lib/wic/ |
H A D | engine.py | 50 def build_canned_image_list(path): argument 61 cpath = os.path.join(path, CANNED_IMAGE_DIR) 256 os.unlink(path) 316 def dir(self, pnum, path): argument 336 format(os.path.dirname(dest.path), src, os.path.basename(src), 341 format(os.path.dirname(src.path), src.path, 560 if not args.path.part: 568 path = args.path.path or '/' 569 print(disk.dir(args.path.part, path)) 589 disk.remove(args.path.part, args.path.path, args.recursive_delete) [all …]
|
H A D | pluginbase.py | 40 cls._plugin_dirs = [os.path.join(os.path.dirname(__file__), 'plugins')] 44 path = os.path.join(layer_path, script_plugin_dir) 45 path = os.path.abspath(os.path.expanduser(path)) 46 if path not in cls._plugin_dirs and os.path.isdir(path): 47 cls._plugin_dirs.insert(0, path) 52 ppath = os.path.join(pdir, ptype) 53 if os.path.isdir(ppath): 57 mpath = os.path.join(ppath, fname)
|
/openbmc/openpower-debug-collector/dump/ |
H A D | dump_monitor.cpp | 21 auto dumpIdStr = path.filename(); in executeCollectionScript() 25 updateProgressStatus(path, dumpStatusFailed); in executeCollectionScript() 31 std::filesystem::path dumpPath = std::filesystem::path(dumpOutPath) / in executeCollectionScript() 71 updateProgressStatus(path, dumpStatusFailed); in executeCollectionScript() 79 updateProgressStatus(path, dumpStatusFailed); in executeCollectionScript() 95 updateProgressStatus(path, dumpStatusFailed); in executeCollectionScript() 141 status, "PATH", path); in updateProgressStatus() 146 status, "PATH", path, "ERROR", e); in updateProgressStatus() 190 path); in initiateDumpCollection() 193 startMpReboot(path); in initiateDumpCollection() [all …]
|
/openbmc/linux/tools/include/nolibc/ |
H A D | sys.h | 112 int sys_chdir(const char *path) in sys_chdir() argument 118 int chdir(const char *path) in chdir() argument 120 return __sysret(sys_chdir(path)); in chdir() 175 int sys_chroot(const char *path) in sys_chroot() argument 181 int chroot(const char *path) in chroot() argument 183 return __sysret(sys_chroot(path)); in chroot() 625 int sys_rmdir(const char *path) in sys_rmdir() argument 637 int rmdir(const char *path) in rmdir() argument 639 return __sysret(sys_rmdir(path)); in rmdir() 1100 int sys_unlink(const char *path) in sys_unlink() argument [all …]
|
/openbmc/hiomapd/vpnor/ |
H A D | partition.cpp | 40 fs::path Request::getPartitionFilePath(int flags) in getPartitionFilePath() 52 dst = fs::path(priv->paths.rw_loc) / partition.data.name; in getPartitionFilePath() 135 fs::path path = getPartitionFilePath(O_RDONLY); in read() local 139 path.c_str(), offset, dst, len); in read() 141 size_t fileSize = fs::file_size(path); in read() 146 int fd = ::open(path.c_str(), O_RDONLY); in read() 160 path.c_str(), fileSize, lerrno); in read() 198 fs::path path = getPartitionFilePath(O_RDWR); in write() local 202 path.c_str(), offset, dst, len); in write() 204 int fd = ::open(path.c_str(), O_RDWR); in write() [all …]
|
/openbmc/u-boot/fs/yaffs2/ |
H A D | yaffsfs.c | 560 path++; in yaffsfs_CheckPath() 795 if (!path) { in yaffs_open_sharing() 1312 if (!path) { in yaffs_truncate() 1427 if (!path) { in yaffsfs_DoUnlink() 1742 if (!path) { in yaffs_utime() 2238 if (!path) { in yaffs_access() 2296 if (!path) { in yaffs_chmod() 2368 if (!path) { in yaffs_mkdir() 2422 if (!path) { in yaffs_rmdir() 2459 if (!path) { in yaffs_mount_common() [all …]
|
/openbmc/phosphor-logging/ |
H A D | elog_serialize.hpp | 24 fs::path serialize(const Entry& e, 25 const fs::path& dir = fs::path(ERRLOG_PERSIST_PATH)); 33 bool deserialize(const fs::path& path, Entry& e); 41 fs::path 43 const fs::path& dir = fs::path(ERRLOG_PERSIST_PATH));
|
/openbmc/linux/fs/ |
H A D | open.c | 71 long vfs_truncate(const struct path *path, loff_t length) in vfs_truncate() argument 126 struct path path; in do_sys_truncate() local 459 struct path path; in do_faccessat() local 547 struct path path; in SYSCALL_DEFINE1() local 595 struct path path; in SYSCALL_DEFINE1() local 626 int chmod_common(const struct path *path, umode_t mode) in chmod_common() argument 643 error = notify_change(mnt_idmap(path->mnt), path->dentry, in chmod_common() 677 struct path path; in do_fchmodat() local 779 path, in chown_common() 797 struct path path; in do_fchownat() local [all …]
|
/openbmc/phosphor-mboxd/vpnor/ |
H A D | pnor_partition.cpp | 36 fs::path Request::getPartitionFilePath(int flags) in getPartitionFilePath() 39 auto dst = fs::path(ctx->paths.patch_loc) / partition.data.name; in getPartitionFilePath() 68 dst = fs::path(ctx->paths.ro_loc) / partition.data.name; in getPartitionFilePath() 74 auto src = fs::path(ctx->paths.ro_loc) / partition.data.name; in getPartitionFilePath() 99 void Request::resize(const fs::path &path, size_t len) in resize() argument 102 size_t fileSize = fs::file_size(path); in resize() 108 int rc = truncate(path.c_str(), maxAccess); in resize() 116 size_t Request::fulfil(const fs::path &path, int flags, void *buf, size_t len) in fulfil() argument 126 int fd = ::open(path.c_str(), flags); in fulfil() 134 size_t fileSize = fs::file_size(path); in fulfil() [all …]
|
/openbmc/u-boot/scripts/ |
H A D | get_default_envs.sh | 19 path=${1} 21 path=$(readlink -f $0) 22 path=${path%/scripts*} 25 env_obj_file_path=$(find ${path} -path "*/env/*" -not -path "*/spl/*" \ 26 -not -path "*/tools/*" -name "${ENV_OBJ_FILE}")
|
/openbmc/linux/Documentation/admin-guide/device-mapper/ |
H A D | dm-service-time.rst | 10 of in-flight I/Os on a path with the performance value of the path. 14 The path selector name is 'service-time'. 16 Table parameters for each path: 21 path before switching to the next path. 25 The relative throughput value of the path 26 among all paths in the path-group. 32 Status for each path: 36 'A' if the path is active, 'F' if the path is failed. 38 The number of path failures. 40 The size of in-flight I/Os on the path. [all …]
|
/openbmc/openpower-pnor-code-mgmt/ |
H A D | image_verify.cpp | 34 Signature::Signature(const std::filesystem::path& imageDirPath, in Signature() 40 std::filesystem::path file(imageDirPath / MANIFEST_FILE); in Signature() 70 if ((p.path().filename() == HASH_FILE_NAME) || in getAvailableKeyTypesFromSystem() 71 (p.path().filename() == PUBLICKEY_FILE_NAME)) in getAvailableKeyTypesFromSystem() 75 auto key = p.path().parent_path(); in getAvailableKeyTypesFromSystem() 108 std::filesystem::path file(imageDirPath); in verify() 113 std::filesystem::path sigFile(imageDirPath); in verify() 152 std::filesystem::path pkeyFileSig(pkeyFile); in systemLevelVerify() 157 std::filesystem::path manifestFileSig(manifestFile); in systemLevelVerify() 301 CustomMap Signature::mapFile(const std::filesystem::path& path, size_t size) in mapFile() argument [all …]
|
H A D | image_verify.hpp | 23 using PublicKeyPath = std::filesystem::path; 24 using HashFilePath = std::filesystem::path; 129 explicit Signature(const std::filesystem::path& imageDirPath, 131 const std::filesystem::path& signedConfPath); 182 bool verifyFile(const std::filesystem::path& file, 183 const std::filesystem::path& signature, 184 const std::filesystem::path& publicKey, 192 inline EVP_PKEY_Ptr createPublicRSA(const std::filesystem::path& publicKey); 200 CustomMap mapFile(const std::filesystem::path& path, size_t size); 203 std::filesystem::path imageDirPath; [all …]
|
/openbmc/phosphor-psu-code-mgmt/src/ |
H A D | item_updater.cpp | 41 std::string path(std::move(objPath)); in createActivation() local 84 auto pos = path.rfind("/"); in createActivation() 104 fs::path manifestPath(filePath); in createActivation() 429 auto path = dir; in scanDirectory() local 447 path = path / item.model; in scanDirectory() 452 if (path == dir) in scanDirectory() 458 if (!fs::is_directory(path)) in scanDirectory() 481 if (path.stem() != model) in scanDirectory() 509 it->second->path(path); in scanDirectory() 582 std::string path = objPath.str; in onPSUInterfaceAdded() local [all …]
|
/openbmc/openbmc/poky/bitbake/lib/bb/fetch2/ |
H A D | local.py | 33 ud.basename = os.path.basename(ud.decodedurl) 51 path = urldata.decodedurl 52 newpath = path 53 if path[0] == "/": 54 logger.debug2("Using absolute %s" % (path)) 55 return [path] 59 newpath, hist = bb.utils.which(filespath, path, history=True) 60 logger.debug2("Using %s for %s" % (newpath, path)) 65 if os.path.exists(ud.localpath): 72 if self.supports_checksum(urldata) and not os.path.exists(urldata.localpath): [all …]
|
/openbmc/linux/io_uring/ |
H A D | xattr.c | 90 const char __user *path; in io_getxattr_prep() local 127 struct path path; in io_getxattr() local 135 ret = do_getxattr(mnt_idmap(path.mnt), path.dentry, &ix->ctx); in io_getxattr() 137 path_put(&path); in io_getxattr() 183 const char __user *path; in io_setxattr_prep() local 207 const struct path *path) in __io_setxattr() argument 212 ret = mnt_want_write(path->mnt); in __io_setxattr() 214 ret = do_setxattr(mnt_idmap(path->mnt), path->dentry, &ix->ctx); in __io_setxattr() 215 mnt_drop_write(path->mnt); in __io_setxattr() 236 struct path path; in io_setxattr() local [all …]
|
/openbmc/phosphor-logging/extensions/openpower-pels/ |
H A D | repository.cpp | 177 write(*(pel.get()), path); in add() 180 path, in add() 181 getFileDiskSize(path), in add() 205 void Repository::write(const PEL& pel, const fs::path& path) in write() argument 214 fs::remove(path); in write() 230 fs::remove(path); in write() 452 bool Repository::updatePEL(const fs::path& path, PELUpdateFunc updateFunc) in updatePEL() argument 454 std::ifstream file{path}; in updatePEL() 604 return left.get().second.path < right.get().second.path; in getAllPELAttributes() 606 return left.get().second.path > right.get().second.path; in getAllPELAttributes() [all …]
|