Home
last modified time | relevance | path

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

12345678910>>...72

/linux-5.19.10/drivers/video/fbdev/mmp/
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 …]
/linux-5.19.10/tools/testing/selftests/openat2/
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 …]
/linux-5.19.10/drivers/thunderbolt/
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 …]
/linux-5.19.10/fs/
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 …]
Dfhandle.c17 static long do_sys_name_to_handle(struct path *path, in do_sys_name_to_handle() argument
30 if (!path->dentry->d_sb->s_export_op || in do_sys_name_to_handle()
31 !path->dentry->d_sb->s_export_op->fh_to_dentry) in do_sys_name_to_handle()
49 retval = exportfs_encode_fh(path->dentry, in do_sys_name_to_handle()
72 if (put_user(real_mount(path->mnt)->mnt_id, mnt_id) || in do_sys_name_to_handle()
97 struct path path; in SYSCALL_DEFINE5() local
107 err = user_path_at(dfd, name, lookup_flags, &path); in SYSCALL_DEFINE5()
109 err = do_sys_name_to_handle(&path, handle, mnt_id); in SYSCALL_DEFINE5()
110 path_put(&path); in SYSCALL_DEFINE5()
140 struct path *path) in do_handle_to_path() argument
[all …]
/linux-5.19.10/drivers/net/wireless/realtek/rtw89/
Drtw8852c_rfk.c136 u8 path; in _wait_rx_mode() local
140 for (path = 0; path < RF_PATH_MAX; path++) { in _wait_rx_mode()
141 if (!(kpath & BIT(path))) in _wait_rx_mode()
145 2, 5000, false, rtwdev, path, 0x00, in _wait_rx_mode()
149 path, ret); in _wait_rx_mode()
287 enum rtw89_rf_path path, u8 index) in _dack_reload_by_path() argument
295 path_offset = (path == RF_PATH_A ? 0 : 0x28); in _dack_reload_by_path()
303 val32 |= dack->msbk_d[path][index][i + 12] << (i * 8); in _dack_reload_by_path()
312 val32 |= dack->msbk_d[path][index][i + 8] << (i * 8); in _dack_reload_by_path()
321 val32 |= dack->msbk_d[path][index][i + 4] << (i * 8); in _dack_reload_by_path()
[all …]
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 …]
/linux-5.19.10/fs/nilfs2/
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 …]
/linux-5.19.10/fs/btrfs/
Dinode-item.c77 struct btrfs_path *path, in btrfs_lookup_inode_extref() argument
89 ret = btrfs_search_slot(trans, root, &key, path, ins_len, cow); in btrfs_lookup_inode_extref()
94 return btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], in btrfs_lookup_inode_extref()
105 struct btrfs_path *path; in btrfs_del_inode_extref() local
119 path = btrfs_alloc_path(); in btrfs_del_inode_extref()
120 if (!path) in btrfs_del_inode_extref()
123 ret = btrfs_search_slot(trans, root, &key, path, -1, 1); in btrfs_del_inode_extref()
134 extref = btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], in btrfs_del_inode_extref()
142 leaf = path->nodes[0]; in btrfs_del_inode_extref()
143 item_size = btrfs_item_size(leaf, path->slots[0]); in btrfs_del_inode_extref()
[all …]
Dfree-space-tree.c17 struct btrfs_path *path);
66 struct btrfs_path *path) in add_new_free_space_info() argument
78 ret = btrfs_insert_empty_item(trans, root, path, &key, sizeof(*info)); in add_new_free_space_info()
82 leaf = path->nodes[0]; in add_new_free_space_info()
83 info = btrfs_item_ptr(leaf, path->slots[0], in add_new_free_space_info()
91 btrfs_release_path(path); in add_new_free_space_info()
99 struct btrfs_path *path, int cow) in search_free_space_info() argument
110 ret = btrfs_search_slot(trans, root, &key, path, 0, cow); in search_free_space_info()
120 return btrfs_item_ptr(path->nodes[0], path->slots[0], in search_free_space_info()
202 struct btrfs_path *path) in convert_free_space_to_bitmaps() argument
[all …]
Dfile-item.c142 struct btrfs_path *path; in btrfs_insert_file_extent() local
145 path = btrfs_alloc_path(); in btrfs_insert_file_extent()
146 if (!path) in btrfs_insert_file_extent()
152 ret = btrfs_insert_empty_item(trans, root, path, &file_key, in btrfs_insert_file_extent()
157 leaf = path->nodes[0]; in btrfs_insert_file_extent()
158 item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_insert_file_extent()
173 btrfs_free_path(path); in btrfs_insert_file_extent()
180 struct btrfs_path *path, in btrfs_lookup_csum() argument
196 ret = btrfs_search_slot(trans, root, &file_key, path, 0, cow); in btrfs_lookup_csum()
199 leaf = path->nodes[0]; in btrfs_lookup_csum()
[all …]
Dctree.c22 *root, struct btrfs_path *path, int level);
24 const struct btrfs_key *ins_key, struct btrfs_path *path,
32 static void del_ptr(struct btrfs_root *root, struct btrfs_path *path,
867 struct btrfs_path *path, int level) in balance_level() argument
877 int orig_slot = path->slots[level]; in balance_level()
882 mid = path->nodes[level]; in balance_level()
884 WARN_ON(path->locks[level] != BTRFS_WRITE_LOCK); in balance_level()
890 parent = path->nodes[level + 1]; in balance_level()
891 pslot = path->slots[level + 1]; in balance_level()
928 path->locks[level] = 0; in balance_level()
[all …]
Droot-tree.c63 struct btrfs_path *path, struct btrfs_root_item *root_item, in btrfs_find_root() argument
71 ret = btrfs_search_slot(NULL, root, search_key, path, 0, 0); in btrfs_find_root()
80 if (path->slots[0] == 0) in btrfs_find_root()
82 path->slots[0]--; in btrfs_find_root()
86 l = path->nodes[0]; in btrfs_find_root()
87 slot = path->slots[0]; in btrfs_find_root()
101 btrfs_release_path(path); in btrfs_find_root()
121 struct btrfs_path *path; in btrfs_update_root() local
128 path = btrfs_alloc_path(); in btrfs_update_root()
129 if (!path) in btrfs_update_root()
[all …]
Dtree-log.c103 struct btrfs_path *path, u64 objectid);
107 struct btrfs_path *path,
356 struct btrfs_path *path, in do_overwrite_item() argument
376 ASSERT(path->nodes[0] != NULL); in do_overwrite_item()
382 if (path->slots[0] < btrfs_header_nritems(path->nodes[0])) { in do_overwrite_item()
385 btrfs_item_key_to_cpu(path->nodes[0], &found_key, path->slots[0]); in do_overwrite_item()
395 u32 dst_size = btrfs_item_size(path->nodes[0], in do_overwrite_item()
396 path->slots[0]); in do_overwrite_item()
401 btrfs_release_path(path); in do_overwrite_item()
407 btrfs_release_path(path); in do_overwrite_item()
[all …]
Ddir-item.c21 struct btrfs_path *path, in insert_with_overflow() argument
32 ret = btrfs_insert_empty_item(trans, root, path, cpu_key, data_size); in insert_with_overflow()
35 di = btrfs_match_dir_item_name(fs_info, path, name, name_len); in insert_with_overflow()
38 btrfs_extend_item(path, data_size); in insert_with_overflow()
42 leaf = path->nodes[0]; in insert_with_overflow()
43 ptr = btrfs_item_ptr(leaf, path->slots[0], char); in insert_with_overflow()
44 ASSERT(data_size <= btrfs_item_size(leaf, path->slots[0])); in insert_with_overflow()
45 ptr += btrfs_item_size(leaf, path->slots[0]) - data_size; in insert_with_overflow()
55 struct btrfs_path *path, u64 objectid, in btrfs_insert_xattr_item() argument
75 dir_item = insert_with_overflow(trans, root, path, &key, data_size, in btrfs_insert_xattr_item()
[all …]
/linux-5.19.10/drivers/video/fbdev/mmp/hw/
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 …]
/linux-5.19.10/drivers/net/ethernet/mediatek/
Dmtk_eth_path.c18 int (*set_path)(struct mtk_eth *eth, int path);
21 static const char *mtk_eth_path_name(int path) in mtk_eth_path_name() argument
23 switch (path) { in mtk_eth_path_name()
43 static int set_mux_gdm1_to_gmac1_esw(struct mtk_eth *eth, int path) in set_mux_gdm1_to_gmac1_esw() argument
48 switch (path) { in set_mux_gdm1_to_gmac1_esw()
69 mtk_eth_path_name(path), __func__, updated); in set_mux_gdm1_to_gmac1_esw()
74 static int set_mux_gmac2_gmac0_to_gephy(struct mtk_eth *eth, int path) in set_mux_gmac2_gmac0_to_gephy() argument
79 switch (path) { in set_mux_gmac2_gmac0_to_gephy()
92 mtk_eth_path_name(path), __func__, updated); in set_mux_gmac2_gmac0_to_gephy()
97 static int set_mux_u3_gmac2_to_qphy(struct mtk_eth *eth, int path) in set_mux_u3_gmac2_to_qphy() argument
[all …]
/linux-5.19.10/include/trace/events/
Dcgroup.h56 TP_PROTO(struct cgroup *cgrp, const char *path),
58 TP_ARGS(cgrp, path),
64 __string( path, path )
71 __assign_str(path, path);
75 __entry->root, __entry->id, __entry->level, __get_str(path))
80 TP_PROTO(struct cgroup *cgrp, const char *path),
82 TP_ARGS(cgrp, path)
87 TP_PROTO(struct cgroup *cgrp, const char *path),
89 TP_ARGS(cgrp, path)
94 TP_PROTO(struct cgroup *cgrp, const char *path),
[all …]
/linux-5.19.10/security/tomoyo/
Dtomoyo.c120 static int tomoyo_inode_getattr(const struct path *path) in tomoyo_inode_getattr() argument
122 return tomoyo_path_perm(TOMOYO_TYPE_GETATTR, path, NULL); in tomoyo_inode_getattr()
132 static int tomoyo_path_truncate(const struct path *path) in tomoyo_path_truncate() argument
134 return tomoyo_path_perm(TOMOYO_TYPE_TRUNCATE, path, NULL); in tomoyo_path_truncate()
145 static int tomoyo_path_unlink(const struct path *parent, struct dentry *dentry) in tomoyo_path_unlink()
147 struct path path = { .mnt = parent->mnt, .dentry = dentry }; in tomoyo_path_unlink() local
149 return tomoyo_path_perm(TOMOYO_TYPE_UNLINK, &path, NULL); in tomoyo_path_unlink()
161 static int tomoyo_path_mkdir(const struct path *parent, struct dentry *dentry, in tomoyo_path_mkdir()
164 struct path path = { .mnt = parent->mnt, .dentry = dentry }; in tomoyo_path_mkdir() local
166 return tomoyo_path_number_perm(TOMOYO_TYPE_MKDIR, &path, in tomoyo_path_mkdir()
[all …]
/linux-5.19.10/fs/ext4/
Dextents.c137 struct ext4_ext_path *path) in ext4_ext_get_access() argument
141 if (path->p_bh) { in ext4_ext_get_access()
143 BUFFER_TRACE(path->p_bh, "get_write_access"); in ext4_ext_get_access()
145 path->p_bh, EXT4_JTR_NONE); in ext4_ext_get_access()
153 clear_buffer_verified(path->p_bh); in ext4_ext_get_access()
168 struct ext4_ext_path *path) in __ext4_ext_dirty() argument
173 if (path->p_bh) { in __ext4_ext_dirty()
174 ext4_extent_block_csum_set(inode, ext_block_hdr(path->p_bh)); in __ext4_ext_dirty()
177 inode, path->p_bh); in __ext4_ext_dirty()
180 set_buffer_verified(path->p_bh); in __ext4_ext_dirty()
[all …]
/linux-5.19.10/include/net/iucv/
Diucv.h226 struct iucv_path *path; in iucv_path_alloc() local
228 path = kzalloc(sizeof(struct iucv_path), gfp); in iucv_path_alloc()
229 if (path) { in iucv_path_alloc()
230 path->msglim = msglim; in iucv_path_alloc()
231 path->flags = flags; in iucv_path_alloc()
233 return path; in iucv_path_alloc()
242 static inline void iucv_path_free(struct iucv_path *path) in iucv_path_free() argument
244 kfree(path); in iucv_path_free()
259 int iucv_path_accept(struct iucv_path *path, struct iucv_handler *handler,
277 int iucv_path_connect(struct iucv_path *path, struct iucv_handler *handler,
[all …]
/linux-5.19.10/fs/btrfs/tests/
Dfree-space-tree-tests.c22 struct btrfs_path *path, in __check_free_space_extents() argument
34 info = search_free_space_info(trans, cache, path, 0); in __check_free_space_extents()
40 flags = btrfs_free_space_flags(path->nodes[0], info); in __check_free_space_extents()
41 extent_count = btrfs_free_space_extent_count(path->nodes[0], info); in __check_free_space_extents()
49 if (path->slots[0] != 0) in __check_free_space_extents()
53 while (++path->slots[0] < btrfs_header_nritems(path->nodes[0])) { in __check_free_space_extents()
54 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in __check_free_space_extents()
59 bit = free_space_test_bit(cache, path, offset); in __check_free_space_extents()
83 if (btrfs_header_nritems(path->nodes[0]) != num_extents + 1 || in __check_free_space_extents()
84 path->slots[0] != 0) in __check_free_space_extents()
[all …]
/linux-5.19.10/drivers/interconnect/
Dcore.c155 struct icc_path *path; in path_init() local
158 path = kzalloc(struct_size(path, reqs, num_nodes), GFP_KERNEL); in path_init()
159 if (!path) in path_init()
162 path->num_nodes = num_nodes; in path_init()
166 hlist_add_head(&path->reqs[i].req_node, &node->req_list); in path_init()
167 path->reqs[i].node = node; in path_init()
168 path->reqs[i].dev = dev; in path_init()
169 path->reqs[i].enabled = true; in path_init()
174 return path; in path_init()
180 struct icc_path *path = ERR_PTR(-EPROBE_DEFER); in path_find() local
[all …]
/linux-5.19.10/Documentation/sphinx/
Dkernel_include.py34 import os.path
63 path = os.path.realpath(
64 os.path.expandvars(self.arguments[0]))
67 if path.startswith(os.sep + "etc"):
70 % (self.name, path))
72 self.arguments[0] = path
74 env.note_dependency(os.path.abspath(path))
91 source_dir = os.path.dirname(os.path.abspath(source))
92 path = directives.path(self.arguments[0])
93 if path.startswith('<') and path.endswith('>'):
[all …]
/linux-5.19.10/tools/perf/util/
Ddata.c25 zfree(&files[nr].path); in close_dir()
50 ret = asprintf(&file->path, "%s/data.%d", data->path, i); in perf_data__create_dir()
56 ret = open(file->path, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR); in perf_data__create_dir()
97 dir = opendir(data->path); in perf_data__open_dir()
103 char path[PATH_MAX]; in perf_data__open_dir() local
106 snprintf(path, sizeof(path), "%s/%s", data->path, dent->d_name); in perf_data__open_dir()
107 if (stat(path, &st)) in perf_data__open_dir()
122 file->path = strdup(path); in perf_data__open_dir()
123 if (!file->path) in perf_data__open_dir()
126 ret = open(file->path, O_RDONLY); in perf_data__open_dir()
[all …]

12345678910>>...72