Home
last modified time | relevance | path

Searched refs:dent (Results 1 – 25 of 49) sorted by relevance

12

/linux/fs/gfs2/
A Ddir.c451 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 Ddir.h21 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 Dinode.h71 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 Dd_find_alias.cocci27 <...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 Dapparmorfs.c1452 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 Dtrace-event-info.c156 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 Dpath.c84 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 Ddata.c75 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 Dpath.h14 bool is_directory(const char *base_path, const struct dirent *dent);
/linux/drivers/mtd/ubi/
A Ddebug.c263 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 Ddir.c218 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 Ddebug.c274 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 Djournal.c68 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 Dtnc.c539 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 Dreplay.c481 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 Dnamei.c89 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 Dpmu.c74 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 Dir_loopback.c64 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 Dinode.c265 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 Dvlanproc.c143 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 Dbuiltin-buildid-cache.c85 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 Ddso-data.c180 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 Dclock.c995 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 Ddir.c208 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 Dhid-picolcd_debugfs.c872 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()

Completed in 64 milliseconds

12