Lines Matching full:de
77 struct dirent *de; in f() local
79 de = xreaddir(d); in f()
80 assert(de->d_type == DT_DIR); in f()
81 assert(streq(de->d_name, ".")); in f()
83 de = xreaddir(d); in f()
84 assert(de->d_type == DT_DIR); in f()
85 assert(streq(de->d_name, "..")); in f()
87 while ((de = xreaddir(d))) { in f()
88 assert(!streq(de->d_name, ".")); in f()
89 assert(!streq(de->d_name, "..")); in f()
91 switch (de->d_type) { in f()
96 if (level == 0 && streq(de->d_name, "sysrq-trigger")) { in f()
97 f_reg_write(d, de->d_name, "h", 1); in f()
98 } else if (level == 1 && streq(de->d_name, "clear_refs")) { in f()
99 f_reg_write(d, de->d_name, "1", 1); in f()
100 } else if (level == 3 && streq(de->d_name, "clear_refs")) { in f()
101 f_reg_write(d, de->d_name, "1", 1); in f()
103 f_reg(d, de->d_name); in f()
107 fd = openat(dirfd(d), de->d_name, O_DIRECTORY|O_RDONLY); in f()
117 f_lnk(d, de->d_name); in f()