/kernel/linux/linux-5.10/fs/gfs2/ |
H A D | dir.c | 86 typedef int (*gfs2_dscan_t)(const struct gfs2_dirent *dent, 397 static inline int gfs2_dirent_sentinel(const struct gfs2_dirent *dent) in gfs2_dirent_sentinel() argument 399 return dent->de_inum.no_addr == 0 || dent->de_inum.no_formal_ino == 0; in gfs2_dirent_sentinel() 402 static inline int __gfs2_dirent_find(const struct gfs2_dirent *dent, in __gfs2_dirent_find() argument 405 if (!gfs2_dirent_sentinel(dent) && in __gfs2_dirent_find() 406 be32_to_cpu(dent->de_hash) == name->hash && in __gfs2_dirent_find() 407 be16_to_cpu(dent->de_name_len) == name->len && in __gfs2_dirent_find() 408 memcmp(dent+1, name->name, name->len) == 0) in __gfs2_dirent_find() 413 static int gfs2_dirent_find(const struct gfs2_dirent *dent, in gfs2_dirent_find() argument 420 gfs2_dirent_prev(const struct gfs2_dirent *dent, const struct qstr *name, void *opaque) gfs2_dirent_prev() argument 431 gfs2_dirent_last(const struct gfs2_dirent *dent, const struct qstr *name, void *opaque) gfs2_dirent_last() argument 444 gfs2_dirent_find_offset(const struct gfs2_dirent *dent, const struct qstr *name, void *ptr) gfs2_dirent_find_offset() argument 463 gfs2_dirent_find_space(const struct gfs2_dirent *dent, const struct qstr *name, void *opaque) gfs2_dirent_find_space() argument 483 gfs2_dirent_gather(const struct gfs2_dirent *dent, const struct qstr *name, void *opaque) gfs2_dirent_gather() argument 503 gfs2_check_dirent(struct gfs2_sbd *sdp, struct gfs2_dirent *dent, unsigned int offset, unsigned int size, unsigned int len, int first) gfs2_check_dirent() argument 560 struct gfs2_dirent *dent, *prev; gfs2_dirent_scan() local 634 dirent_next(struct gfs2_inode *dip, struct buffer_head *bh, struct gfs2_dirent **dent) dirent_next() argument 706 do_init_dirent(struct inode *inode, struct gfs2_dirent *dent, const struct qstr *name, struct buffer_head *bh, unsigned offset) do_init_dirent() argument 730 gfs2_init_dirent(struct inode *inode, struct gfs2_dirent *dent, const struct qstr *name, struct buffer_head *bh) gfs2_init_dirent() argument 747 struct gfs2_dirent *dent; gfs2_dirent_split_alloc() local 813 struct gfs2_dirent *dent; gfs2_dirent_search() local 870 struct gfs2_dirent *dent; new_leaf() local 910 struct gfs2_dirent *dent; dir_make_exhash() local 1006 struct gfs2_dirent *dent = NULL, *prev = NULL, *next = NULL, *new; dir_split_leaf() local 1269 const struct gfs2_dirent *dent, *dent_next; do_filldir_main() local 1378 struct gfs2_dirent **darr, *dent; gfs2_dir_read_leaf() local 1571 struct gfs2_dirent **darr, *dent; gfs2_dir_read() local 1644 struct gfs2_dirent *dent; gfs2_dir_search() local 1675 struct gfs2_dirent *dent; gfs2_dir_check() local 1798 struct gfs2_dirent *dent = da->dent; gfs2_dir_add() local 1875 struct gfs2_dirent *dent, *prev = NULL; gfs2_dir_del() local 1936 struct gfs2_dirent *dent; gfs2_dir_mvino() local 2158 struct gfs2_dirent *dent; gfs2_diradd_alloc_required() local [all...] |
H 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 in gfs2_qstr2dirent() [all...] |
/kernel/linux/linux-6.6/fs/gfs2/ |
H A D | dir.c | 86 typedef int (*gfs2_dscan_t)(const struct gfs2_dirent *dent, 396 static inline int gfs2_dirent_sentinel(const struct gfs2_dirent *dent) in gfs2_dirent_sentinel() argument 398 return dent->de_inum.no_addr == 0 || dent->de_inum.no_formal_ino == 0; in gfs2_dirent_sentinel() 401 static inline int __gfs2_dirent_find(const struct gfs2_dirent *dent, in __gfs2_dirent_find() argument 404 if (!gfs2_dirent_sentinel(dent) && in __gfs2_dirent_find() 405 be32_to_cpu(dent->de_hash) == name->hash && in __gfs2_dirent_find() 406 be16_to_cpu(dent->de_name_len) == name->len && in __gfs2_dirent_find() 407 memcmp(dent+1, name->name, name->len) == 0) in __gfs2_dirent_find() 412 static int gfs2_dirent_find(const struct gfs2_dirent *dent, in gfs2_dirent_find() argument 419 gfs2_dirent_prev(const struct gfs2_dirent *dent, const struct qstr *name, void *opaque) gfs2_dirent_prev() argument 430 gfs2_dirent_last(const struct gfs2_dirent *dent, const struct qstr *name, void *opaque) gfs2_dirent_last() argument 443 gfs2_dirent_find_offset(const struct gfs2_dirent *dent, const struct qstr *name, void *ptr) gfs2_dirent_find_offset() argument 462 gfs2_dirent_find_space(const struct gfs2_dirent *dent, const struct qstr *name, void *opaque) gfs2_dirent_find_space() argument 482 gfs2_dirent_gather(const struct gfs2_dirent *dent, const struct qstr *name, void *opaque) gfs2_dirent_gather() argument 502 gfs2_check_dirent(struct gfs2_sbd *sdp, struct gfs2_dirent *dent, unsigned int offset, unsigned int size, unsigned int len, int first) gfs2_check_dirent() argument 559 struct gfs2_dirent *dent, *prev; gfs2_dirent_scan() local 633 dirent_next(struct gfs2_inode *dip, struct buffer_head *bh, struct gfs2_dirent **dent) dirent_next() argument 705 do_init_dirent(struct inode *inode, struct gfs2_dirent *dent, const struct qstr *name, struct buffer_head *bh, unsigned offset) do_init_dirent() argument 729 gfs2_init_dirent(struct inode *inode, struct gfs2_dirent *dent, const struct qstr *name, struct buffer_head *bh) gfs2_init_dirent() argument 746 struct gfs2_dirent *dent; gfs2_dirent_split_alloc() local 811 struct gfs2_dirent *dent; gfs2_dirent_search() local 868 struct gfs2_dirent *dent; new_leaf() local 908 struct gfs2_dirent *dent; dir_make_exhash() local 1003 struct gfs2_dirent *dent = NULL, *prev = NULL, *next = NULL, *new; dir_split_leaf() local 1267 const struct gfs2_dirent *dent, *dent_next; do_filldir_main() local 1376 struct gfs2_dirent **darr, *dent; gfs2_dir_read_leaf() local 1573 struct gfs2_dirent **darr, *dent; gfs2_dir_read() local 1646 struct gfs2_dirent *dent; gfs2_dir_search() local 1677 struct gfs2_dirent *dent; gfs2_dir_check() local 1800 struct gfs2_dirent *dent = da->dent; gfs2_dir_add() local 1877 struct gfs2_dirent *dent, *prev = NULL; gfs2_dir_del() local 1940 struct gfs2_dirent *dent; gfs2_dir_mvino() local 2162 struct gfs2_dirent *dent; gfs2_diradd_alloc_required() local [all...] |
H 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 in gfs2_qstr2dirent() [all...] |
/kernel/linux/linux-5.10/fs/sharefs/ |
H A D | sharefs.h | 110 #define SHAREFS_D(dent) ((struct sharefs_dentry_info *)(dent)->d_fsdata) 160 static inline void sharefs_get_lower_path(const struct dentry *dent, in sharefs_get_lower_path() argument 163 spin_lock(&SHAREFS_D(dent)->lock); in sharefs_get_lower_path() 164 pathcpy(lower_path, &SHAREFS_D(dent)->lower_path); in sharefs_get_lower_path() 166 spin_unlock(&SHAREFS_D(dent)->lock); in sharefs_get_lower_path() 169 static inline void sharefs_put_lower_path(const struct dentry *dent, in sharefs_put_lower_path() argument 175 static inline void sharefs_set_lower_path(const struct dentry *dent, in sharefs_set_lower_path() argument 178 spin_lock(&SHAREFS_D(dent)->lock); in sharefs_set_lower_path() 179 pathcpy(&SHAREFS_D(dent) in sharefs_set_lower_path() 183 sharefs_reset_lower_path(const struct dentry *dent) sharefs_reset_lower_path() argument 191 sharefs_put_reset_lower_path(const struct dentry *dent) sharefs_put_reset_lower_path() argument [all...] |
/kernel/linux/linux-6.6/fs/sharefs/ |
H A D | sharefs.h | 111 #define SHAREFS_D(dent) ((struct sharefs_dentry_info *)(dent)->d_fsdata) 161 static inline void sharefs_get_lower_path(const struct dentry *dent, in sharefs_get_lower_path() argument 164 spin_lock(&SHAREFS_D(dent)->lock); in sharefs_get_lower_path() 165 pathcpy(lower_path, &SHAREFS_D(dent)->lower_path); in sharefs_get_lower_path() 167 spin_unlock(&SHAREFS_D(dent)->lock); in sharefs_get_lower_path() 170 static inline void sharefs_put_lower_path(const struct dentry *dent, in sharefs_put_lower_path() argument 176 static inline void sharefs_set_lower_path(const struct dentry *dent, in sharefs_set_lower_path() argument 179 spin_lock(&SHAREFS_D(dent)->lock); in sharefs_set_lower_path() 180 pathcpy(&SHAREFS_D(dent) in sharefs_set_lower_path() 184 sharefs_reset_lower_path(const struct dentry *dent) sharefs_reset_lower_path() argument 192 sharefs_put_reset_lower_path(const struct dentry *dent) sharefs_put_reset_lower_path() argument [all...] |
/kernel/linux/linux-5.10/security/apparmor/ |
H A D | apparmorfs.c | 1431 struct dentry *dent, *dir; in __aa_fs_create_rawdata() local 1453 dent = aafs_create_file("abi", S_IFREG | 0444, dir, rawdata, in __aa_fs_create_rawdata() 1455 if (IS_ERR(dent)) in __aa_fs_create_rawdata() 1457 rawdata->dents[AAFS_LOADDATA_ABI] = dent; in __aa_fs_create_rawdata() 1459 dent = aafs_create_file("revision", S_IFREG | 0444, dir, rawdata, in __aa_fs_create_rawdata() 1461 if (IS_ERR(dent)) in __aa_fs_create_rawdata() 1463 rawdata->dents[AAFS_LOADDATA_REVISION] = dent; in __aa_fs_create_rawdata() 1466 dent = aafs_create_file("sha1", S_IFREG | 0444, dir, in __aa_fs_create_rawdata() 1468 if (IS_ERR(dent)) in __aa_fs_create_rawdata() 1470 rawdata->dents[AAFS_LOADDATA_HASH] = dent; in __aa_fs_create_rawdata() 1554 struct dentry *dent; create_profile_file() local 1672 struct dentry *dent = NULL, *dir; __aafs_profile_mkdir() local 1944 struct dentry *dent; __aafs_ns_mkdir_entries() local 2001 __aafs_ns_mkdir(struct aa_ns *ns, struct dentry *parent, const char *name, struct dentry *dent) __aafs_ns_mkdir() argument 2598 struct dentry *dent; aa_create_aafs() local [all...] |
/kernel/linux/linux-6.6/security/apparmor/ |
H A D | apparmorfs.c | 1444 struct dentry *dent, *dir; in __aa_fs_create_rawdata() local 1466 dent = aafs_create_file("abi", S_IFREG | 0444, dir, rawdata, in __aa_fs_create_rawdata() 1468 if (IS_ERR(dent)) in __aa_fs_create_rawdata() 1470 rawdata->dents[AAFS_LOADDATA_ABI] = dent; in __aa_fs_create_rawdata() 1472 dent = aafs_create_file("revision", S_IFREG | 0444, dir, rawdata, in __aa_fs_create_rawdata() 1474 if (IS_ERR(dent)) in __aa_fs_create_rawdata() 1476 rawdata->dents[AAFS_LOADDATA_REVISION] = dent; in __aa_fs_create_rawdata() 1479 dent = aafs_create_file("sha1", S_IFREG | 0444, dir, in __aa_fs_create_rawdata() 1481 if (IS_ERR(dent)) in __aa_fs_create_rawdata() 1483 rawdata->dents[AAFS_LOADDATA_HASH] = dent; in __aa_fs_create_rawdata() 1572 struct dentry *dent; create_profile_file() local 1691 struct dentry *dent = NULL, *dir; __aafs_profile_mkdir() local 1965 struct dentry *dent; __aafs_ns_mkdir_entries() local 2022 __aafs_ns_mkdir(struct aa_ns *ns, struct dentry *parent, const char *name, struct dentry *dent) __aafs_ns_mkdir() argument 2620 struct dentry *dent; aa_create_aafs() local [all...] |
/kernel/linux/linux-6.6/drivers/vdpa/mlx5/net/ |
H A D | debug.c | 111 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() [all...] |
/kernel/linux/linux-5.10/fs/hmdfs/ |
H A D | hmdfs_device_view.h | 202 static inline void hmdfs_get_lower_path(struct dentry *dent, struct path *pname) in hmdfs_get_lower_path() argument 204 spin_lock(&hmdfs_d(dent)->lock); in hmdfs_get_lower_path() 205 pname->dentry = hmdfs_d(dent)->lower_path.dentry; in hmdfs_get_lower_path() 206 pname->mnt = hmdfs_d(dent)->lower_path.mnt; in hmdfs_get_lower_path() 208 spin_unlock(&hmdfs_d(dent)->lock); in hmdfs_get_lower_path() 216 static inline void hmdfs_put_reset_lower_path(struct dentry *dent) in hmdfs_put_reset_lower_path() argument 220 spin_lock(&hmdfs_d(dent)->lock); in hmdfs_put_reset_lower_path() 221 if (hmdfs_d(dent)->lower_path.dentry) { in hmdfs_put_reset_lower_path() 222 pname.dentry = hmdfs_d(dent)->lower_path.dentry; in hmdfs_put_reset_lower_path() 223 pname.mnt = hmdfs_d(dent) in hmdfs_put_reset_lower_path() 233 hmdfs_set_lower_path(struct dentry *dent, struct path *pname) hmdfs_set_lower_path() argument [all...] |
/kernel/linux/linux-6.6/fs/hmdfs/ |
H A D | hmdfs_device_view.h | 202 static inline void hmdfs_get_lower_path(struct dentry *dent, struct path *pname) in hmdfs_get_lower_path() argument 204 spin_lock(&hmdfs_d(dent)->lock); in hmdfs_get_lower_path() 205 pname->dentry = hmdfs_d(dent)->lower_path.dentry; in hmdfs_get_lower_path() 206 pname->mnt = hmdfs_d(dent)->lower_path.mnt; in hmdfs_get_lower_path() 208 spin_unlock(&hmdfs_d(dent)->lock); in hmdfs_get_lower_path() 216 static inline void hmdfs_put_reset_lower_path(struct dentry *dent) in hmdfs_put_reset_lower_path() argument 220 spin_lock(&hmdfs_d(dent)->lock); in hmdfs_put_reset_lower_path() 221 if (hmdfs_d(dent)->lower_path.dentry) { in hmdfs_put_reset_lower_path() 222 pname.dentry = hmdfs_d(dent)->lower_path.dentry; in hmdfs_put_reset_lower_path() 223 pname.mnt = hmdfs_d(dent) in hmdfs_put_reset_lower_path() 233 hmdfs_set_lower_path(struct dentry *dent, struct path *pname) hmdfs_set_lower_path() argument [all...] |
/kernel/linux/linux-6.6/drivers/virt/coco/efi_secret/ |
H A D | efi_secret.c | 220 struct dentry *dent; in efi_secret_securityfs_setup() local 246 dent = securityfs_create_dir("secrets", NULL); in efi_secret_securityfs_setup() 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() 254 dent = securityfs_create_dir("coco", s->secrets_dir); 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() [all...] |
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | trace-event-info.c | 155 #define for_each_event(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; in copy_event_system() local 177 for_each_event(dir, dent, tps) { in copy_event_system() 178 if (!name_in_tp_list(dent->d_name, tps)) in copy_event_system() 181 if (asprintf(&format, "%s/%s/format", sys, dent->d_name) < 0) { in copy_event_system() 199 for_each_event(dir, dent, tp in copy_event_system() 255 struct dirent *dent; record_event_files() local [all...] |
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | trace-event-info.c | 155 #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; 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() 181 if (asprintf(&format, "%s/%s/format", sys, dent->d_name) < 0) { in copy_event_system() 199 for_each_event_tps(dir, dent, tp in copy_event_system() 255 struct dirent *dent; record_event_files() local [all...] |
/kernel/linux/linux-5.10/drivers/mtd/ubi/ |
H A D | debug.c | 252 struct dentry *dent = file->f_path.dentry; in dfs_file_read() local 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() 273 else if (dent == d->dfs_emulate_io_failures) in dfs_file_read() 275 else if (dent == d->dfs_emulate_power_cut) { in dfs_file_read() 280 } else if (dent == d->dfs_power_cut_min) { in dfs_file_read() 285 } else if (dent in dfs_file_read() 315 struct dentry *dent = file->f_path.dentry; dfs_file_write() local [all...] |
/kernel/linux/linux-6.6/drivers/mtd/ubi/ |
H A D | debug.c | 252 struct dentry *dent = file->f_path.dentry; in dfs_file_read() local 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() 273 else if (dent == d->dfs_emulate_io_failures) in dfs_file_read() 275 else if (dent == d->dfs_emulate_power_cut) { in dfs_file_read() 280 } else if (dent == d->dfs_power_cut_min) { in dfs_file_read() 285 } else if (dent in dfs_file_read() 315 struct dentry *dent = file->f_path.dentry; dfs_file_write() local [all...] |
/kernel/linux/linux-6.6/tools/perf/arch/x86/util/ |
H A D | pmu.c | 78 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()
|
/kernel/linux/linux-5.10/fs/ubifs/ |
H A D | debug.c | 229 struct ubifs_dent_node *dent, *pdent = NULL; in ubifs_dump_inode() local 273 dent = ubifs_tnc_next_ent(c, &key, &nm); in ubifs_dump_inode() 274 if (IS_ERR(dent)) { in ubifs_dump_inode() 275 if (PTR_ERR(dent) != -ENOENT) in ubifs_dump_inode() 276 pr_err("error %ld\n", PTR_ERR(dent)); in ubifs_dump_inode() 281 count++, (unsigned long long) le64_to_cpu(dent->inum), in ubifs_dump_inode() 282 get_dent_type(dent->type), in ubifs_dump_inode() 283 le16_to_cpu(dent->nlen)); in ubifs_dump_inode() 285 fname_name(&nm) = dent->name; in ubifs_dump_inode() 286 fname_len(&nm) = le16_to_cpu(dent in ubifs_dump_inode() 474 const struct ubifs_dent_node *dent = node; ubifs_dump_node() local 1128 struct ubifs_dent_node *dent, *pdent = NULL; dbg_check_dir() local 2081 struct ubifs_dent_node *dent = node; check_leaf() local 2702 struct dentry *dent = file->f_path.dentry; dfs_file_read() local 2758 struct dentry *dent = file->f_path.dentry; dfs_file_write() local 2897 struct dentry *dent = file->f_path.dentry; dfs_global_file_read() local 2921 struct dentry *dent = file->f_path.dentry; dfs_global_file_write() local [all...] |
H A D | dir.c | 181 const struct ubifs_dent_node *dent, in dbg_check_name() 186 if (le16_to_cpu(dent->nlen) != fname_len(nm)) in dbg_check_name() 188 if (memcmp(dent->name, fname_name(nm), fname_len(nm))) in dbg_check_name() 199 struct ubifs_dent_node *dent = NULL; in ubifs_lookup() local 216 dent = kmalloc(UBIFS_MAX_DENT_NODE_SZ, GFP_NOFS); in ubifs_lookup() 217 if (!dent) { in ubifs_lookup() 226 err = ubifs_tnc_lookup_dh(c, &key, dent, nm.minor_hash); in ubifs_lookup() 229 err = ubifs_tnc_lookup_nm(c, &key, dent, &nm); in ubifs_lookup() 240 if (dbg_check_name(c, dent, &nm)) { in ubifs_lookup() 245 inode = ubifs_iget(dir->i_sb, le64_to_cpu(dent in ubifs_lookup() 180 dbg_check_name(const struct ubifs_info *c, const struct ubifs_dent_node *dent, const struct fscrypt_name *nm) dbg_check_name() argument 562 struct ubifs_dent_node *dent; ubifs_readdir() local 886 struct ubifs_dent_node *dent; ubifs_check_dir_empty() local [all...] |
/kernel/linux/linux-6.6/fs/ubifs/ |
H A D | debug.c | 229 struct ubifs_dent_node *dent, *pdent = NULL; in ubifs_dump_inode() local 273 dent = ubifs_tnc_next_ent(c, &key, &nm); in ubifs_dump_inode() 274 if (IS_ERR(dent)) { in ubifs_dump_inode() 275 if (PTR_ERR(dent) != -ENOENT) in ubifs_dump_inode() 276 pr_err("error %ld\n", PTR_ERR(dent)); in ubifs_dump_inode() 281 count++, (unsigned long long) le64_to_cpu(dent->inum), in ubifs_dump_inode() 282 get_dent_type(dent->type), in ubifs_dump_inode() 283 le16_to_cpu(dent->nlen)); in ubifs_dump_inode() 285 fname_name(&nm) = dent->name; in ubifs_dump_inode() 286 fname_len(&nm) = le16_to_cpu(dent in ubifs_dump_inode() 474 const struct ubifs_dent_node *dent = node; ubifs_dump_node() local 1128 struct ubifs_dent_node *dent, *pdent = NULL; dbg_check_dir() local 2081 struct ubifs_dent_node *dent = node; check_leaf() local 2702 struct dentry *dent = file->f_path.dentry; dfs_file_read() local 2758 struct dentry *dent = file->f_path.dentry; dfs_file_write() local 2897 struct dentry *dent = file->f_path.dentry; dfs_global_file_read() local 2921 struct dentry *dent = file->f_path.dentry; dfs_global_file_write() local [all...] |
/kernel/linux/linux-6.6/drivers/dma/dw-edma/ |
H A D | dw-hdma-v0-debugfs.c | 61 int nr_entries, struct dentry *dent) in dw_hdma_debugfs_create_x32() 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() 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() 59 dw_hdma_debugfs_create_x32(struct dw_edma *dw, const struct dw_hdma_debugfs_entry ini[], int nr_entries, struct dentry *dent) dw_hdma_debugfs_create_x32() argument 79 dw_hdma_debugfs_regs_ch(struct dw_edma *dw, enum dw_edma_dir dir, u16 ch, struct dentry *dent) dw_hdma_debugfs_regs_ch() argument
|
/kernel/linux/linux-6.6/tools/power/cpupower/lib/ |
H A D | powercap.c | 182 struct dirent *dent; in powercap_read_zone() local 210 while ((dent = readdir(zone_dir)) != NULL) { in powercap_read_zone() 213 if (strcmp(dent->d_name, ".") == 0 || strcmp(dent->d_name, "..") == 0) in powercap_read_zone() 216 if (stat(dent->d_name, &st) != 0 || !S_ISDIR(st.st_mode)) in powercap_read_zone() 217 if (fstatat(dirfd(zone_dir), dent->d_name, &st, 0) < 0) in powercap_read_zone() 220 if (strncmp(dent->d_name, "intel-rapl:", 11) != 0) in powercap_read_zone() 240 strcat(child_zone->sys_name, dent->d_name); in powercap_read_zone()
|
/kernel/linux/linux-5.10/fs/ntfs/ |
H A D | namei.c | 23 * @dent: dentry representing the inode to look for 26 * In short, ntfs_lookup() looks for the inode represented by the dentry @dent 28 * dentry @dent. 30 * In more detail, the dentry @dent specifies which inode to look for by 31 * supplying the name of the inode in @dent->d_name.name. ntfs_lookup() 35 * inode number and the inode is associated with the dentry @dent via a call to 39 * dentry @dent via a call to d_add(). The dentry is then termed a negative 63 * 1) @dent perfectly matches (i.e. including case) a directory entry with a 66 * just d_splice_alias() @dent. 67 * 2) @dent matche 89 ntfs_lookup(struct inode *dir_ino, struct dentry *dent, unsigned int flags) ntfs_lookup() argument [all...] |
/kernel/linux/linux-6.6/fs/ntfs/ |
H A D | namei.c | 23 * @dent: dentry representing the inode to look for 26 * In short, ntfs_lookup() looks for the inode represented by the dentry @dent 28 * dentry @dent. 30 * In more detail, the dentry @dent specifies which inode to look for by 31 * supplying the name of the inode in @dent->d_name.name. ntfs_lookup() 35 * inode number and the inode is associated with the dentry @dent via a call to 39 * dentry @dent via a call to d_add(). The dentry is then termed a negative 63 * 1) @dent perfectly matches (i.e. including case) a directory entry with a 66 * just d_splice_alias() @dent. 67 * 2) @dent matche 89 ntfs_lookup(struct inode *dir_ino, struct dentry *dent, unsigned int flags) ntfs_lookup() argument [all...] |
/kernel/linux/linux-6.6/tools/perf/arch/arm/util/ |
H A D | auxtrace.c | 60 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()
|