Home
last modified time | relevance | path

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

1234

/openbmc/linux/scripts/coccinelle/api/
H 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 …]
/openbmc/u-boot/drivers/mtd/ubi/
H A Ddebug.c400 struct dentry *dent; in ubi_debugfs_init_dev() local
411 dent = ERR_PTR(-EINVAL); in ubi_debugfs_init_dev()
417 if (IS_ERR_OR_NULL(dent)) in ubi_debugfs_init_dev()
419 d->dfs_dir = dent; in ubi_debugfs_init_dev()
424 if (IS_ERR_OR_NULL(dent)) in ubi_debugfs_init_dev()
426 d->dfs_chk_gen = dent; in ubi_debugfs_init_dev()
431 if (IS_ERR_OR_NULL(dent)) in ubi_debugfs_init_dev()
433 d->dfs_chk_io = dent; in ubi_debugfs_init_dev()
438 if (IS_ERR_OR_NULL(dent)) in ubi_debugfs_init_dev()
445 if (IS_ERR_OR_NULL(dent)) in ubi_debugfs_init_dev()
[all …]
/openbmc/linux/fs/gfs2/
H 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()
1651 if (dent) { in gfs2_dir_search()
1681 if (dent) { in gfs2_dir_check()
1800 struct gfs2_dirent *dent = da->dent; in gfs2_dir_add() local
1813 dent = gfs2_init_dirent(inode, dent, name, bh); in gfs2_dir_add()
[all …]
H 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()
/openbmc/u-boot/fs/ubifs/
H A Dubifs.c323 if (IS_ERR(dent)) { in ubifs_printdir()
324 err = PTR_ERR(dent); in ubifs_printdir()
333 if (!dent) { in ubifs_printdir()
342 if (IS_ERR(dent)) { in ubifs_printdir()
352 dent->name, (unsigned long long)le64_to_cpu(dent->inum), in ubifs_printdir()
360 le64_to_cpu(dent->inum), dent->type); in ubifs_printdir()
368 if (IS_ERR(dent)) { in ubifs_printdir()
426 if (IS_ERR(dent)) { in ubifs_finddir()
427 err = PTR_ERR(dent); in ubifs_finddir()
436 dent->name, (unsigned long long)le64_to_cpu(dent->inum), in ubifs_finddir()
[all …]
H A Ddebug.c283 if (IS_ERR(dent)) { in ubifs_dump_inode()
290 count++, dent->name, get_dent_type(dent->type)); in ubifs_dump_inode()
292 nm.name = dent->name; in ubifs_dump_inode()
295 pdent = dent; in ubifs_dump_inode()
1132 if (IS_ERR(dent)) { in dbg_check_dir()
1145 pdent = dent; in dbg_check_dir()
2881 d->dfs_dir = dent; in dbg_debugfs_init_fs()
2955 err = dent ? PTR_ERR(dent) : -ENODEV; in dbg_debugfs_init_fs()
3060 dfs_rootdir = dent; in dbg_debugfs_init()
3095 dfs_chk_fs = dent; in dbg_debugfs_init()
[all …]
/openbmc/linux/drivers/vdpa/mlx5/net/
H A Ddebug.c111 node->dent = debugfs_create_dir(vidstr, ndev->rx_dent); in mlx5_vdpa_add_rx_counters()
112 if (IS_ERR(node->dent)) { in mlx5_vdpa_add_rx_counters()
113 node->dent = NULL; in mlx5_vdpa_add_rx_counters()
117 node->ucast_counter.dent = debugfs_create_dir("ucast", node->dent); in mlx5_vdpa_add_rx_counters()
118 if (IS_ERR(node->ucast_counter.dent)) in mlx5_vdpa_add_rx_counters()
121 add_counter_node(&node->ucast_counter, node->ucast_counter.dent); in mlx5_vdpa_add_rx_counters()
123 node->mcast_counter.dent = debugfs_create_dir("mcast", node->dent); in mlx5_vdpa_add_rx_counters()
124 if (IS_ERR(node->mcast_counter.dent)) in mlx5_vdpa_add_rx_counters()
127 add_counter_node(&node->mcast_counter, node->mcast_counter.dent); in mlx5_vdpa_add_rx_counters()
133 if (node->dent && ndev->debugfs) in mlx5_vdpa_remove_rx_counters()
[all …]
/openbmc/linux/drivers/virt/coco/efi_secret/
H A Defi_secret.c220 struct dentry *dent; in efi_secret_securityfs_setup() local
247 if (IS_ERR(dent)) { in efi_secret_securityfs_setup()
249 PTR_ERR(dent)); in efi_secret_securityfs_setup()
250 return PTR_ERR(dent); in efi_secret_securityfs_setup()
252 s->secrets_dir = dent; in efi_secret_securityfs_setup()
255 if (IS_ERR(dent)) { in efi_secret_securityfs_setup()
257 PTR_ERR(dent)); in efi_secret_securityfs_setup()
258 return PTR_ERR(dent); in efi_secret_securityfs_setup()
261 s->fs_dir = dent; in efi_secret_securityfs_setup()
279 if (IS_ERR(dent)) { in efi_secret_securityfs_setup()
[all …]
/openbmc/linux/security/apparmor/
H A Dapparmorfs.c1468 if (IS_ERR(dent)) in __aa_fs_create_rawdata()
1474 if (IS_ERR(dent)) in __aa_fs_create_rawdata()
1489 if (IS_ERR(dent)) in __aa_fs_create_rawdata()
1495 if (IS_ERR(dent)) in __aa_fs_create_rawdata()
1575 if (IS_ERR(dent)) in create_profile_file()
1578 return dent; in create_profile_file()
1701 if (!dent) { in __aafs_profile_mkdir()
1706 dent = aafs_create_dir("profiles", dent); in __aafs_profile_mkdir()
1728 if (IS_ERR(dent)) in __aafs_profile_mkdir()
2041 if (!dent) { in __aafs_ns_mkdir()
[all …]
/openbmc/u-boot/fs/fat/
H A Dfat.c795 if (!dent) { in next_dent()
802 itr->dent = dent; in next_dent()
805 itr->dent++; in next_dent()
817 struct dir_entry *dent = itr->dent; in extract_vfat_name() local
837 if (!dent) in extract_vfat_name()
843 chksum = mkcksum(dent->name, dent->ext); in extract_vfat_name()
852 return dent; in extract_vfat_name()
872 if (!dent) in fat_itr_next()
883 if (!dent) in fat_itr_next()
1235 memset(dent, 0, sizeof(*dent)); in fat_readdir()
[all …]
/openbmc/linux/tools/perf/util/
H 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 …]
H A Dpath.c59 bool is_directory(const char *base_path, const struct dirent *dent) in is_directory() argument
64 snprintf(path, sizeof(path), "%s/%s", base_path, dent->d_name); in is_directory()
71 bool is_executable_file(const char *base_path, const struct dirent *dent) in is_executable_file() argument
76 snprintf(path, sizeof(path), "%s/%s", base_path, dent->d_name); in is_executable_file()
/openbmc/qemu/hw/9pfs/
H A Dcodir.c40 *dent = NULL; in do_readdir()
43 *dent = entry; in do_readdir()
53 struct dirent **dent) in v9fs_co_readdir() argument
61 err = do_readdir(pdu, fidp, dent); in v9fs_co_readdir()
80 struct dirent *dent; in do_readdir_many() local
121 err = do_readdir(pdu, fidp, &dent); in do_readdir_many()
122 if (err || !dent) { in do_readdir_many()
133 v9fs_string_sprintf(&name, "%s", dent->d_name); in do_readdir_many()
147 e->dent = qemu_dirent_dup(dent); in do_readdir_many()
152 &s->ctx, &fidp->path, dent->d_name, &path in do_readdir_many()
[all …]
H A D9p-util.h212 static inline off_t qemu_dirent_off(struct dirent *dent) in qemu_dirent_off() argument
215 return dent->d_seekoff; in qemu_dirent_off()
217 return dent->d_off; in qemu_dirent_off()
232 static inline struct dirent *qemu_dirent_dup(struct dirent *dent) in qemu_dirent_dup() argument
237 sz = dent->d_reclen; in qemu_dirent_dup()
246 strlen(dent->d_name) + 1; in qemu_dirent_dup()
248 return g_memdup(dent, sz); in qemu_dirent_dup()
/openbmc/linux/drivers/mtd/ubi/
H 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 …]
/openbmc/linux/tools/perf/arch/x86/util/
H A Dpmu.c78 struct dirent *dent; in setup_pmu_alias_list() local
92 while ((dent = readdir(dir))) { in setup_pmu_alias_list()
93 if (!strcmp(dent->d_name, ".") || in setup_pmu_alias_list()
94 !strcmp(dent->d_name, "..")) in setup_pmu_alias_list()
97 fd = perf_pmu__pathname_fd(dirfd, dent->d_name, "alias", O_RDONLY); in setup_pmu_alias_list()
115 pmu_alias = pmu_alias__new(dent->d_name, buf); in setup_pmu_alias_list()
/openbmc/linux/fs/ubifs/
H A Ddir.c220 if (!dent) { in ubifs_lookup()
271 kfree(dent); in ubifs_lookup()
617 if (IS_ERR(dent)) { in ubifs_readdir()
618 err = PTR_ERR(dent); in ubifs_readdir()
627 if (!dent) { in ubifs_readdir()
635 if (IS_ERR(dent)) { in ubifs_readdir()
657 &dent->key), in ubifs_readdir()
678 if (IS_ERR(dent)) { in ubifs_readdir()
890 if (IS_ERR(dent)) { in ubifs_check_dir_empty()
891 err = PTR_ERR(dent); in ubifs_check_dir_empty()
[all …]
H 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 …]
H 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()
1277 if (!dent) in ubifs_jnl_rename()
1293 set_dent_cookie(c, dent); in ubifs_jnl_rename()
1456 kfree(dent); in ubifs_jnl_rename()
[all …]
/openbmc/linux/fs/ntfs/
H 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()
/openbmc/linux/drivers/dma/dw-edma/
H A Ddw-hdma-v0-debugfs.c61 int nr_entries, struct dentry *dent) in dw_hdma_debugfs_create_x32() argument
74 debugfs_create_file_unsafe(entries[i].name, 0444, dent, in dw_hdma_debugfs_create_x32()
80 u16 ch, struct dentry *dent) in dw_hdma_debugfs_regs_ch() argument
113 dw_hdma_debugfs_create_x32(dw, debugfs_regs, nr_entries, dent); in dw_hdma_debugfs_regs_ch()
116 static void dw_hdma_debugfs_regs_wr(struct dw_edma *dw, struct dentry *dent) in dw_hdma_debugfs_regs_wr() argument
122 regs_dent = debugfs_create_dir(WRITE_STR, dent); in dw_hdma_debugfs_regs_wr()
133 static void dw_hdma_debugfs_regs_rd(struct dw_edma *dw, struct dentry *dent) in dw_hdma_debugfs_regs_rd() argument
139 regs_dent = debugfs_create_dir(READ_STR, dent); in dw_hdma_debugfs_regs_rd()
/openbmc/linux/tools/power/cpupower/lib/
H A Dpowercap.c190 struct dirent *dent; in powercap_read_zone() local
218 while ((dent = readdir(zone_dir)) != NULL) { in powercap_read_zone()
221 if (strcmp(dent->d_name, ".") == 0 || strcmp(dent->d_name, "..") == 0) in powercap_read_zone()
224 if (stat(dent->d_name, &st) != 0 || !S_ISDIR(st.st_mode)) in powercap_read_zone()
225 if (fstatat(dirfd(zone_dir), dent->d_name, &st, 0) < 0) in powercap_read_zone()
228 if (strncmp(dent->d_name, "intel-rapl:", 11) != 0) in powercap_read_zone()
248 strcat(child_zone->sys_name, dent->d_name); in powercap_read_zone()
/openbmc/u-boot/lib/efi_loader/
H A Defi_file.c34 struct fs_dirent *dent; member
321 struct fs_dirent *dent; in dir_read() local
337 if (fh->dent) { in dir_read()
338 dent = fh->dent; in dir_read()
339 fh->dent = NULL; in dir_read()
341 dent = fs_readdir(fh->dirs); in dir_read()
345 if (!dent) { in dir_read()
368 fh->dent = dent; in dir_read()
376 info->file_size = dent->size; in dir_read()
377 info->physical_size = dent->size; in dir_read()
[all …]
/openbmc/linux/tools/perf/arch/arm/util/
H A Dauxtrace.c60 struct dirent *dent; in find_all_hisi_ptt_pmus() local
73 while ((dent = readdir(dir))) { in find_all_hisi_ptt_pmus()
74 if (strstr(dent->d_name, HISI_PTT_PMU_NAME)) in find_all_hisi_ptt_pmus()
89 while ((dent = readdir(dir))) { in find_all_hisi_ptt_pmus()
90 if (strstr(dent->d_name, HISI_PTT_PMU_NAME) && idx < *nr_ptts) { in find_all_hisi_ptt_pmus()
91 hisi_ptt_pmus[idx] = perf_pmus__find(dent->d_name); in find_all_hisi_ptt_pmus()
/openbmc/linux/tools/testing/selftests/ir/
H A Dir_loopback.c73 struct dirent *dent; in lirc_open() local
84 while ((dent = readdir(d)) != NULL) { in lirc_open()
85 if (!strncmp(dent->d_name, "lirc", 4)) { in lirc_open()
86 snprintf(buf, sizeof(buf), "/dev/%s", dent->d_name); in lirc_open()
91 if (!dent) in lirc_open()

1234