| /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/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/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/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, in perf_data__open_dir() 500 has_kcore_dir(const char * path) has_kcore_dir() argument 557 is_perf_data(const char * path) is_perf_data() argument [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/fs/btrfs/ |
| H A D | free-space-tree.c | 22 struct btrfs_path *path); 71 struct btrfs_path *path) in add_new_free_space_info() argument 83 ret = btrfs_insert_empty_item(trans, root, path, &key, sizeof(*info)); in add_new_free_space_info() 87 leaf = path->nodes[0]; in add_new_free_space_info() 88 info = btrfs_item_ptr(leaf, path->slots[0], in add_new_free_space_info() 92 btrfs_release_path(path); in add_new_free_space_info() 100 struct btrfs_path *path, int cow) in btrfs_search_free_space_info() argument 111 ret = btrfs_search_slot(trans, root, &key, path, 0, cow); in btrfs_search_free_space_info() 121 return btrfs_item_ptr(path->nodes[0], path->slots[0], in btrfs_search_free_space_info() 201 struct btrfs_path *path) in btrfs_convert_free_space_to_bitmaps() argument [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/fs/btrfs/tests/ |
| H A D | free-space-tree-tests.c | 23 struct btrfs_path *path, in __check_free_space_extents() argument 35 info = btrfs_search_free_space_info(trans, cache, path, 0); in __check_free_space_extents() 41 flags = btrfs_free_space_flags(path->nodes[0], info); in __check_free_space_extents() 42 extent_count = btrfs_free_space_extent_count(path->nodes[0], info); in __check_free_space_extents() 50 if (path->slots[0] != 0) in __check_free_space_extents() 54 while (++path->slots[0] < btrfs_header_nritems(path->nodes[0])) { in __check_free_space_extents() 55 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in __check_free_space_extents() 60 bit = btrfs_free_space_test_bit(cache, path, offset); in __check_free_space_extents() 84 if (btrfs_header_nritems(path->nodes[0]) != num_extents + 1 || in __check_free_space_extents() 85 path->slots[0] != 0) in __check_free_space_extents() [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/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/fs/ |
| H A D | internal.h | 13 struct path; 56 struct path *path, const struct path *root); 59 int may_linkat(struct mnt_idmap *idmap, const struct path *link); 67 const struct path *parentpath, 77 extern struct vfsmount *lookup_mnt(const struct path *); 78 extern int finish_automount(struct vfsmount *, const struct path *); 90 int path_mount(const char *dev_name, const struct path *path, 92 int path_umount(const struct path *path, int flags); 99 extern void chroot_fs_refs(const struct path *, const struct path *); 107 void backing_file_set_user_path(struct file *f, const struct path *path); [all …]
|
| /linux/tools/hv/ |
| H A D | vmbus_testing | 30 if not os.path.isdir(debugfs_hyperv_path): 78 path = args.path if "path" in arg_set else None 79 if (path and path[-1] == "/"): 80 path = path[:-1] 81 validate_args_path(path, arg_set, file_map) 82 if (path and "enable_single" in arg_set): 83 state_path = locate_state(path, file_map) 93 set_delay_values(path, file_map, args.delay_time, 98 disable_testing_single_device(path, file_map) 102 get_device_test_values(path, file_map) [all …]
|
| /linux/fs/autofs/ |
| H A D | dev-ioctl.c | 124 err = invalid_str(param->path, param->size - AUTOFS_DEV_IOCTL_SIZE); in validate_dev_ioctl() 136 err = check_name(param->path); in validate_dev_ioctl() 189 struct path *res, in find_autofs_mount() 190 int test(const struct path *path, void *data), in find_autofs_mount() argument 193 struct path path; in find_autofs_mount() local 196 err = kern_path(pathname, LOOKUP_MOUNTPOINT, &path); in find_autofs_mount() 200 while (path.dentry == path.mnt->mnt_root) { in find_autofs_mount() 201 if (path.dentry->d_sb->s_magic == AUTOFS_SUPER_MAGIC) { in find_autofs_mount() 202 if (test(&path, data)) { in find_autofs_mount() 203 path_get(&path); in find_autofs_mount() [all …]
|
| /linux/include/video/ |
| H A D | mmp_disp.h | 147 struct mmp_path *path; member 189 int (*check_status)(struct mmp_path *path); 190 struct mmp_overlay *(*get_overlay)(struct mmp_path *path, 192 int (*get_modelist)(struct mmp_path *path, 196 void (*set_mode)(struct mmp_path *path, struct mmp_mode *mode); 197 void (*set_onoff)(struct mmp_path *path, int status); 238 static inline void mmp_path_set_mode(struct mmp_path *path, in mmp_path_set_mode() argument 241 if (path) in mmp_path_set_mode() 242 path->ops.set_mode(path, mode); in mmp_path_set_mode() 244 static inline void mmp_path_set_onoff(struct mmp_path *path, int status) in mmp_path_set_onoff() argument [all …]
|
| /linux/security/apparmor/include/ |
| H A D | mount.h | 29 struct aa_label *label, const struct path *path, 33 struct aa_label *label, const struct path *path, 38 struct aa_label *label, const struct path *path, 42 struct aa_label *label, const struct path *path, 45 struct aa_label *label, const struct path *from_path, 46 const struct path *to_path); 50 const struct path *path, const char *type, unsigned long flags, 57 struct aa_label *label, const struct path *old_path, 58 const struct path *new_path);
|
| /linux/net/iucv/ |
| H A D | iucv.c | 154 * The work element to deliver path pending interrupts. 699 * @pathid: path identification number. 702 * Sever an iucv path to free up the pathid. Used internally. 730 * Function called after a path has been severed to find all remaining 739 * When a path is severed, the pathid can be reused immediately in iucv_cleanup_queue() 856 * @path: address of iucv path structure 859 * @private: private data passed to interrupt handlers for this path 862 * external interrupt and now wishes to complete the IUCV communication path. 866 int iucv_path_accept(struct iucv_path *path, struc 867 iucv_path_accept(struct iucv_path * path,struct iucv_handler * handler,u8 * userdata,void * private) iucv_path_accept() argument 914 iucv_path_connect(struct iucv_path * path,struct iucv_handler * handler,u8 * userid,u8 * system,u8 * userdata,void * private) iucv_path_connect() argument 977 iucv_path_quiesce(struct iucv_path * path,u8 * userdata) iucv_path_quiesce() argument 1009 iucv_path_resume(struct iucv_path * path,u8 * userdata) iucv_path_resume() argument 1039 iucv_path_sever(struct iucv_path * path,u8 * userdata) iucv_path_sever() argument 1071 iucv_message_purge(struct iucv_path * path,struct iucv_message * msg,u32 srccls) iucv_message_purge() argument 1111 iucv_message_receive_iprmdata(struct iucv_path * path,struct iucv_message * msg,u8 flags,void * buffer,size_t size,size_t * residual) iucv_message_receive_iprmdata() argument 1160 __iucv_message_receive(struct iucv_path * path,struct iucv_message * msg,u8 flags,void * buffer,size_t size,size_t * residual) __iucv_message_receive() argument 1208 iucv_message_receive(struct iucv_path * path,struct iucv_message * msg,u8 flags,void * buffer,size_t size,size_t * residual) iucv_message_receive() argument 1234 iucv_message_reject(struct iucv_path * path,struct iucv_message * msg) iucv_message_reject() argument 1272 iucv_message_reply(struct iucv_path * path,struct iucv_message * msg,u8 flags,void * reply,size_t size) iucv_message_reply() argument 1323 __iucv_message_send(struct iucv_path * path,struct iucv_message * msg,u8 flags,u32 srccls,void * buffer,size_t size) __iucv_message_send() argument 1377 iucv_message_send(struct iucv_path * path,struct iucv_message * msg,u8 flags,u32 srccls,void * buffer,size_t size) iucv_message_send() argument 1409 iucv_message_send2way(struct iucv_path * path,struct iucv_message * msg,u8 flags,u32 srccls,void * buffer,size_t size,void * answer,size_t asize,size_t * residual) iucv_message_send2way() argument 1476 struct iucv_path *path; iucv_path_pending() local 1536 struct iucv_path *path = iucv_path_table[ipc->ippathid]; iucv_path_complete() local 1566 struct iucv_path *path = iucv_path_table[ips->ippathid]; iucv_path_severed() local 1602 struct iucv_path *path = iucv_path_table[ipq->ippathid]; iucv_path_quiesced() local 1630 struct iucv_path *path = iucv_path_table[ipr->ippathid]; iucv_path_resumed() local 1661 struct iucv_path *path = iucv_path_table[imc->ippathid]; iucv_message_complete() local 1708 struct iucv_path *path = iucv_path_table[imp->ippathid]; iucv_message_pending() local [all...] |
| /linux/rust/syn/ |
| H A D | attr.rs | 13 use crate::path::Path; 188 pub fn path(&self) -> &Path { in path() method 189 self.meta.path() in path() 249 Meta::Path(path) => Err(crate::error::new2( in parse_args_with() 250 path.segments.first().unwrap().ident.span(), in parse_args_with() 251 path.segments.last().unwrap().ident.span(), in parse_args_with() 255 parsing::DisplayPath(path), in parse_args_with() 263 parsing::DisplayPath(&meta.path), in parse_args_with() 490 pub path: Path, 500 pub path: Path, [all …]
|
| /linux/Documentation/networking/ |
| H A D | tls-offload-reorder-bad.svg | 1 …path d="m0 0l960.0 0l0 720.0l-960.0 0l0 -720.0z" clip-rule="nonzero"/></clipPath><g clip-path="url…
|
| H A D | tls-offload-reorder-good.svg | 1 …path d="m0 0l960.0 0l0 720.0l-960.0 0l0 -720.0z" clip-rule="nonzero"/></clipPath><g clip-path="url…
|