Home
last modified time | relevance | path

Searched refs:j (Results 1 – 25 of 40) sorted by relevance

12

/FileX-v6.2.1/common/src/
Dfx_unicode_directory_search.c109 ULONG i, j; in _fx_unicode_directory_search() local
237 for (j = 0; j < local_unicode_name_length; j++) in _fx_unicode_directory_search()
239 if ((unicode_name[j * 2] <= 0x7F) && (unicode_name[j * 2 + 1] == 0)) in _fx_unicode_directory_search()
242 unicode_to_short_name[j] = (CHAR)unicode_name[j * 2]; in _fx_unicode_directory_search()
243 if ((unicode_to_short_name[j] >= 'a') && (unicode_to_short_name[j] <= 'z')) in _fx_unicode_directory_search()
247 unicode_to_short_name[j] = (CHAR)((INT)unicode_to_short_name[j] - 0x20); in _fx_unicode_directory_search()
309 for (j = 0; j < local_unicode_name_length; j++) in _fx_unicode_directory_search()
313 if (short_name_ptr[j] != unicode_to_short_name[j]) in _fx_unicode_directory_search()
318 if (j == local_unicode_name_length) in _fx_unicode_directory_search()
328 for (j = 0; j < short_name_buffer_length; j++) in _fx_unicode_directory_search()
[all …]
Dfx_media_volume_get_extended.c89 INT j; in _fx_media_volume_get_extended() local
179 for (j = 10; j >= 0; j--) in _fx_media_volume_get_extended()
183 if (media_ptr -> fx_media_memory_buffer[offset + (UINT)j] != (UCHAR)' ') in _fx_media_volume_get_extended()
192 if (j >= (INT)volume_name_buffer_length - 1) in _fx_media_volume_get_extended()
199 j = (INT)volume_name_buffer_length - 2; in _fx_media_volume_get_extended()
203 volume_name[j + 1] = FX_NULL; in _fx_media_volume_get_extended()
206 for (; j >= 0; j--) in _fx_media_volume_get_extended()
210 volume_name[j] = (CHAR)media_ptr -> fx_media_memory_buffer[offset + (UINT)j]; in _fx_media_volume_get_extended()
282 for (j = 10; j >= 0; j--) in _fx_media_volume_get_extended()
286 if (media_ptr -> fx_media_memory_buffer[offset + (UINT)j] != (UCHAR)' ') in _fx_media_volume_get_extended()
[all …]
Dfx_directory_entry_write.c89 UINT i, j, k, l, card, len, dotfound, dotpos, match; in _fx_directory_entry_write() local
221 for (j = i; j < FX_DIR_NAME_SIZE + FX_DIR_EXT_SIZE; j++) in _fx_directory_entry_write()
223 shortname[j] = ' '; in _fx_directory_entry_write()
443 for (i = 0, j = 0; j < FX_DIR_NAME_SIZE; i++, j++) in _fx_directory_entry_write()
460 shortname[j] = alpha; in _fx_directory_entry_write()
468 for (i++, j = FX_DIR_NAME_SIZE; j < FX_DIR_NAME_SIZE + FX_DIR_EXT_SIZE; i++, j++) in _fx_directory_entry_write()
481 shortname[j] = alpha; in _fx_directory_entry_write()
486 for (j = 0; j < (FX_DIR_NAME_SIZE + FX_DIR_EXT_SIZE); j++) in _fx_directory_entry_write()
490 alpha = shortname[j]; in _fx_directory_entry_write()
501 shortname[j] = alpha; in _fx_directory_entry_write()
[all …]
Dfx_unicode_directory_entry_read.c84 UINT i, j, k, card, dotflag, get_short_name; in _fx_unicode_directory_entry_read() local
317 j = i + FX_LONG_NAME_ENTRY_LEN + 1; in _fx_unicode_directory_entry_read()
325 } while ((i < j) && (i < FX_MAX_LONG_NAME_LEN)); in _fx_unicode_directory_entry_read()
350 for (i = 1, j = 0, k = 0; i < FX_DIR_ENTRY_SIZE; i += 2) in _fx_unicode_directory_entry_read()
394 if ((card * 13 + j) >= (FX_MAX_LONG_NAME_LEN - 1)) in _fx_unicode_directory_entry_read()
413 destination_ptr -> fx_dir_entry_name[13 * card + j] = (CHAR)read_ptr[i]; in _fx_unicode_directory_entry_read()
417 unicode_name[k + 26 * card + j] = read_ptr[i]; in _fx_unicode_directory_entry_read()
418 unicode_name[k + 26 * card + j + 1] = read_ptr[i + 1]; in _fx_unicode_directory_entry_read()
422 j++; in _fx_unicode_directory_entry_read()
553 for (i = 0, j = 0; i < (FX_DIR_NAME_SIZE + FX_DIR_EXT_SIZE); i++) in _fx_unicode_directory_entry_read()
[all …]
Dfx_directory_entry_read.c86 UINT i, j, card, dotflag, get_short_name; in _fx_directory_entry_read() local
312 j = i + FX_LONG_NAME_ENTRY_LEN + 1; in _fx_directory_entry_read()
320 } while ((i < j) && (i < FX_MAX_LONG_NAME_LEN)); in _fx_directory_entry_read()
335 for (i = 1, j = 0; i < FX_DIR_ENTRY_SIZE; i += 2) in _fx_directory_entry_read()
378 if ((card * 13 + j) >= (FX_MAX_LONG_NAME_LEN - 1)) in _fx_directory_entry_read()
395 destination_ptr -> fx_dir_entry_name[13 * card + j] = (CHAR)read_ptr[i]; in _fx_directory_entry_read()
397 j++; in _fx_directory_entry_read()
525 for (i = 0, j = 0; i < (FX_DIR_NAME_SIZE + FX_DIR_EXT_SIZE); i++) in _fx_directory_entry_read()
566 short_name_ptr[j++] = '.'; in _fx_directory_entry_read()
571 short_name_ptr[j] = (CHAR)read_ptr[i]; in _fx_directory_entry_read()
[all …]
Dfx_directory_local_path_set.c92 UINT i, j; in _fx_directory_local_path_set() local
284 for (j = 0; j < FX_MAX_LONG_NAME_LEN; j++) in _fx_directory_local_path_set()
288 … local_path_ptr -> fx_path_directory.fx_dir_entry_name[j] = dir_entry.fx_dir_entry_name[j]; in _fx_directory_local_path_set()
432 for (j = 0; j < FX_MAX_LONG_NAME_LEN; j++) in _fx_directory_local_path_set()
436 … local_path_ptr -> fx_path_directory.fx_dir_entry_name[j] = dir_entry.fx_dir_entry_name[j]; in _fx_directory_local_path_set()
Dfx_media_volume_set.c80 ULONG i, j; in _fx_media_volume_set() local
250 j = media_ptr -> fx_media_root_directory_entries + 1; in _fx_media_volume_set()
273 if (i < j) in _fx_media_volume_set()
278 j = i; in _fx_media_volume_set()
287 if (i < j) in _fx_media_volume_set()
292 j = i; in _fx_media_volume_set()
302 j = i; in _fx_media_volume_set()
315 if (j == (media_ptr -> fx_media_root_directory_entries + 1)) in _fx_media_volume_set()
Dfx_directory_rename.c103 UINT j; in _fx_directory_rename() local
236 j = 0; in _fx_directory_rename()
248 j = i; in _fx_directory_rename()
258 j++; in _fx_directory_rename()
261 work_ptr = (CHAR *)&(media_ptr -> fx_media_rename_buffer[j]); in _fx_directory_rename()
265 while ((new_directory_name[i]) && (j < FX_MAXIMUM_PATH)) in _fx_directory_rename()
273 j++; in _fx_directory_rename()
Dfx_directory_search.c105 UINT v, j; in _fx_directory_search() local
340 j = 0; in _fx_directory_search()
341 while ((v < (FX_MAX_LAST_NAME_LEN - 1)) && (name_ptr[j]) && (match)) in _fx_directory_search()
345 alpha = name_ptr[j]; in _fx_directory_search()
368 j++; in _fx_directory_search()
376 else if ((match) && (name_ptr[j] != media_ptr -> fx_media_last_found_name[v])) in _fx_directory_search()
862 j = 0; in _fx_directory_search()
863 while ((v < FX_MAX_LAST_NAME_LEN) && (original_name[j])) in _fx_directory_search()
867 media_ptr -> fx_media_last_found_name[v] = original_name[j]; in _fx_directory_search()
871 j++; in _fx_directory_search()
Dfx_file_rename.c106 UINT j; in _fx_file_rename() local
242 j = 0; in _fx_file_rename()
254 j = i; in _fx_file_rename()
264 j++; in _fx_file_rename()
267 work_ptr = (CHAR *)&(media_ptr -> fx_media_rename_buffer[j]); in _fx_file_rename()
271 while ((new_file_name[i]) && (j < FX_MAXIMUM_PATH)) in _fx_file_rename()
279 j++; in _fx_file_rename()
/FileX-v6.2.1/test/regression_test/
Dfilex_fault_tolerant_unicode_directory_create_directory_interrupt_test.c180 UINT j; in ftest_0_entry() local
276 for(j = 0; j < 20; j ++) in ftest_0_entry()
280 if (directory_name_A_short[j]) in ftest_0_entry()
282 directory_name_path_short[index++] = directory_name_A_short[j]; in ftest_0_entry()
315 for(j = 0; j < 20; j ++) in ftest_0_entry()
319 if (directory_name_B_short[j]) in ftest_0_entry()
321 directory_name_path_short[index++] = directory_name_B_short[j]; in ftest_0_entry()
354 for(j = 0; j < 20; j ++) in ftest_0_entry()
358 if (directory_name_C_short[j]) in ftest_0_entry()
360 directory_name_path_short[index++] = directory_name_C_short[j]; in ftest_0_entry()
[all …]
Dfilex_fault_tolerant_unicode_directory_create_redo_log_interrupt_test.c276 UINT j; in ftest_0_entry() local
412 for(j = 0; j < 20; j ++) in ftest_0_entry()
416 if (directory_name_A_short[j]) in ftest_0_entry()
418 directory_name_path_short[index++] = directory_name_A_short[j]; in ftest_0_entry()
467 for(j = 0; j < 20; j ++) in ftest_0_entry()
471 if (directory_name_B_short[j]) in ftest_0_entry()
473 directory_name_path_short[index++] = directory_name_B_short[j]; in ftest_0_entry()
522 for(j = 0; j < 20; j ++) in ftest_0_entry()
526 if (directory_name_C_short[j]) in ftest_0_entry()
528 directory_name_path_short[index++] = directory_name_C_short[j]; in ftest_0_entry()
[all …]
Dfilex_fault_tolerant_unicode_directory_rename_directory_interrupt_test.c270 UINT j; in ftest_0_entry() local
406 for(j = 0; j < 20; j ++) in ftest_0_entry()
410 if (directory_name_A_short[j]) in ftest_0_entry()
412 directory_name_path_short[index++] = directory_name_A_short[j]; in ftest_0_entry()
461 for(j = 0; j < 20; j ++) in ftest_0_entry()
465 if (directory_name_B_short[j]) in ftest_0_entry()
467 directory_name_path_short[index++] = directory_name_B_short[j]; in ftest_0_entry()
516 for(j = 0; j < 20; j ++) in ftest_0_entry()
520 if (directory_name_C_short[j]) in ftest_0_entry()
522 directory_name_path_short[index++] = directory_name_C_short[j]; in ftest_0_entry()
[all …]
Dfilex_fault_tolerant_unicode_directory_rename_redo_log_interrupt_test.c222 UINT j; in ftest_0_entry() local
358 for(j = 0; j < 20; j ++) in ftest_0_entry()
362 if (directory_name_A_short[j]) in ftest_0_entry()
364 directory_name_path_short[index++] = directory_name_A_short[j]; in ftest_0_entry()
413 for(j = 0; j < 20; j ++) in ftest_0_entry()
417 if (directory_name_B_short[j]) in ftest_0_entry()
419 directory_name_path_short[index++] = directory_name_B_short[j]; in ftest_0_entry()
468 for(j = 0; j < 20; j ++) in ftest_0_entry()
472 if (directory_name_C_short[j]) in ftest_0_entry()
474 directory_name_path_short[index++] = directory_name_C_short[j]; in ftest_0_entry()
[all …]
Dfilex_fault_tolerant_media_full_test.c105 ULONG i, j; in ftest_0_entry() local
193 j = 0; in ftest_0_entry()
195 while (j < available_bytes) in ftest_0_entry()
203 j = j + sizeof(ULONG); in ftest_0_entry()
210 status = fx_media_space_available(&ram_disk, &j); in ftest_0_entry()
211 return_if_fail( (status == FX_SUCCESS) && (j == 0)); in ftest_0_entry()
220 for (j = 0; j < ram_disk.fx_media_sector_cache_size; j++) in ftest_0_entry()
224 return_if_fail(ram_disk.fx_media_sector_cache[j].fx_cached_sector_valid == 0); in ftest_0_entry()
233 j = 0; in ftest_0_entry()
236 while (j < available_bytes) in ftest_0_entry()
[all …]
Dfilex_fault_tolerant_write_large_data_test.c104 ULONG i, j; in ftest_0_entry() local
117 for (j = 0; j < large_data_buffer_size / sizeof(ULONG); j ++) in ftest_0_entry()
119 ((ULONG*)large_data_buffer)[j] = data_value++; in ftest_0_entry()
259 status = fx_media_space_available(&ram_disk, &j); in ftest_0_entry()
262 if ((status != FX_SUCCESS) || (j != 0)) in ftest_0_entry()
283 for (j = 0; j < ram_disk.fx_media_sector_cache_size; j++) in ftest_0_entry()
287 if (ram_disk.fx_media_sector_cache[j].fx_cached_sector_valid) in ftest_0_entry()
Dfilex_fault_tolerant_delete_large_data_test.c105 ULONG i, j; in ftest_0_entry() local
118 for (j = 0; j < large_data_buffer_size / sizeof(ULONG); j ++) in ftest_0_entry()
120 ((ULONG*)large_data_buffer)[j] = data_value++; in ftest_0_entry()
260 status = fx_media_space_available(&ram_disk, &j); in ftest_0_entry()
263 if ((status != FX_SUCCESS) || (j != 0)) in ftest_0_entry()
284 for (j = 0; j < ram_disk.fx_media_sector_cache_size; j++) in ftest_0_entry()
288 if (ram_disk.fx_media_sector_cache[j].fx_cached_sector_valid) in ftest_0_entry()
Dfilex_media_read_write_sector_test.c101 UINT i, j; in ftest_0_entry() local
405 j = ((UINT)rand() % i); in ftest_0_entry()
406 …status += _fx_utility_logical_sector_write(&ram_disk, accessed_sectors[j], ram_disk.fx_media_memor… in ftest_0_entry()
417 j = ((UINT)rand() % i); in ftest_0_entry()
418 …status += _fx_utility_logical_sector_write(&ram_disk, accessed_sectors[j], ram_disk.fx_media_memor… in ftest_0_entry()
422 j = ((UINT)rand() % i); in ftest_0_entry()
424 … status += _fx_utility_logical_sector_flush(&ram_disk, accessed_sectors[j], 1, FX_TRUE); in ftest_0_entry()
426 …status += _fx_utility_logical_sector_flush(&ram_disk, accessed_sectors[j], 1, FX_FALSE); in ftest_0_entry()
434 j = ((UINT)rand() % 100); in ftest_0_entry()
435 status += _fx_utility_FAT_entry_read(&ram_disk, j+2, &fat_entry); in ftest_0_entry()
[all …]
Dfilex_fault_tolerant_file_random_seek_test.c102 UINT j; in ftest_0_entry() local
119 for (j = 0; j < sizeof(write_buffer); j++) in ftest_0_entry()
121 write_buffer[j] = (CHAR)(rand() & 0xFF); in ftest_0_entry()
122 overwrite_buffer[j] = (CHAR)(rand() & 0xFF); in ftest_0_entry()
221 for (j = 0; j < OVERWRITE_LOOP; j++) in ftest_0_entry()
Dfilex_fault_tolerant_file_seek_test.c103 UINT j; in ftest_0_entry() local
115 for (j = 0; j < sizeof(write_buffer[0]); j++) in ftest_0_entry()
117 write_buffer[0][j] = (CHAR)(rand() & 0xFF); in ftest_0_entry()
118 write_buffer[1][j] = (CHAR)(~write_buffer[0][j] & 0xFF); in ftest_0_entry()
Dfilex_fault_tolerant_write_large_data_fat_interrupt_test.c66 static ULONG i, j; variable
144 for (j = 0; j < large_data_buffer_size / sizeof(ULONG); j ++) in ftest_0_entry()
146 ((ULONG*)large_data_buffer)[j] = data_value++; in ftest_0_entry()
319 status = fx_media_space_available(&ram_disk, &j); in ftest_0_entry()
324 if ((status != FX_SUCCESS) || (j != available_bytes)) in ftest_0_entry()
333 if ((status != FX_SUCCESS) || (j != 0)) in ftest_0_entry()
Dfilex_fault_tolerant_enable_test.c101 UINT i = 0, j; in ftest_0_entry() local
262 for (j = 0; j < clusters; j++) in ftest_0_entry()
264 status = _fx_utility_FAT_entry_read(&ram_disk, start_cluster + j, &value); in ftest_0_entry()
267 if (j < (clusters - 1)) in ftest_0_entry()
269 return_if_fail (value == (start_cluster + j + 1)); in ftest_0_entry()
Dfilex_file_allocate_test.c112 ULONG i, j; in ftest_0_entry() local
125 for (j = 0; j < large_data_buffer_size / sizeof(ULONG); j ++) in ftest_0_entry()
127 ((ULONG*)large_data_buffer)[j] = data_value++; in ftest_0_entry()
Dfilex_fault_tolerant_write_large_data_interrupt_test.c65 static ULONG i, j; variable
142 for (j = 0; j < large_data_buffer_size / sizeof(ULONG); j ++) in ftest_0_entry()
144 ((ULONG*)large_data_buffer)[j] = data_value++; in ftest_0_entry()
317 status = fx_media_space_available(&ram_disk, &j); in ftest_0_entry()
320 if ((status != FX_SUCCESS) || (j != available_bytes)) in ftest_0_entry()
Dfilex_fault_tolerant_write_large_data_undo_log_interrupt_test.c65 static ULONG i, j; variable
143 for (j = 0; j < large_data_buffer_size / sizeof(ULONG); j ++) in ftest_0_entry()
145 ((ULONG*)large_data_buffer)[j] = data_value++; in ftest_0_entry()
318 status = fx_media_space_available(&ram_disk, &j); in ftest_0_entry()
321 if ((status != FX_SUCCESS) || (j != available_bytes)) in ftest_0_entry()

12