dent 995 arch/arm/mach-omap1/clock.c d = debugfs_create_dir(c->name, pa ? pa->dent : clk_debugfs_root); dent 996 arch/arm/mach-omap1/clock.c c->dent = d; dent 998 arch/arm/mach-omap1/clock.c debugfs_create_u8("usecount", S_IRUGO, c->dent, &c->usecount); dent 999 arch/arm/mach-omap1/clock.c debugfs_create_ulong("rate", S_IRUGO, c->dent, &c->rate); dent 1000 arch/arm/mach-omap1/clock.c debugfs_create_x8("flags", S_IRUGO, c->dent, &c->flags); dent 1007 arch/arm/mach-omap1/clock.c if (pa && !pa->dent) dent 1010 arch/arm/mach-omap1/clock.c if (!c->dent) dent 158 arch/arm/mach-omap1/clock.h struct dentry *dent; /* For visible tree hierarchy */ dent 194 drivers/gpu/drm/drm_debugfs.c tmp->dent = debugfs_create_file(files[i].name, dent 274 drivers/gpu/drm/drm_debugfs.c debugfs_remove(tmp->dent); dent 291 drivers/gpu/drm/drm_debugfs.c debugfs_remove(node->dent); dent 762 drivers/greybus/svc.c struct dentry *dent; dent 766 drivers/greybus/svc.c dent = debugfs_create_dir("pwrmon", svc->debugfs_dentry); dent 767 drivers/greybus/svc.c if (IS_ERR_OR_NULL(dent)) dent 802 drivers/greybus/svc.c dir = debugfs_create_dir(fname, dent); dent 820 drivers/greybus/svc.c debugfs_remove(dent); dent 872 drivers/hid/hid-picolcd_debugfs.c struct dentry *dent; dent 874 drivers/hid/hid-picolcd_debugfs.c dent = data->debug_reset; dent 876 drivers/hid/hid-picolcd_debugfs.c debugfs_remove(dent); dent 877 drivers/hid/hid-picolcd_debugfs.c dent = data->debug_eeprom; dent 879 drivers/hid/hid-picolcd_debugfs.c debugfs_remove(dent); dent 880 drivers/hid/hid-picolcd_debugfs.c dent = data->debug_flash; dent 882 drivers/hid/hid-picolcd_debugfs.c debugfs_remove(dent); dent 76 drivers/media/usb/uvc/uvc_debugfs.c struct dentry *dent; dent 85 drivers/media/usb/uvc/uvc_debugfs.c dent = debugfs_create_dir(dir_name, uvc_debugfs_root_dir); dent 86 drivers/media/usb/uvc/uvc_debugfs.c if (IS_ERR_OR_NULL(dent)) { dent 92 drivers/media/usb/uvc/uvc_debugfs.c stream->debugfs_dir = dent; dent 94 drivers/media/usb/uvc/uvc_debugfs.c dent = debugfs_create_file("stats", 0444, stream->debugfs_dir, dent 96 drivers/media/usb/uvc/uvc_debugfs.c if (IS_ERR_OR_NULL(dent)) { dent 1780 drivers/message/fusion/mptbase.c struct proc_dir_entry *dent; dent 2044 drivers/message/fusion/mptbase.c dent = proc_mkdir(ioc->name, mpt_proc_root_dir); dent 2045 drivers/message/fusion/mptbase.c if (dent) { dent 2046 drivers/message/fusion/mptbase.c proc_create_single_data("info", S_IRUGO, dent, dent 2048 drivers/message/fusion/mptbase.c proc_create_single_data("summary", S_IRUGO, dent, dent 1038 drivers/misc/habanalabs/debugfs.c entry->dent = ent; dent 964 drivers/misc/habanalabs/habanalabs.h struct dentry *dent; dent 385 drivers/mtd/mtdcore.c struct dentry *root, *dent; dent 399 drivers/mtd/mtdcore.c dent = debugfs_create_file("partid", 0400, root, mtd, dent 401 drivers/mtd/mtdcore.c if (IS_ERR_OR_NULL(dent)) dent 406 drivers/mtd/mtdcore.c dent = debugfs_create_file("partname", 0400, root, mtd, dent 408 drivers/mtd/mtdcore.c if (IS_ERR_OR_NULL(dent)) dent 1260 drivers/mtd/mtdswap.c struct dentry *dent; dent 1268 drivers/mtd/mtdswap.c dent = debugfs_create_file("mtdswap_stats", S_IRUSR, root, d, dent 1270 drivers/mtd/mtdswap.c if (!dent) { dent 498 drivers/mtd/nand/raw/nandsim.c struct dentry *dent; dent 511 drivers/mtd/nand/raw/nandsim.c dent = debugfs_create_file("nandsim_wear_report", S_IRUSR, dent 513 drivers/mtd/nand/raw/nandsim.c if (IS_ERR_OR_NULL(dent)) { dent 251 drivers/mtd/ubi/debug.c struct dentry *dent = file->f_path.dentry; dent 262 drivers/mtd/ubi/debug.c if (dent == d->dfs_chk_gen) dent 264 drivers/mtd/ubi/debug.c else if (dent == d->dfs_chk_io) dent 266 drivers/mtd/ubi/debug.c else if (dent == d->dfs_chk_fastmap) dent 268 drivers/mtd/ubi/debug.c else if (dent == d->dfs_disable_bgt) dent 270 drivers/mtd/ubi/debug.c else if (dent == d->dfs_emulate_bitflips) dent 272 drivers/mtd/ubi/debug.c else if (dent == d->dfs_emulate_io_failures) dent 274 drivers/mtd/ubi/debug.c else if (dent == d->dfs_emulate_power_cut) { dent 279 drivers/mtd/ubi/debug.c } else if (dent == d->dfs_power_cut_min) { dent 284 drivers/mtd/ubi/debug.c } else if (dent == d->dfs_power_cut_max) { dent 314 drivers/mtd/ubi/debug.c struct dentry *dent = file->f_path.dentry; dent 332 drivers/mtd/ubi/debug.c if (dent == d->dfs_power_cut_min) { dent 336 drivers/mtd/ubi/debug.c } else if (dent == d->dfs_power_cut_max) { dent 340 drivers/mtd/ubi/debug.c } else if (dent == d->dfs_emulate_power_cut) { dent 357 drivers/mtd/ubi/debug.c if (dent == d->dfs_chk_gen) dent 359 drivers/mtd/ubi/debug.c else if (dent == d->dfs_chk_io) dent 361 drivers/mtd/ubi/debug.c else if (dent == d->dfs_chk_fastmap) dent 363 drivers/mtd/ubi/debug.c else if (dent == d->dfs_disable_bgt) dent 365 drivers/mtd/ubi/debug.c else if (dent == d->dfs_emulate_bitflips) dent 367 drivers/mtd/ubi/debug.c else if (dent == d->dfs_emulate_io_failures) dent 507 drivers/mtd/ubi/debug.c struct dentry *dent; dent 518 drivers/mtd/ubi/debug.c dent = ERR_PTR(-EINVAL); dent 523 drivers/mtd/ubi/debug.c dent = debugfs_create_dir(fname, dfs_rootdir); dent 524 drivers/mtd/ubi/debug.c if (IS_ERR_OR_NULL(dent)) dent 526 drivers/mtd/ubi/debug.c d->dfs_dir = dent; dent 529 drivers/mtd/ubi/debug.c dent = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, (void *)ubi_num, dent 531 drivers/mtd/ubi/debug.c if (IS_ERR_OR_NULL(dent)) dent 533 drivers/mtd/ubi/debug.c d->dfs_chk_gen = dent; dent 536 drivers/mtd/ubi/debug.c dent = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, (void *)ubi_num, dent 538 drivers/mtd/ubi/debug.c if (IS_ERR_OR_NULL(dent)) dent 540 drivers/mtd/ubi/debug.c d->dfs_chk_io = dent; dent 543 drivers/mtd/ubi/debug.c dent = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, (void *)ubi_num, dent 545 drivers/mtd/ubi/debug.c if (IS_ERR_OR_NULL(dent)) dent 547 drivers/mtd/ubi/debug.c d->dfs_chk_fastmap = dent; dent 550 drivers/mtd/ubi/debug.c dent = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, (void *)ubi_num, dent 552 drivers/mtd/ubi/debug.c if (IS_ERR_OR_NULL(dent)) dent 554 drivers/mtd/ubi/debug.c d->dfs_disable_bgt = dent; dent 557 drivers/mtd/ubi/debug.c dent = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, (void *)ubi_num, dent 559 drivers/mtd/ubi/debug.c if (IS_ERR_OR_NULL(dent)) dent 561 drivers/mtd/ubi/debug.c d->dfs_emulate_bitflips = dent; dent 564 drivers/mtd/ubi/debug.c dent = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, (void *)ubi_num, dent 566 drivers/mtd/ubi/debug.c if (IS_ERR_OR_NULL(dent)) dent 568 drivers/mtd/ubi/debug.c d->dfs_emulate_io_failures = dent; dent 571 drivers/mtd/ubi/debug.c dent = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, (void *)ubi_num, dent 573 drivers/mtd/ubi/debug.c if (IS_ERR_OR_NULL(dent)) dent 575 drivers/mtd/ubi/debug.c d->dfs_emulate_power_cut = dent; dent 578 drivers/mtd/ubi/debug.c dent = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, (void *)ubi_num, dent 580 drivers/mtd/ubi/debug.c if (IS_ERR_OR_NULL(dent)) dent 582 drivers/mtd/ubi/debug.c d->dfs_power_cut_min = dent; dent 585 drivers/mtd/ubi/debug.c dent = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, (void *)ubi_num, dent 587 drivers/mtd/ubi/debug.c if (IS_ERR_OR_NULL(dent)) dent 589 drivers/mtd/ubi/debug.c d->dfs_power_cut_max = dent; dent 592 drivers/mtd/ubi/debug.c dent = debugfs_create_file(fname, S_IRUSR, d->dfs_dir, (void *)ubi_num, dent 594 drivers/mtd/ubi/debug.c if (IS_ERR_OR_NULL(dent)) dent 602 drivers/mtd/ubi/debug.c err = dent ? PTR_ERR(dent) : -ENODEV; dent 2169 drivers/scsi/lpfc/lpfc_debugfs.c struct dentry *dent = file->f_path.dentry; dent 2175 drivers/scsi/lpfc/lpfc_debugfs.c if (dent == phba->debug_writeGuard) dent 2177 drivers/scsi/lpfc/lpfc_debugfs.c else if (dent == phba->debug_writeApp) dent 2179 drivers/scsi/lpfc/lpfc_debugfs.c else if (dent == phba->debug_writeRef) dent 2181 drivers/scsi/lpfc/lpfc_debugfs.c else if (dent == phba->debug_readGuard) dent 2183 drivers/scsi/lpfc/lpfc_debugfs.c else if (dent == phba->debug_readApp) dent 2185 drivers/scsi/lpfc/lpfc_debugfs.c else if (dent == phba->debug_readRef) dent 2187 drivers/scsi/lpfc/lpfc_debugfs.c else if (dent == phba->debug_InjErrNPortID) dent 2190 drivers/scsi/lpfc/lpfc_debugfs.c else if (dent == phba->debug_InjErrWWPN) { dent 2194 drivers/scsi/lpfc/lpfc_debugfs.c } else if (dent == phba->debug_InjErrLBA) { dent 2211 drivers/scsi/lpfc/lpfc_debugfs.c struct dentry *dent = file->f_path.dentry; dent 2222 drivers/scsi/lpfc/lpfc_debugfs.c if (dent == phba->debug_InjErrLBA) { dent 2230 drivers/scsi/lpfc/lpfc_debugfs.c if (dent == phba->debug_writeGuard) dent 2232 drivers/scsi/lpfc/lpfc_debugfs.c else if (dent == phba->debug_writeApp) dent 2234 drivers/scsi/lpfc/lpfc_debugfs.c else if (dent == phba->debug_writeRef) dent 2236 drivers/scsi/lpfc/lpfc_debugfs.c else if (dent == phba->debug_readGuard) dent 2238 drivers/scsi/lpfc/lpfc_debugfs.c else if (dent == phba->debug_readApp) dent 2240 drivers/scsi/lpfc/lpfc_debugfs.c else if (dent == phba->debug_readRef) dent 2242 drivers/scsi/lpfc/lpfc_debugfs.c else if (dent == phba->debug_InjErrLBA) dent 2244 drivers/scsi/lpfc/lpfc_debugfs.c else if (dent == phba->debug_InjErrNPortID) dent 2246 drivers/scsi/lpfc/lpfc_debugfs.c else if (dent == phba->debug_InjErrWWPN) { dent 89 fs/gfs2/dir.c typedef int (*gfs2_dscan_t)(const struct gfs2_dirent *dent, dent 400 fs/gfs2/dir.c static inline int gfs2_dirent_sentinel(const struct gfs2_dirent *dent) dent 402 fs/gfs2/dir.c return dent->de_inum.no_addr == 0 || dent->de_inum.no_formal_ino == 0; dent 405 fs/gfs2/dir.c static inline int __gfs2_dirent_find(const struct gfs2_dirent *dent, dent 408 fs/gfs2/dir.c if (!gfs2_dirent_sentinel(dent) && dent 409 fs/gfs2/dir.c be32_to_cpu(dent->de_hash) == name->hash && dent 410 fs/gfs2/dir.c be16_to_cpu(dent->de_name_len) == name->len && dent 411 fs/gfs2/dir.c memcmp(dent+1, name->name, name->len) == 0) dent 416 fs/gfs2/dir.c static int gfs2_dirent_find(const struct gfs2_dirent *dent, dent 420 fs/gfs2/dir.c return __gfs2_dirent_find(dent, name, 1); dent 423 fs/gfs2/dir.c static int gfs2_dirent_prev(const struct gfs2_dirent *dent, dent 427 fs/gfs2/dir.c return __gfs2_dirent_find(dent, name, 2); dent 434 fs/gfs2/dir.c static int gfs2_dirent_last(const struct gfs2_dirent *dent, dent 439 fs/gfs2/dir.c const char *end = (const char *)dent + be16_to_cpu(dent->de_rec_len); dent 447 fs/gfs2/dir.c static int gfs2_dirent_find_offset(const struct gfs2_dirent *dent, dent 452 fs/gfs2/dir.c unsigned actual = GFS2_DIRENT_SIZE(be16_to_cpu(dent->de_name_len)); dent 453 fs/gfs2/dir.c unsigned totlen = be16_to_cpu(dent->de_rec_len); dent 455 fs/gfs2/dir.c if (ptr < (void *)dent || ptr >= (void *)dent + totlen) dent 457 fs/gfs2/dir.c if (gfs2_dirent_sentinel(dent)) dent 459 fs/gfs2/dir.c if (ptr < (void *)dent + actual) dent 461 fs/gfs2/dir.c if ((void *)dent + totlen >= ptr + required) dent 466 fs/gfs2/dir.c static int gfs2_dirent_find_space(const struct gfs2_dirent *dent, dent 471 fs/gfs2/dir.c unsigned actual = GFS2_DIRENT_SIZE(be16_to_cpu(dent->de_name_len)); dent 472 fs/gfs2/dir.c unsigned totlen = be16_to_cpu(dent->de_rec_len); dent 474 fs/gfs2/dir.c if (gfs2_dirent_sentinel(dent)) dent 486 fs/gfs2/dir.c static int gfs2_dirent_gather(const struct gfs2_dirent *dent, dent 491 fs/gfs2/dir.c if (!gfs2_dirent_sentinel(dent)) { dent 492 fs/gfs2/dir.c g->pdent[g->offset++] = dent; dent 507 fs/gfs2/dir.c struct gfs2_dirent *dent, unsigned int offset, dent 520 fs/gfs2/dir.c if (unlikely(!first && gfs2_dirent_sentinel(dent))) dent 523 fs/gfs2/dir.c if (!gfs2_dirent_sentinel(dent) && dent 524 fs/gfs2/dir.c unlikely(sizeof(struct gfs2_dirent)+be16_to_cpu(dent->de_name_len) > dent 563 fs/gfs2/dir.c struct gfs2_dirent *dent, *prev; dent 574 fs/gfs2/dir.c dent = buf + offset; dent 575 fs/gfs2/dir.c size = be16_to_cpu(dent->de_rec_len); dent 576 fs/gfs2/dir.c if (gfs2_check_dirent(GFS2_SB(inode), dent, offset, size, len, 1)) dent 579 fs/gfs2/dir.c ret = scan(dent, name, opaque); dent 585 fs/gfs2/dir.c prev = dent; dent 586 fs/gfs2/dir.c dent = buf + offset; dent 587 fs/gfs2/dir.c size = be16_to_cpu(dent->de_rec_len); dent 588 fs/gfs2/dir.c if (gfs2_check_dirent(GFS2_SB(inode), dent, offset, size, dent 597 fs/gfs2/dir.c return dent; dent 599 fs/gfs2/dir.c return prev ? prev : dent; dent 638 fs/gfs2/dir.c struct gfs2_dirent **dent) dent 640 fs/gfs2/dir.c struct gfs2_dirent *cur = *dent, *tmp; dent 659 fs/gfs2/dir.c *dent = tmp; dent 710 fs/gfs2/dir.c struct gfs2_dirent *dent, dent 719 fs/gfs2/dir.c totlen = be16_to_cpu(dent->de_rec_len); dent 722 fs/gfs2/dir.c ndent = (struct gfs2_dirent *)((char *)dent + offset); dent 723 fs/gfs2/dir.c dent->de_rec_len = cpu_to_be16(offset); dent 734 fs/gfs2/dir.c struct gfs2_dirent *dent, dent 740 fs/gfs2/dir.c if (!gfs2_dirent_sentinel(dent)) dent 741 fs/gfs2/dir.c offset = GFS2_DIRENT_SIZE(be16_to_cpu(dent->de_name_len)); dent 742 fs/gfs2/dir.c return do_init_dirent(inode, dent, name, bh, offset); dent 750 fs/gfs2/dir.c struct gfs2_dirent *dent; dent 751 fs/gfs2/dir.c dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, dent 753 fs/gfs2/dir.c if (IS_ERR_OR_NULL(dent)) dent 754 fs/gfs2/dir.c return dent; dent 755 fs/gfs2/dir.c return do_init_dirent(inode, dent, name, bh, dent 756 fs/gfs2/dir.c (unsigned)(ptr - (void *)dent)); dent 816 fs/gfs2/dir.c struct gfs2_dirent *dent; dent 835 fs/gfs2/dir.c dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, dent 837 fs/gfs2/dir.c if (dent) dent 855 fs/gfs2/dir.c dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, scan, name, NULL); dent 857 fs/gfs2/dir.c if (IS_ERR_OR_NULL(dent)) { dent 862 fs/gfs2/dir.c return dent; dent 873 fs/gfs2/dir.c struct gfs2_dirent *dent; dent 896 fs/gfs2/dir.c dent = (struct gfs2_dirent *)(leaf+1); dent 897 fs/gfs2/dir.c gfs2_qstr2dirent(&empty_name, bh->b_size - sizeof(struct gfs2_leaf), dent); dent 913 fs/gfs2/dir.c struct gfs2_dirent *dent; dent 948 fs/gfs2/dir.c dent = gfs2_dirent_scan(&dip->i_inode, bh->b_data, bh->b_size, dent 950 fs/gfs2/dir.c if (!dent) { dent 955 fs/gfs2/dir.c if (IS_ERR(dent)) { dent 958 fs/gfs2/dir.c return PTR_ERR(dent); dent 964 fs/gfs2/dir.c dent->de_rec_len = cpu_to_be16(be16_to_cpu(dent->de_rec_len) + dent 1009 fs/gfs2/dir.c struct gfs2_dirent *dent = NULL, *prev = NULL, *next = NULL, *new; dent 1084 fs/gfs2/dir.c dent = (struct gfs2_dirent *)(obh->b_data + sizeof(struct gfs2_leaf)); dent 1087 fs/gfs2/dir.c next = dent; dent 1091 fs/gfs2/dir.c if (!gfs2_dirent_sentinel(dent) && dent 1092 fs/gfs2/dir.c be32_to_cpu(dent->de_hash) < divider) { dent 1094 fs/gfs2/dir.c void *ptr = ((char *)dent - obh->b_data) + nbh->b_data; dent 1095 fs/gfs2/dir.c str.name = (char*)(dent+1); dent 1096 fs/gfs2/dir.c str.len = be16_to_cpu(dent->de_name_len); dent 1097 fs/gfs2/dir.c str.hash = be32_to_cpu(dent->de_hash); dent 1104 fs/gfs2/dir.c new->de_inum = dent->de_inum; /* No endian worries */ dent 1105 fs/gfs2/dir.c new->de_type = dent->de_type; /* No endian worries */ dent 1108 fs/gfs2/dir.c dirent_del(dip, obh, prev, dent); dent 1115 fs/gfs2/dir.c prev = dent; dent 1117 fs/gfs2/dir.c prev = dent; dent 1119 fs/gfs2/dir.c dent = next; dent 1120 fs/gfs2/dir.c } while (dent); dent 1272 fs/gfs2/dir.c const struct gfs2_dirent *dent, *dent_next; dent 1285 fs/gfs2/dir.c dent = dent_next; dent 1308 fs/gfs2/dir.c if (!dir_emit(ctx, (const char *)(dent + 1), dent 1309 fs/gfs2/dir.c be16_to_cpu(dent->de_name_len), dent 1310 fs/gfs2/dir.c be64_to_cpu(dent->de_inum.no_addr), dent 1311 fs/gfs2/dir.c be16_to_cpu(dent->de_type))) dent 1381 fs/gfs2/dir.c struct gfs2_dirent **darr, *dent; dent 1432 fs/gfs2/dir.c dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, dent 1434 fs/gfs2/dir.c error = PTR_ERR(dent); dent 1435 fs/gfs2/dir.c if (IS_ERR(dent)) dent 1574 fs/gfs2/dir.c struct gfs2_dirent **darr, *dent; dent 1600 fs/gfs2/dir.c dent = gfs2_dirent_scan(inode, dibh->b_data, dibh->b_size, dent 1602 fs/gfs2/dir.c if (IS_ERR(dent)) { dent 1603 fs/gfs2/dir.c error = PTR_ERR(dent); dent 1647 fs/gfs2/dir.c struct gfs2_dirent *dent; dent 1651 fs/gfs2/dir.c dent = gfs2_dirent_search(dir, name, gfs2_dirent_find, &bh); dent 1652 fs/gfs2/dir.c if (dent) { dent 1656 fs/gfs2/dir.c if (IS_ERR(dent)) dent 1657 fs/gfs2/dir.c return ERR_CAST(dent); dent 1658 fs/gfs2/dir.c dtype = be16_to_cpu(dent->de_type); dent 1659 fs/gfs2/dir.c rahead = be16_to_cpu(dent->de_rahead); dent 1660 fs/gfs2/dir.c addr = be64_to_cpu(dent->de_inum.no_addr); dent 1661 fs/gfs2/dir.c formal_ino = be64_to_cpu(dent->de_inum.no_formal_ino); dent 1678 fs/gfs2/dir.c struct gfs2_dirent *dent; dent 1681 fs/gfs2/dir.c dent = gfs2_dirent_search(dir, name, gfs2_dirent_find, &bh); dent 1682 fs/gfs2/dir.c if (dent) { dent 1683 fs/gfs2/dir.c if (IS_ERR(dent)) dent 1684 fs/gfs2/dir.c return PTR_ERR(dent); dent 1686 fs/gfs2/dir.c if (be64_to_cpu(dent->de_inum.no_addr) != ip->i_no_addr) dent 1688 fs/gfs2/dir.c if (be64_to_cpu(dent->de_inum.no_formal_ino) != dent 1692 fs/gfs2/dir.c be16_to_cpu(dent->de_type))) { dent 1801 fs/gfs2/dir.c struct gfs2_dirent *dent = da->dent; dent 1808 fs/gfs2/dir.c dent = gfs2_dirent_search(inode, name, dent 1811 fs/gfs2/dir.c if (dent) { dent 1812 fs/gfs2/dir.c if (IS_ERR(dent)) dent 1813 fs/gfs2/dir.c return PTR_ERR(dent); dent 1814 fs/gfs2/dir.c dent = gfs2_init_dirent(inode, dent, name, bh); dent 1815 fs/gfs2/dir.c gfs2_inum_out(nip, dent); dent 1816 fs/gfs2/dir.c dent->de_type = cpu_to_be16(IF2DT(nip->i_inode.i_mode)); dent 1817 fs/gfs2/dir.c dent->de_rahead = cpu_to_be16(gfs2_inode_ra_len(nip)); dent 1825 fs/gfs2/dir.c da->dent = NULL; dent 1878 fs/gfs2/dir.c struct gfs2_dirent *dent, *prev = NULL; dent 1884 fs/gfs2/dir.c dent = gfs2_dirent_search(&dip->i_inode, name, gfs2_dirent_prev, &bh); dent 1885 fs/gfs2/dir.c if (!dent) { dent 1889 fs/gfs2/dir.c if (IS_ERR(dent)) { dent 1891 fs/gfs2/dir.c return PTR_ERR(dent); dent 1894 fs/gfs2/dir.c if (gfs2_dirent_find(dent, name, NULL) == 0) { dent 1895 fs/gfs2/dir.c prev = dent; dent 1896 fs/gfs2/dir.c dent = (struct gfs2_dirent *)((char *)dent + be16_to_cpu(prev->de_rec_len)); dent 1899 fs/gfs2/dir.c dirent_del(dip, bh, prev, dent); dent 1939 fs/gfs2/dir.c struct gfs2_dirent *dent; dent 1941 fs/gfs2/dir.c dent = gfs2_dirent_search(&dip->i_inode, filename, gfs2_dirent_find, &bh); dent 1942 fs/gfs2/dir.c if (!dent) { dent 1946 fs/gfs2/dir.c if (IS_ERR(dent)) dent 1947 fs/gfs2/dir.c return PTR_ERR(dent); dent 1950 fs/gfs2/dir.c gfs2_inum_out(nip, dent); dent 1951 fs/gfs2/dir.c dent->de_type = cpu_to_be16(new_type); dent 2161 fs/gfs2/dir.c struct gfs2_dirent *dent; dent 2166 fs/gfs2/dir.c da->dent = NULL; dent 2168 fs/gfs2/dir.c dent = gfs2_dirent_search(inode, name, gfs2_dirent_find_space, &bh); dent 2169 fs/gfs2/dir.c if (!dent) { dent 2176 fs/gfs2/dir.c if (IS_ERR(dent)) dent 2177 fs/gfs2/dir.c return PTR_ERR(dent); dent 2181 fs/gfs2/dir.c da->dent = dent; dent 21 fs/gfs2/dir.h struct gfs2_dirent *dent; dent 67 fs/gfs2/dir.h static inline void gfs2_qstr2dirent(const struct qstr *name, u16 reclen, struct gfs2_dirent *dent) dent 69 fs/gfs2/dir.h dent->de_inum.no_addr = cpu_to_be64(0); dent 70 fs/gfs2/dir.h dent->de_inum.no_formal_ino = cpu_to_be64(0); dent 71 fs/gfs2/dir.h dent->de_hash = cpu_to_be32(name->hash); dent 72 fs/gfs2/dir.h dent->de_rec_len = cpu_to_be16(reclen); dent 73 fs/gfs2/dir.h dent->de_name_len = cpu_to_be16(name->len); dent 74 fs/gfs2/dir.h dent->de_type = cpu_to_be16(0); dent 75 fs/gfs2/dir.h memset(dent->__pad, 0, sizeof(dent->__pad)); dent 76 fs/gfs2/dir.h memcpy(dent + 1, name->name, name->len); dent 409 fs/gfs2/inode.c struct gfs2_dirent *dent = (struct gfs2_dirent *)(di+1); dent 411 fs/gfs2/inode.c gfs2_qstr2dirent(&gfs2_qdot, GFS2_DIRENT_SIZE(gfs2_qdot.len), dent); dent 412 fs/gfs2/inode.c dent->de_inum = di->di_num; /* already GFS2 endian */ dent 413 fs/gfs2/inode.c dent->de_type = cpu_to_be16(DT_DIR); dent 415 fs/gfs2/inode.c dent = (struct gfs2_dirent *)((char*)dent + GFS2_DIRENT_SIZE(1)); dent 416 fs/gfs2/inode.c gfs2_qstr2dirent(&gfs2_qdotdot, dibh->b_size - GFS2_DIRENT_SIZE(1) - sizeof(struct gfs2_dinode), dent); dent 417 fs/gfs2/inode.c gfs2_inum_out(parent, dent); dent 418 fs/gfs2/inode.c dent->de_type = cpu_to_be16(DT_DIR); dent 71 fs/gfs2/inode.h struct gfs2_dirent *dent) dent 73 fs/gfs2/inode.h dent->de_inum.no_formal_ino = cpu_to_be64(ip->i_no_formal_ino); dent 74 fs/gfs2/inode.h dent->de_inum.no_addr = cpu_to_be64(ip->i_no_addr); dent 89 fs/ntfs/namei.c static struct dentry *ntfs_lookup(struct inode *dir_ino, struct dentry *dent, dent 101 fs/ntfs/namei.c dent, dir_ino->i_ino); dent 103 fs/ntfs/namei.c uname_len = ntfs_nlstoucs(vol, dent->d_name.name, dent->d_name.len, dent 126 fs/ntfs/namei.c return d_splice_alias(dent_inode, dent); dent 154 fs/ntfs/namei.c d_add(dent, NULL); dent 242 fs/ntfs/namei.c nls_name.hash = full_name_hash(dent, nls_name.name, nls_name.len); dent 244 fs/ntfs/namei.c dent = d_add_ci(dent, dent_inode, &nls_name); dent 246 fs/ntfs/namei.c return dent; dent 229 fs/ubifs/debug.c struct ubifs_dent_node *dent, *pdent = NULL; dent 273 fs/ubifs/debug.c dent = ubifs_tnc_next_ent(c, &key, &nm); dent 274 fs/ubifs/debug.c if (IS_ERR(dent)) { dent 275 fs/ubifs/debug.c if (PTR_ERR(dent) != -ENOENT) dent 276 fs/ubifs/debug.c pr_err("error %ld\n", PTR_ERR(dent)); dent 281 fs/ubifs/debug.c count++, (unsigned long long) le64_to_cpu(dent->inum), dent 282 fs/ubifs/debug.c get_dent_type(dent->type), dent 283 fs/ubifs/debug.c le16_to_cpu(dent->nlen)); dent 285 fs/ubifs/debug.c fname_name(&nm) = dent->name; dent 286 fs/ubifs/debug.c fname_len(&nm) = le16_to_cpu(dent->nlen); dent 288 fs/ubifs/debug.c pdent = dent; dent 289 fs/ubifs/debug.c key_read(c, &dent->key, &key); dent 444 fs/ubifs/debug.c const struct ubifs_dent_node *dent = node; dent 445 fs/ubifs/debug.c int nlen = le16_to_cpu(dent->nlen); dent 447 fs/ubifs/debug.c key_read(c, &dent->key, &key); dent 451 fs/ubifs/debug.c (unsigned long long)le64_to_cpu(dent->inum)); dent 452 fs/ubifs/debug.c pr_err("\ttype %d\n", (int)dent->type); dent 459 fs/ubifs/debug.c for (i = 0; i < nlen && dent->name[i]; i++) dent 460 fs/ubifs/debug.c pr_cont("%c", isprint(dent->name[i]) ? dent 461 fs/ubifs/debug.c dent->name[i] : '?'); dent 1107 fs/ubifs/debug.c struct ubifs_dent_node *dent, *pdent = NULL; dent 1121 fs/ubifs/debug.c dent = ubifs_tnc_next_ent(c, &key, &nm); dent 1122 fs/ubifs/debug.c if (IS_ERR(dent)) { dent 1123 fs/ubifs/debug.c err = PTR_ERR(dent); dent 1129 fs/ubifs/debug.c fname_name(&nm) = dent->name; dent 1130 fs/ubifs/debug.c fname_len(&nm) = le16_to_cpu(dent->nlen); dent 1132 fs/ubifs/debug.c if (dent->type == UBIFS_ITYPE_DIR) dent 1135 fs/ubifs/debug.c pdent = dent; dent 1136 fs/ubifs/debug.c key_read(c, &dent->key, &key); dent 2059 fs/ubifs/debug.c struct ubifs_dent_node *dent = node; dent 2064 fs/ubifs/debug.c err = ubifs_validate_entry(c, dent); dent 2072 fs/ubifs/debug.c inum = le64_to_cpu(dent->inum); dent 2084 fs/ubifs/debug.c inum = key_inum_flash(c, &dent->key); dent 2093 fs/ubifs/debug.c nlen = le16_to_cpu(dent->nlen); dent 2101 fs/ubifs/debug.c if (dent->type == UBIFS_ITYPE_DIR) dent 2681 fs/ubifs/debug.c struct dentry *dent = file->f_path.dentry; dent 2686 fs/ubifs/debug.c if (dent == d->dfs_chk_gen) dent 2688 fs/ubifs/debug.c else if (dent == d->dfs_chk_index) dent 2690 fs/ubifs/debug.c else if (dent == d->dfs_chk_orph) dent 2692 fs/ubifs/debug.c else if (dent == d->dfs_chk_lprops) dent 2694 fs/ubifs/debug.c else if (dent == d->dfs_chk_fs) dent 2696 fs/ubifs/debug.c else if (dent == d->dfs_tst_rcvry) dent 2698 fs/ubifs/debug.c else if (dent == d->dfs_ro_error) dent 2737 fs/ubifs/debug.c struct dentry *dent = file->f_path.dentry; dent 2771 fs/ubifs/debug.c if (dent == d->dfs_chk_gen) dent 2773 fs/ubifs/debug.c else if (dent == d->dfs_chk_index) dent 2775 fs/ubifs/debug.c else if (dent == d->dfs_chk_orph) dent 2777 fs/ubifs/debug.c else if (dent == d->dfs_chk_lprops) dent 2779 fs/ubifs/debug.c else if (dent == d->dfs_chk_fs) dent 2781 fs/ubifs/debug.c else if (dent == d->dfs_tst_rcvry) dent 2783 fs/ubifs/debug.c else if (dent == d->dfs_ro_error) dent 2888 fs/ubifs/debug.c struct dentry *dent = file->f_path.dentry; dent 2891 fs/ubifs/debug.c if (dent == dfs_chk_gen) dent 2893 fs/ubifs/debug.c else if (dent == dfs_chk_index) dent 2895 fs/ubifs/debug.c else if (dent == dfs_chk_orph) dent 2897 fs/ubifs/debug.c else if (dent == dfs_chk_lprops) dent 2899 fs/ubifs/debug.c else if (dent == dfs_chk_fs) dent 2901 fs/ubifs/debug.c else if (dent == dfs_tst_rcvry) dent 2912 fs/ubifs/debug.c struct dentry *dent = file->f_path.dentry; dent 2919 fs/ubifs/debug.c if (dent == dfs_chk_gen) dent 2921 fs/ubifs/debug.c else if (dent == dfs_chk_index) dent 2923 fs/ubifs/debug.c else if (dent == dfs_chk_orph) dent 2925 fs/ubifs/debug.c else if (dent == dfs_chk_lprops) dent 2927 fs/ubifs/debug.c else if (dent == dfs_chk_fs) dent 2929 fs/ubifs/debug.c else if (dent == dfs_tst_rcvry) dent 187 fs/ubifs/dir.c const struct ubifs_dent_node *dent, dent 192 fs/ubifs/dir.c if (le16_to_cpu(dent->nlen) != fname_len(nm)) dent 194 fs/ubifs/dir.c if (memcmp(dent->name, fname_name(nm), fname_len(nm))) dent 205 fs/ubifs/dir.c struct ubifs_dent_node *dent = NULL; dent 222 fs/ubifs/dir.c dent = kmalloc(UBIFS_MAX_DENT_NODE_SZ, GFP_NOFS); dent 223 fs/ubifs/dir.c if (!dent) { dent 234 fs/ubifs/dir.c err = ubifs_tnc_lookup_dh(c, &key, dent, nm.minor_hash); dent 237 fs/ubifs/dir.c err = ubifs_tnc_lookup_nm(c, &key, dent, &nm); dent 248 fs/ubifs/dir.c if (dbg_check_name(c, dent, &nm)) { dent 253 fs/ubifs/dir.c inode = ubifs_iget(dir->i_sb, le64_to_cpu(dent->inum)); dent 276 fs/ubifs/dir.c kfree(dent); dent 501 fs/ubifs/dir.c struct ubifs_dent_node *dent; dent 557 fs/ubifs/dir.c dent = ubifs_tnc_next_ent(c, &key, &nm); dent 558 fs/ubifs/dir.c if (IS_ERR(dent)) { dent 559 fs/ubifs/dir.c err = PTR_ERR(dent); dent 563 fs/ubifs/dir.c ctx->pos = key_hash_flash(c, &dent->key); dent 564 fs/ubifs/dir.c file->private_data = dent; dent 567 fs/ubifs/dir.c dent = file->private_data; dent 568 fs/ubifs/dir.c if (!dent) { dent 575 fs/ubifs/dir.c dent = ubifs_tnc_next_ent(c, &key, &nm); dent 576 fs/ubifs/dir.c if (IS_ERR(dent)) { dent 577 fs/ubifs/dir.c err = PTR_ERR(dent); dent 580 fs/ubifs/dir.c ctx->pos = key_hash_flash(c, &dent->key); dent 581 fs/ubifs/dir.c file->private_data = dent; dent 586 fs/ubifs/dir.c (unsigned long long)le64_to_cpu(dent->inum), dent 587 fs/ubifs/dir.c key_hash_flash(c, &dent->key)); dent 588 fs/ubifs/dir.c ubifs_assert(c, le64_to_cpu(dent->ch.sqnum) > dent 591 fs/ubifs/dir.c fname_len(&nm) = le16_to_cpu(dent->nlen); dent 592 fs/ubifs/dir.c fname_name(&nm) = dent->name; dent 598 fs/ubifs/dir.c &dent->key), dent 599 fs/ubifs/dir.c le32_to_cpu(dent->cookie), dent 609 fs/ubifs/dir.c le64_to_cpu(dent->inum), dent 610 fs/ubifs/dir.c vfs_dent_type(dent->type))) { dent 617 fs/ubifs/dir.c key_read(c, &dent->key, &key); dent 618 fs/ubifs/dir.c dent = ubifs_tnc_next_ent(c, &key, &nm); dent 619 fs/ubifs/dir.c if (IS_ERR(dent)) { dent 620 fs/ubifs/dir.c err = PTR_ERR(dent); dent 625 fs/ubifs/dir.c ctx->pos = key_hash_flash(c, &dent->key); dent 626 fs/ubifs/dir.c file->private_data = dent; dent 851 fs/ubifs/dir.c struct ubifs_dent_node *dent; dent 856 fs/ubifs/dir.c dent = ubifs_tnc_next_ent(c, &key, &nm); dent 857 fs/ubifs/dir.c if (IS_ERR(dent)) { dent 858 fs/ubifs/dir.c err = PTR_ERR(dent); dent 862 fs/ubifs/dir.c kfree(dent); dent 66 fs/ubifs/journal.c static inline void zero_dent_node_unused(struct ubifs_dent_node *dent) dent 68 fs/ubifs/journal.c dent->padding1 = 0; dent 503 fs/ubifs/journal.c static void set_dent_cookie(struct ubifs_info *c, struct ubifs_dent_node *dent) dent 506 fs/ubifs/journal.c dent->cookie = prandom_u32(); dent 508 fs/ubifs/journal.c dent->cookie = 0; dent 547 fs/ubifs/journal.c struct ubifs_dent_node *dent; dent 580 fs/ubifs/journal.c dent = kzalloc(len, GFP_NOFS); dent 581 fs/ubifs/journal.c if (!dent) dent 590 fs/ubifs/journal.c dent->ch.node_type = UBIFS_DENT_NODE; dent 596 fs/ubifs/journal.c dent->ch.node_type = UBIFS_XENT_NODE; dent 600 fs/ubifs/journal.c key_write(c, &dent_key, dent->key); dent 601 fs/ubifs/journal.c dent->inum = deletion ? 0 : cpu_to_le64(inode->i_ino); dent 602 fs/ubifs/journal.c dent->type = get_dent_type(inode->i_mode); dent 603 fs/ubifs/journal.c dent->nlen = cpu_to_le16(fname_len(nm)); dent 604 fs/ubifs/journal.c memcpy(dent->name, fname_name(nm), fname_len(nm)); dent 605 fs/ubifs/journal.c dent->name[fname_len(nm)] = '\0'; dent 606 fs/ubifs/journal.c set_dent_cookie(c, dent); dent 608 fs/ubifs/journal.c zero_dent_node_unused(dent); dent 609 fs/ubifs/journal.c ubifs_prep_grp_node(c, dent, dlen, 0); dent 610 fs/ubifs/journal.c err = ubifs_node_calc_hash(c, dent, hash_dent); dent 614 fs/ubifs/journal.c ino = (void *)dent + aligned_dlen; dent 635 fs/ubifs/journal.c err = write_head(c, BASEHD, dent, len, &lnum, &dent_offs, sync); dent 645 fs/ubifs/journal.c kfree(dent); dent 697 fs/ubifs/journal.c kfree(dent); dent 702 fs/ubifs/journal.c kfree(dent); dent 1219 fs/ubifs/journal.c struct ubifs_dent_node *dent, *dent2; dent 1255 fs/ubifs/journal.c dent = kzalloc(len, GFP_NOFS); dent 1256 fs/ubifs/journal.c if (!dent) dent 1265 fs/ubifs/journal.c dent->ch.node_type = UBIFS_DENT_NODE; dent 1266 fs/ubifs/journal.c dent_key_init_flash(c, &dent->key, new_dir->i_ino, new_nm); dent 1267 fs/ubifs/journal.c dent->inum = cpu_to_le64(old_inode->i_ino); dent 1268 fs/ubifs/journal.c dent->type = get_dent_type(old_inode->i_mode); dent 1269 fs/ubifs/journal.c dent->nlen = cpu_to_le16(fname_len(new_nm)); dent 1270 fs/ubifs/journal.c memcpy(dent->name, fname_name(new_nm), fname_len(new_nm)); dent 1271 fs/ubifs/journal.c dent->name[fname_len(new_nm)] = '\0'; dent 1272 fs/ubifs/journal.c set_dent_cookie(c, dent); dent 1273 fs/ubifs/journal.c zero_dent_node_unused(dent); dent 1274 fs/ubifs/journal.c ubifs_prep_grp_node(c, dent, dlen1, 0); dent 1275 fs/ubifs/journal.c err = ubifs_node_calc_hash(c, dent, hash_dent1); dent 1279 fs/ubifs/journal.c dent2 = (void *)dent + aligned_dlen1; dent 1338 fs/ubifs/journal.c err = write_head(c, BASEHD, dent, len, &lnum, &offs, sync); dent 1410 fs/ubifs/journal.c kfree(dent); dent 1422 fs/ubifs/journal.c kfree(dent); dent 480 fs/ubifs/replay.c const struct ubifs_dent_node *dent) dent 482 fs/ubifs/replay.c int key_type = key_type_flash(c, dent->key); dent 483 fs/ubifs/replay.c int nlen = le16_to_cpu(dent->nlen); dent 485 fs/ubifs/replay.c if (le32_to_cpu(dent->ch.len) != nlen + UBIFS_DENT_NODE_SZ + 1 || dent 486 fs/ubifs/replay.c dent->type >= UBIFS_ITYPES_CNT || dent 487 fs/ubifs/replay.c nlen > UBIFS_MAX_NLEN || dent->name[nlen] != 0 || dent 488 fs/ubifs/replay.c (key_type == UBIFS_XENT_KEY && strnlen(dent->name, nlen) != nlen) || dent 489 fs/ubifs/replay.c le64_to_cpu(dent->inum) > MAX_INUM) { dent 770 fs/ubifs/replay.c struct ubifs_dent_node *dent = snod->node; dent 772 fs/ubifs/replay.c err = ubifs_validate_entry(c, dent); dent 777 fs/ubifs/replay.c &snod->key, dent->name, dent 778 fs/ubifs/replay.c le16_to_cpu(dent->nlen), snod->sqnum, dent 779 fs/ubifs/replay.c !le64_to_cpu(dent->inum), &used); dent 310 fs/ubifs/tnc.c const struct ubifs_dent_node *dent = node; dent 316 fs/ubifs/tnc.c err = ubifs_validate_entry(c, dent); dent 319 fs/ubifs/tnc.c ubifs_dump_node(c, dent); dent 507 fs/ubifs/tnc.c struct ubifs_dent_node *dent = node; dent 510 fs/ubifs/tnc.c key_read(c, &dent->key, &node_key); dent 534 fs/ubifs/tnc.c struct ubifs_dent_node *dent; dent 539 fs/ubifs/tnc.c dent = kmalloc(zbr->len, GFP_NOFS); dent 540 fs/ubifs/tnc.c if (!dent) dent 543 fs/ubifs/tnc.c err = ubifs_tnc_read_node(c, zbr, dent); dent 548 fs/ubifs/tnc.c err = lnc_add_directly(c, zbr, dent); dent 552 fs/ubifs/tnc.c dent = zbr->leaf; dent 554 fs/ubifs/tnc.c nlen = le16_to_cpu(dent->nlen); dent 555 fs/ubifs/tnc.c err = memcmp(dent->name, fname_name(nm), min_t(int, nlen, fname_len(nm))); dent 569 fs/ubifs/tnc.c kfree(dent); dent 822 fs/ubifs/tnc.c struct ubifs_dent_node *dent; dent 827 fs/ubifs/tnc.c dent = kmalloc(zbr->len, GFP_NOFS); dent 828 fs/ubifs/tnc.c if (!dent) dent 831 fs/ubifs/tnc.c err = fallible_read_node(c, &zbr->key, zbr, dent); dent 841 fs/ubifs/tnc.c err = lnc_add_directly(c, zbr, dent); dent 845 fs/ubifs/tnc.c dent = zbr->leaf; dent 847 fs/ubifs/tnc.c nlen = le16_to_cpu(dent->nlen); dent 848 fs/ubifs/tnc.c err = memcmp(dent->name, fname_name(nm), min_t(int, nlen, fname_len(nm))); dent 862 fs/ubifs/tnc.c kfree(dent); dent 1861 fs/ubifs/tnc.c const struct ubifs_dent_node *dent = node; dent 1871 fs/ubifs/tnc.c len = le16_to_cpu(dent->nlen); dent 1872 fs/ubifs/tnc.c if (fname_len(nm) == len && !memcmp(dent->name, fname_name(nm), len)) dent 1884 fs/ubifs/tnc.c struct ubifs_dent_node *dent, uint32_t cookie, dent 1907 fs/ubifs/tnc.c err = tnc_read_hashed_node(c, zbr, dent); dent 1912 fs/ubifs/tnc.c le32_to_cpu(dent->cookie) == cookie) { dent 1924 fs/ubifs/tnc.c struct ubifs_dent_node *dent, uint32_t cookie) dent 1939 fs/ubifs/tnc.c err = search_dh_cookie(c, key, dent, cookie, &znode, &n, err); dent 1964 fs/ubifs/tnc.c const struct ubifs_dent_node *dent = node; dent 1977 fs/ubifs/tnc.c if (le32_to_cpu(dent->cookie) == cookie) dent 2700 fs/ubifs/tnc.c struct ubifs_dent_node *dent; dent 2712 fs/ubifs/tnc.c dent = kmalloc(UBIFS_MAX_DENT_NODE_SZ, GFP_NOFS); dent 2713 fs/ubifs/tnc.c if (!dent) { dent 2718 fs/ubifs/tnc.c err = tnc_read_hashed_node(c, zbr, dent); dent 2723 fs/ubifs/tnc.c if (le32_to_cpu(dent->cookie) != cookie) { dent 2732 fs/ubifs/tnc.c err = search_dh_cookie(c, key, dent, cookie, &znode, &n, err); dent 2747 fs/ubifs/tnc.c kfree(dent); dent 2954 fs/ubifs/tnc.c struct ubifs_dent_node *dent; dent 3003 fs/ubifs/tnc.c dent = kmalloc(zbr->len, GFP_NOFS); dent 3004 fs/ubifs/tnc.c if (unlikely(!dent)) { dent 3020 fs/ubifs/tnc.c err = tnc_read_hashed_node(c, zbr, dent); dent 3025 fs/ubifs/tnc.c return dent; dent 3028 fs/ubifs/tnc.c kfree(dent); dent 1907 fs/ubifs/ubifs.h const struct ubifs_dent_node *dent); dent 188 fs/xfs/scrub/dir.c struct xfs_dir2_data_entry *dent; dent 233 fs/xfs/scrub/dir.c dent = (struct xfs_dir2_data_entry *)(((char *)bp->b_addr) + off); dent 252 fs/xfs/scrub/dir.c if (dep == dent) dent 262 fs/xfs/scrub/dir.c ino = be64_to_cpu(dent->inumber); dent 264 fs/xfs/scrub/dir.c tag = be16_to_cpup(dp->d_ops->data_entry_tag_p(dent)); dent 267 fs/xfs/scrub/dir.c if (dent->namelen == 0) { dent 271 fs/xfs/scrub/dir.c calc_hash = xfs_da_hashname(dent->name, dent->namelen); dent 79 include/drm/drm_debugfs.h struct dentry *dent; dent 180 include/linux/if_vlan.h struct proc_dir_entry *dent; dent 272 net/8021q/vlan.c vlan->dent = NULL; dent 143 net/8021q/vlanproc.c vlan->dent = proc_create_single_data(vlandev->name, S_IFREG | 0600, dent 145 net/8021q/vlanproc.c if (!vlan->dent) dent 156 net/8021q/vlanproc.c proc_remove(vlan_dev_priv(vlandev)->dent); dent 157 net/8021q/vlanproc.c vlan_dev_priv(vlandev)->dent = NULL; dent 330 security/apparmor/apparmorfs.c struct dentry *dent; dent 337 security/apparmor/apparmorfs.c dent = aafs_create(name, S_IFLNK | 0444, parent, private, link, NULL, dent 339 security/apparmor/apparmorfs.c if (IS_ERR(dent)) dent 342 security/apparmor/apparmorfs.c return dent; dent 1350 security/apparmor/apparmorfs.c struct dentry *dent, *dir; dent 1372 security/apparmor/apparmorfs.c dent = aafs_create_file("abi", S_IFREG | 0444, dir, rawdata, dent 1374 security/apparmor/apparmorfs.c if (IS_ERR(dent)) dent 1376 security/apparmor/apparmorfs.c rawdata->dents[AAFS_LOADDATA_ABI] = dent; dent 1378 security/apparmor/apparmorfs.c dent = aafs_create_file("revision", S_IFREG | 0444, dir, rawdata, dent 1380 security/apparmor/apparmorfs.c if (IS_ERR(dent)) dent 1382 security/apparmor/apparmorfs.c rawdata->dents[AAFS_LOADDATA_REVISION] = dent; dent 1385 security/apparmor/apparmorfs.c dent = aafs_create_file("sha1", S_IFREG | 0444, dir, dent 1387 security/apparmor/apparmorfs.c if (IS_ERR(dent)) dent 1389 security/apparmor/apparmorfs.c rawdata->dents[AAFS_LOADDATA_HASH] = dent; dent 1392 security/apparmor/apparmorfs.c dent = aafs_create_file("raw_data", S_IFREG | 0444, dent 1394 security/apparmor/apparmorfs.c if (IS_ERR(dent)) dent 1396 security/apparmor/apparmorfs.c rawdata->dents[AAFS_LOADDATA_DATA] = dent; dent 1397 security/apparmor/apparmorfs.c d_inode(dent)->i_size = rawdata->size; dent 1408 security/apparmor/apparmorfs.c return PTR_ERR(dent); dent 1466 security/apparmor/apparmorfs.c struct dentry *dent; dent 1468 security/apparmor/apparmorfs.c dent = aafs_create_file(name, S_IFREG | 0444, dir, proxy, fops); dent 1469 security/apparmor/apparmorfs.c if (IS_ERR(dent)) dent 1472 security/apparmor/apparmorfs.c return dent; dent 1584 security/apparmor/apparmorfs.c struct dentry *dent = NULL, *dir; dent 1593 security/apparmor/apparmorfs.c dent = prof_dir(p); dent 1595 security/apparmor/apparmorfs.c dent = aafs_create_dir("profiles", dent); dent 1596 security/apparmor/apparmorfs.c if (IS_ERR(dent)) dent 1598 security/apparmor/apparmorfs.c prof_child_dir(p) = parent = dent; dent 1616 security/apparmor/apparmorfs.c dent = aafs_create_dir(profile->dirname, parent); dent 1617 security/apparmor/apparmorfs.c if (IS_ERR(dent)) dent 1619 security/apparmor/apparmorfs.c prof_dir(profile) = dir = dent; dent 1621 security/apparmor/apparmorfs.c dent = create_profile_file(dir, "name", profile, dent 1623 security/apparmor/apparmorfs.c if (IS_ERR(dent)) dent 1625 security/apparmor/apparmorfs.c profile->dents[AAFS_PROF_NAME] = dent; dent 1627 security/apparmor/apparmorfs.c dent = create_profile_file(dir, "mode", profile, dent 1629 security/apparmor/apparmorfs.c if (IS_ERR(dent)) dent 1631 security/apparmor/apparmorfs.c profile->dents[AAFS_PROF_MODE] = dent; dent 1633 security/apparmor/apparmorfs.c dent = create_profile_file(dir, "attach", profile, dent 1635 security/apparmor/apparmorfs.c if (IS_ERR(dent)) dent 1637 security/apparmor/apparmorfs.c profile->dents[AAFS_PROF_ATTACH] = dent; dent 1640 security/apparmor/apparmorfs.c dent = create_profile_file(dir, "sha1", profile, dent 1642 security/apparmor/apparmorfs.c if (IS_ERR(dent)) dent 1644 security/apparmor/apparmorfs.c profile->dents[AAFS_PROF_HASH] = dent; dent 1648 security/apparmor/apparmorfs.c dent = aafs_create_symlink("raw_sha1", dir, NULL, dent 1651 security/apparmor/apparmorfs.c if (IS_ERR(dent)) dent 1654 security/apparmor/apparmorfs.c profile->dents[AAFS_PROF_RAW_HASH] = dent; dent 1656 security/apparmor/apparmorfs.c dent = aafs_create_symlink("raw_abi", dir, NULL, dent 1659 security/apparmor/apparmorfs.c if (IS_ERR(dent)) dent 1662 security/apparmor/apparmorfs.c profile->dents[AAFS_PROF_RAW_ABI] = dent; dent 1664 security/apparmor/apparmorfs.c dent = aafs_create_symlink("raw_data", dir, NULL, dent 1667 security/apparmor/apparmorfs.c if (IS_ERR(dent)) dent 1670 security/apparmor/apparmorfs.c profile->dents[AAFS_PROF_RAW_DATA] = dent; dent 1682 security/apparmor/apparmorfs.c error = PTR_ERR(dent); dent 1852 security/apparmor/apparmorfs.c struct dentry *dent; dent 1857 security/apparmor/apparmorfs.c dent = aafs_create_dir("profiles", dir); dent 1858 security/apparmor/apparmorfs.c if (IS_ERR(dent)) dent 1859 security/apparmor/apparmorfs.c return PTR_ERR(dent); dent 1860 security/apparmor/apparmorfs.c ns_subprofs_dir(ns) = dent; dent 1862 security/apparmor/apparmorfs.c dent = aafs_create_dir("raw_data", dir); dent 1863 security/apparmor/apparmorfs.c if (IS_ERR(dent)) dent 1864 security/apparmor/apparmorfs.c return PTR_ERR(dent); dent 1865 security/apparmor/apparmorfs.c ns_subdata_dir(ns) = dent; dent 1867 security/apparmor/apparmorfs.c dent = aafs_create_file("revision", 0444, dir, ns, dent 1869 security/apparmor/apparmorfs.c if (IS_ERR(dent)) dent 1870 security/apparmor/apparmorfs.c return PTR_ERR(dent); dent 1872 security/apparmor/apparmorfs.c ns_subrevision(ns) = dent; dent 1874 security/apparmor/apparmorfs.c dent = aafs_create_file(".load", 0640, dir, ns, dent 1876 security/apparmor/apparmorfs.c if (IS_ERR(dent)) dent 1877 security/apparmor/apparmorfs.c return PTR_ERR(dent); dent 1879 security/apparmor/apparmorfs.c ns_subload(ns) = dent; dent 1881 security/apparmor/apparmorfs.c dent = aafs_create_file(".replace", 0640, dir, ns, dent 1883 security/apparmor/apparmorfs.c if (IS_ERR(dent)) dent 1884 security/apparmor/apparmorfs.c return PTR_ERR(dent); dent 1886 security/apparmor/apparmorfs.c ns_subreplace(ns) = dent; dent 1888 security/apparmor/apparmorfs.c dent = aafs_create_file(".remove", 0640, dir, ns, dent 1890 security/apparmor/apparmorfs.c if (IS_ERR(dent)) dent 1891 security/apparmor/apparmorfs.c return PTR_ERR(dent); dent 1893 security/apparmor/apparmorfs.c ns_subremove(ns) = dent; dent 1896 security/apparmor/apparmorfs.c dent = aafs_create("namespaces", S_IFDIR | 0755, dir, ns, NULL, NULL, dent 1898 security/apparmor/apparmorfs.c if (IS_ERR(dent)) dent 1899 security/apparmor/apparmorfs.c return PTR_ERR(dent); dent 1901 security/apparmor/apparmorfs.c ns_subns_dir(ns) = dent; dent 1910 security/apparmor/apparmorfs.c struct dentry *dent) dent 1924 security/apparmor/apparmorfs.c if (!dent) { dent 1926 security/apparmor/apparmorfs.c dent = aafs_create_dir(name, parent); dent 1927 security/apparmor/apparmorfs.c if (IS_ERR(dent)) dent 1930 security/apparmor/apparmorfs.c dget(dent); dent 1931 security/apparmor/apparmorfs.c ns_dir(ns) = dir = dent; dent 1955 security/apparmor/apparmorfs.c error = PTR_ERR(dent); dent 2502 security/apparmor/apparmorfs.c struct dentry *dent; dent 2524 security/apparmor/apparmorfs.c dent = securityfs_create_file(".load", 0666, aa_sfs_entry.dentry, dent 2526 security/apparmor/apparmorfs.c if (IS_ERR(dent)) dent 2528 security/apparmor/apparmorfs.c ns_subload(root_ns) = dent; dent 2530 security/apparmor/apparmorfs.c dent = securityfs_create_file(".replace", 0666, aa_sfs_entry.dentry, dent 2532 security/apparmor/apparmorfs.c if (IS_ERR(dent)) dent 2534 security/apparmor/apparmorfs.c ns_subreplace(root_ns) = dent; dent 2536 security/apparmor/apparmorfs.c dent = securityfs_create_file(".remove", 0666, aa_sfs_entry.dentry, dent 2538 security/apparmor/apparmorfs.c if (IS_ERR(dent)) dent 2540 security/apparmor/apparmorfs.c ns_subremove(root_ns) = dent; dent 2542 security/apparmor/apparmorfs.c dent = securityfs_create_file("revision", 0444, aa_sfs_entry.dentry, dent 2544 security/apparmor/apparmorfs.c if (IS_ERR(dent)) dent 2546 security/apparmor/apparmorfs.c ns_subrevision(root_ns) = dent; dent 2557 security/apparmor/apparmorfs.c dent = securityfs_create_symlink("policy", aa_sfs_entry.dentry, dent 2559 security/apparmor/apparmorfs.c if (IS_ERR(dent)) dent 2573 security/apparmor/apparmorfs.c error = PTR_ERR(dent); dent 114 security/apparmor/include/apparmorfs.h struct dentry *dent); dent 265 security/inode.c struct dentry *dent; dent 273 security/inode.c dent = securityfs_create_dentry(name, S_IFLNK | 0444, parent, dent 275 security/inode.c if (IS_ERR(dent)) dent 278 security/inode.c return dent; dent 335 tools/lib/traceevent/event-plugin.c struct dirent *dent; dent 351 tools/lib/traceevent/event-plugin.c while ((dent = readdir(dir))) { dent 352 tools/lib/traceevent/event-plugin.c const char *name = dent->d_name; dent 84 tools/perf/builtin-buildid-cache.c struct dirent *dent; dent 95 tools/perf/builtin-buildid-cache.c dent = readdir(d); dent 96 tools/perf/builtin-buildid-cache.c if (!dent) dent 98 tools/perf/builtin-buildid-cache.c if (dent->d_type != DT_DIR) dent 101 tools/perf/builtin-buildid-cache.c dent->d_name); dent 103 tools/perf/builtin-buildid-cache.c to_dir, dent->d_name); dent 180 tools/perf/tests/dso-data.c struct dirent *dent; dent 190 tools/perf/tests/dso-data.c while ((dent = readdir(dir)) != NULL) { dent 191 tools/perf/tests/dso-data.c if (!strcmp(dent->d_name, ".") || dent 192 tools/perf/tests/dso-data.c !strcmp(dent->d_name, "..")) dent 2279 tools/perf/ui/browsers/hists.c struct dirent *dent; dent 2292 tools/perf/ui/browsers/hists.c while ((dent = readdir(pwd_dir))) { dent 2295 tools/perf/ui/browsers/hists.c char *name = dent->d_name; dent 2298 tools/perf/ui/browsers/hists.c if (!(dent->d_type == DT_REG)) dent 74 tools/perf/util/data.c struct dirent *dent; dent 90 tools/perf/util/data.c while ((dent = readdir(dir)) != NULL) { dent 95 tools/perf/util/data.c snprintf(path, sizeof(path), "%s/%s", data->path, dent->d_name); dent 99 tools/perf/util/data.c if (!S_ISREG(st.st_mode) || strncmp(dent->d_name, "data", 4)) dent 1295 tools/perf/util/machine.c struct dirent *dent; dent 1304 tools/perf/util/machine.c while ((dent = readdir(dir)) != NULL) { dent 1309 tools/perf/util/machine.c snprintf(path, sizeof(path), "%s/%s", dir_name, dent->d_name); dent 1314 tools/perf/util/machine.c if (!strcmp(dent->d_name, ".") || dent 1315 tools/perf/util/machine.c !strcmp(dent->d_name, "..")) dent 1320 tools/perf/util/machine.c if (!strcmp(dent->d_name, "source") || dent 1321 tools/perf/util/machine.c !strcmp(dent->d_name, "build")) dent 1332 tools/perf/util/machine.c ret = kmod_path__parse_name(&m, dent->d_name); dent 84 tools/perf/util/path.c bool is_directory(const char *base_path, const struct dirent *dent) dent 89 tools/perf/util/path.c sprintf(path, "%s/%s", base_path, dent->d_name); dent 14 tools/perf/util/path.h bool is_directory(const char *base_path, const struct dirent *dent); dent 554 tools/perf/util/pmu.c struct dirent *dent; dent 567 tools/perf/util/pmu.c while ((dent = readdir(dir))) { dent 568 tools/perf/util/pmu.c if (!strcmp(dent->d_name, ".") || !strcmp(dent->d_name, "..")) dent 571 tools/perf/util/pmu.c perf_pmu__find(dent->d_name); dent 155 tools/perf/util/trace-event-info.c #define for_each_event(dir, dent, tps) \ dent 156 tools/perf/util/trace-event-info.c while ((dent = readdir(dir))) \ dent 157 tools/perf/util/trace-event-info.c if (dent->d_type == DT_DIR && \ dent 158 tools/perf/util/trace-event-info.c (strcmp(dent->d_name, ".")) && \ dent 159 tools/perf/util/trace-event-info.c (strcmp(dent->d_name, ".."))) \ dent 163 tools/perf/util/trace-event-info.c struct dirent *dent; dent 177 tools/perf/util/trace-event-info.c for_each_event(dir, dent, tps) { dent 178 tools/perf/util/trace-event-info.c if (!name_in_tp_list(dent->d_name, tps)) dent 181 tools/perf/util/trace-event-info.c if (asprintf(&format, "%s/%s/format", sys, dent->d_name) < 0) { dent 199 tools/perf/util/trace-event-info.c for_each_event(dir, dent, tps) { dent 200 tools/perf/util/trace-event-info.c if (!name_in_tp_list(dent->d_name, tps)) dent 203 tools/perf/util/trace-event-info.c if (asprintf(&format, "%s/%s/format", sys, dent->d_name) < 0) { dent 255 tools/perf/util/trace-event-info.c struct dirent *dent; dent 277 tools/perf/util/trace-event-info.c for_each_event(dir, dent, tps) { dent 278 tools/perf/util/trace-event-info.c if (strcmp(dent->d_name, "ftrace") == 0 || dent 279 tools/perf/util/trace-event-info.c !system_in_tp_list(dent->d_name, tps)) dent 292 tools/perf/util/trace-event-info.c for_each_event(dir, dent, tps) { dent 293 tools/perf/util/trace-event-info.c if (strcmp(dent->d_name, "ftrace") == 0 || dent 294 tools/perf/util/trace-event-info.c !system_in_tp_list(dent->d_name, tps)) dent 297 tools/perf/util/trace-event-info.c if (asprintf(&sys, "%s/%s", path, dent->d_name) < 0) { dent 303 tools/perf/util/trace-event-info.c ssize_t size = strlen(dent->d_name) + 1; dent 305 tools/perf/util/trace-event-info.c if (write(output_fd, dent->d_name, size) != size || dent 64 tools/testing/selftests/ir/ir_loopback.c struct dirent *dent; dent 75 tools/testing/selftests/ir/ir_loopback.c while ((dent = readdir(d)) != NULL) { dent 76 tools/testing/selftests/ir/ir_loopback.c if (!strncmp(dent->d_name, "lirc", 4)) { dent 77 tools/testing/selftests/ir/ir_loopback.c snprintf(buf, sizeof(buf), "/dev/%s", dent->d_name); dent 82 tools/testing/selftests/ir/ir_loopback.c if (!dent)