Home
last modified time | relevance | path

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

12345678910>>...109

/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 …]
/linux/drivers/thunderbolt/
H A Dpath.c108 struct tb_path *path; in tb_path_discover() local
153 path = kzalloc_obj(*path); 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 = kzalloc_objs(*path->hops, num_hops); in tb_path_discover()
164 if (!path->hops) { in tb_path_discover()
[all …]
/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 …]
/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 …]
/linux/fs/ext4/
H A Dextents.c46 struct ext4_ext_path *path, int flags, unsigned int *allocated);
87 struct ext4_ext_path *path,
105 static inline void ext4_ext_path_brelse(struct ext4_ext_path *path) in ext4_ext_path_brelse() argument
107 brelse(path->p_bh); in ext4_ext_path_brelse()
108 path->p_bh = NULL; in ext4_ext_path_brelse()
111 static void ext4_ext_drop_refs(struct ext4_ext_path *path) in ext4_ext_drop_refs() argument
115 if (IS_ERR_OR_NULL(path)) in ext4_ext_drop_refs()
117 depth = path->p_depth; in ext4_ext_drop_refs()
118 for (i = 0; i <= depth; i++, path++) in ext4_ext_drop_refs()
119 ext4_ext_path_brelse(path); in ext4_ext_drop_refs()
122 ext4_free_ext_path(struct ext4_ext_path * path) ext4_free_ext_path() argument
158 ext4_ext_get_access(handle_t * handle,struct inode * inode,struct ext4_ext_path * path) ext4_ext_get_access() argument
189 __ext4_ext_dirty(const char * where,unsigned int line,handle_t * handle,struct inode * inode,struct ext4_ext_path * path) __ext4_ext_dirty() argument
212 ext4_ext_dirty(handle,inode,path) global() argument
216 ext4_ext_find_goal(struct inode * inode,struct ext4_ext_path * path,ext4_lblk_t block) ext4_ext_find_goal() argument
266 ext4_ext_new_meta_block(handle_t * handle,struct inode * inode,struct ext4_ext_path * path,struct ext4_extent * ex,int * err,unsigned int flags) ext4_ext_new_meta_block() argument
333 ext4_force_split_extent_at(handle_t * handle,struct inode * inode,struct ext4_ext_path * path,ext4_lblk_t lblk,int nofail) ext4_force_split_extent_at() argument
606 struct ext4_ext_path *path = NULL; ext4_ext_precache() local
666 ext4_ext_show_path(struct inode * inode,struct ext4_ext_path * path) ext4_ext_show_path() argument
688 ext4_ext_show_leaf(struct inode * inode,struct ext4_ext_path * path) ext4_ext_show_leaf() argument
711 ext4_ext_show_move(struct inode * inode,struct ext4_ext_path * path,ext4_fsblk_t newblock,int level) ext4_ext_show_move() argument
743 ext4_ext_show_path(inode,path) global() argument
744 ext4_ext_show_leaf(inode,path) global() argument
745 ext4_ext_show_move(inode,path,newblock,level) global() argument
755 ext4_ext_binsearch_idx(struct inode * inode,struct ext4_ext_path * path,ext4_lblk_t block) ext4_ext_binsearch_idx() argument
816 ext4_ext_binsearch(struct inode * inode,struct ext4_ext_path * path,ext4_lblk_t block) ext4_ext_binsearch() argument
887 ext4_find_extent(struct inode * inode,ext4_lblk_t block,struct ext4_ext_path * path,int flags) ext4_find_extent() argument
1055 ext4_ext_split(handle_t * handle,struct inode * inode,unsigned int flags,struct ext4_ext_path * path,struct ext4_extent * newext,int at) ext4_ext_split() argument
1402 ext4_ext_create_new_leaf(handle_t * handle,struct inode * inode,unsigned int mb_flags,unsigned int gb_flags,struct ext4_ext_path * path,struct ext4_extent * newext) ext4_ext_create_new_leaf() argument
1468 ext4_ext_search_left(struct inode * inode,struct ext4_ext_path * path,ext4_lblk_t * logical,ext4_fsblk_t * phys) ext4_ext_search_left() argument
1532 ext4_ext_search_right(struct inode * inode,struct ext4_ext_path * path,ext4_lblk_t * logical,ext4_fsblk_t * phys,struct ext4_extent * ret_ex,int flags) ext4_ext_search_right() argument
1640 ext4_ext_next_allocated_block(struct ext4_ext_path * path) ext4_ext_next_allocated_block() argument
1672 ext4_ext_next_leaf_block(struct ext4_ext_path * path) ext4_ext_next_leaf_block() argument
1704 ext4_ext_correct_indexes(handle_t * handle,struct inode * inode,struct ext4_ext_path * path) ext4_ext_correct_indexes() argument
1811 ext4_ext_try_to_merge_right(struct inode * inode,struct ext4_ext_path * path,struct ext4_extent * ex) ext4_ext_try_to_merge_right() argument
1853 ext4_ext_try_to_merge_up(handle_t * handle,struct inode * inode,struct ext4_ext_path * path) ext4_ext_try_to_merge_up() argument
1899 ext4_ext_try_to_merge(handle_t * handle,struct inode * inode,struct ext4_ext_path * path,struct ext4_extent * ex) ext4_ext_try_to_merge() argument
1930 ext4_ext_check_overlap(struct ext4_sb_info * sbi,struct inode * inode,struct ext4_extent * newext,struct ext4_ext_path * path) ext4_ext_check_overlap() argument
1978 ext4_ext_insert_extent(handle_t * handle,struct inode * inode,struct ext4_ext_path * path,struct ext4_extent * newext,int gb_flags) ext4_ext_insert_extent() argument
2266 ext4_ext_find_hole(struct inode * inode,struct ext4_ext_path * path,ext4_lblk_t * lblk) ext4_ext_find_hole() argument
2299 ext4_ext_rm_idx(handle_t * handle,struct inode * inode,struct ext4_ext_path * path,int depth) ext4_ext_rm_idx() argument
2365 ext4_ext_calc_credits_for_single_extent(struct inode * inode,int nrblocks,struct ext4_ext_path * path) ext4_ext_calc_credits_for_single_extent() argument
2600 ext4_ext_rm_leaf(handle_t * handle,struct inode * inode,struct ext4_ext_path * path,struct partial_cluster * partial,ext4_lblk_t start,ext4_lblk_t end) ext4_ext_rm_leaf() argument
2806 ext4_ext_more_to_rm(struct ext4_ext_path * path) ext4_ext_more_to_rm() argument
2827 struct ext4_ext_path *path = NULL; ext4_ext_remove_space() local
3178 ext4_split_extent_at(handle_t * handle,struct inode * inode,struct ext4_ext_path * path,ext4_lblk_t split,int flags) ext4_split_extent_at() argument
3282 ext4_split_extent_zeroout(handle_t * handle,struct inode * inode,struct ext4_ext_path * path,struct ext4_map_blocks * map,int flags) ext4_split_extent_zeroout() argument
3386 ext4_split_extent(handle_t * handle,struct inode * inode,struct ext4_ext_path * path,struct ext4_map_blocks * map,int split_flag,int flags,unsigned int * allocated,bool * did_zeroout) ext4_split_extent() argument
3533 ext4_ext_convert_to_initialized(handle_t * handle,struct inode * inode,struct ext4_map_blocks * map,struct ext4_ext_path * path,int flags,unsigned int * allocated) ext4_ext_convert_to_initialized() argument
3794 ext4_split_convert_extents(handle_t * handle,struct inode * inode,struct ext4_map_blocks * map,struct ext4_ext_path * path,int flags,unsigned int * allocated) ext4_split_convert_extents() argument
3891 ext4_convert_unwritten_extents_endio(handle_t * handle,struct inode * inode,struct ext4_map_blocks * map,struct ext4_ext_path * path,int flags) ext4_convert_unwritten_extents_endio() argument
3913 convert_initialized_extent(handle_t * handle,struct inode * inode,struct ext4_map_blocks * map,struct ext4_ext_path * path,int flags,unsigned int * allocated) convert_initialized_extent() argument
3969 ext4_ext_handle_unwritten_extents(handle_t * handle,struct inode * inode,struct ext4_map_blocks * map,struct ext4_ext_path * path,int flags,unsigned int * allocated,ext4_fsblk_t newblock) ext4_ext_handle_unwritten_extents() argument
4101 get_implied_cluster_alloc(struct super_block * sb,struct ext4_map_blocks * map,struct ext4_extent * ex,struct ext4_ext_path * path) get_implied_cluster_alloc() argument
4167 ext4_ext_determine_insert_hole(struct inode * inode,struct ext4_ext_path * path,ext4_lblk_t lblk) ext4_ext_determine_insert_hole() argument
4247 struct ext4_ext_path *path = NULL; ext4_ext_map_blocks() local
5246 ext4_ext_shift_path_extents(struct ext4_ext_path * path,ext4_lblk_t shift,struct inode * inode,handle_t * handle,enum SHIFT_DIRECTION SHIFT) ext4_ext_shift_path_extents() argument
5348 struct ext4_ext_path *path; ext4_ext_shift_extents() local
5594 struct ext4_ext_path *path; ext4_insert_range() local
5913 struct ext4_ext_path *path; ext4_clu_mapped() local
5992 struct ext4_ext_path *path; ext4_ext_replay_update_ex() local
6056 struct ext4_ext_path *path = NULL; ext4_ext_replay_shrink_inode() local
6104 struct ext4_ext_path *path = NULL, *path2 = NULL; ext4_ext_replay_set_iblocks() local
6191 struct ext4_ext_path *path = NULL; ext4_ext_clear_bb() local
[all...]
/linux/fs/btrfs/
H A Dfile-item.c166 BTRFS_PATH_AUTO_FREE(path); in btrfs_insert_hole_extent()
169 path = btrfs_alloc_path(); in btrfs_insert_hole_extent()
170 if (!path) in btrfs_insert_hole_extent()
177 ret = btrfs_insert_empty_item(trans, root, path, &file_key, in btrfs_insert_hole_extent()
181 leaf = path->nodes[0]; in btrfs_insert_hole_extent()
182 item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_insert_hole_extent()
201 struct btrfs_path *path, in btrfs_lookup_csum() argument
217 ret = btrfs_search_slot(trans, root, &file_key, path, 0, cow); in btrfs_lookup_csum()
220 leaf = path->nodes[0]; in btrfs_lookup_csum()
223 if (path->slots[0] == 0) in btrfs_lookup_csum()
[all …]
H A Dfree-space-tree.c22 struct btrfs_path *path);
70 struct btrfs_path *path) in add_new_free_space_info() argument
82 ret = btrfs_insert_empty_item(trans, root, path, &key, sizeof(*info)); in add_new_free_space_info()
86 leaf = path->nodes[0]; in add_new_free_space_info()
87 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()
98 struct btrfs_path *path, int cow) in btrfs_search_free_space_info() argument
109 ret = btrfs_search_slot(trans, root, &key, path, 0, cow); in btrfs_search_free_space_info()
119 return btrfs_item_ptr(path->nodes[0], path->slots[0], in btrfs_search_free_space_info()
199 struct btrfs_path *path) in btrfs_convert_free_space_to_bitmaps() argument
[all …]
H A Droot-tree.c68 struct btrfs_path *path, struct btrfs_root_item *root_item, in btrfs_find_root() argument
76 ret = btrfs_search_slot(NULL, root, search_key, path, 0, 0); in btrfs_find_root()
92 if (path->slots[0] == 0) in btrfs_find_root()
94 path->slots[0]--; in btrfs_find_root()
98 l = path->nodes[0]; in btrfs_find_root()
99 slot = path->slots[0]; in btrfs_find_root()
113 btrfs_release_path(path); in btrfs_find_root()
133 BTRFS_PATH_AUTO_FREE(path); in btrfs_update_root()
140 path = btrfs_alloc_path(); in btrfs_update_root()
141 if (!path) in btrfs_update_root()
[all …]
H A Duuid-tree.c30 BTRFS_PATH_AUTO_FREE(path); in btrfs_uuid_tree_lookup()
40 path = btrfs_alloc_path(); in btrfs_uuid_tree_lookup()
41 if (!path) in btrfs_uuid_tree_lookup()
45 ret = btrfs_search_slot(NULL, uuid_root, &key, path, 0, 0); in btrfs_uuid_tree_lookup()
51 eb = path->nodes[0]; in btrfs_uuid_tree_lookup()
52 slot = path->slots[0]; in btrfs_uuid_tree_lookup()
84 BTRFS_PATH_AUTO_FREE(path); in btrfs_uuid_tree_add()
100 path = btrfs_alloc_path(); in btrfs_uuid_tree_add()
101 if (!path) in btrfs_uuid_tree_add()
104 ret = btrfs_insert_empty_item(trans, uuid_root, path, &key, in btrfs_uuid_tree_add()
[all …]
H A Dfiemap.c306 static int fiemap_next_leaf_item(struct btrfs_inode *inode, struct btrfs_path *path) in fiemap_next_leaf_item() argument
308 struct extent_buffer *clone = path->nodes[0]; in fiemap_next_leaf_item()
313 path->slots[0]++; in fiemap_next_leaf_item()
314 if (path->slots[0] < btrfs_header_nritems(path->nodes[0])) in fiemap_next_leaf_item()
325 ret = btrfs_next_leaf(inode->root, path); in fiemap_next_leaf_item()
333 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in fiemap_next_leaf_item()
349 clone->start = path->nodes[0]->start; in fiemap_next_leaf_item()
351 copy_extent_buffer_full(clone, path->nodes[0]); in fiemap_next_leaf_item()
353 slot = path->slots[0]; in fiemap_next_leaf_item()
354 btrfs_release_path(path); in fiemap_next_leaf_item()
[all …]
/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 …]
/linux/tools/power/cpupower/utils/helpers/
H A Dmisc.c23 char path[SYSFS_PATH_MAX]; in cpufreq_has_x86_boost_support() local
51 snprintf(path, sizeof(path), PATH_TO_CPU "intel_pstate/no_turbo"); in cpufreq_has_x86_boost_support()
53 if (!is_valid_path(path)) in cpufreq_has_x86_boost_support()
56 if (cpupower_read_sysfs(path, linebuf, MAX_LINE_LEN) == 0) in cpufreq_has_x86_boost_support()
70 char path[SYSFS_PATH_MAX]; in cpupower_set_intel_turbo_boost() local
73 snprintf(path, sizeof(path), PATH_TO_CPU "intel_pstate/no_turbo"); in cpupower_set_intel_turbo_boost()
76 if (!is_valid_path(path)) in cpupower_set_intel_turbo_boost()
81 if (cpupower_write_sysfs(path, linebuf, 2) <= 0) in cpupower_set_intel_turbo_boost()
90 char path[SYSFS_PATH_MAX]; in cpupower_intel_get_perf_bias() local
97 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/power/energy_perf_bias", cpu); in cpupower_intel_get_perf_bias()
[all …]
/linux/fs/xfs/scrub/
H A Ddirtree.c73 struct xchk_dirpath *path, *n; in xchk_dirtree_buf_cleanup() local
78 xchk_dirtree_for_each_path_safe(dl, path, n) { in xchk_dirtree_buf_cleanup()
79 list_del_init(&path->list); in xchk_dirtree_buf_cleanup()
80 xino_bitmap_destroy(&path->seen_inodes); in xchk_dirtree_buf_cleanup()
81 kfree(path); in xchk_dirtree_buf_cleanup()
157 struct xchk_dirpath *path, in xchk_dirpath_append() argument
171 if (path->nr_steps >= XFS_MAXLINK) in xchk_dirpath_append()
178 error = xino_bitmap_set(&path->seen_inodes, ip->i_ino); in xchk_dirpath_append()
186 path->nr_steps++; in xchk_dirpath_append()
216 struct xchk_dirpath *path; in xchk_dirtree_create_path() local
[all …]
H A Ddirtree_repair.c57 struct xchk_dirpath *path, in xrep_dirpath_set_outcome() argument
60 trace_xrep_dirpath_set_outcome(dl->sc, path->path_nr, path->nr_steps, in xrep_dirpath_set_outcome()
63 path->outcome = outcome; in xrep_dirpath_set_outcome()
72 struct xchk_dirpath *path; in xrep_dirtree_delete_all_paths() local
74 xchk_dirtree_for_each_path(dl, path) { in xrep_dirtree_delete_all_paths()
75 switch (path->outcome) { in xrep_dirtree_delete_all_paths()
80 xrep_dirpath_set_outcome(dl, path, XCHK_DIRPATH_DELETE); in xrep_dirtree_delete_all_paths()
85 xrep_dirpath_set_outcome(dl, path, XCHK_DIRPATH_DELETE); in xrep_dirtree_delete_all_paths()
100 struct xchk_dirpath *path) in xrep_dirpath_retain_parent() argument
105 error = xfarray_load(dl->path_steps, path->first_step, &step); in xrep_dirpath_retain_parent()
[all …]
/linux/security/tomoyo/
H A 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()
158 static int tomoyo_path_unlink(const struct path *parent, struct dentry *dentry) in tomoyo_path_unlink()
160 struct path path = { .mnt = parent->mnt, .dentry = dentry }; in tomoyo_path_unlink() local
162 return tomoyo_path_perm(TOMOYO_TYPE_UNLINK, &path, NULL); in tomoyo_path_unlink()
174 static int tomoyo_path_mkdir(const struct path *parent, struct dentry *dentry, in tomoyo_path_mkdir()
177 struct path path = { .mnt = parent->mnt, .dentry = dentry }; in tomoyo_path_mkdir() local
179 return tomoyo_path_number_perm(TOMOYO_TYPE_MKDIR, &path, in tomoyo_path_mkdir()
[all …]
/linux/tools/perf/util/
H A Dtrace-event-info.c90 char *path = get_events_file("header_page"); in record_header_files() local
94 if (!path) { in record_header_files()
99 if (stat(path, &st) < 0) { in record_header_files()
100 pr_debug("can't read '%s'", path); in record_header_files()
109 if (record_file(path, 8) < 0) { in record_header_files()
114 put_events_file(path); in record_header_files()
116 path = get_events_file("header_event"); in record_header_files()
117 if (!path) { in record_header_files()
123 if (stat(path, &st) < 0) { in record_header_files()
124 pr_debug("can't read '%s'", path); in record_header_files()
[all …]
H A Ddata.c27 zfree(&files[nr].path); in close_dir()
53 ret = asprintf(&file->path, "%s/data.%d", data->path, i); in perf_data__create_dir()
60 ret = open(file->path, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR); in perf_data__create_dir()
110 dir = opendir(data->path); in perf_data__open_dir()
116 char path[PATH_MAX]; in perf_data__open_dir() local
119 snprintf(path, sizeof(path), "%s/%s", data->path, dent->d_name); in perf_data__open_dir()
120 if (stat(path, &st)) in perf_data__open_dir()
135 file->path = strdup(path); in perf_data__open_dir()
136 if (!file->path) in perf_data__open_dir()
139 ret = open(file->path, O_RDONLY); in perf_data__open_dir()
[all …]
/linux/Documentation/sphinx/
H A Dkernel_include.py86 import os.path
99 srctree = os.path.abspath(os.environ["srctree"])
100 sys.path.insert(0, os.path.join(srctree, "tools/lib/python"))
155 def read_rawtext(self, path, encoding): argument
158 self.state.document.settings.record_dependencies.add(path)
159 include_file = io.FileInput(source_path=path,
165 '(wrong locale?).' % path)
210 def xref_text(self, env, path, tab_width): argument
221 source_dir = os.path.dirname(os.path.abspath(
224 exceptions_file = os.path.join(source_dir, self.options['exception-file'])
[all …]
/linux/include/net/iucv/
H A Diucv.h212 struct iucv_path *path; in iucv_path_alloc() local
214 path = kzalloc_obj(struct iucv_path, gfp); in iucv_path_alloc()
215 if (path) { in iucv_path_alloc()
216 path->msglim = msglim; in iucv_path_alloc()
217 path->flags = flags; in iucv_path_alloc()
219 return path; in iucv_path_alloc()
226 static inline void iucv_path_free(struct iucv_path *path) in iucv_path_free() argument
228 kfree(path); in iucv_path_free()
231 int iucv_path_accept(struct iucv_path *path, struct iucv_handler *handler,
234 int iucv_path_connect(struct iucv_path *path, struct iucv_handler *handler,
[all …]
/linux/tools/testing/selftests/mm/
H A Dthp_settings.c46 int read_file(const char *path, char *buf, size_t buflen) in read_file() argument
51 fd = open(path, O_RDONLY); in read_file()
67 int write_file(const char *path, const char *buf, size_t buflen) in write_file() argument
72 fd = open(path, O_WRONLY); in write_file()
74 printf("open(%s)\n", path); in write_file()
90 unsigned long read_num(const char *path) in read_num() argument
94 if (read_file(path, buf, sizeof(buf)) < 0) { in read_num()
102 void write_num(const char *path, unsigned long num) in write_num() argument
107 if (!write_file(path, buf, strlen(buf) + 1)) { in write_num()
108 perror(path); in write_num()
[all …]
/linux/drivers/media/platform/mediatek/mdp3/
H A Dmtk-mdp3-cmdq.c139 static int mdp_path_subfrm_require(const struct mdp_path *path, in mdp_path_subfrm_require() argument
143 const int p_id = path->mdp_dev->mdp_data->mdp_plat_id; in mdp_path_subfrm_require()
145 const struct mtk_mdp_driver_data *data = path->mdp_dev->mdp_data; in mdp_path_subfrm_require()
151 num_comp = CFG_GET(MT8183, path->config, num_components); in mdp_path_subfrm_require()
153 num_comp = CFG_GET(MT8195, path->config, num_components); in mdp_path_subfrm_require()
156 index = __get_pipe(path->mdp_dev, path->comps[0].comp->public_id); in mdp_path_subfrm_require()
158 mutex = __get_mutex(path->mdp_dev, p); in mdp_path_subfrm_require()
167 inner_id = CFG_GET(MT8183, path->config, components[index].type); in mdp_path_subfrm_require()
169 inner_id = CFG_GET(MT8195, path->config, components[index].type); in mdp_path_subfrm_require()
171 if (mdp_cfg_comp_is_dummy(path->mdp_dev, inner_id)) in mdp_path_subfrm_require()
[all …]
/linux/drivers/interconnect/
H A Dcore.c172 struct icc_path *path; in path_init() local
175 path = kzalloc_flex(*path, reqs, num_nodes); in path_init()
176 if (!path) in path_init()
179 path->num_nodes = num_nodes; in path_init()
185 hlist_add_head(&path->reqs[i].req_node, &node->req_list); in path_init()
186 path->reqs[i].node = node; in path_init()
187 path->reqs[i].dev = dev; in path_init()
188 path->reqs[i].enabled = true; in path_init()
195 return path; in path_init()
201 struct icc_path *path = ERR_PTR(-EPROBE_DEFER); in path_find() local
[all …]
/linux/tools/verification/rvgen/rvgen/
H A Dgenerator.py19 os.path.join(os.path.dirname(__file__), "templates", self.template_dir)
30 if os.path.exists(self.rv_dir):
34 kernel_path = os.path.join("../..", self.rv_dir)
36 if os.path.exists(kernel_path):
43 kernel_path = os.path.join("/lib/modules/%s/build" % platform.release(), self.rv_dir)
47 if os.path.exists(os.path.join(kernel_path, "rv_trace.h")):
53 def _read_file(self, path): argument
55 fd = open(path, 'r')
57 raise Exception("Cannot open the file: %s" % path)
66 path = os.path.join(self.abs_template_dir, file)
[all …]
/linux/drivers/net/wireless/realtek/rtw88/
H A Drtw8822c.c112 u32 path, i; in rtw8822c_dac_backup_reg() local
127 for (path = 0; path < DACK_PATH_8822C; path++) { in rtw8822c_dac_backup_reg()
130 val = rtw_read_rf(rtwdev, path, reg, RFREG_MASK); in rtw8822c_dac_backup_reg()
131 backup_rf[path * i + i].reg = reg; in rtw8822c_dac_backup_reg()
132 backup_rf[path * i + i].val = val; in rtw8822c_dac_backup_reg()
141 u32 path, i; in rtw8822c_dac_restore_reg() local
147 for (path = 0; path < DACK_PATH_8822C; path++) { in rtw8822c_dac_restore_reg()
149 val = backup_rf[path * i + i].val; in rtw8822c_dac_restore_reg()
150 reg = backup_rf[path * i + i].reg; in rtw8822c_dac_restore_reg()
151 rtw_write_rf(rtwdev, path, reg, RFREG_MASK, val); in rtw8822c_dac_restore_reg()
[all …]
/linux/tools/testing/selftests/damon/
H A D_damon_sysfs.py18 if not os.path.exists(sysfs_root):
22 def write_file(path, string): argument
26 with open(path, 'w') as f:
32 def read_file(path): argument
36 with open(path, 'r') as f:
60 return os.path.join(self.scheme.sysfs_dir(), 'access_pattern')
64 os.path.join(self.sysfs_dir(), 'sz', 'min'), self.size[0])
68 os.path.join(self.sysfs_dir(), 'sz', 'max'), self.size[1])
71 err = write_file(os.path.join(self.sysfs_dir(), 'nr_accesses', 'min'),
75 err = write_file(os.path.join(self.sysfs_dir(), 'nr_accesses', 'max'),
[all …]

12345678910>>...109