Home
last modified time | relevance | path

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

12345678910>>...88

/Linux-v5.4/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-v5.4/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.c93 static void tb_pci_init_path(struct tb_path *path) in tb_pci_init_path() argument
95 path->egress_fc_enable = TB_PATH_SOURCE | TB_PATH_INTERNAL; in tb_pci_init_path()
96 path->egress_shared_buffer = TB_PATH_NONE; in tb_pci_init_path()
97 path->ingress_fc_enable = TB_PATH_ALL; in tb_pci_init_path()
98 path->ingress_shared_buffer = TB_PATH_NONE; in tb_pci_init_path()
99 path->priority = 3; in tb_pci_init_path()
100 path->weight = 1; in tb_pci_init_path()
101 path->drop_packages = 0; in tb_pci_init_path()
102 path->nfc_credits = 0; in tb_pci_init_path()
103 path->hops[0].initial_credits = 7; in tb_pci_init_path()
[all …]
/Linux-v5.4/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);
49 struct btrfs_path *path) in add_new_free_space_info() argument
61 ret = btrfs_insert_empty_item(trans, root, path, &key, sizeof(*info)); in add_new_free_space_info()
65 leaf = path->nodes[0]; in add_new_free_space_info()
66 info = btrfs_item_ptr(leaf, path->slots[0], in add_new_free_space_info()
74 btrfs_release_path(path); in add_new_free_space_info()
82 struct btrfs_path *path, int cow) in search_free_space_info() argument
93 ret = btrfs_search_slot(trans, root, &key, path, 0, cow); in search_free_space_info()
103 return btrfs_item_ptr(path->nodes[0], path->slots[0], in search_free_space_info()
184 struct btrfs_path *path) in convert_free_space_to_bitmaps() argument
[all …]
Dfile-item.c44 struct btrfs_path *path; in btrfs_insert_file_extent() local
47 path = btrfs_alloc_path(); in btrfs_insert_file_extent()
48 if (!path) in btrfs_insert_file_extent()
54 path->leave_spinning = 1; in btrfs_insert_file_extent()
55 ret = btrfs_insert_empty_item(trans, root, path, &file_key, in btrfs_insert_file_extent()
60 leaf = path->nodes[0]; in btrfs_insert_file_extent()
61 item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_insert_file_extent()
76 btrfs_free_path(path); in btrfs_insert_file_extent()
83 struct btrfs_path *path, in btrfs_lookup_csum() argument
99 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.c67 struct btrfs_path *path, struct btrfs_root_item *root_item, in btrfs_find_root() argument
75 ret = btrfs_search_slot(NULL, root, search_key, path, 0, 0); in btrfs_find_root()
84 if (path->slots[0] == 0) in btrfs_find_root()
86 path->slots[0]--; in btrfs_find_root()
90 l = path->nodes[0]; in btrfs_find_root()
91 slot = path->slots[0]; in btrfs_find_root()
105 btrfs_release_path(path); in btrfs_find_root()
125 struct btrfs_path *path; in btrfs_update_root() local
132 path = btrfs_alloc_path(); in btrfs_update_root()
133 if (!path) in btrfs_update_root()
[all …]
Dtree-log.c102 struct btrfs_path *path, u64 objectid);
106 struct btrfs_path *path,
344 struct btrfs_path *path, in overwrite_item() argument
364 ret = btrfs_search_slot(NULL, root, key, path, 0, 0); in overwrite_item()
371 u32 dst_size = btrfs_item_size_nr(path->nodes[0], in overwrite_item()
372 path->slots[0]); in overwrite_item()
377 btrfs_release_path(path); in overwrite_item()
383 btrfs_release_path(path); in overwrite_item()
391 dst_ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in overwrite_item()
392 read_extent_buffer(path->nodes[0], dst_copy, dst_ptr, in overwrite_item()
[all …]
Duuid-tree.c26 struct btrfs_path *path = NULL; in btrfs_uuid_tree_lookup() local
38 path = btrfs_alloc_path(); in btrfs_uuid_tree_lookup()
39 if (!path) { in btrfs_uuid_tree_lookup()
45 ret = btrfs_search_slot(NULL, uuid_root, &key, path, 0, 0); in btrfs_uuid_tree_lookup()
53 eb = path->nodes[0]; in btrfs_uuid_tree_lookup()
54 slot = path->slots[0]; in btrfs_uuid_tree_lookup()
78 btrfs_free_path(path); in btrfs_uuid_tree_lookup()
88 struct btrfs_path *path = NULL; in btrfs_uuid_tree_add() local
106 path = btrfs_alloc_path(); in btrfs_uuid_tree_add()
107 if (!path) { in btrfs_uuid_tree_add()
[all …]
/Linux-v5.4/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-v5.4/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()
164 struct mmp_path *path = overlay->path; in dmafetch_onoff() local
167 tmp = readl_relaxed(ctrl_regs(path) + dma_ctrl(0, path->id)); in dmafetch_onoff()
170 writel(tmp, ctrl_regs(path) + dma_ctrl(0, path->id)); in dmafetch_onoff()
174 static void path_enabledisable(struct mmp_path *path, int on) in path_enabledisable() argument
177 mutex_lock(&path->access_ok); in path_enabledisable()
178 tmp = readl_relaxed(ctrl_regs(path) + LCD_SCLK(path)); in path_enabledisable()
[all …]
/Linux-v5.4/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-v5.4/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-v5.4/security/tomoyo/
Dtomoyo.c127 static int tomoyo_inode_getattr(const struct path *path) in tomoyo_inode_getattr() argument
129 return tomoyo_path_perm(TOMOYO_TYPE_GETATTR, path, NULL); in tomoyo_inode_getattr()
139 static int tomoyo_path_truncate(const struct path *path) in tomoyo_path_truncate() argument
141 return tomoyo_path_perm(TOMOYO_TYPE_TRUNCATE, path, NULL); in tomoyo_path_truncate()
152 static int tomoyo_path_unlink(const struct path *parent, struct dentry *dentry) in tomoyo_path_unlink()
154 struct path path = { .mnt = parent->mnt, .dentry = dentry }; in tomoyo_path_unlink() local
156 return tomoyo_path_perm(TOMOYO_TYPE_UNLINK, &path, NULL); in tomoyo_path_unlink()
168 static int tomoyo_path_mkdir(const struct path *parent, struct dentry *dentry, in tomoyo_path_mkdir()
171 struct path path = { .mnt = parent->mnt, .dentry = dentry }; in tomoyo_path_mkdir() local
173 return tomoyo_path_number_perm(TOMOYO_TYPE_MKDIR, &path, in tomoyo_path_mkdir()
[all …]
/Linux-v5.4/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-v5.4/fs/
Dnamei.c467 void path_get(const struct path *path) in path_get() argument
469 mntget(path->mnt); in path_get()
470 dget(path->dentry); in path_get()
480 void path_put(const struct path *path) in path_put() argument
482 dput(path->dentry); in path_put()
483 mntput(path->mnt); in path_put()
489 struct path path; member
491 struct path root;
499 struct path link;
560 static bool path_connected(const struct path *path) in path_connected() argument
[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-v5.4/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()
85 if (btrfs_header_nritems(path->nodes[0]) != num_extents + 1 || in __check_free_space_extents()
86 path->slots[0] != 0) in __check_free_space_extents()
[all …]
/Linux-v5.4/fs/ext4/
Dextents.c134 struct ext4_ext_path *path) in ext4_ext_get_access() argument
136 if (path->p_bh) { in ext4_ext_get_access()
138 BUFFER_TRACE(path->p_bh, "get_write_access"); in ext4_ext_get_access()
139 return ext4_journal_get_write_access(handle, path->p_bh); in ext4_ext_get_access()
153 struct inode *inode, struct ext4_ext_path *path) in __ext4_ext_dirty() argument
158 if (path->p_bh) { in __ext4_ext_dirty()
159 ext4_extent_block_csum_set(inode, ext_block_hdr(path->p_bh)); in __ext4_ext_dirty()
162 inode, path->p_bh); in __ext4_ext_dirty()
171 struct ext4_ext_path *path, in ext4_ext_find_goal() argument
174 if (path) { in ext4_ext_find_goal()
[all …]
/Linux-v5.4/include/linux/
Dnamei.h42 extern int path_pts(struct path *path);
44 extern int user_path_at_empty(int, const char __user *, unsigned, struct path *, int *empty);
47 struct path *path) in user_path_at() argument
49 return user_path_at_empty(dfd, name, flags, path, NULL); in user_path_at()
52 extern int kern_path(const char *, unsigned, struct path *);
54 extern struct dentry *kern_path_create(int, const char *, struct path *, unsigned int);
55 extern struct dentry *user_path_create(int, const char __user *, struct path *, unsigned int);
56 extern void done_path_create(struct path *, struct dentry *);
57 extern struct dentry *kern_path_locked(const char *, struct path *);
58 extern int kern_path_mountpoint(int, const char *, struct path *, unsigned int);
[all …]
/Linux-v5.4/tools/perf/util/
Ddata.c25 zfree(&files[nr].path); in close_dir()
54 if (asprintf(&file->path, "%s/data.%d", data->path, i) < 0) in perf_data__create_dir()
57 ret = open(file->path, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR); in perf_data__create_dir()
86 dir = opendir(data->path); in perf_data__open_dir()
92 char path[PATH_MAX]; in perf_data__open_dir() local
95 snprintf(path, sizeof(path), "%s/%s", data->path, dent->d_name); in perf_data__open_dir()
96 if (stat(path, &st)) in perf_data__open_dir()
111 file->path = strdup(path); in perf_data__open_dir()
112 if (!file->path) in perf_data__open_dir()
115 ret = open(file->path, O_RDONLY); in perf_data__open_dir()
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/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 …]
/Linux-v5.4/tools/lib/api/fs/
Dfs.c91 char path[PATH_MAX]; member
154 fs->path, type) == 2) { in fs__read_mounts()
184 strcpy(fs->path, *ptr); in fs__check_mounts()
222 strncpy(fs->path, override_path, sizeof(fs->path)); in fs__env_override()
229 return fs->path; in fs__get_mountpoint()
232 return fs->path; in fs__get_mountpoint()
235 return fs->path; in fs__get_mountpoint()
245 return (const char *)fs->path; in fs__mountpoint()
268 return (const char *)fs->path; in fs__mount()
275 return fs__check_mounts(fs) ? fs->path : NULL; in fs__mount()
[all …]

12345678910>>...88