| /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/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 | 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 | 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 | 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 …]
|
| H A D | rtw8852bt_rfk.c | 135 static void _rfk_get_thermal(struct rtw89_dev *rtwdev, u8 kidx, enum rtw89_rf_path path) in _rfk_get_thermal() argument 139 rtw89_write_rf(rtwdev, path, RR_TM, RR_TM_TRI, 0x1); in _rfk_get_thermal() 140 rtw89_write_rf(rtwdev, path, RR_TM, RR_TM_TRI, 0x0); in _rfk_get_thermal() 141 rtw89_write_rf(rtwdev, path, RR_TM, RR_TM_TRI, 0x1); in _rfk_get_thermal() 145 dpk->bp[path][kidx].ther_dpk = rtw89_read_rf(rtwdev, path, RR_TM, RR_TM_VAL); in _rfk_get_thermal() 148 dpk->bp[path][kidx].ther_dpk); in _rfk_get_thermal() 253 void _txck_force(struct rtw89_dev *rtwdev, enum rtw89_rf_path path, bool force, in _txck_force() argument 256 rtw89_phy_write32_mask(rtwdev, R_P0_RXCK | (path << 13), B_P0_TXCK_ON, 0x0); in _txck_force() 261 rtw89_phy_write32_mask(rtwdev, R_P0_RXCK | (path << 13), B_P0_TXCK_VAL, ck); in _txck_force() 262 rtw89_phy_write32_mask(rtwdev, R_P0_RXCK | (path << 13), B_P0_TXCK_ON, 0x1); in _txck_force() [all …]
|
| /linux/fs/ ! |
| H A D | init.c | 18 struct path new_path __free(path_put) = {}; in init_pivot_root() 19 struct path old_path __free(path_put) = {}; in init_pivot_root() 36 struct path path; in init_mount() local 39 ret = kern_path(dir_name, LOOKUP_FOLLOW, &path); in init_mount() 42 ret = path_mount(dev_name, &path, type_page, flags, data_page); in init_mount() 43 path_put(&path); in init_mount() 50 struct path path; in init_umount() local 55 ret = kern_path(name, lookup_flags, &path); in init_umount() 58 return path_umount(&path, flags); in init_umount() 63 struct path path; in init_chdir() local [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 | inode-item.c | 82 struct btrfs_path *path, in btrfs_lookup_inode_extref() argument 93 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); in btrfs_lookup_inode_extref() 98 return btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], in btrfs_lookup_inode_extref() 109 BTRFS_PATH_AUTO_FREE(path); in btrfs_del_inode_extref() 123 path = btrfs_alloc_path(); in btrfs_del_inode_extref() 124 if (!path) in btrfs_del_inode_extref() 127 ret = btrfs_search_slot(trans, root, &key, path, -1, 1); in btrfs_del_inode_extref() 138 extref = btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], in btrfs_del_inode_extref() 145 leaf = path->nodes[0]; in btrfs_del_inode_extref() 146 item_size = btrfs_item_size(leaf, path->slots[0]); in btrfs_del_inode_extref() [all …]
|
| H A D | free-space-tree.c | 22 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 D | ctree.c | 30 *root, struct btrfs_path *path, int level); 32 const struct btrfs_key *ins_key, struct btrfs_path *path, 868 struct btrfs_root *root, struct btrfs_path *path, in promote_child_to_root() argument 900 path->locks[level] = 0; in promote_child_to_root() 901 path->nodes[level] = NULL; in promote_child_to_root() 926 struct btrfs_path *path, int level) in balance_level() argument 936 int orig_slot = path->slots[level]; in balance_level() 941 mid = path->nodes[level]; in balance_level() 943 WARN_ON(path->locks[level] != BTRFS_WRITE_LOCK); in balance_level() 949 parent = path->nodes[level + 1]; in balance_level() [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/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/drivers/net/ethernet/mediatek/ ! |
| H A D | mtk_eth_path.c | 18 int (*set_path)(struct mtk_eth *eth, u64 path); 21 static const char *mtk_eth_path_name(u64 path) in mtk_eth_path_name() argument 23 switch (path) { in mtk_eth_path_name() 45 static int set_mux_gdm1_to_gmac1_esw(struct mtk_eth *eth, u64 path) in set_mux_gdm1_to_gmac1_esw() argument 50 switch (path) { in set_mux_gdm1_to_gmac1_esw() 73 mtk_eth_path_name(path), __func__, updated); in set_mux_gdm1_to_gmac1_esw() 78 static int set_mux_gmac2_gmac0_to_gephy(struct mtk_eth *eth, u64 path) in set_mux_gmac2_gmac0_to_gephy() argument 83 switch (path) { in set_mux_gmac2_gmac0_to_gephy() 96 mtk_eth_path_name(path), __func__, updated); in set_mux_gmac2_gmac0_to_gephy() 101 static int set_mux_u3_gmac2_to_qphy(struct mtk_eth *eth, u64 path) in set_mux_u3_gmac2_to_qphy() argument [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 …]
|
| /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 …]
|
| /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/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/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/lib/api/fs/ ! |
| H A D | fs.c | 94 char *path; member 158 char path[PATH_MAX + 1]; in fs__read_mounts() local 165 path, type) == 2) { in fs__read_mounts() 168 fs->path = strdup(path); in fs__read_mounts() 170 return fs->path != NULL; in fs__read_mounts() 196 fs->path = strdup(*ptr); in fs__check_mounts() 197 if (!fs->path) in fs__check_mounts() 236 fs->path = strdup(override_path); in fs__env_override() 237 if (!fs->path) in fs__env_override() 247 assert(!fs->path); in fs__init_once() [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 …]
|