/Linux-v4.19/tools/testing/selftests/proc/ |
D | read.c | 79 assert(streq(de->d_name, ".")); in f() 83 assert(streq(de->d_name, "..")); in f() 86 assert(!streq(de->d_name, ".")); in f() 87 assert(!streq(de->d_name, "..")); in f() 94 if (level == 0 && streq(de->d_name, "sysrq-trigger")) { in f() 95 f_reg_write(d, de->d_name, "h", 1); in f() 96 } else if (level == 1 && streq(de->d_name, "clear_refs")) { in f() 97 f_reg_write(d, de->d_name, "1", 1); in f() 98 } else if (level == 3 && streq(de->d_name, "clear_refs")) { in f() 99 f_reg_write(d, de->d_name, "1", 1); in f() [all …]
|
/Linux-v4.19/tools/iio/ |
D | lsiio.c | 53 if (check_prefix(ent->d_name, "in_") && in dump_channels() 54 (check_postfix(ent->d_name, "_raw") || in dump_channels() 55 check_postfix(ent->d_name, "_input"))) in dump_channels() 56 printf(" %-10s\n", ent->d_name); in dump_channels() 117 if (check_prefix(ent->d_name, type_device)) { in dump_devices() 121 ent->d_name) < 0) { in dump_devices() 139 if (check_prefix(ent->d_name, type_trigger)) { in dump_devices() 143 ent->d_name) < 0) { in dump_devices()
|
D | iio_utils.c | 124 if ((strcmp(builtname, ent->d_name) == 0) || in iioutils_get_type() 125 (strcmp(builtname_generic, ent->d_name) == 0)) { in iioutils_get_type() 127 "%s/%s", scan_el_dir, ent->d_name); in iioutils_get_type() 182 if (strcmp(builtname, ent->d_name) == 0) in iioutils_get_type() 249 if ((strcmp(builtname, ent->d_name) == 0) || in iioutils_get_param_float() 250 (strcmp(builtname_generic, ent->d_name) == 0)) { in iioutils_get_param_float() 252 "%s/%s", device_dir, ent->d_name); in iioutils_get_param_float() 338 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array() 341 "%s/%s", scan_el_dir, ent->d_name); in build_channel_array() 383 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array() [all …]
|
/Linux-v4.19/fs/coda/ |
D | dir.c | 44 const char *name = entry->d_name.name; in coda_lookup() 45 size_t length = entry->d_name.len; in coda_lookup() 138 const char *name=de->d_name.name; in coda_create() 139 int length=de->d_name.len; in coda_create() 171 const char *name = de->d_name.name; in coda_mkdir() 172 int len = de->d_name.len; in coda_mkdir() 206 const char * name = de->d_name.name; in coda_link() 207 int len = de->d_name.len; in coda_link() 231 const char *name = de->d_name.name; in coda_symlink() 232 int len = de->d_name.len; in coda_symlink() [all …]
|
/Linux-v4.19/tools/thermal/tmon/ |
D | sysfs.c | 174 static int find_tzone_tp(char *tz_name, char *d_name, struct tz_info *tzi, in find_tzone_tp() argument 180 if (strstr(d_name, "trip_point") && in find_tzone_tp() 181 strstr(d_name, "temp")) { in find_tzone_tp() 185 sysfs_get_ulong(tz_name, d_name, &temp_ulong); in find_tzone_tp() 189 tp_id = get_instance_id(d_name, 2, 0); in find_tzone_tp() 191 tz_name, tp_id, temp_ulong, d_name); in find_tzone_tp() 194 d_name); in find_tzone_tp() 216 syslog(LOG_DEBUG, "TZ%d: cdev: %s cid %d\n", tz_id, nl->d_name, in find_tzone_cdev() 225 snprintf(cdev_name, 256, "%s/%s", tz_name, nl->d_name); in find_tzone_cdev() 238 snprintf(cdev_trip_name, 256, "%s%s", nl->d_name, in find_tzone_cdev() [all …]
|
/Linux-v4.19/fs/ |
D | readdir.c | 82 char d_name[1]; member 109 (unsigned long)(dirent->d_name + namlen + 1) - in fillonedir() 115 __copy_to_user(dirent->d_name, name, namlen) || in fillonedir() 116 __put_user(0, dirent->d_name + namlen)) in fillonedir() 155 char d_name[1]; member 173 int reclen = ALIGN(offsetof(struct linux_dirent, d_name) + namlen + 2, in filldir() 196 if (copy_to_user(dirent->d_name, name, namlen)) in filldir() 198 if (__put_user(0, dirent->d_name + namlen)) in filldir() 259 int reclen = ALIGN(offsetof(struct linux_dirent64, d_name) + namlen + 1, in filldir64() 281 if (copy_to_user(dirent->d_name, name, namlen)) in filldir64() [all …]
|
D | dcache.c | 235 const unsigned char *cs = READ_ONCE(dentry->d_name.name); in dentry_cmp() 250 return container_of(dentry->d_name.name, struct external_name, name[0]); in external_name() 283 return dentry->d_name.name != dentry->d_iname; in dname_external() 296 dentry->d_name.len + 1); in take_dentry_name_snapshot() 474 b = d_hash(dentry->d_name.hash); in ___d_drop() 1642 dentry->d_name.len = name->len; in __d_alloc() 1643 dentry->d_name.hash = name->hash; in __d_alloc() 1648 smp_store_release(&dentry->d_name.name, dname); /* ^^^ */ in __d_alloc() 2094 if (dentry->d_name.len != name->len) in d_same_name() 2099 dentry->d_name.len, dentry->d_name.name, in d_same_name() [all …]
|
/Linux-v4.19/fs/jffs2/ |
D | dir.c | 86 if (target->d_name.len > JFFS2_MAX_NAME_LEN) in jffs2_lookup() 92 nhash = full_name_hash(NULL, target->d_name.name, target->d_name.len); in jffs2_lookup() 100 strlen(fd_list->name) == target->d_name.len && in jffs2_lookup() 101 !strncmp(fd_list->name, target->d_name.name, target->d_name.len)) { in jffs2_lookup() 200 ret = jffs2_do_create(c, dir_f, f, ri, &dentry->d_name); in jffs2_create() 232 ret = jffs2_do_unlink(c, dir_f, dentry->d_name.name, in jffs2_unlink() 233 dentry->d_name.len, dead_f, now); in jffs2_unlink() 264 …ret = jffs2_do_link(c, dir_f, f->inocache->ino, type, dentry->d_name.name, dentry->d_name.len, now… in jffs2_link() 307 namelen = dentry->d_name.len; in jffs2_symlink() 371 ret = jffs2_init_security(inode, dir_i, &dentry->d_name); in jffs2_symlink() [all …]
|
/Linux-v4.19/fs/ocfs2/ |
D | namei.c | 120 trace_ocfs2_lookup(dir, dentry, dentry->d_name.len, in ocfs2_lookup() 121 dentry->d_name.name, in ocfs2_lookup() 124 if (dentry->d_name.len > OCFS2_MAX_FILENAME_LEN) { in ocfs2_lookup() 137 status = ocfs2_lookup_ino_from_name(dir, dentry->d_name.name, in ocfs2_lookup() 138 dentry->d_name.len, &blkno); in ocfs2_lookup() 265 trace_ocfs2_mknod(dir, dentry, dentry->d_name.len, dentry->d_name.name, in ocfs2_mknod() 297 status = ocfs2_check_dir_for_entry(dir, dentry->d_name.name, in ocfs2_mknod() 298 dentry->d_name.len); in ocfs2_mknod() 304 dentry->d_name.name, in ocfs2_mknod() 305 dentry->d_name.len, &lookup); in ocfs2_mknod() [all …]
|
D | dcache.c | 63 trace_ocfs2_dentry_revalidate(dentry, dentry->d_name.len, in ocfs2_dentry_revalidate() 64 dentry->d_name.name); in ocfs2_dentry_revalidate() 76 trace_ocfs2_dentry_revalidate_negative(dentry->d_name.len, in ocfs2_dentry_revalidate() 77 dentry->d_name.name, in ocfs2_dentry_revalidate() 178 trace_ocfs2_find_local_alias(dentry->d_name.len, in ocfs2_find_local_alias() 179 dentry->d_name.name); in ocfs2_find_local_alias() 234 trace_ocfs2_dentry_attach_lock(dentry->d_name.len, dentry->d_name.name, in ocfs2_dentry_attach_lock()
|
/Linux-v4.19/scripts/dtc/ |
D | fstree.c | 42 if (streq(de->d_name, ".") in read_fstree() 43 || streq(de->d_name, "..")) in read_fstree() 46 tmpname = join_path(dirname, de->d_name); in read_fstree() 61 prop = build_property(xstrdup(de->d_name), in read_fstree() 71 newchild = name_node(newchild, xstrdup(de->d_name)); in read_fstree()
|
/Linux-v4.19/fs/efivarfs/ |
D | inode.c | 79 if (!efivarfs_valid_name(dentry->d_name.name, dentry->d_name.len)) in efivarfs_create() 87 namelen = dentry->d_name.len - EFI_VARIABLE_GUID_LEN - 1; in efivarfs_create() 89 err = guid_parse(dentry->d_name.name + namelen + 1, &var->var.VendorGuid); in efivarfs_create() 94 dentry->d_name.name, namelen)) in efivarfs_create() 104 var->var.VariableName[i] = dentry->d_name.name[i]; in efivarfs_create()
|
/Linux-v4.19/tools/perf/util/ |
D | trace-event-info.c | 174 (strcmp(dent->d_name, ".")) && \ 175 (strcmp(dent->d_name, ".."))) \ 194 if (!name_in_tp_list(dent->d_name, tps)) in copy_event_system() 197 if (asprintf(&format, "%s/%s/format", sys, dent->d_name) < 0) { in copy_event_system() 216 if (!name_in_tp_list(dent->d_name, tps)) in copy_event_system() 219 if (asprintf(&format, "%s/%s/format", sys, dent->d_name) < 0) { in copy_event_system() 294 if (strcmp(dent->d_name, "ftrace") == 0 || in record_event_files() 295 !system_in_tp_list(dent->d_name, tps)) in record_event_files() 309 if (strcmp(dent->d_name, "ftrace") == 0 || in record_event_files() 310 !system_in_tp_list(dent->d_name, tps)) in record_event_files() [all …]
|
/Linux-v4.19/tools/power/acpi/os_specific/service_layers/ |
D | osunixdir.c | 101 (external_info->wildcard_spec, dir_entry->d_name, 0)) { in acpi_os_get_next_filename() 102 if (dir_entry->d_name[0] == '.') { in acpi_os_get_next_filename() 106 str_len = strlen(dir_entry->d_name) + in acpi_os_get_next_filename() 118 strcat(temp_str, dir_entry->d_name); in acpi_os_get_next_filename() 141 dir_entry->d_name); in acpi_os_get_next_filename()
|
/Linux-v4.19/fs/orangefs/ |
D | namei.c | 43 strncpy(new_op->upcall.req.create.d_name, in orangefs_create() 44 dentry->d_name.name, ORANGEFS_NAME_MAX - 1); in orangefs_create() 126 if (dentry->d_name.len > (ORANGEFS_NAME_MAX - 1)) in orangefs_lookup() 142 strncpy(new_op->upcall.req.lookup.d_name, dentry->d_name.name, in orangefs_lookup() 148 new_op->upcall.req.lookup.d_name, in orangefs_lookup() 197 strncpy(new_op->upcall.req.remove.d_name, dentry->d_name.name, in orangefs_unlink() 253 dentry->d_name.name, in orangefs_symlink() 331 strncpy(new_op->upcall.req.mkdir.d_name, in orangefs_mkdir() 332 dentry->d_name.name, ORANGEFS_NAME_MAX - 1); in orangefs_mkdir() 411 old_dentry->d_name.name, in orangefs_rename() [all …]
|
/Linux-v4.19/fs/nfs/ |
D | nfstrace.h | 182 __string(name, dentry->d_name.name) 189 __assign_str(name, dentry->d_name.name); 226 __string(name, dentry->d_name.name) 234 __assign_str(name, dentry->d_name.name); 293 __string(name, ctx->dentry->d_name.name) 301 __assign_str(name, ctx->dentry->d_name.name); 331 __string(name, ctx->dentry->d_name.name) 340 __assign_str(name, ctx->dentry->d_name.name); 369 __string(name, dentry->d_name.name) 376 __assign_str(name, dentry->d_name.name); [all …]
|
/Linux-v4.19/fs/afs/ |
D | dir.c | 530 .name = dentry->d_name, in afs_do_lookup_one() 619 cookie->name = dentry->d_name; in afs_do_lookup() 779 if (dentry->d_name.len > 4) { in afs_lookup_atsys() 780 memcpy(p, dentry->d_name.name, dentry->d_name.len - 4); in afs_lookup_atsys() 781 p += dentry->d_name.len - 4; in afs_lookup_atsys() 792 len = dentry->d_name.len - 4 + strlen(name); in afs_lookup_atsys() 834 if (dentry->d_name.len >= AFSNAMEMAX) { in afs_lookup() 857 if (dentry->d_name.len >= 4 && in afs_lookup() 858 dentry->d_name.name[dentry->d_name.len - 4] == '@' && in afs_lookup() 859 dentry->d_name.name[dentry->d_name.len - 3] == 's' && in afs_lookup() [all …]
|
/Linux-v4.19/fs/hfs/ |
D | dir.c | 31 hfs_cat_build_key(dir->i_sb, fd.search_key, dir->i_ino, &dentry->d_name); in hfs_lookup() 198 inode = hfs_new_inode(dir, &dentry->d_name, mode); in hfs_create() 202 res = hfs_cat_create(inode->i_ino, dir, &dentry->d_name, inode); in hfs_create() 227 inode = hfs_new_inode(dir, &dentry->d_name, S_IFDIR | mode); in hfs_mkdir() 231 res = hfs_cat_create(inode->i_ino, dir, &dentry->d_name, inode); in hfs_mkdir() 261 res = hfs_cat_delete(inode->i_ino, dir, &dentry->d_name); in hfs_remove() 299 old_dir, &old_dentry->d_name, in hfs_rename() 300 new_dir, &new_dentry->d_name); in hfs_rename() 304 new_dir->i_ino, &new_dentry->d_name); in hfs_rename()
|
/Linux-v4.19/fs/fat/ |
D | namei_msdos.c | 209 err = msdos_find(dir, dentry->d_name.name, dentry->d_name.len, &sinfo); in msdos_lookup() 275 err = msdos_format_name(dentry->d_name.name, dentry->d_name.len, in msdos_create() 279 is_hid = (dentry->d_name.name[0] == '.') && (msdos_name[0] != '.'); in msdos_create() 320 err = msdos_find(dir, dentry->d_name.name, dentry->d_name.len, &sinfo); in msdos_rmdir() 352 err = msdos_format_name(dentry->d_name.name, dentry->d_name.len, in msdos_mkdir() 356 is_hid = (dentry->d_name.name[0] == '.') && (msdos_name[0] != '.'); in msdos_mkdir() 408 err = msdos_find(dir, dentry->d_name.name, dentry->d_name.len, &sinfo); in msdos_unlink() 608 err = msdos_format_name(old_dentry->d_name.name, in msdos_rename() 609 old_dentry->d_name.len, old_msdos_name, in msdos_rename() 613 err = msdos_format_name(new_dentry->d_name.name, in msdos_rename() [all …]
|
/Linux-v4.19/fs/reiserfs/ |
D | namei.c | 360 if (REISERFS_MAX_NAME(dir->i_sb->s_blocksize) < dentry->d_name.len) in reiserfs_lookup() 367 reiserfs_find_entry(dir, dentry->d_name.name, dentry->d_name.len, in reiserfs_lookup() 649 retval = reiserfs_security_init(dir, inode, &dentry->d_name, &security); in reiserfs_create() 674 reiserfs_add_entry(&th, dir, dentry->d_name.name, in reiserfs_create() 675 dentry->d_name.len, inode, 1 /*visible */ ); in reiserfs_create() 728 retval = reiserfs_security_init(dir, inode, &dentry->d_name, &security); in reiserfs_mknod() 759 reiserfs_add_entry(&th, dir, dentry->d_name.name, in reiserfs_mknod() 760 dentry->d_name.len, inode, 1 /*visible */ ); in reiserfs_mknod() 818 retval = reiserfs_security_init(dir, inode, &dentry->d_name, &security); in reiserfs_mkdir() 855 reiserfs_add_entry(&th, dir, dentry->d_name.name, in reiserfs_mkdir() [all …]
|
/Linux-v4.19/fs/hfsplus/ |
D | dir.c | 48 &dentry->d_name); in hfsplus_lookup() 324 src_dir, &src_dentry->d_name, in hfsplus_link() 335 &src_dentry->d_name, inode); in hfsplus_link() 342 res = hfsplus_create_cat(cnid, dst_dir, &dst_dentry->d_name, inode); in hfsplus_link() 377 dir, &dentry->d_name, in hfsplus_unlink() 385 res = hfsplus_delete_cat(cnid, dir, &dentry->d_name); in hfsplus_unlink() 425 res = hfsplus_delete_cat(inode->i_ino, dir, &dentry->d_name); in hfsplus_rmdir() 453 res = hfsplus_create_cat(inode->i_ino, dir, &dentry->d_name, inode); in hfsplus_symlink() 457 res = hfsplus_init_security(inode, dir, &dentry->d_name); in hfsplus_symlink() 462 hfsplus_delete_cat(inode->i_ino, dir, &dentry->d_name); in hfsplus_symlink() [all …]
|
/Linux-v4.19/fs/ext2/ |
D | namei.c | 61 if (dentry->d_name.len > EXT2_NAME_LEN) in ext2_lookup() 64 ino = ext2_inode_by_name(dir, &dentry->d_name); in ext2_lookup() 104 inode = ext2_new_inode(dir, mode, &dentry->d_name); in ext2_create() 135 inode = ext2_new_inode (dir, mode, &dentry->d_name); in ext2_mknod() 163 inode = ext2_new_inode (dir, S_IFLNK | S_IRWXUGO, &dentry->d_name); in ext2_symlink() 233 inode = ext2_new_inode(dir, S_IFDIR | mode, &dentry->d_name); in ext2_mkdir() 279 de = ext2_find_entry (dir, &dentry->d_name, &page); in ext2_unlink() 335 old_de = ext2_find_entry (old_dir, &old_dentry->d_name, &old_page); in ext2_rename() 357 new_de = ext2_find_entry (new_dir, &new_dentry->d_name, &new_page); in ext2_rename()
|
/Linux-v4.19/fs/hpfs/ |
D | namei.c | 25 const unsigned char *name = dentry->d_name.name; in hpfs_mkdir() 26 unsigned len = dentry->d_name.len; in hpfs_mkdir() 133 const unsigned char *name = dentry->d_name.name; in hpfs_create() 134 unsigned len = dentry->d_name.len; in hpfs_create() 220 const unsigned char *name = dentry->d_name.name; in hpfs_mknod() 221 unsigned len = dentry->d_name.len; in hpfs_mknod() 294 const unsigned char *name = dentry->d_name.name; in hpfs_symlink() 295 unsigned len = dentry->d_name.len; in hpfs_symlink() 373 const unsigned char *name = dentry->d_name.name; in hpfs_unlink() 374 unsigned len = dentry->d_name.len; in hpfs_unlink() [all …]
|
/Linux-v4.19/tools/testing/selftests/powerpc/dscr/ |
D | dscr_sysfs_test.c | 60 if (!strcmp(dp->d_name, "cpuidle")) in check_all_cpu_dscr_defaults() 62 if (!strstr(dp->d_name, "cpu")) in check_all_cpu_dscr_defaults() 65 len = snprintf(file, LEN_MAX, "%s%s/dscr", CPU_PATH, dp->d_name); in check_all_cpu_dscr_defaults()
|
/Linux-v4.19/fs/bfs/ |
D | dir.c | 113 err = bfs_add_entry(dir, &dentry->d_name, inode->i_ino); in bfs_create() 133 if (dentry->d_name.len > BFS_NAMELEN) in bfs_lookup() 137 bh = bfs_find_entry(dir, &dentry->d_name, &de); in bfs_lookup() 155 err = bfs_add_entry(dir, &new->d_name, inode->i_ino); in bfs_link() 178 bh = bfs_find_entry(dir, &dentry->d_name, &de); in bfs_unlink() 223 old_bh = bfs_find_entry(old_dir, &old_dentry->d_name, &old_de); in bfs_rename() 230 new_bh = bfs_find_entry(new_dir, &new_dentry->d_name, &new_de); in bfs_rename() 237 error = bfs_add_entry(new_dir, &new_dentry->d_name, in bfs_rename()
|