/FileX-v6.2.1/common/src/ |
D | fx_directory_short_name_get_extended.c | 79 UINT i; in _fx_directory_short_name_get_extended() local 114 i = 0; in _fx_directory_short_name_get_extended() 115 …while ((i < (FX_MAX_SHORT_NAME_LEN - 1)) && (dir_entry.fx_dir_entry_short_name[i]) && (i < (short_… in _fx_directory_short_name_get_extended() 119 short_file_name[i] = dir_entry.fx_dir_entry_short_name[i]; in _fx_directory_short_name_get_extended() 122 i++; in _fx_directory_short_name_get_extended() 126 short_file_name[i] = FX_NULL; in _fx_directory_short_name_get_extended() 129 if ((i == (short_file_name_length - 1)) && (dir_entry.fx_dir_entry_short_name[i])) in _fx_directory_short_name_get_extended() 140 i = 0; in _fx_directory_short_name_get_extended() 141 …while ((i < (FX_MAX_SHORT_NAME_LEN - 1)) && (dir_entry.fx_dir_entry_name[i]) && (i < (short_file_n… in _fx_directory_short_name_get_extended() 145 short_file_name[i] = dir_entry.fx_dir_entry_name[i]; in _fx_directory_short_name_get_extended() [all …]
|
D | fx_directory_free_search.c | 90 ULONG i, j; in _fx_directory_free_search() local 133 for (i = 0, j = 0; entry_ptr -> fx_dir_entry_name[i]; i++) in _fx_directory_free_search() 137 … if ((entry_ptr -> fx_dir_entry_name[i] >= 'A') && (entry_ptr -> fx_dir_entry_name[i] <= 'Z')) in _fx_directory_free_search() 142 … else if ((entry_ptr -> fx_dir_entry_name[i] >= '0') && (entry_ptr -> fx_dir_entry_name[i] <= '9')) in _fx_directory_free_search() 147 … else if ((entry_ptr -> fx_dir_entry_name[i] >= 'a') && (entry_ptr -> fx_dir_entry_name[i] <= 'z')) in _fx_directory_free_search() 152 else if (entry_ptr -> fx_dir_entry_name[i] == ' ') in _fx_directory_free_search() 157 else if (entry_ptr -> fx_dir_entry_name[i] == '.') in _fx_directory_free_search() 163 j = i; in _fx_directory_free_search() 166 if (i == 0) in _fx_directory_free_search() 180 else if ((UCHAR)entry_ptr -> fx_dir_entry_name[i] == (UCHAR)0xE5) in _fx_directory_free_search() [all …]
|
D | fx_media_volume_set.c | 80 ULONG i, j; in _fx_media_volume_set() local 173 for (i = 0; volume_name[i]; i++) in _fx_media_volume_set() 177 if (i == 11) in _fx_media_volume_set() 184 alpha = volume_name[i]; in _fx_media_volume_set() 195 media_ptr -> fx_media_memory_buffer[offset + i] = (UCHAR)alpha; in _fx_media_volume_set() 199 for (; i < 11; i++) in _fx_media_volume_set() 203 media_ptr -> fx_media_memory_buffer[offset + i] = 0x20; in _fx_media_volume_set() 249 i = 0; in _fx_media_volume_set() 255 status = _fx_directory_entry_read(media_ptr, FX_NULL, &i, &dir_entry1); in _fx_media_volume_set() 273 if (i < j) in _fx_media_volume_set() [all …]
|
D | fx_directory_entry_write.c | 89 UINT i, j, k, l, card, len, dotfound, dotpos, match; in _fx_directory_entry_write() local 189 for (len = 0, i = 0, dotpos = 0, dotfound = 0; entry_ptr -> fx_dir_entry_name[len]; len++) in _fx_directory_entry_write() 205 dotfound = i; in _fx_directory_entry_write() 211 if ((entry_ptr -> fx_dir_entry_name[len] != ' ') && (i < 8)) in _fx_directory_entry_write() 215 shortname[i] = entry_ptr -> fx_dir_entry_name[len]; in _fx_directory_entry_write() 216 i++; in _fx_directory_entry_write() 221 for (j = i; j < FX_DIR_NAME_SIZE + FX_DIR_EXT_SIZE; j++) in _fx_directory_entry_write() 245 i = dotfound; in _fx_directory_entry_write() 363 if (i > 3) in _fx_directory_entry_write() 365 i = 3; in _fx_directory_entry_write() [all …]
|
D | fx_directory_name_extract.c | 79 UINT i; in _fx_directory_name_extract() local 102 i = 0; in _fx_directory_name_extract() 114 if (i == FX_MAX_LONG_NAME_LEN - 1) in _fx_directory_name_extract() 120 dest_ptr[i] = *source_ptr++; in _fx_directory_name_extract() 123 i++; in _fx_directory_name_extract() 127 dest_ptr[i] = 0; in _fx_directory_name_extract() 130 if (i) in _fx_directory_name_extract() 134 i--; in _fx_directory_name_extract() 138 while (dest_ptr[i] == ' ') in _fx_directory_name_extract() 142 dest_ptr[i] = 0; in _fx_directory_name_extract() [all …]
|
D | fx_unicode_file_rename.c | 94 ULONG i; in _fx_unicode_file_rename() local 151 i = 0; in _fx_unicode_file_rename() 156 alpha = (CHAR)old_unicode_name[i << 1]; in _fx_unicode_file_rename() 157 if ((alpha >= 'a') && (alpha <= 'z') && (old_unicode_name[(i << 1) + 1] == 0)) in _fx_unicode_file_rename() 163 beta = (CHAR)new_unicode_name[i << 1]; in _fx_unicode_file_rename() 164 if ((beta >= 'a') && (beta <= 'z') && (new_unicode_name[(i << 1) + 1] == 0)) in _fx_unicode_file_rename() 180 alpha = (CHAR)old_unicode_name[(i << 1) + 1]; in _fx_unicode_file_rename() 181 beta = (CHAR)new_unicode_name[(i << 1) + 1]; in _fx_unicode_file_rename() 192 i++; in _fx_unicode_file_rename() 193 } while (i < old_unicode_length); in _fx_unicode_file_rename() [all …]
|
D | fx_unicode_directory_rename.c | 93 UINT i, status; in _fx_unicode_directory_rename() local 152 i = 0; in _fx_unicode_directory_rename() 157 alpha = old_unicode_name[i * 2]; in _fx_unicode_directory_rename() 158 if ((alpha >= 'a') && (alpha <= 'z') && (old_unicode_name[i * 2 + 1] == 0)) in _fx_unicode_directory_rename() 164 beta = new_unicode_name[i * 2]; in _fx_unicode_directory_rename() 165 if ((beta >= 'a') && (beta <= 'z') && (new_unicode_name[i * 2 + 1] == 0)) in _fx_unicode_directory_rename() 181 alpha = old_unicode_name[i * 2 + 1]; in _fx_unicode_directory_rename() 182 beta = new_unicode_name[i * 2 + 1]; in _fx_unicode_directory_rename() 193 i++; in _fx_unicode_directory_rename() 194 } while (i < old_unicode_length); in _fx_unicode_directory_rename() [all …]
|
D | fx_file_rename.c | 93 ULONG i; in _fx_file_rename() local 129 i = 0; in _fx_file_rename() 138 i = 0; in _fx_file_rename() 141 else if ((*work_ptr != ' ') || (i != 0)) in _fx_file_rename() 145 i++; in _fx_file_rename() 153 if ((i == 0) || (i >= FX_MAX_LONG_NAME_LEN)) in _fx_file_rename() 241 i = 0; in _fx_file_rename() 243 while ((old_file_name[i]) && (i < FX_MAXIMUM_PATH)) in _fx_file_rename() 247 *work_ptr++ = old_file_name[i]; in _fx_file_rename() 250 if ((old_file_name[i] == '/') || (old_file_name[i] == '\\')) in _fx_file_rename() [all …]
|
D | fxe_unicode_file_rename.c | 83 UINT status, i; in _fxe_unicode_file_rename() local 97 for (i = 0; i < (old_unicode_length << 1); i += 2) in _fxe_unicode_file_rename() 99 if ((old_unicode_name[i] == 0) && (old_unicode_name[i + 1] == 0)) in _fxe_unicode_file_rename() 106 for (i = 0; i < (new_unicode_length << 1); i += 2) in _fxe_unicode_file_rename() 108 if ((new_unicode_name[i] == 0) && (new_unicode_name[i + 1] == 0)) in _fxe_unicode_file_rename()
|
D | fxe_unicode_directory_rename.c | 84 UINT status, i; in _fxe_unicode_directory_rename() local 98 for (i = 0; i < (old_unicode_length << 1); i += 2) in _fxe_unicode_directory_rename() 100 if ((old_unicode_name[i] == 0) && (old_unicode_name[i + 1] == 0)) in _fxe_unicode_directory_rename() 107 for (i = 0; i < (new_unicode_length << 1); i += 2) in _fxe_unicode_directory_rename() 109 if ((new_unicode_name[i] == 0) && (new_unicode_name[i + 1] == 0)) in _fxe_unicode_directory_rename()
|
D | fx_directory_long_name_get_extended.c | 79 UINT i; in _fx_directory_long_name_get_extended() local 110 i = 0; in _fx_directory_long_name_get_extended() 111 …while ((i < (FX_MAX_LONG_NAME_LEN - 1)) && (dir_entry.fx_dir_entry_name[i]) && (i < (long_file_nam… in _fx_directory_long_name_get_extended() 115 long_file_name[i] = dir_entry.fx_dir_entry_name[i]; in _fx_directory_long_name_get_extended() 118 i++; in _fx_directory_long_name_get_extended() 122 long_file_name[i] = FX_NULL; in _fx_directory_long_name_get_extended() 125 if ((i == (long_file_name_buffer_length - 1)) && (dir_entry.fx_dir_entry_name[i])) in _fx_directory_long_name_get_extended()
|
D | fx_media_cache_invalidate.c | 79 UINT i; in _fx_media_cache_invalidate() local 108 for (i = 0; i < FX_MAX_FAT_CACHE; i++) in _fx_media_cache_invalidate() 112 media_ptr -> fx_media_fat_cache[i].fx_fat_cache_entry_cluster = 0; in _fx_media_cache_invalidate() 113 media_ptr -> fx_media_fat_cache[i].fx_fat_cache_entry_value = 0; in _fx_media_cache_invalidate() 117 for (i = 0; i < FX_FAT_MAP_SIZE; i++) in _fx_media_cache_invalidate() 121 media_ptr -> fx_media_fat_secondary_update_map[i] = 0; in _fx_media_cache_invalidate()
|
D | fx_directory_rename.c | 99 ULONG i; in _fx_directory_rename() local 125 i = 0; in _fx_directory_rename() 127 while (*work_ptr && (i < FX_MAX_LONG_NAME_LEN)) in _fx_directory_rename() 134 i = 0; in _fx_directory_rename() 137 else if ((*work_ptr != ' ') || (i != 0)) in _fx_directory_rename() 141 i++; in _fx_directory_rename() 149 if ((i == 0) || (i >= FX_MAX_LONG_NAME_LEN)) in _fx_directory_rename() 235 i = 0; in _fx_directory_rename() 237 while ((old_directory_name[i]) && (i < FX_MAXIMUM_PATH)) in _fx_directory_rename() 241 *work_ptr++ = old_directory_name[i]; in _fx_directory_rename() [all …]
|
D | fx_unicode_directory_entry_read.c | 84 UINT i, j, k, card, dotflag, get_short_name; in _fx_unicode_directory_entry_read() local 152 i = source_dir -> fx_dir_entry_last_search_relative_cluster; in _fx_unicode_directory_entry_read() 165 i = 0; in _fx_unicode_directory_entry_read() 175 i = 0; in _fx_unicode_directory_entry_read() 179 while (i < relative_cluster) in _fx_unicode_directory_entry_read() 208 i++; in _fx_unicode_directory_entry_read() 299 i = (number_of_lfns - 1) * FX_LONG_NAME_ENTRY_LEN; in _fx_unicode_directory_entry_read() 303 if (i >= (FX_MAX_LONG_NAME_LEN - 1)) in _fx_unicode_directory_entry_read() 317 j = i + FX_LONG_NAME_ENTRY_LEN + 1; in _fx_unicode_directory_entry_read() 321 destination_ptr -> fx_dir_entry_name[i] = 0; in _fx_unicode_directory_entry_read() [all …]
|
D | fx_media_format.c | 135 UINT reserved_sectors, i, j, root_sectors, total_clusters, bytes_needed; in _fx_media_format() local 194 for (i = 0; i < bytes_per_sector; i++) in _fx_media_format() 198 byte_ptr[i] = (UCHAR)0; in _fx_media_format() 210 for (i = 0; i < 8; i++) in _fx_media_format() 214 byte_ptr[i + 3] = _fx_media_format_oem_name[i]; in _fx_media_format() 415 i = 0; in _fx_media_format() 416 while (i < 11) in _fx_media_format() 420 if (volume_name[i] == 0) in _fx_media_format() 428 byte_ptr[j + i] = (UCHAR)volume_name[i]; in _fx_media_format() 431 i++; in _fx_media_format() [all …]
|
D | fx_utility_FAT_map_flush.c | 77 UINT i, status, FATs; in _fx_utility_FAT_map_flush() local 98 for (i = 0; i < FX_FAT_MAP_SIZE << 3; i++) in _fx_utility_FAT_map_flush() 102 if ((media_ptr -> fx_media_fat_secondary_update_map[i >> 3] & (1 << (i & 7))) == 0) in _fx_utility_FAT_map_flush() 110 FAT_sector = i * sectors_per_bit + media_ptr -> fx_media_reserved_sectors; in _fx_utility_FAT_map_flush() 161 for (i = 0; i < FX_FAT_MAP_SIZE; i++) in _fx_utility_FAT_map_flush() 165 media_ptr -> fx_media_fat_secondary_update_map[i] = 0; in _fx_utility_FAT_map_flush()
|
D | fx_directory_entry_read.c | 86 UINT i, j, card, dotflag, get_short_name; in _fx_directory_entry_read() local 159 i = source_dir -> fx_dir_entry_last_search_relative_cluster; in _fx_directory_entry_read() 172 i = 0; in _fx_directory_entry_read() 182 i = 0; in _fx_directory_entry_read() 186 while (i < relative_cluster) in _fx_directory_entry_read() 215 i++; in _fx_directory_entry_read() 292 i = (((UINT)(*read_ptr & (UCHAR)0x1f) - 1) * FX_LONG_NAME_ENTRY_LEN) & 0xFFFFFFFF; in _fx_directory_entry_read() 298 if (i >= (FX_MAX_LONG_NAME_LEN - 1)) in _fx_directory_entry_read() 312 j = i + FX_LONG_NAME_ENTRY_LEN + 1; in _fx_directory_entry_read() 316 destination_ptr -> fx_dir_entry_name[i] = 0; in _fx_directory_entry_read() [all …]
|
D | fx_unicode_length_get_extended.c | 74 ULONG i; in _fx_unicode_length_get_extended() local 78 i = 0; in _fx_unicode_length_get_extended() 80 while (i < buffer_length) in _fx_unicode_length_get_extended() 84 if ((unicode_name[i] == 0) && (unicode_name[i + 1] == 0)) in _fx_unicode_length_get_extended() 90 i = i + 2; in _fx_unicode_length_get_extended()
|
D | fx_fault_tolerant_create_log_file.c | 87 UINT i; in _fx_fault_tolerant_create_log_file() local 106 i = 0; in _fx_fault_tolerant_create_log_file() 113 status = _fx_utility_FAT_entry_read(media_ptr, (FAT_index + i), &FAT_value); in _fx_fault_tolerant_create_log_file() 130 i++; in _fx_fault_tolerant_create_log_file() 131 } while (i < clusters); in _fx_fault_tolerant_create_log_file() 134 if (i >= clusters) in _fx_fault_tolerant_create_log_file() 145 FAT_index = FAT_index + i + 1; in _fx_fault_tolerant_create_log_file() 159 for (i = 0; i < (clusters - 1); i++) in _fx_fault_tolerant_create_log_file() 165 status = _fx_utility_FAT_entry_write(media_ptr, FAT_index + i, FAT_index + i + 1); in _fx_fault_tolerant_create_log_file()
|
D | fx_unicode_file_create.c | 91 UINT i, status; in _fx_unicode_file_create() local 168 for (i = 1; i < source_unicode_length; i++) in _fx_unicode_file_create() 172 _fx_unicode_temp_long_file_name[i] = (UCHAR)((UINT)'0' + (i % 9)); in _fx_unicode_file_create() 174 _fx_unicode_temp_long_file_name[i] = FX_NULL; in _fx_unicode_file_create() 244 for (i = 0; i < FX_DIR_NAME_SIZE; i++) in _fx_unicode_file_create() 248 short_name[i] = dir_entry.fx_dir_entry_short_name[i]; in _fx_unicode_file_create() 251 if (short_name[i] == FX_NULL) in _fx_unicode_file_create()
|
/FileX-v6.2.1/test/regression_test/ |
D | filex_utility_fat_flush_test.c | 92 ULONG i; in ftest_0_entry() local 168 i = 0; in ftest_0_entry() 170 while (i < available_bytes) in ftest_0_entry() 185 i = i + sizeof(ULONG); in ftest_0_entry() 192 status = fx_media_space_available(&ram_disk, &i); in ftest_0_entry() 195 if ((status != FX_SUCCESS) || (i != 0)) in ftest_0_entry() 202 for (i = 0; i < FX_MAX_FAT_CACHE; i++) in ftest_0_entry() 204 ram_disk.fx_media_fat_cache[i].fx_fat_cache_entry_cluster = 496; in ftest_0_entry() 205 ram_disk.fx_media_fat_cache[i].fx_fat_cache_entry_value = 1; in ftest_0_entry() 206 ram_disk.fx_media_fat_cache[i].fx_fat_cache_entry_dirty = 1; in ftest_0_entry() [all …]
|
D | filex_media_read_write_sector_test.c | 101 UINT i, j; in ftest_0_entry() local 237 for (i = 0; i < 256; i++) in ftest_0_entry() 284 for (i = 0; i < 256; i++) in ftest_0_entry() 326 for (i = 0; i < 512; i++) in ftest_0_entry() 350 for (i = 0; i < 256; i++) in ftest_0_entry() 358 for (i = 0; i < 256; i++) in ftest_0_entry() 377 for (i = 2; i < 6000; i++) in ftest_0_entry() 379 status += _fx_utility_FAT_entry_write(&ram_disk, (ULONG) i, (ULONG) i+1); in ftest_0_entry() 389 for (i = 2; i < 6000; i++) in ftest_0_entry() 391 status += _fx_utility_FAT_entry_write(&ram_disk, (ULONG) i, FX_FREE_CLUSTER); in ftest_0_entry() [all …]
|
D | filex_media_cache_invalidate_test.c | 94 ULONG i; in ftest_0_entry() local 182 i = 0; in ftest_0_entry() 184 while (i < available_bytes) in ftest_0_entry() 199 i = i + sizeof(ULONG); in ftest_0_entry() 206 status = fx_media_space_available(&ram_disk, &i); in ftest_0_entry() 209 if ((status != FX_SUCCESS) || (i != 0)) in ftest_0_entry() 229 for (i = 0; i < FX_MAX_SECTOR_CACHE; i++) in ftest_0_entry() 233 if (ram_disk.fx_media_sector_cache[i].fx_cached_sector_valid) in ftest_0_entry() 253 i = 0; in ftest_0_entry() 255 while (i < available_bytes) in ftest_0_entry() [all …]
|
D | filex_file_read_write_test.c | 105 ULONG i, j; in ftest_0_entry() local 233 i = 0; in ftest_0_entry() 235 while (i < available_bytes) in ftest_0_entry() 250 i = i + sizeof(ULONG); in ftest_0_entry() 257 status = fx_media_space_available(&ram_disk, &i); in ftest_0_entry() 260 if ((status != FX_SUCCESS) || (i != 0)) in ftest_0_entry() 281 for (i = 0; i < FX_MAX_SECTOR_CACHE; i++) in ftest_0_entry() 285 if (ram_disk.fx_media_sector_cache[i].fx_cached_sector_valid) in ftest_0_entry() 317 i = 0; in ftest_0_entry() 319 while (i < available_bytes) in ftest_0_entry() [all …]
|
D | filex_media_flush_test.c | 92 ULONG i; in ftest_0_entry() local 198 i = 0; in ftest_0_entry() 200 while (i < available_bytes) in ftest_0_entry() 215 i = i + sizeof(ULONG); in ftest_0_entry() 222 status = fx_media_space_available(&ram_disk, &i); in ftest_0_entry() 225 if ((status != FX_SUCCESS) || (i != 0)) in ftest_0_entry() 269 i = 0; in ftest_0_entry() 271 while (i < available_bytes) in ftest_0_entry() 278 if ((status != FX_SUCCESS) || (actual != 4) || (read_value != i/4)) in ftest_0_entry() 286 i = i + sizeof(ULONG); in ftest_0_entry() [all …]
|