| /linux/drivers/video/fbdev/mmp/ |
| H A D | core.c | 16 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 D | path.c | 108 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 D | resolve_test.c | 112 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 D | btree.c | 25 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 D | extents.c | 46 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() [all …]
|
| /linux/fs/btrfs/ |
| H A D | file-item.c | 166 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 D | root-tree.c | 68 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 D | fiemap.c | 306 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 D | mmp_ctrl.c | 122 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/fs/xfs/scrub/ |
| H A D | dirtree.c | 73 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 D | dirtree_repair.c | 57 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 D | tomoyo.c | 121 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 D | trace-event-info.c | 90 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 D | data.c | 27 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 D | kernel_include.py | 86 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 D | iucv.h | 212 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 D | thp_settings.c | 46 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/tools/power/cpupower/utils/helpers/ |
| H A D | misc.c | 53 char path[SYSFS_PATH_MAX]; in cpupower_intel_get_perf_bias() local 60 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/power/energy_perf_bias", cpu); in cpupower_intel_get_perf_bias() 62 if (cpupower_read_sysfs(path, linebuf, MAX_LINE_LEN) == 0) in cpupower_intel_get_perf_bias() 74 char path[SYSFS_PATH_MAX]; in cpupower_intel_set_perf_bias() local 80 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/power/energy_perf_bias", cpu); in cpupower_intel_set_perf_bias() 83 if (cpupower_write_sysfs(path, linebuf, 3) <= 0) in cpupower_intel_set_perf_bias() 91 char path[SYSFS_PATH_MAX]; in cpupower_set_epp() local 94 snprintf(path, sizeof(path), in cpupower_set_epp() 97 if (!is_valid_path(path)) in cpupower_set_epp() 102 if (cpupower_write_sysfs(path, linebuf, 30) <= 0) in cpupower_set_epp() [all …]
|
| /linux/drivers/media/platform/mediatek/mdp3/ |
| H A D | mtk-mdp3-cmdq.c | 139 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 D | core.c | 172 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 D | generator.py | 19 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 D | rtw8822c.c | 112 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.py | 18 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 …]
|
| /linux/security/apparmor/ |
| H A D | path.c | 48 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/drivers/infiniband/ulp/rtrs/ |
| H A D | rtrs.c | 74 struct rtrs_path *path = con->path; in rtrs_iu_post_recv() local 80 list.lkey = path->dev->ib_pd->local_dma_lkey; in rtrs_iu_post_recv() 83 rtrs_wrn(con->path, in rtrs_iu_post_recv() 131 struct rtrs_path *path = con->path; in rtrs_iu_post_send() local 140 list.lkey = path->dev->ib_pd->local_dma_lkey; in rtrs_iu_post_send() 193 struct rtrs_path *path = con->path; in rtrs_post_rdma_write_imm_empty() local 197 sflags = (atomic_inc_return(&con->wr_cnt) % path->signal_interval) ? in rtrs_post_rdma_write_imm_empty() 216 rtrs_info(con->path, "QP event %s (%d) received\n", in qp_event_handler() 221 rtrs_info(con->path, "Unhandled QP event %s (%d) received\n", in qp_event_handler() 229 return con->cid >= con->path->irq_con_num; in is_pollqueue() [all …]
|