Home
last modified time | relevance | path

Searched refs:tmp_dEntry (Results 1 – 2 of 2) sorted by relevance

/DragonOS-0.1.2/kernel/src/filesystem/fat32/
Dfat32.c68 struct fat32_Directory_t *tmp_dEntry = NULL; in __fat32_search_long_short() local
82 tmp_dEntry = (struct fat32_Directory_t *)buf; in __fat32_search_long_short()
85 for (int i = 0; i < fsbi->bytes_per_clus; i += 32, ++tmp_dEntry) in __fat32_search_long_short()
88 if (tmp_dEntry->DIR_Attr == ATTR_LONG_NAME) in __fat32_search_long_short()
92 …if (tmp_dEntry->DIR_Name[0] == 0xe5 || tmp_dEntry->DIR_Name[0] == 0x00 || tmp_dEntry->DIR_Name[0] … in __fat32_search_long_short()
96 … struct fat32_LongDirectory_t *tmp_ldEntry = (struct fat32_LongDirectory_t *)tmp_dEntry - 1; in __fat32_search_long_short()
135 cnt_long_dir = tmp_dEntry - (struct fat32_Directory_t *)tmp_ldEntry; in __fat32_search_long_short()
148 switch (tmp_dEntry->DIR_Name[x]) in __fat32_search_long_short()
151 if (!(tmp_dEntry->DIR_Attr & ATTR_DIRECTORY)) // 不是文件夹(是文件) in __fat32_search_long_short()
155 else if (tmp_dEntry->DIR_Name[x] == name[js]) in __fat32_search_long_short()
[all …]
Dfat_ent.c200 struct fat32_Directory_t *tmp_dEntry = NULL; in fat32_find_empty_dentry() local
211 tmp_dEntry = (struct fat32_Directory_t *)buf; in fat32_find_empty_dentry()
216 for (int i = 0; (i < fsbi->bytes_per_clus) && count_continuity < num; i += 32, ++tmp_dEntry) in fat32_find_empty_dentry()
218 if (!(tmp_dEntry->DIR_Name[0] == 0xe5 || tmp_dEntry->DIR_Name[0] == 0x00 || in fat32_find_empty_dentry()
219 tmp_dEntry->DIR_Name[0] == 0x05)) in fat32_find_empty_dentry()
226 result_dEntry = tmp_dEntry; in fat32_find_empty_dentry()