Home
last modified time | relevance | path

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

12345678910>>...193

/openbmc/linux/drivers/video/fbdev/mmp/
H A Dcore.c16 static struct mmp_overlay *path_get_overlay(struct mmp_path *path, in path_get_overlay() argument
19 if (path && overlay_id < path->overlay_num) in path_get_overlay()
20 return &path->overlays[overlay_id]; in path_get_overlay()
24 static int path_check_status(struct mmp_path *path) in path_check_status() argument
27 for (i = 0; i < path->overlay_num; i++) in path_check_status()
28 if (path->overlays[i].status) in path_check_status()
41 static int path_get_modelist(struct mmp_path *path, in path_get_modelist() argument
44 BUG_ON(!path || !modelist); in path_get_modelist()
46 if (path->panel && path->panel->get_modelist) in path_get_modelist()
47 return path->panel->get_modelist(path->panel, modelist); in path_get_modelist()
[all …]
/openbmc/linux/drivers/net/wireless/realtek/rtw89/
H A Drtw8852c_rfk.c151 u8 path; in _wait_rx_mode() local
155 for (path = 0; path < RF_PATH_MAX; path++) { in _wait_rx_mode()
156 if (!(kpath & BIT(path))) in _wait_rx_mode()
160 2, 5000, false, rtwdev, path, 0x00, in _wait_rx_mode()
164 path, ret); in _wait_rx_mode()
302 enum rtw89_rf_path path, u8 index) in _dack_reload_by_path() argument
310 path_offset = (path == RF_PATH_A ? 0 : 0x28); in _dack_reload_by_path()
318 val32 |= dack->msbk_d[path][index][i + 12] << (i * 8); in _dack_reload_by_path()
327 val32 |= dack->msbk_d[path][index][i + 8] << (i * 8); in _dack_reload_by_path()
336 val32 |= dack->msbk_d[path][index][i + 4] << (i * 8); in _dack_reload_by_path()
[all …]
H A Drtw8852a_rfk.c94 u8 path; in _wait_rx_mode() local
98 for (path = 0; path < RF_PATH_MAX; path++) { in _wait_rx_mode()
99 if (!(kpath & BIT(path))) in _wait_rx_mode()
103 2, 5000, false, rtwdev, path, 0x00, in _wait_rx_mode()
107 path, ret); in _wait_rx_mode()
254 enum rtw89_rf_path path, u8 index) in _dack_reload_by_path() argument
266 if (path == RF_PATH_A) in _dack_reload_by_path()
275 tmp |= dack->msbk_d[path][index][i + 12] << (i * 8); in _dack_reload_by_path()
283 tmp |= dack->msbk_d[path][index][i + 8] << (i * 8); in _dack_reload_by_path()
291 tmp |= dack->msbk_d[path][index][i + 4] << (i * 8); in _dack_reload_by_path()
[all …]
H A Drtw8852b_rfk.c234 enum rtw89_rf_path path, bool is_bybb) in _rfk_rf_direct_cntrl() argument
237 rtw89_write_rf(rtwdev, path, RR_RSV1, RR_RSV1_RST, 0x1); in _rfk_rf_direct_cntrl()
239 rtw89_write_rf(rtwdev, path, RR_RSV1, RR_RSV1_RST, 0x0); in _rfk_rf_direct_cntrl()
243 enum rtw89_rf_path path, bool is_bybb) in _rfk_drf_direct_cntrl() argument
246 rtw89_write_rf(rtwdev, path, RR_BBDC, RR_BBDC_SEL, 0x1); in _rfk_drf_direct_cntrl()
248 rtw89_write_rf(rtwdev, path, RR_BBDC, RR_BBDC_SEL, 0x0); in _rfk_drf_direct_cntrl()
251 static bool _iqk_check_cal(struct rtw89_dev *rtwdev, u8 path) in _iqk_check_cal() argument
268 rtw89_debug(rtwdev, RTW89_DBG_RFK, "[IQK]S%x, ret=%d\n", path, ret); in _iqk_check_cal()
270 rtw89_debug(rtwdev, RTW89_DBG_RFK, "[IQK]S%x, 0x8008 = 0x%x\n", path, val); in _iqk_check_cal()
294 enum rtw89_rf_path path) in _set_rx_dck() argument
[all …]
H A Drtw8851b_rfk.c141 u8 path) in _adc_fifo_rst() argument
149 enum rtw89_rf_path path, bool is_bybb) in _rfk_rf_direct_cntrl() argument
152 rtw89_write_rf(rtwdev, path, RR_RSV1, RR_RSV1_RST, 0x1); in _rfk_rf_direct_cntrl()
154 rtw89_write_rf(rtwdev, path, RR_RSV1, RR_RSV1_RST, 0x0); in _rfk_rf_direct_cntrl()
158 enum rtw89_rf_path path, bool is_bybb) in _rfk_drf_direct_cntrl() argument
161 rtw89_write_rf(rtwdev, path, RR_BBDC, RR_BBDC_SEL, 0x1); in _rfk_drf_direct_cntrl()
163 rtw89_write_rf(rtwdev, path, RR_BBDC, RR_BBDC_SEL, 0x0); in _rfk_drf_direct_cntrl()
169 u8 path; in _wait_rx_mode() local
172 for (path = 0; path < RF_PATH_MAX; path++) { in _wait_rx_mode()
173 if (!(kpath & BIT(path))) in _wait_rx_mode()
[all …]
/openbmc/linux/tools/testing/selftests/openat2/
H A Dresolve_test.c112 const char *path; member
117 const char *path; member
139 .path = "/", .how.resolve = RESOLVE_BENEATH, in test_openat2_opath_tests()
142 .path = "cheeky/absself", .how.resolve = RESOLVE_BENEATH, in test_openat2_opath_tests()
145 .path = "abscheeky/absself", .how.resolve = RESOLVE_BENEATH, in test_openat2_opath_tests()
148 .path = "..", .how.resolve = RESOLVE_BENEATH, in test_openat2_opath_tests()
151 .path = "../root/", .how.resolve = RESOLVE_BENEATH, in test_openat2_opath_tests()
154 .path = "cheeky/self", .how.resolve = RESOLVE_BENEATH, in test_openat2_opath_tests()
157 .path = "abscheeky/self", .how.resolve = RESOLVE_BENEATH, in test_openat2_opath_tests()
160 .path = "cheeky/garbageself", .how.resolve = RESOLVE_BENEATH, in test_openat2_opath_tests()
[all …]
/openbmc/linux/drivers/thunderbolt/
H A Dpath.c108 struct tb_path *path; in tb_path_discover() local
153 path = kzalloc(sizeof(*path), GFP_KERNEL); in tb_path_discover()
154 if (!path) in tb_path_discover()
157 path->name = name; in tb_path_discover()
158 path->tb = src->sw->tb; in tb_path_discover()
159 path->path_length = num_hops; in tb_path_discover()
160 path->activated = true; in tb_path_discover()
161 path->alloc_hopid = alloc_hopid; in tb_path_discover()
163 path->hops = kcalloc(num_hops, sizeof(*path->hops), GFP_KERNEL); in tb_path_discover()
164 if (!path->hops) { in tb_path_discover()
[all …]
/openbmc/linux/fs/
H A Dinit.c19 struct path path; in init_mount() local
22 ret = kern_path(dir_name, LOOKUP_FOLLOW, &path); in init_mount()
25 ret = path_mount(dev_name, &path, type_page, flags, data_page); in init_mount()
26 path_put(&path); in init_mount()
33 struct path path; in init_umount() local
38 ret = kern_path(name, lookup_flags, &path); in init_umount()
41 return path_umount(&path, flags); in init_umount()
46 struct path path; in init_chdir() local
49 error = kern_path(filename, LOOKUP_FOLLOW | LOOKUP_DIRECTORY, &path); in init_chdir()
52 error = path_permission(&path, MAY_EXEC | MAY_CHDIR); in init_chdir()
[all …]
/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 CustomDBus::getLocationCode(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/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.cpp35 inline void makeFileRemovable(const fs::path& path) in makeFileRemovable() argument
39 fs::remove_all(path); in makeFileRemovable()
42 fs::path savePath{path.native() + ".save"}; in makeFileRemovable()
43 fs::rename(savePath, path); in makeFileRemovable()
53 inline void makeFileUnRemovable(const fs::path& path) in makeFileUnRemovable() argument
56 fs::path savePath{path.native() + ".save"}; in makeFileUnRemovable()
57 fs::rename(path, savePath); in makeFileUnRemovable()
60 fs::create_directory(path); in makeFileUnRemovable()
64 std::ofstream childFile{path / "childFile"}; in makeFileUnRemovable()
100 fs::path path = tmpFile->getPath(); in TEST_F() local
[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/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/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/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 …]
/openbmc/linux/fs/nilfs2/
H A Dbtree.c25 struct nilfs_btree_path *path; in nilfs_btree_alloc_path() local
28 path = kmem_cache_alloc(nilfs_btree_path_cache, GFP_NOFS); in nilfs_btree_alloc_path()
29 if (path == NULL) in nilfs_btree_alloc_path()
33 path[level].bp_bh = NULL; in nilfs_btree_alloc_path()
34 path[level].bp_sib_bh = NULL; in nilfs_btree_alloc_path()
35 path[level].bp_index = 0; in nilfs_btree_alloc_path()
36 path[level].bp_oldreq.bpr_ptr = NILFS_BMAP_INVALID_PTR; in nilfs_btree_alloc_path()
37 path[level].bp_newreq.bpr_ptr = NILFS_BMAP_INVALID_PTR; in nilfs_btree_alloc_path()
38 path[level].bp_op = NULL; in nilfs_btree_alloc_path()
42 return path; in nilfs_btree_alloc_path()
[all …]
/openbmc/linux/fs/btrfs/
H A Dfile-item.c168 struct btrfs_path *path; in btrfs_insert_hole_extent() local
171 path = btrfs_alloc_path(); in btrfs_insert_hole_extent()
172 if (!path) in btrfs_insert_hole_extent()
178 ret = btrfs_insert_empty_item(trans, root, path, &file_key, in btrfs_insert_hole_extent()
183 leaf = path->nodes[0]; in btrfs_insert_hole_extent()
184 item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_insert_hole_extent()
199 btrfs_free_path(path); in btrfs_insert_hole_extent()
206 struct btrfs_path *path, in btrfs_lookup_csum() argument
222 ret = btrfs_search_slot(trans, root, &file_key, path, 0, cow); in btrfs_lookup_csum()
225 leaf = path->nodes[0]; in btrfs_lookup_csum()
[all …]
H A Dinode-item.c85 struct btrfs_path *path, in btrfs_lookup_inode_extref() argument
97 ret = btrfs_search_slot(trans, root, &key, path, ins_len, cow); in btrfs_lookup_inode_extref()
102 return btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], in btrfs_lookup_inode_extref()
113 struct btrfs_path *path; in btrfs_del_inode_extref() local
127 path = btrfs_alloc_path(); in btrfs_del_inode_extref()
128 if (!path) in btrfs_del_inode_extref()
131 ret = btrfs_search_slot(trans, root, &key, path, -1, 1); in btrfs_del_inode_extref()
142 extref = btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], in btrfs_del_inode_extref()
150 leaf = path->nodes[0]; in btrfs_del_inode_extref()
151 item_size = btrfs_item_size(leaf, path->slots[0]); in btrfs_del_inode_extref()
[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/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/linux/drivers/video/fbdev/mmp/hw/
H A Dmmp_ctrl.c122 struct mmp_path *path = overlay->path; in dmafetch_set_fmt() local
123 tmp = readl_relaxed(ctrl_regs(path) + dma_ctrl(0, path->id)); in dmafetch_set_fmt()
126 writel_relaxed(tmp, ctrl_regs(path) + dma_ctrl(0, path->id)); in dmafetch_set_fmt()
131 struct lcd_regs *regs = path_regs(overlay->path); in overlay_set_win()
171 struct mmp_path *path = overlay->path; in dmafetch_onoff() local
174 tmp = readl_relaxed(ctrl_regs(path) + dma_ctrl(0, path->id)); in dmafetch_onoff()
177 writel(tmp, ctrl_regs(path) + dma_ctrl(0, path->id)); in dmafetch_onoff()
181 static void path_enabledisable(struct mmp_path *path, int on) in path_enabledisable() argument
184 mutex_lock(&path->access_ok); in path_enabledisable()
185 tmp = readl_relaxed(ctrl_regs(path) + LCD_SCLK(path)); in path_enabledisable()
[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/
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 …]

12345678910>>...193