/linux/fs/gfs2/ |
A D | dir.c | 451 if (ptr < (void *)dent || ptr >= (void *)dent + totlen) in gfs2_dirent_find_offset() 581 prev = dent; in gfs2_dirent_scan() 655 *dent = tmp; in dirent_next() 832 if (dent) in gfs2_dirent_search() 857 return dent; in gfs2_dirent_search() 945 if (!dent) { in dir_make_exhash() 1652 if (dent) { in gfs2_dir_search() 1682 if (dent) { in gfs2_dir_check() 1801 struct gfs2_dirent *dent = da->dent; in gfs2_dir_add() local 1814 dent = gfs2_init_dirent(inode, dent, name, bh); in gfs2_dir_add() [all …]
|
A D | dir.h | 21 struct gfs2_dirent *dent; member 67 static inline void gfs2_qstr2dirent(const struct qstr *name, u16 reclen, struct gfs2_dirent *dent) in gfs2_qstr2dirent() argument 69 dent->de_inum.no_addr = cpu_to_be64(0); in gfs2_qstr2dirent() 70 dent->de_inum.no_formal_ino = cpu_to_be64(0); in gfs2_qstr2dirent() 71 dent->de_hash = cpu_to_be32(name->hash); in gfs2_qstr2dirent() 72 dent->de_rec_len = cpu_to_be16(reclen); in gfs2_qstr2dirent() 73 dent->de_name_len = cpu_to_be16(name->len); in gfs2_qstr2dirent() 74 dent->de_type = cpu_to_be16(0); in gfs2_qstr2dirent() 75 memset(dent->__pad, 0, sizeof(dent->__pad)); in gfs2_qstr2dirent() 76 memcpy(dent + 1, name->name, name->len); in gfs2_qstr2dirent()
|
A D | inode.h | 71 struct gfs2_dirent *dent) in gfs2_inum_out() argument 73 dent->de_inum.no_formal_ino = cpu_to_be64(ip->i_no_formal_ino); in gfs2_inum_out() 74 dent->de_inum.no_addr = cpu_to_be64(ip->i_no_addr); in gfs2_inum_out()
|
/linux/scripts/coccinelle/api/ |
A D | d_find_alias.cocci | 27 <...when != dput(dent) 30 when != dent = E 31 when != E = dent 32 if (!dent || ...) S2 39 dent@p2 = E1; 41 E1 = dent; 48 * dent@p1 = ... 53 * dent@p2 69 + dput(dent); 72 + dput(dent); [all …]
|
/linux/security/apparmor/ |
A D | apparmorfs.c | 1452 if (IS_ERR(dent)) in __aa_fs_create_rawdata() 1458 if (IS_ERR(dent)) in __aa_fs_create_rawdata() 1473 if (IS_ERR(dent)) in __aa_fs_create_rawdata() 1479 if (IS_ERR(dent)) in __aa_fs_create_rawdata() 1554 if (IS_ERR(dent)) in create_profile_file() 1557 return dent; in create_profile_file() 1680 dent = aafs_create_dir("profiles", dent); in __aafs_profile_mkdir() 1702 if (IS_ERR(dent)) in __aafs_profile_mkdir() 1708 if (IS_ERR(dent)) in __aafs_profile_mkdir() 2010 if (!dent) { in __aafs_ns_mkdir() [all …]
|
/linux/tools/perf/util/ |
A D | trace-event-info.c | 156 while ((dent = readdir(dir))) \ 157 if (dent->d_type == DT_DIR && \ 158 (strcmp(dent->d_name, ".")) && \ 159 (strcmp(dent->d_name, ".."))) \ 163 struct dirent *dent; in copy_event_system() local 177 for_each_event_tps(dir, dent, tps) { in copy_event_system() 178 if (!name_in_tp_list(dent->d_name, tps)) in copy_event_system() 199 for_each_event_tps(dir, dent, tps) { in copy_event_system() 255 struct dirent *dent; in record_event_files() local 277 for_each_event_tps(dir, dent, tps) { in record_event_files() [all …]
|
A D | path.c | 84 bool is_directory(const char *base_path, const struct dirent *dent) in is_directory() argument 89 sprintf(path, "%s/%s", base_path, dent->d_name); in is_directory()
|
A D | data.c | 75 struct dirent *dent; in perf_data__open_dir() local 98 while ((dent = readdir(dir)) != NULL) { in perf_data__open_dir() 103 snprintf(path, sizeof(path), "%s/%s", data->path, dent->d_name); in perf_data__open_dir() 107 if (!S_ISREG(st.st_mode) || strncmp(dent->d_name, "data.", 5)) in perf_data__open_dir()
|
A D | path.h | 14 bool is_directory(const char *base_path, const struct dirent *dent);
|
/linux/drivers/mtd/ubi/ |
A D | debug.c | 263 if (dent == d->dfs_chk_gen) in dfs_file_read() 265 else if (dent == d->dfs_chk_io) in dfs_file_read() 267 else if (dent == d->dfs_chk_fastmap) in dfs_file_read() 269 else if (dent == d->dfs_disable_bgt) in dfs_file_read() 271 else if (dent == d->dfs_emulate_bitflips) in dfs_file_read() 333 if (dent == d->dfs_power_cut_min) { in dfs_file_write() 358 if (dent == d->dfs_chk_gen) in dfs_file_write() 360 else if (dent == d->dfs_chk_io) in dfs_file_write() 362 else if (dent == d->dfs_chk_fastmap) in dfs_file_write() 364 else if (dent == d->dfs_disable_bgt) in dfs_file_write() [all …]
|
/linux/fs/ubifs/ |
A D | dir.c | 218 if (!dent) { in ubifs_lookup() 269 kfree(dent); in ubifs_lookup() 560 if (IS_ERR(dent)) { in ubifs_readdir() 561 err = PTR_ERR(dent); in ubifs_readdir() 570 if (!dent) { in ubifs_readdir() 578 if (IS_ERR(dent)) { in ubifs_readdir() 600 &dent->key), in ubifs_readdir() 621 if (IS_ERR(dent)) { in ubifs_readdir() 859 if (IS_ERR(dent)) { in ubifs_check_dir_empty() 860 err = PTR_ERR(dent); in ubifs_check_dir_empty() [all …]
|
A D | debug.c | 274 if (IS_ERR(dent)) { in ubifs_dump_inode() 285 fname_name(&nm) = dent->name; in ubifs_dump_inode() 288 pdent = dent; in ubifs_dump_inode() 492 dent->name[i] : '?'); in ubifs_dump_node() 1143 if (IS_ERR(dent)) { in dbg_check_dir() 1144 err = PTR_ERR(dent); in dbg_check_dir() 1157 pdent = dent; in dbg_check_dir() 2707 if (dent == d->dfs_chk_gen) in dfs_file_read() 2780 if (dent == d->dfs_chk_gen) in dfs_file_write() 2900 if (dent == dfs_chk_gen) in dfs_global_file_read() [all …]
|
A D | journal.c | 68 dent->padding1 = 0; in zero_dent_node_unused() 508 dent->cookie = 0; in set_dent_cookie() 581 if (!dent) in ubifs_jnl_update() 606 set_dent_cookie(c, dent); in ubifs_jnl_update() 646 kfree(dent); in ubifs_jnl_update() 698 kfree(dent); in ubifs_jnl_update() 703 kfree(dent); in ubifs_jnl_update() 1261 if (!dent) in ubifs_jnl_rename() 1277 set_dent_cookie(c, dent); in ubifs_jnl_rename() 1416 kfree(dent); in ubifs_jnl_rename() [all …]
|
A D | tnc.c | 539 if (!dent) in matches_name() 551 dent = zbr->leaf; in matches_name() 568 kfree(dent); in matches_name() 827 if (!dent) in fallible_matches_name() 844 dent = zbr->leaf; in fallible_matches_name() 861 kfree(dent); in fallible_matches_name() 2712 if (!dent) { in ubifs_tnc_remove_dh() 2746 kfree(dent); in ubifs_tnc_remove_dh() 3006 if (unlikely(!dent)) { in ubifs_tnc_next_ent() 3027 return dent; in ubifs_tnc_next_ent() [all …]
|
A D | replay.c | 481 const struct ubifs_dent_node *dent) in ubifs_validate_entry() argument 483 int key_type = key_type_flash(c, dent->key); in ubifs_validate_entry() 484 int nlen = le16_to_cpu(dent->nlen); in ubifs_validate_entry() 487 dent->type >= UBIFS_ITYPES_CNT || in ubifs_validate_entry() 488 nlen > UBIFS_MAX_NLEN || dent->name[nlen] != 0 || in ubifs_validate_entry() 490 le64_to_cpu(dent->inum) > MAX_INUM) { in ubifs_validate_entry() 765 struct ubifs_dent_node *dent = snod->node; in replay_bud() local 767 err = ubifs_validate_entry(c, dent); in replay_bud() 772 &snod->key, dent->name, in replay_bud() 773 le16_to_cpu(dent->nlen), snod->sqnum, in replay_bud() [all …]
|
/linux/fs/ntfs/ |
A D | namei.c | 89 static struct dentry *ntfs_lookup(struct inode *dir_ino, struct dentry *dent, in ntfs_lookup() argument 101 dent, dir_ino->i_ino); in ntfs_lookup() 103 uname_len = ntfs_nlstoucs(vol, dent->d_name.name, dent->d_name.len, in ntfs_lookup() 126 return d_splice_alias(dent_inode, dent); in ntfs_lookup() 154 d_add(dent, NULL); in ntfs_lookup() 242 nls_name.hash = full_name_hash(dent, nls_name.name, nls_name.len); in ntfs_lookup() 244 dent = d_add_ci(dent, dent_inode, &nls_name); in ntfs_lookup() 246 return dent; in ntfs_lookup()
|
/linux/tools/perf/arch/x86/util/ |
A D | pmu.c | 74 struct dirent *dent; in setup_pmu_alias_list() local 91 while ((dent = readdir(dir))) { in setup_pmu_alias_list() 92 if (!strcmp(dent->d_name, ".") || in setup_pmu_alias_list() 93 !strcmp(dent->d_name, "..")) in setup_pmu_alias_list() 97 TEMPLATE_ALIAS, sysfs, dent->d_name); in setup_pmu_alias_list() 116 pmu_alias = pmu_alias__new(dent->d_name, buf); in setup_pmu_alias_list()
|
/linux/tools/testing/selftests/ir/ |
A D | ir_loopback.c | 64 struct dirent *dent; in lirc_open() local 75 while ((dent = readdir(d)) != NULL) { in lirc_open() 76 if (!strncmp(dent->d_name, "lirc", 4)) { in lirc_open() 77 snprintf(buf, sizeof(buf), "/dev/%s", dent->d_name); in lirc_open() 82 if (!dent) in lirc_open()
|
/linux/security/ |
A D | inode.c | 265 struct dentry *dent; in securityfs_create_symlink() local 273 dent = securityfs_create_dentry(name, S_IFLNK | 0444, parent, in securityfs_create_symlink() 275 if (IS_ERR(dent)) in securityfs_create_symlink() 278 return dent; in securityfs_create_symlink()
|
/linux/net/8021q/ |
A D | vlanproc.c | 143 vlan->dent = proc_create_single_data(vlandev->name, S_IFREG | 0600, in vlan_proc_add_dev() 145 if (!vlan->dent) in vlan_proc_add_dev() 156 proc_remove(vlan_dev_priv(vlandev)->dent); in vlan_proc_rem_dev() 157 vlan_dev_priv(vlandev)->dent = NULL; in vlan_proc_rem_dev()
|
/linux/tools/perf/ |
A D | builtin-buildid-cache.c | 85 struct dirent *dent; in build_id_cache__kcore_existing() local 96 dent = readdir(d); in build_id_cache__kcore_existing() 97 if (!dent) in build_id_cache__kcore_existing() 99 if (dent->d_type != DT_DIR) in build_id_cache__kcore_existing() 102 dent->d_name); in build_id_cache__kcore_existing() 104 to_dir, dent->d_name); in build_id_cache__kcore_existing()
|
/linux/tools/perf/tests/ |
A D | dso-data.c | 180 struct dirent *dent; in open_files_cnt() local 190 while ((dent = readdir(dir)) != NULL) { in open_files_cnt() 191 if (!strcmp(dent->d_name, ".") || in open_files_cnt() 192 !strcmp(dent->d_name, "..")) in open_files_cnt()
|
/linux/arch/arm/mach-omap1/ |
A D | clock.c | 995 d = debugfs_create_dir(c->name, pa ? pa->dent : clk_debugfs_root); in clk_debugfs_register_one() 996 c->dent = d; in clk_debugfs_register_one() 998 debugfs_create_u8("usecount", S_IRUGO, c->dent, &c->usecount); in clk_debugfs_register_one() 999 debugfs_create_ulong("rate", S_IRUGO, c->dent, &c->rate); in clk_debugfs_register_one() 1000 debugfs_create_x8("flags", S_IRUGO, c->dent, &c->flags); in clk_debugfs_register_one() 1007 if (pa && !pa->dent) in clk_debugfs_register() 1010 if (!c->dent) in clk_debugfs_register()
|
/linux/fs/xfs/scrub/ |
A D | dir.c | 208 struct xfs_dir2_data_entry *dent; in xchk_dir_rec() local 263 dent = bp->b_addr + off; in xchk_dir_rec() 285 if (dep == dent) in xchk_dir_rec() 291 ino = be64_to_cpu(dent->inumber); in xchk_dir_rec() 293 tag = be16_to_cpup(xfs_dir2_data_entry_tag_p(mp, dent)); in xchk_dir_rec() 296 if (dent->namelen == 0) { in xchk_dir_rec() 300 calc_hash = xfs_da_hashname(dent->name, dent->namelen); in xchk_dir_rec()
|
/linux/drivers/hid/ |
A D | hid-picolcd_debugfs.c | 872 struct dentry *dent; in picolcd_exit_devfs() local 874 dent = data->debug_reset; in picolcd_exit_devfs() 876 debugfs_remove(dent); in picolcd_exit_devfs() 877 dent = data->debug_eeprom; in picolcd_exit_devfs() 879 debugfs_remove(dent); in picolcd_exit_devfs() 880 dent = data->debug_flash; in picolcd_exit_devfs() 882 debugfs_remove(dent); in picolcd_exit_devfs()
|