Searched refs:dent (Results 1 - 25 of 51) sorted by relevance

123

/linux-master/fs/gfs2/
H A Ddir.h21 struct gfs2_dirent *dent; member in struct:gfs2_diradd
67 static inline void gfs2_qstr2dirent(const struct qstr *name, u16 reclen, struct gfs2_dirent *dent) argument
69 dent->de_inum.no_addr = cpu_to_be64(0);
70 dent->de_inum.no_formal_ino = cpu_to_be64(0);
71 dent->de_hash = cpu_to_be32(name->hash);
72 dent->de_rec_len = cpu_to_be16(reclen);
73 dent->de_name_len = cpu_to_be16(name->len);
74 dent->de_type = cpu_to_be16(0);
75 memset(dent->__pad, 0, sizeof(dent
[all...]
H A Ddir.c86 typedef int (*gfs2_dscan_t)(const struct gfs2_dirent *dent,
396 static inline int gfs2_dirent_sentinel(const struct gfs2_dirent *dent) argument
398 return dent->de_inum.no_addr == 0 || dent->de_inum.no_formal_ino == 0;
401 static inline int __gfs2_dirent_find(const struct gfs2_dirent *dent, argument
404 if (!gfs2_dirent_sentinel(dent) &&
405 be32_to_cpu(dent->de_hash) == name->hash &&
406 be16_to_cpu(dent->de_name_len) == name->len &&
407 memcmp(dent+1, name->name, name->len) == 0)
412 static int gfs2_dirent_find(const struct gfs2_dirent *dent, argument
419 gfs2_dirent_prev(const struct gfs2_dirent *dent, const struct qstr *name, void *opaque) argument
430 gfs2_dirent_last(const struct gfs2_dirent *dent, const struct qstr *name, void *opaque) argument
443 gfs2_dirent_find_offset(const struct gfs2_dirent *dent, const struct qstr *name, void *ptr) argument
462 gfs2_dirent_find_space(const struct gfs2_dirent *dent, const struct qstr *name, void *opaque) argument
482 gfs2_dirent_gather(const struct gfs2_dirent *dent, const struct qstr *name, void *opaque) argument
502 gfs2_check_dirent(struct gfs2_sbd *sdp, struct gfs2_dirent *dent, unsigned int offset, unsigned int size, unsigned int len, int first) argument
559 struct gfs2_dirent *dent, *prev; local
633 dirent_next(struct gfs2_inode *dip, struct buffer_head *bh, struct gfs2_dirent **dent) argument
705 do_init_dirent(struct inode *inode, struct gfs2_dirent *dent, const struct qstr *name, struct buffer_head *bh, unsigned offset) argument
729 gfs2_init_dirent(struct inode *inode, struct gfs2_dirent *dent, const struct qstr *name, struct buffer_head *bh) argument
746 struct gfs2_dirent *dent; local
811 struct gfs2_dirent *dent; local
868 struct gfs2_dirent *dent; local
908 struct gfs2_dirent *dent; local
1003 struct gfs2_dirent *dent = NULL, *prev = NULL, *next = NULL, *new; local
1267 const struct gfs2_dirent *dent, *dent_next; local
1376 struct gfs2_dirent **darr, *dent; local
1573 struct gfs2_dirent **darr, *dent; local
1646 struct gfs2_dirent *dent; local
1677 struct gfs2_dirent *dent; local
1800 struct gfs2_dirent *dent = da->dent; local
1877 struct gfs2_dirent *dent, *prev = NULL; local
1940 struct gfs2_dirent *dent; local
2162 struct gfs2_dirent *dent; local
[all...]
H A Dinode.h69 struct gfs2_dirent *dent)
71 dent->de_inum.no_formal_ino = cpu_to_be64(ip->i_no_formal_ino);
72 dent->de_inum.no_addr = cpu_to_be64(ip->i_no_addr);
68 gfs2_inum_out(const struct gfs2_inode *ip, struct gfs2_dirent *dent) argument
/linux-master/tools/perf/util/
H A Dpath.h14 bool is_directory(const char *base_path, const struct dirent *dent);
15 bool is_executable_file(const char *base_path, const struct dirent *dent);
H A Dpath.c58 /* Helper function for filesystems that return a dent->d_type DT_UNKNOWN */
59 bool is_directory(const char *base_path, const struct dirent *dent) argument
64 snprintf(path, sizeof(path), "%s/%s", base_path, dent->d_name);
71 bool is_executable_file(const char *base_path, const struct dirent *dent) argument
76 snprintf(path, sizeof(path), "%s/%s", base_path, dent->d_name);
H A Dtrace-event-info.c155 #define for_each_event_tps(dir, dent, tps) \
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; local
177 for_each_event_tps(dir, dent, tps) {
178 if (!name_in_tp_list(dent->d_name, tps))
181 if (asprintf(&format, "%s/%s/format", sys, dent->d_name) < 0) {
199 for_each_event_tps(dir, dent, tp
255 struct dirent *dent; local
[all...]
H A Dpmus.c188 struct dirent *dent; local
203 while ((dent = readdir(dir))) {
204 if (!strcmp(dent->d_name, ".") || !strcmp(dent->d_name, ".."))
206 if (core_only && !is_pmu_core(dent->d_name))
209 perf_pmu__find2(fd, dent->d_name);
561 struct dirent *dent; local
577 while ((dent = readdir(dir))) {
578 if (!strcmp(dent->d_name, ".") || !strcmp(dent
[all...]
/linux-master/drivers/vdpa/mlx5/net/
H A Ddebug.c111 node->dent = debugfs_create_dir(vidstr, ndev->rx_dent);
112 if (IS_ERR(node->dent)) {
113 node->dent = NULL;
117 node->ucast_counter.dent = debugfs_create_dir("ucast", node->dent);
118 if (IS_ERR(node->ucast_counter.dent))
121 add_counter_node(&node->ucast_counter, node->ucast_counter.dent);
123 node->mcast_counter.dent = debugfs_create_dir("mcast", node->dent);
124 if (IS_ERR(node->mcast_counter.dent))
[all...]
H A Dmlx5_vnet.h81 struct dentry *dent; member in struct:mlx5_vdpa_counter
93 struct dentry *dent; member in struct:macvlan_node
/linux-master/drivers/virt/coco/efi_secret/
H A Defi_secret.c220 struct dentry *dent; local
246 dent = securityfs_create_dir("secrets", NULL);
247 if (IS_ERR(dent)) {
249 PTR_ERR(dent));
250 return PTR_ERR(dent);
252 s->secrets_dir = dent;
254 dent = securityfs_create_dir("coco", s->secrets_dir);
255 if (IS_ERR(dent)) {
257 PTR_ERR(dent));
258 return PTR_ERR(dent);
[all...]
/linux-master/drivers/cxl/core/
H A Dcdat.c60 struct dsmas_entry *dent; local
73 dent = kzalloc(sizeof(*dent), GFP_KERNEL);
74 if (!dent)
77 dent->handle = dsmas->dsmad_handle;
78 dent->dpa_range.start = le64_to_cpu((__force __le64)dsmas->dpa_base_address);
79 dent->dpa_range.end = le64_to_cpu((__force __le64)dsmas->dpa_base_address) +
82 rc = xa_insert(dsmas_xa, dent->handle, dent, GFP_KERNEL);
84 kfree(dent);
132 struct dsmas_entry *dent; local
201 struct dsmas_entry *dent; local
241 update_perf_entry(struct device *dev, struct dsmas_entry *dent, struct cxl_dpa_perf *dpa_perf) argument
270 struct dsmas_entry *dent; local
[all...]
/linux-master/security/apparmor/
H A Dapparmorfs.c1442 struct dentry *dent, *dir; local
1464 dent = aafs_create_file("abi", S_IFREG | 0444, dir, rawdata,
1466 if (IS_ERR(dent))
1468 rawdata->dents[AAFS_LOADDATA_ABI] = dent;
1470 dent = aafs_create_file("revision", S_IFREG | 0444, dir, rawdata,
1472 if (IS_ERR(dent))
1474 rawdata->dents[AAFS_LOADDATA_REVISION] = dent;
1477 dent = aafs_create_file("sha256", S_IFREG | 0444, dir,
1479 if (IS_ERR(dent))
1481 rawdata->dents[AAFS_LOADDATA_HASH] = dent;
1571 struct dentry *dent; local
1685 struct dentry *dent = NULL, *dir; local
1959 struct dentry *dent; local
2016 __aafs_ns_mkdir(struct aa_ns *ns, struct dentry *parent, const char *name, struct dentry *dent) argument
2632 struct dentry *dent; local
[all...]
/linux-master/tools/perf/arch/arm/util/
H A Dauxtrace.c60 struct dirent *dent; local
73 while ((dent = readdir(dir))) {
74 if (strstr(dent->d_name, HISI_PTT_PMU_NAME))
89 while ((dent = readdir(dir))) {
90 if (strstr(dent->d_name, HISI_PTT_PMU_NAME) && idx < *nr_ptts) {
91 hisi_ptt_pmus[idx] = perf_pmus__find(dent->d_name);
/linux-master/drivers/mtd/ubi/
H A Ddebug.c332 struct dentry *dent = file->f_path.dentry; local
343 if (dent == d->dfs_chk_gen)
345 else if (dent == d->dfs_chk_io)
347 else if (dent == d->dfs_chk_fastmap)
349 else if (dent == d->dfs_disable_bgt)
351 else if (dent == d->dfs_emulate_bitflips)
353 else if (dent == d->dfs_emulate_io_failures)
355 else if (dent == d->dfs_emulate_failures) {
360 } else if (dent == d->dfs_emulate_power_cut) {
365 } else if (dent
399 struct dentry *dent = file->f_path.dentry; local
[all...]
/linux-master/tools/power/cpupower/lib/
H A Dpowercap.c182 struct dirent *dent; local
210 while ((dent = readdir(zone_dir)) != NULL) {
213 if (strcmp(dent->d_name, ".") == 0 || strcmp(dent->d_name, "..") == 0)
216 if (stat(dent->d_name, &st) != 0 || !S_ISDIR(st.st_mode))
217 if (fstatat(dirfd(zone_dir), dent->d_name, &st, 0) < 0)
220 if (strncmp(dent->d_name, "intel-rapl:", 11) != 0)
240 strcat(child_zone->sys_name, dent->d_name);
/linux-master/drivers/dma/dw-edma/
H A Ddw-hdma-v0-debugfs.c61 int nr_entries, struct dentry *dent)
74 debugfs_create_file_unsafe(entries[i].name, 0444, dent,
80 u16 ch, struct dentry *dent)
113 dw_hdma_debugfs_create_x32(dw, debugfs_regs, nr_entries, dent);
116 static void dw_hdma_debugfs_regs_wr(struct dw_edma *dw, struct dentry *dent) argument
122 regs_dent = debugfs_create_dir(WRITE_STR, dent);
133 static void dw_hdma_debugfs_regs_rd(struct dw_edma *dw, struct dentry *dent) argument
139 regs_dent = debugfs_create_dir(READ_STR, dent);
59 dw_hdma_debugfs_create_x32(struct dw_edma *dw, const struct dw_hdma_debugfs_entry ini[], int nr_entries, struct dentry *dent) argument
79 dw_hdma_debugfs_regs_ch(struct dw_edma *dw, enum dw_edma_dir dir, u16 ch, struct dentry *dent) argument
H A Ddw-edma-v0-debugfs.c101 int nr_entries, struct dentry *dent)
114 debugfs_create_file_unsafe(entries[i].name, 0444, dent,
120 u16 ch, struct dentry *dent)
136 dw_edma_debugfs_create_x32(dw, debugfs_regs, nr_entries, dent);
140 dw_edma_debugfs_regs_wr(struct dw_edma *dw, struct dentry *dent) argument
181 regs_dent = debugfs_create_dir(WRITE_STR, dent);
202 struct dentry *dent)
244 regs_dent = debugfs_create_dir(READ_STR, dent);
99 dw_edma_debugfs_create_x32(struct dw_edma *dw, const struct dw_edma_debugfs_entry ini[], int nr_entries, struct dentry *dent) argument
119 dw_edma_debugfs_regs_ch(struct dw_edma *dw, enum dw_edma_dir dir, u16 ch, struct dentry *dent) argument
201 dw_edma_debugfs_regs_rd(struct dw_edma *dw, struct dentry *dent) argument
/linux-master/tools/testing/selftests/ir/
H A Dir_loopback.c73 struct dirent *dent; local
84 while ((dent = readdir(d)) != NULL) {
85 if (!strncmp(dent->d_name, "lirc", 4)) {
86 snprintf(buf, sizeof(buf), "/dev/%s", dent->d_name);
91 if (!dent)
/linux-master/fs/ubifs/
H A Ddebug.c229 struct ubifs_dent_node *dent, *pdent = NULL; local
273 dent = ubifs_tnc_next_ent(c, &key, &nm);
274 if (IS_ERR(dent)) {
275 if (PTR_ERR(dent) != -ENOENT)
276 pr_err("error %ld\n", PTR_ERR(dent));
281 count++, (unsigned long long) le64_to_cpu(dent->inum),
282 get_dent_type(dent->type),
283 le16_to_cpu(dent->nlen));
285 fname_name(&nm) = dent->name;
286 fname_len(&nm) = le16_to_cpu(dent
474 const struct ubifs_dent_node *dent = node; local
1128 struct ubifs_dent_node *dent, *pdent = NULL; local
2086 struct ubifs_dent_node *dent = node; local
2707 struct dentry *dent = file->f_path.dentry; local
2763 struct dentry *dent = file->f_path.dentry; local
2902 struct dentry *dent = file->f_path.dentry; local
2926 struct dentry *dent = file->f_path.dentry; local
[all...]
H A Ddir.c183 const struct ubifs_dent_node *dent,
188 if (le16_to_cpu(dent->nlen) != fname_len(nm))
190 if (memcmp(dent->name, fname_name(nm), fname_len(nm)))
201 struct ubifs_dent_node *dent = NULL; local
218 dent = kmalloc(UBIFS_MAX_DENT_NODE_SZ, GFP_NOFS);
219 if (!dent) {
228 err = ubifs_tnc_lookup_dh(c, &key, dent, nm.minor_hash);
231 err = ubifs_tnc_lookup_nm(c, &key, dent, &nm);
242 if (dbg_check_name(c, dent, &nm)) {
247 inode = ubifs_iget(dir->i_sb, le64_to_cpu(dent
182 dbg_check_name(const struct ubifs_info *c, const struct ubifs_dent_node *dent, const struct fscrypt_name *nm) argument
560 struct ubifs_dent_node *dent; local
888 struct ubifs_dent_node *dent; local
[all...]
H A Djournal.c64 * @dent: the directory entry to zero out
66 static inline void zero_dent_node_unused(struct ubifs_dent_node *dent) argument
68 dent->padding1 = 0;
630 static void set_dent_cookie(struct ubifs_info *c, struct ubifs_dent_node *dent) argument
633 dent->cookie = (__force __le32) get_random_u32();
635 dent->cookie = 0;
674 struct ubifs_dent_node *dent; local
707 dent = kzalloc(len, GFP_NOFS);
708 if (!dent)
717 dent
1355 struct ubifs_dent_node *dent, *dent2; local
[all...]
H A Dtnc.c348 const struct ubifs_dent_node *dent = node; local
354 err = ubifs_validate_entry(c, dent);
357 ubifs_dump_node(c, dent, zbr->len);
544 struct ubifs_dent_node *dent = node; local
547 key_read(c, &dent->key, &node_key);
560 * @zbr: zbranch of dent
571 struct ubifs_dent_node *dent; local
574 /* If possible, match against the dent in the leaf node cache */
576 dent = kmalloc(zbr->len, GFP_NOFS);
577 if (!dent)
859 struct ubifs_dent_node *dent; local
1898 const struct ubifs_dent_node *dent = node; local
1920 search_dh_cookie(struct ubifs_info *c, const union ubifs_key *key, struct ubifs_dent_node *dent, uint32_t cookie, struct ubifs_znode **zn, int *n, int exact) argument
1960 do_lookup_dh(struct ubifs_info *c, const union ubifs_key *key, struct ubifs_dent_node *dent, uint32_t cookie) argument
2001 const struct ubifs_dent_node *dent = node; local
2737 struct ubifs_dent_node *dent; local
2994 struct ubifs_dent_node *dent; local
[all...]
/linux-master/drivers/soc/qcom/
H A Drpm_master_stats.c73 struct dentry *dent, *root; local
126 dent = debugfs_create_file(data[i].label, 0444, root,
128 if (IS_ERR(dent)) {
130 return dev_err_probe(dev, PTR_ERR(dent),
/linux-master/security/
H A Dinode.c265 struct dentry *dent; local
273 dent = securityfs_create_dentry(name, S_IFLNK | 0444, parent,
275 if (IS_ERR(dent))
278 return dent;
/linux-master/include/drm/
H A Ddrm_debugfs.h95 struct dentry *dent; member in struct:drm_info_node

Completed in 296 milliseconds

123