Home
last modified time | relevance | path

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

12345678910>>...106

/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.10/drivers/thunderbolt/
Dpath.c106 struct tb_path *path; in tb_path_discover() local
151 path = kzalloc(sizeof(*path), GFP_KERNEL); in tb_path_discover()
152 if (!path) in tb_path_discover()
155 path->name = name; in tb_path_discover()
156 path->tb = src->sw->tb; in tb_path_discover()
157 path->path_length = num_hops; in tb_path_discover()
158 path->activated = true; in tb_path_discover()
160 path->hops = kcalloc(num_hops, sizeof(*path->hops), GFP_KERNEL); in tb_path_discover()
161 if (!path->hops) { in tb_path_discover()
162 kfree(path); in tb_path_discover()
[all …]
Dtunnel.c116 static void tb_pci_init_path(struct tb_path *path) in tb_pci_init_path() argument
118 path->egress_fc_enable = TB_PATH_SOURCE | TB_PATH_INTERNAL; in tb_pci_init_path()
119 path->egress_shared_buffer = TB_PATH_NONE; in tb_pci_init_path()
120 path->ingress_fc_enable = TB_PATH_ALL; in tb_pci_init_path()
121 path->ingress_shared_buffer = TB_PATH_NONE; in tb_pci_init_path()
122 path->priority = 3; in tb_pci_init_path()
123 path->weight = 1; in tb_pci_init_path()
124 path->drop_packages = 0; in tb_pci_init_path()
125 path->nfc_credits = 0; in tb_pci_init_path()
126 path->hops[0].initial_credits = 7; in tb_pci_init_path()
[all …]
/kernel/linux/linux-5.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 = inode_permission(path.dentry->d_inode, 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 …]
/kernel/linux/linux-5.10/fs/btrfs/
Dinode-item.c76 struct btrfs_path *path, in btrfs_lookup_inode_extref() argument
88 ret = btrfs_search_slot(trans, root, &key, path, ins_len, cow); in btrfs_lookup_inode_extref()
93 return btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], in btrfs_lookup_inode_extref()
104 struct btrfs_path *path; in btrfs_del_inode_extref() local
118 path = btrfs_alloc_path(); in btrfs_del_inode_extref()
119 if (!path) in btrfs_del_inode_extref()
122 path->leave_spinning = 1; in btrfs_del_inode_extref()
124 ret = btrfs_search_slot(trans, root, &key, path, -1, 1); in btrfs_del_inode_extref()
135 extref = btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], in btrfs_del_inode_extref()
143 leaf = path->nodes[0]; in btrfs_del_inode_extref()
[all …]
Dfree-space-tree.c17 struct btrfs_path *path);
52 struct btrfs_path *path) in add_new_free_space_info() argument
64 ret = btrfs_insert_empty_item(trans, root, path, &key, sizeof(*info)); in add_new_free_space_info()
68 leaf = path->nodes[0]; in add_new_free_space_info()
69 info = btrfs_item_ptr(leaf, path->slots[0], in add_new_free_space_info()
77 btrfs_release_path(path); in add_new_free_space_info()
85 struct btrfs_path *path, int cow) in search_free_space_info() argument
96 ret = btrfs_search_slot(trans, root, &key, path, 0, cow); in search_free_space_info()
106 return btrfs_item_ptr(path->nodes[0], path->slots[0], in search_free_space_info()
187 struct btrfs_path *path) in convert_free_space_to_bitmaps() argument
[all …]
Dfile-item.c135 struct btrfs_path *path; in btrfs_insert_file_extent() local
138 path = btrfs_alloc_path(); in btrfs_insert_file_extent()
139 if (!path) in btrfs_insert_file_extent()
145 path->leave_spinning = 1; in btrfs_insert_file_extent()
146 ret = btrfs_insert_empty_item(trans, root, path, &file_key, in btrfs_insert_file_extent()
151 leaf = path->nodes[0]; in btrfs_insert_file_extent()
152 item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_insert_file_extent()
167 btrfs_free_path(path); in btrfs_insert_file_extent()
174 struct btrfs_path *path, in btrfs_lookup_csum() argument
190 ret = btrfs_search_slot(trans, root, &file_key, path, 0, cow); in btrfs_lookup_csum()
[all …]
Ddir-item.c21 struct btrfs_path *path, in insert_with_overflow() argument
33 ret = btrfs_insert_empty_item(trans, root, path, cpu_key, data_size); in insert_with_overflow()
36 di = btrfs_match_dir_item_name(fs_info, path, name, name_len); in insert_with_overflow()
39 btrfs_extend_item(path, data_size); in insert_with_overflow()
43 leaf = path->nodes[0]; in insert_with_overflow()
44 item = btrfs_item_nr(path->slots[0]); in insert_with_overflow()
45 ptr = btrfs_item_ptr(leaf, path->slots[0], char); in insert_with_overflow()
57 struct btrfs_path *path, u64 objectid, in btrfs_insert_xattr_item() argument
77 dir_item = insert_with_overflow(trans, root, path, &key, data_size, in btrfs_insert_xattr_item()
83 leaf = path->nodes[0]; in btrfs_insert_xattr_item()
[all …]
Droot-tree.c65 struct btrfs_path *path, struct btrfs_root_item *root_item, in btrfs_find_root() argument
73 ret = btrfs_search_slot(NULL, root, search_key, path, 0, 0); in btrfs_find_root()
82 if (path->slots[0] == 0) in btrfs_find_root()
84 path->slots[0]--; in btrfs_find_root()
88 l = path->nodes[0]; in btrfs_find_root()
89 slot = path->slots[0]; in btrfs_find_root()
103 btrfs_release_path(path); in btrfs_find_root()
123 struct btrfs_path *path; in btrfs_update_root() local
130 path = btrfs_alloc_path(); in btrfs_update_root()
131 if (!path) in btrfs_update_root()
[all …]
Dtree-log.c102 struct btrfs_path *path, u64 objectid);
106 struct btrfs_path *path,
346 struct btrfs_path *path, in overwrite_item() argument
366 ret = btrfs_search_slot(NULL, root, key, path, 0, 0); in overwrite_item()
373 u32 dst_size = btrfs_item_size_nr(path->nodes[0], in overwrite_item()
374 path->slots[0]); in overwrite_item()
379 btrfs_release_path(path); in overwrite_item()
385 btrfs_release_path(path); in overwrite_item()
393 dst_ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in overwrite_item()
394 read_extent_buffer(path->nodes[0], dst_copy, dst_ptr, in overwrite_item()
[all …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.10/security/tomoyo/
Dtomoyo.c121 static int tomoyo_inode_getattr(const struct path *path) in tomoyo_inode_getattr() argument
123 return tomoyo_path_perm(TOMOYO_TYPE_GETATTR, path, NULL); in tomoyo_inode_getattr()
133 static int tomoyo_path_truncate(const struct path *path) in tomoyo_path_truncate() argument
135 return tomoyo_path_perm(TOMOYO_TYPE_TRUNCATE, path, NULL); in tomoyo_path_truncate()
146 static int tomoyo_path_unlink(const struct path *parent, struct dentry *dentry) in tomoyo_path_unlink()
148 struct path path = { .mnt = parent->mnt, .dentry = dentry }; in tomoyo_path_unlink() local
150 return tomoyo_path_perm(TOMOYO_TYPE_UNLINK, &path, NULL); in tomoyo_path_unlink()
162 static int tomoyo_path_mkdir(const struct path *parent, struct dentry *dentry, in tomoyo_path_mkdir()
165 struct path path = { .mnt = parent->mnt, .dentry = dentry }; in tomoyo_path_mkdir() local
167 return tomoyo_path_number_perm(TOMOYO_TYPE_MKDIR, &path, in tomoyo_path_mkdir()
[all …]
/kernel/linux/linux-5.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()
144 err = ext4_journal_get_write_access(handle, path->p_bh); in ext4_ext_get_access()
152 clear_buffer_verified(path->p_bh); in ext4_ext_get_access()
167 struct ext4_ext_path *path) in __ext4_ext_dirty() argument
172 if (path->p_bh) { in __ext4_ext_dirty()
173 ext4_extent_block_csum_set(inode, ext_block_hdr(path->p_bh)); in __ext4_ext_dirty()
176 inode, path->p_bh); in __ext4_ext_dirty()
179 set_buffer_verified(path->p_bh); in __ext4_ext_dirty()
[all …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.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()
54 ret = open(file->path, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR); in perf_data__create_dir()
93 dir = opendir(data->path); in perf_data__open_dir()
99 char path[PATH_MAX]; in perf_data__open_dir() local
102 snprintf(path, sizeof(path), "%s/%s", data->path, dent->d_name); in perf_data__open_dir()
103 if (stat(path, &st)) in perf_data__open_dir()
118 file->path = strdup(path); in perf_data__open_dir()
119 if (!file->path) in perf_data__open_dir()
122 ret = open(file->path, O_RDONLY); in perf_data__open_dir()
[all …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.10/include/linux/
Dnamei.h50 extern int path_pts(struct path *path);
52 extern int user_path_at_empty(int, const char __user *, unsigned, struct path *, int *empty);
55 struct path *path) in user_path_at() argument
57 return user_path_at_empty(dfd, name, flags, path, NULL); in user_path_at()
60 extern int kern_path(const char *, unsigned, struct path *);
62 extern struct dentry *kern_path_create(int, const char *, struct path *, unsigned int);
63 extern struct dentry *user_path_create(int, const char __user *, struct path *, unsigned int);
64 extern void done_path_create(struct path *, struct dentry *);
65 extern struct dentry *kern_path_locked(const char *, struct path *);
72 extern int follow_down_one(struct path *);
[all …]
/kernel/linux/linux-5.10/Documentation/sphinx/
Dkernel_include.py34 import os.path
62 path = os.path.realpath(
63 os.path.expandvars(self.arguments[0]))
66 if path.startswith(os.sep + "etc"):
69 % (self.name, path))
71 self.arguments[0] = path
88 source_dir = os.path.dirname(os.path.abspath(source))
89 path = directives.path(self.arguments[0])
90 if path.startswith('<') and path.endswith('>'):
91 path = os.path.join(self.standard_include_path, path[1:-1])
[all …]
/kernel/linux/linux-5.10/security/apparmor/
Dpath.c48 static int disconnect(const struct path *path, char *buf, char **name, in disconnect() argument
55 our_mnt(path->mnt))) { in disconnect()
88 static int d_namespace_path(const struct path *path, char *buf, char **name, in d_namespace_path() argument
97 if (path->mnt->mnt_flags & MNT_INTERNAL) { in d_namespace_path()
99 res = dentry_path(path->dentry, buf, buflen); in d_namespace_path()
105 if (path->dentry->d_sb->s_magic == PROC_SUPER_MAGIC && in d_namespace_path()
113 error = disconnect(path, buf, name, flags, in d_namespace_path()
120 struct path root; in d_namespace_path()
122 res = __d_path(path, &root, buf, buflen); in d_namespace_path()
125 res = d_absolute_path(path, buf, buflen); in d_namespace_path()
[all …]

12345678910>>...106