Home
last modified time | relevance | path

Searched refs:fx_media_bytes_per_sector (Results 1 – 25 of 54) sorted by relevance

123

/FileX-v6.4.1/common/src/
Dfx_ram_driver.c212 media_ptr -> fx_media_bytes_per_sector); in _fx_ram_driver()
217 media_ptr -> fx_media_bytes_per_sector); in _fx_ram_driver()
233 media_ptr -> fx_media_bytes_per_sector); in _fx_ram_driver()
238 media_ptr -> fx_media_bytes_per_sector); in _fx_ram_driver()
353 media_ptr -> fx_media_bytes_per_sector); in _fx_ram_driver()
Dfx_file_extended_seek.c130 bytes_per_cluster = ((ULONG)media_ptr -> fx_media_bytes_per_sector) * in _fx_file_extended_seek()
275 … ((bytes_remaining - 1) / (ULONG)media_ptr -> fx_media_bytes_per_sector)); in _fx_file_extended_seek()
276 …elative_sector = (UINT)(((bytes_remaining - 1) / (ULONG)media_ptr -> fx_media_bytes_per_sector)); in _fx_file_extended_seek()
278 file_ptr -> fx_file_current_logical_offset = media_ptr -> fx_media_bytes_per_sector; in _fx_file_extended_seek()
287 … (bytes_remaining / (ULONG)media_ptr -> fx_media_bytes_per_sector)); in _fx_file_extended_seek()
288 …rent_relative_sector = (UINT)((bytes_remaining / (ULONG)media_ptr -> fx_media_bytes_per_sector)); in _fx_file_extended_seek()
290 …ent_logical_offset = (ULONG)(bytes_remaining % ((ULONG)media_ptr -> fx_media_bytes_per_sector)); in _fx_file_extended_seek()
Dfx_utility_FAT_entry_read.c241 FAT_sector = (byte_offset / media_ptr -> fx_media_bytes_per_sector) + in _fx_utility_FAT_entry_read()
258 media_ptr -> fx_media_bytes_per_sector); in _fx_utility_FAT_entry_read()
276 if (byte_offset == (ULONG)(media_ptr -> fx_media_bytes_per_sector - 1)) in _fx_utility_FAT_entry_read()
311 if (byte_offset == (ULONG)(media_ptr -> fx_media_bytes_per_sector - 1)) in _fx_utility_FAT_entry_read()
354 FAT_sector = (byte_offset / media_ptr -> fx_media_bytes_per_sector) + in _fx_utility_FAT_entry_read()
372 media_ptr -> fx_media_bytes_per_sector); in _fx_utility_FAT_entry_read()
389 FAT_sector = (byte_offset / media_ptr -> fx_media_bytes_per_sector) + in _fx_utility_FAT_entry_read()
393 byte_offset = (byte_offset % media_ptr -> fx_media_bytes_per_sector); in _fx_utility_FAT_entry_read()
Dfx_file_read.c163 (bytes_remaining < media_ptr -> fx_media_bytes_per_sector)) in _fx_file_read()
185 copy_bytes = media_ptr -> fx_media_bytes_per_sector - in _fx_file_read()
220 sectors = (UINT)(bytes_remaining / media_ptr -> fx_media_bytes_per_sector); in _fx_file_read()
285 …ia_ptr -> fx_media_memory_buffer, destination_ptr, media_ptr -> fx_media_bytes_per_sector); /* Use… in _fx_file_read()
331 media_ptr -> fx_media_bytes_per_sector; in _fx_file_read()
337 (((ULONG)media_ptr -> fx_media_bytes_per_sector) * sectors); in _fx_file_read()
341 (((ULONG)media_ptr -> fx_media_bytes_per_sector) * sectors); in _fx_file_read()
348 media_ptr -> fx_media_bytes_per_sector) in _fx_file_read()
Dfx_utility_FAT_flush.c124 FAT_sector = (byte_offset / media_ptr -> fx_media_bytes_per_sector) + in _fx_utility_FAT_flush()
198 sector = (byte_offset / media_ptr -> fx_media_bytes_per_sector) + in _fx_utility_FAT_flush()
215 media_ptr -> fx_media_bytes_per_sector); in _fx_utility_FAT_flush()
218 if (byte_offset == (ULONG)(media_ptr -> fx_media_bytes_per_sector - 1)) in _fx_utility_FAT_flush()
340 FAT_sector = (byte_offset / media_ptr -> fx_media_bytes_per_sector) + in _fx_utility_FAT_flush()
375 sector = (byte_offset / media_ptr -> fx_media_bytes_per_sector) + in _fx_utility_FAT_flush()
389 media_ptr -> fx_media_bytes_per_sector); in _fx_utility_FAT_flush()
439 FAT_sector = (byte_offset / media_ptr -> fx_media_bytes_per_sector) + in _fx_utility_FAT_flush()
474 sector = (byte_offset / media_ptr -> fx_media_bytes_per_sector) + in _fx_utility_FAT_flush()
488 media_ptr -> fx_media_bytes_per_sector); in _fx_utility_FAT_flush()
Dfx_file_open.c296 bytes_per_cluster = ((ULONG)media_ptr -> fx_media_bytes_per_sector) * in _fx_file_open()
427 bytes_available = ((ULONG64)media_ptr -> fx_media_bytes_per_sector) * in _fx_file_open()
484 ((ULONG)(((bytes_remaining - 1) / (ULONG)media_ptr -> fx_media_bytes_per_sector))); in _fx_file_open()
485 …lative_sector = (ULONG)(((bytes_remaining - 1) / (ULONG)media_ptr -> fx_media_bytes_per_sector)); in _fx_file_open()
487 file_ptr -> fx_file_current_logical_offset = media_ptr -> fx_media_bytes_per_sector; in _fx_file_open()
496 ((ULONG)((bytes_remaining / (ULONG)media_ptr -> fx_media_bytes_per_sector))); in _fx_file_open()
497 …ent_relative_sector = (ULONG)((bytes_remaining / (ULONG)media_ptr -> fx_media_bytes_per_sector)); in _fx_file_open()
499 …rrent_logical_offset = (ULONG)bytes_remaining % ((ULONG)media_ptr -> fx_media_bytes_per_sector); in _fx_file_open()
Dfx_file_extended_truncate_release.c179 bytes_per_cluster = ((ULONG)media_ptr -> fx_media_bytes_per_sector) * in _fx_file_extended_truncate_release()
268 bytes_per_cluster = ((ULONG)media_ptr -> fx_media_bytes_per_sector) * in _fx_file_extended_truncate_release()
352 (bytes_remaining / (ULONG)media_ptr -> fx_media_bytes_per_sector); in _fx_file_extended_truncate_release()
353 …rent_relative_sector = (UINT)((bytes_remaining / (ULONG)media_ptr -> fx_media_bytes_per_sector)); in _fx_file_extended_truncate_release()
355 …rrent_logical_offset = (ULONG)bytes_remaining % ((ULONG)media_ptr -> fx_media_bytes_per_sector); in _fx_file_extended_truncate_release()
630 bytes_per_cluster = ((ULONG)media_ptr -> fx_media_bytes_per_sector) * in _fx_file_extended_truncate_release()
714 (bytes_remaining / (ULONG)media_ptr -> fx_media_bytes_per_sector); in _fx_file_extended_truncate_release()
715 …rent_relative_sector = (UINT)((bytes_remaining / (ULONG)media_ptr -> fx_media_bytes_per_sector)); in _fx_file_extended_truncate_release()
717 …rrent_logical_offset = (ULONG)bytes_remaining % ((ULONG)media_ptr -> fx_media_bytes_per_sector); in _fx_file_extended_truncate_release()
Dfx_file_extended_truncate.c217 bytes_per_cluster = ((ULONG)media_ptr -> fx_media_bytes_per_sector) * in _fx_file_extended_truncate()
286 (bytes_remaining / (ULONG)media_ptr -> fx_media_bytes_per_sector); in _fx_file_extended_truncate()
287 …rent_relative_sector = (UINT)((bytes_remaining / (ULONG)media_ptr -> fx_media_bytes_per_sector)); in _fx_file_extended_truncate()
289 …rrent_logical_offset = (ULONG)bytes_remaining % ((ULONG)media_ptr -> fx_media_bytes_per_sector); in _fx_file_extended_truncate()
Dfx_utility_logical_sector_read.c394 …y(media_ptr -> fx_media_memory_buffer, buffer_ptr, media_ptr -> fx_media_bytes_per_sector); /* Use… in _fx_utility_logical_sector_read()
397 buffer_ptr = ((UCHAR *)buffer_ptr) + media_ptr -> fx_media_bytes_per_sector; in _fx_utility_logical_sector_read()
421 … ((UCHAR *)buffer_ptr) + ((sectors - 1) * media_ptr -> fx_media_bytes_per_sector), in _fx_utility_logical_sector_read()
422 media_ptr -> fx_media_bytes_per_sector); in _fx_utility_logical_sector_read()
630 media_ptr -> fx_media_bytes_per_sector); in _fx_utility_logical_sector_read()
633 buffer_ptr = ((UCHAR *)buffer_ptr) + media_ptr -> fx_media_bytes_per_sector; in _fx_utility_logical_sector_read()
Dfx_fault_tolerant_read_directory_sector.c147 media_ptr -> fx_media_bytes_per_sector; in _fx_fault_tolerant_read_directory_sector()
154 if ((copy_offset + copy_size) > media_ptr -> fx_media_bytes_per_sector) in _fx_fault_tolerant_read_directory_sector()
Dfx_media_boot_info_extract.c127 …media_ptr -> fx_media_bytes_per_sector = _fx_utility_16_unsigned_read(&boot_sector[FX_BYTES_SEC… in _fx_media_boot_info_extract()
128 if (media_ptr -> fx_media_bytes_per_sector == 0) in _fx_media_boot_info_extract()
Dfx_file_write.c207 bytes_per_cluster = ((ULONG)media_ptr -> fx_media_bytes_per_sector) * in _fx_file_write()
246 … else if (((file_ptr -> fx_file_current_file_offset / media_ptr -> fx_media_bytes_per_sector) == in _fx_file_write()
247 …((file_ptr -> fx_file_current_file_offset + size - 1) / media_ptr -> fx_media_bytes_per_sector)) && in _fx_file_write()
695 media_ptr -> fx_media_bytes_per_sector)) in _fx_file_write()
841 media_ptr -> fx_media_bytes_per_sector) in _fx_file_write()
921 (bytes_remaining < media_ptr -> fx_media_bytes_per_sector)) in _fx_file_write()
984 copy_bytes = media_ptr -> fx_media_bytes_per_sector - in _fx_file_write()
1036 sectors = (UINT)(bytes_remaining / media_ptr -> fx_media_bytes_per_sector); in _fx_file_write()
1121 media_ptr -> fx_media_bytes_per_sector; in _fx_file_write()
1127 (((ULONG)media_ptr -> fx_media_bytes_per_sector) * sectors); in _fx_file_write()
[all …]
Dfx_unicode_directory_entry_read.c115 bytes_per_cluster = ((ULONG)media_ptr -> fx_media_bytes_per_sector) * in _fx_unicode_directory_entry_read()
133 relative_sector = (UINT)(byte_offset / ((ULONG)media_ptr -> fx_media_bytes_per_sector)); in _fx_unicode_directory_entry_read()
230 byte_offset = byte_offset % media_ptr -> fx_media_bytes_per_sector; in _fx_unicode_directory_entry_read()
238 logical_sector = (byte_offset / media_ptr -> fx_media_bytes_per_sector) + in _fx_unicode_directory_entry_read()
260 media_ptr -> fx_media_bytes_per_sector); in _fx_unicode_directory_entry_read()
427 if (byte_offset + FX_DIR_ENTRY_SIZE >= media_ptr -> fx_media_bytes_per_sector) in _fx_unicode_directory_entry_read()
Dfx_directory_entry_read.c122 bytes_per_cluster = ((ULONG)media_ptr -> fx_media_bytes_per_sector) * in _fx_directory_entry_read()
140 relative_sector = (UINT)(byte_offset / ((ULONG)media_ptr -> fx_media_bytes_per_sector)); in _fx_directory_entry_read()
237 byte_offset = byte_offset % media_ptr -> fx_media_bytes_per_sector; in _fx_directory_entry_read()
245 logical_sector = (byte_offset / media_ptr -> fx_media_bytes_per_sector) + in _fx_directory_entry_read()
267 media_ptr -> fx_media_bytes_per_sector); in _fx_directory_entry_read()
402 if (byte_offset + FX_DIR_ENTRY_SIZE >= media_ptr -> fx_media_bytes_per_sector) in _fx_directory_entry_read()
Dfx_fault_tolerant_cleanup_FAT_chain.c90 FAT_sector = (byte_offset / media_ptr -> fx_media_bytes_per_sector) + in _fx_utility_FAT_entry_multiple_sectors_check()
96 media_ptr -> fx_media_bytes_per_sector); in _fx_utility_FAT_entry_multiple_sectors_check()
99 if (byte_offset == (ULONG)(media_ptr -> fx_media_bytes_per_sector - 1)) in _fx_utility_FAT_entry_multiple_sectors_check()
Dfx_fault_tolerant_transaction_end.c155 offset = media_ptr -> fx_media_bytes_per_sector; in _fx_fault_tolerant_transaction_end()
172 offset += media_ptr -> fx_media_bytes_per_sector; in _fx_fault_tolerant_transaction_end()
Dfx_utility_FAT_sector_get.c104 FAT_sector = (byte_offset / media_ptr -> fx_media_bytes_per_sector) + in _fx_utility_FAT_sector_get()
Dfx_fault_tolerant_read_log_file.c77 …= media_ptr -> fx_media_fault_tolerant_memory_buffer_size / media_ptr -> fx_media_bytes_per_sector; in _fx_fault_tolerant_read_log_file()
Dfx_media_open.c346 if (memory_size < media_ptr -> fx_media_bytes_per_sector)
366 media_ptr -> fx_media_sector_cache_size = memory_size / media_ptr -> fx_media_bytes_per_sector;
400 memory_ptr = (VOID *)(((UCHAR *)memory_ptr) + media_ptr -> fx_media_bytes_per_sector);
473 media_ptr -> fx_media_bytes_per_sector - 1) /
474 media_ptr -> fx_media_bytes_per_sector;
593 … media_ptr -> fx_media_bytes_per_sector) / FX_DIR_ENTRY_SIZE;
843 bytes_in_buffer = (media_ptr -> fx_media_bytes_per_sector * FAT_read_sectors);
Dfx_media_extended_space_available.c100 …bytes_per_cluster = media_ptr -> fx_media_bytes_per_sector * media_ptr -> fx_media_sectors_per_cl… in _fx_media_extended_space_available()
Dfx_fault_tolerant_write_log_file.c91 … media_ptr -> fx_media_bytes_per_sector * relative_sector, in _fx_fault_tolerant_write_log_file()
Dfx_media_read.c116 …trace_event, trace_timestamp, FX_TRACE_MEDIA_READ, 0, 0, 0, media_ptr -> fx_media_bytes_per_sector) in _fx_media_read()
/FileX-v6.4.1/test/regression_test/
Dfx_ram_driver_test.c316 …r_logical_sector + media_ptr -> fx_media_hidden_sectors) * media_ptr -> fx_media_bytes_per_sector); in _fx_ram_driver()
320 … media_ptr -> fx_media_driver_sectors * media_ptr -> fx_media_bytes_per_sector); in _fx_ram_driver()
336 …r_logical_sector + media_ptr -> fx_media_hidden_sectors) * media_ptr -> fx_media_bytes_per_sector); in _fx_ram_driver()
357 … media_ptr -> fx_media_driver_sectors * media_ptr -> fx_media_bytes_per_sector); in _fx_ram_driver()
363 … media_size = media_ptr -> fx_media_total_sectors * media_ptr -> fx_media_bytes_per_sector; in _fx_ram_driver()
373 …r_logical_sector + media_ptr -> fx_media_hidden_sectors) * media_ptr -> fx_media_bytes_per_sector); in _fx_ram_driver()
377 … media_ptr -> fx_media_driver_sectors * media_ptr -> fx_media_bytes_per_sector); in _fx_ram_driver()
385 bytes_per_block = media_ptr -> fx_media_bytes_per_sector * SECTORS_PER_BLOCK; in _fx_ram_driver()
390 …l_sector + media_ptr -> fx_media_hidden_sectors) * media_ptr -> fx_media_bytes_per_sector); … in _fx_ram_driver()
391 … total_bytes = media_ptr -> fx_media_driver_sectors * media_ptr -> fx_media_bytes_per_sector; in _fx_ram_driver()
[all …]
Dfilex_fault_tolerant_enable_test.c186 _fx_utility_memory_copy(source_buffer, buffer, ram_disk.fx_media_bytes_per_sector); in ftest_0_entry()
250 _fx_utility_memory_copy(source_buffer, buffer, ram_disk.fx_media_bytes_per_sector); in ftest_0_entry()
257 …x_media_reserved_sectors + ram_disk.fx_media_hidden_sectors) * ram_disk.fx_media_bytes_per_sector); in ftest_0_entry()
259 … bytes_per_cluster = ram_disk.fx_media_bytes_per_sector * ram_disk.fx_media_sectors_per_cluster; in ftest_0_entry()
281 …r_info) + ((start_sector + ram_disk.fx_media_hidden_sectors) * ram_disk.fx_media_bytes_per_sector); in ftest_0_entry()
284 …r, buffer, 1 * ram_disk.fx_media_sectors_per_cluster * ram_disk.fx_media_bytes_per_sector); in ftest_0_entry()
Dfilex_fault_tolerant_file_truncate_release_undo_log_interrupt_test.c492 … &ram_disk_memory_large[ram_disk.fx_media_reserved_sectors * ram_disk.fx_media_bytes_per_sector], in ftest_0_entry()
493 …edia_data_sector_start - ram_disk.fx_media_reserved_sectors) * ram_disk.fx_media_bytes_per_sector)) in ftest_0_entry()
506 …arge[(sector_check_index + ram_disk.fx_media_hidden_sectors) * ram_disk.fx_media_bytes_per_sector], in ftest_0_entry()
507 ram_disk.fx_media_bytes_per_sector)) in ftest_0_entry()
716 … &ram_disk_memory_large[ram_disk.fx_media_reserved_sectors * ram_disk.fx_media_bytes_per_sector], in ftest_1_entry()
717 …edia_data_sector_start - ram_disk.fx_media_reserved_sectors) * ram_disk.fx_media_bytes_per_sector); in ftest_1_entry()
721 …arge[(sector_check_index + ram_disk.fx_media_hidden_sectors) * ram_disk.fx_media_bytes_per_sector], in ftest_1_entry()
722 ram_disk.fx_media_bytes_per_sector); in ftest_1_entry()

123