| /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 | |
| /linux/drivers/net/wireless/realtek/rtw89/ |
| H A D | rtw8852c_rfk.c | 153 u8 path; in _wait_rx_mode() local 157 for (path = 0; path < RF_PATH_MAX; path++) { in _wait_rx_mode() 158 if (!(kpath & BIT(path))) in _wait_rx_mode() 162 2, 5000, false, rtwdev, path, 0x00, in _wait_rx_mode() 166 path, ret); in _wait_rx_mode() 304 enum rtw89_rf_path path, u8 index) in _dack_reload_by_path() argument 312 path_offset = (path == RF_PATH_A ? 0 : 0x28); in _dack_reload_by_path() 320 val32 |= dack->msbk_d[path][index][i + 12] << (i * 8); in _dack_reload_by_path() 329 val32 |= dack->msbk_d[path][index][i + 8] << (i * 8); in _dack_reload_by_path() 338 val32 |= dack->msbk_d[path][index][i + 4] << (i * 8); in _dack_reload_by_path() [all …]
|
| H A D | rtw8852a_rfk.c | 94 u8 path; in _wait_rx_mode() local 98 for (path = 0; path < RF_PATH_MAX; path++) { in _wait_rx_mode() 99 if (!(kpath & BIT(path))) in _wait_rx_mode() 103 2, 5000, false, rtwdev, path, 0x00, in _wait_rx_mode() 107 path, ret); in _wait_rx_mode() 254 enum rtw89_rf_path path, u8 index) in _dack_reload_by_path() argument 266 if (path == RF_PATH_A) in _dack_reload_by_path() 275 tmp |= dack->msbk_d[path][index][i + 12] << (i * 8); in _dack_reload_by_path() 283 tmp |= dack->msbk_d[path][index][i + 8] << (i * 8); in _dack_reload_by_path() 291 tmp |= dack->msbk_d[path][index][i + 4] << (i * 8); in _dack_reload_by_path() [all …]
|
| H A D | rtw8852b_rfk.c | 236 enum rtw89_rf_path path, bool is_bybb) in _rfk_rf_direct_cntrl() argument 239 rtw89_write_rf(rtwdev, path, RR_RSV1, RR_RSV1_RST, 0x1); in _rfk_rf_direct_cntrl() 241 rtw89_write_rf(rtwdev, path, RR_RSV1, RR_RSV1_RST, 0x0); in _rfk_rf_direct_cntrl() 245 enum rtw89_rf_path path, bool is_bybb) in _rfk_drf_direct_cntrl() argument 248 rtw89_write_rf(rtwdev, path, RR_BBDC, RR_BBDC_SEL, 0x1); in _rfk_drf_direct_cntrl() 250 rtw89_write_rf(rtwdev, path, RR_BBDC, RR_BBDC_SEL, 0x0); in _rfk_drf_direct_cntrl() 253 static bool _iqk_check_cal(struct rtw89_dev *rtwdev, u8 path) in _iqk_check_cal() argument 270 rtw89_debug(rtwdev, RTW89_DBG_RFK, "[IQK]S%x, ret=%d\n", path, ret); in _iqk_check_cal() 272 rtw89_debug(rtwdev, RTW89_DBG_RFK, "[IQK]S%x, 0x8008 = 0x%x\n", path, val); in _iqk_check_cal() 296 enum rtw89_rf_path path) in _set_rx_dck() argument [all …]
|
| H A D | rtw8851b_rfk.c | 151 u8 path) in _adc_fifo_rst() argument 159 enum rtw89_rf_path path, bool is_bybb) in _rfk_rf_direct_cntrl() argument 162 rtw89_write_rf(rtwdev, path, RR_RSV1, RR_RSV1_RST, 0x1); in _rfk_rf_direct_cntrl() 164 rtw89_write_rf(rtwdev, path, RR_RSV1, RR_RSV1_RST, 0x0); in _rfk_rf_direct_cntrl() 168 enum rtw89_rf_path path, bool is_bybb) in _rfk_drf_direct_cntrl() argument 171 rtw89_write_rf(rtwdev, path, RR_BBDC, RR_BBDC_SEL, 0x1); in _rfk_drf_direct_cntrl() 173 rtw89_write_rf(rtwdev, path, RR_BBDC, RR_BBDC_SEL, 0x0); in _rfk_drf_direct_cntrl() 176 static void _txck_force(struct rtw89_dev *rtwdev, enum rtw89_rf_path path, in _txck_force() argument 179 rtw89_phy_write32_mask(rtwdev, R_P0_RXCK | (path << 13), B_P0_TXCK_ON, 0x0); in _txck_force() 184 rtw89_phy_write32_mask(rtwdev, R_P0_RXCK | (path << 13), B_P0_TXCK_VAL, ck); in _txck_force() [all …]
|
| /linux/tools/power/cpupower/utils/helpers/ |
| H A D | misc.c | 23 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/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 | ctree.c | 31 *root, struct btrfs_path *path, int level); 33 const struct btrfs_key *ins_key, struct btrfs_path *path, 860 struct btrfs_root *root, struct btrfs_path *path, in promote_child_to_root() argument 892 path->locks[level] = 0; in promote_child_to_root() 893 path->nodes[level] = NULL; in promote_child_to_root() 918 struct btrfs_path *path, int level) in balance_level() argument 928 int orig_slot = path->slots[level]; in balance_level() 933 mid = path->nodes[level]; in balance_level() 935 WARN_ON(path->locks[level] != BTRFS_WRITE_LOCK); in balance_level() 941 parent = path->nodes[level + 1]; in balance_level() [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 | uuid-tree.c | 30 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() 97 path = btrfs_alloc_path(); in btrfs_uuid_tree_add() 98 if (!path) in btrfs_uuid_tree_add() 101 ret = btrfs_insert_empty_item(trans, uuid_root, path, &key, in btrfs_uuid_tree_add() [all …]
|
| H A D | raid-stripe-tree.c | 17 struct btrfs_path *path, in btrfs_partially_delete_raid_extent() argument 36 leaf = path->nodes[0]; in btrfs_partially_delete_raid_extent() 37 slot = path->slots[0]; in btrfs_partially_delete_raid_extent() 57 ret = btrfs_del_item(trans, stripe_root, path); in btrfs_partially_delete_raid_extent() 61 btrfs_release_path(path); in btrfs_partially_delete_raid_extent() 69 BTRFS_PATH_AUTO_FREE(path); in btrfs_delete_raid_extent() 94 path = btrfs_alloc_path(); in btrfs_delete_raid_extent() 95 if (!path) in btrfs_delete_raid_extent() 103 ret = btrfs_search_slot(trans, stripe_root, &key, path, -1, 1); in btrfs_delete_raid_extent() 115 if (path->slots[0] == 0) { in btrfs_delete_raid_extent() [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/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, I_INO(ip)); in xchk_dirpath_append() 186 path->nr_steps++; in xchk_dirpath_append() 216 struct xchk_dirpath *path; in xchk_dirtree_create_path() local [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 | 34 zfree(&file->path); in perf_data__close_dir() 68 ret = asprintf(&file->path, "%s/data.%d", data->path, i); in perf_data__create_dir() 75 ret = open(file->path, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR); in perf_data__create_dir() 125 dir = opendir(data->path); in perf_data__open_dir() 131 char path[PATH_MAX]; in perf_data__open_dir() 134 snprintf(path, sizeof(path), "%s/%s", data->path, dent->d_name); in perf_data__open_dir() 135 if (stat(path, in perf_data__open_dir() 116 char path[PATH_MAX]; perf_data__open_dir() local 471 has_kcore_dir(const char * path) has_kcore_dir() argument 528 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/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 | |
| /linux/tools/verification/rvgen/rvgen/ |
| H A D | generator.py | 55 def _read_file(self, path): 56 with open(path, 'r') as fd: 62 path = self.abs_template_dir / file 63 return self._read_file(path) 67 path = self.abs_template_dir.parent / file 68 return self._read_file(path) 192 path = Path(self.name) 194 path = Path(self.rv_dir) / "monitors" / path 195 path 53 _read_file(self, path) global() argument [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/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 [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);
|