Lines Matching defs:cde
813 static bool emit_cached_dirents(struct cached_dirents *cde,
819 list_for_each_entry(dirent, &cde->entries, entry) {
849 static void update_cached_dirents_count(struct cached_dirents *cde,
852 if (cde->ctx != ctx)
854 if (cde->is_valid || cde->is_failed)
857 cde->pos++;
860 static void finished_cached_dirents_count(struct cached_dirents *cde,
863 if (cde->ctx != ctx)
865 if (cde->is_valid || cde->is_failed)
867 if (ctx->pos != cde->pos)
870 cde->is_valid = 1;
873 static void add_cached_dirent(struct cached_dirents *cde,
880 if (cde->ctx != ctx)
882 if (cde->is_valid || cde->is_failed)
884 if (ctx->pos != cde->pos) {
885 cde->is_failed = 1;
890 cde->is_failed = 1;
897 cde->is_failed = 1;
904 list_add_tail(&de->entry, &cde->entries);