Home
last modified time | relevance | path

Searched refs:logical_sector (Results 1 – 20 of 20) sorted by relevance

/FileX-v6.2.1/test/regression_test/
Dfilex_media_read_write_sector_test.c100 ULONG64 logical_sector; in ftest_0_entry() local
197 logical_sector = ram_disk.fx_media_total_sectors; in ftest_0_entry()
198 …status = _fx_utility_logical_sector_read(&ram_disk, logical_sector, ram_disk.fx_media_memory_buffe… in ftest_0_entry()
202 logical_sector = 0; in ftest_0_entry()
203 …status = _fx_utility_logical_sector_write(&ram_disk, logical_sector, ram_disk.fx_media_memory_buf… in ftest_0_entry()
207 logical_sector = 0xFFFFFFFF; in ftest_0_entry()
208 …status = _fx_utility_logical_sector_write(&ram_disk, logical_sector, ram_disk.fx_media_memory_buf… in ftest_0_entry()
212 logical_sector = ram_disk.fx_media_total_sectors; in ftest_0_entry()
213 …status = _fx_utility_logical_sector_write(&ram_disk, logical_sector, ram_disk.fx_media_memory_buf… in ftest_0_entry()
217 logical_sector = 0; in ftest_0_entry()
[all …]
/FileX-v6.2.1/common/src/
Dfx_utility_logical_sector_write.c95 UINT _fx_utility_logical_sector_write(FX_MEDIA *media_ptr, ULONG64 logical_sector, in _fx_utility_logical_sector_write() argument
137 …index = (ULONG)(logical_sector & media_ptr -> fx_media_sector_cache_hash_mask) * FX_SECTOR_CACHE_… in _fx_utility_logical_sector_write()
148 …if ((cache_entry -> fx_cached_sector_valid) && (cache_entry -> fx_cached_sector == logical_sector)) in _fx_utility_logical_sector_write()
168 …if ((cache_entry -> fx_cached_sector_valid) && (cache_entry -> fx_cached_sector == logical_sector)) in _fx_utility_logical_sector_write()
262 media_ptr -> fx_media_driver_logical_sector = logical_sector; in _fx_utility_logical_sector_write()
264 media_ptr -> fx_media_driver_logical_sector = (ULONG)logical_sector; in _fx_utility_logical_sector_write()
275 …X_TRACE_IN_LINE_INSERT(FX_TRACE_INTERNAL_IO_DRIVER_WRITE, media_ptr, logical_sector, 1, cache_entr… in _fx_utility_logical_sector_write()
311 if ((logical_sector == 0) || (logical_sector == ((ULONG)0xFFFFFFFF))) in _fx_utility_logical_sector_write()
317 if ((logical_sector + sectors - 1) >= media_ptr -> fx_media_total_sectors) in _fx_utility_logical_sector_write()
335 media_ptr -> fx_media_driver_logical_sector = logical_sector; in _fx_utility_logical_sector_write()
[all …]
Dfx_utility_logical_sector_read.c104 UINT _fx_utility_logical_sector_read(FX_MEDIA *media_ptr, ULONG64 logical_sector, in _fx_utility_logical_sector_read() argument
144 …cache_entry = _fx_utility_logical_sector_cache_entry_read(media_ptr, logical_sector, &previous_cac… in _fx_utility_logical_sector_read()
165 …FX_TRACE_IN_LINE_INSERT(FX_TRACE_INTERNAL_LOG_SECTOR_CACHE_MISS, media_ptr, logical_sector, media_… in _fx_utility_logical_sector_read()
169 …FX_TRACE_IN_LINE_INSERT(FX_TRACE_INTERNAL_LOG_SECTOR_CACHE_MISS, media_ptr, logical_sector, 0, med… in _fx_utility_logical_sector_read()
237 if (logical_sector >= media_ptr -> fx_media_total_sectors) in _fx_utility_logical_sector_read()
253 media_ptr -> fx_media_driver_logical_sector = logical_sector; in _fx_utility_logical_sector_read()
255 media_ptr -> fx_media_driver_logical_sector = (ULONG)logical_sector; in _fx_utility_logical_sector_read()
269 …FX_TRACE_IN_LINE_INSERT(FX_TRACE_INTERNAL_IO_DRIVER_READ, media_ptr, logical_sector, 1, cache_entr… in _fx_utility_logical_sector_read()
282 cache_entry -> fx_cached_sector = logical_sector; in _fx_utility_logical_sector_read()
317 …status = _fx_fault_tolerant_read_directory_sector(media_ptr, logical_sector, cache_entry -> fx_cac… in _fx_utility_logical_sector_read()
[all …]
Dfx_unicode_directory_entry_change.c87 ULONG logical_sector, relative_sector; in _fx_unicode_directory_entry_change() local
108 logical_sector = (ULONG)entry_ptr -> fx_dir_entry_log_sector; in _fx_unicode_directory_entry_change()
111 if (logical_sector >= (ULONG)(media_ptr -> fx_media_data_sector_start)) in _fx_unicode_directory_entry_change()
115 …cluster = (logical_sector - media_ptr -> fx_media_data_sector_start) / (media_ptr -> fx_media_sec… in _fx_unicode_directory_entry_change()
118 relative_sector = logical_sector - (((ULONG)media_ptr -> fx_media_data_sector_start) + in _fx_unicode_directory_entry_change()
234 …status = _fx_fault_tolerant_add_dir_log(media_ptr, (ULONG64) logical_sector, changed_offset, chang… in _fx_unicode_directory_entry_change()
240 status = _fx_utility_logical_sector_write(media_ptr, (ULONG64) logical_sector, in _fx_unicode_directory_entry_change()
258 _fx_utility_logical_sector_write(media_ptr, (ULONG64) logical_sector, in _fx_unicode_directory_entry_change()
263 if (logical_sector >= (ULONG)(media_ptr -> fx_media_data_sector_start)) in _fx_unicode_directory_entry_change()
273 logical_sector++; in _fx_unicode_directory_entry_change()
[all …]
Dfx_directory_entry_write.c93 ULONG logical_sector, relative_sector; in _fx_directory_entry_write() local
139 logical_sector = (ULONG)entry_ptr -> fx_dir_entry_log_sector; in _fx_directory_entry_write()
142 if (logical_sector >= (ULONG)(media_ptr -> fx_media_data_sector_start)) in _fx_directory_entry_write()
146 …cluster = (logical_sector - media_ptr -> fx_media_data_sector_start) / (media_ptr -> fx_media_sec… in _fx_directory_entry_write()
149 relative_sector = logical_sector - (((ULONG)media_ptr -> fx_media_data_sector_start) + in _fx_directory_entry_write()
602 …status = _fx_fault_tolerant_add_dir_log(media_ptr, logical_sector, changed_offset, changed_ptr, ch… in _fx_directory_entry_write()
609 status = _fx_utility_logical_sector_write(media_ptr, (ULONG64) logical_sector, in _fx_directory_entry_write()
624 if (logical_sector >= (ULONG)(media_ptr -> fx_media_data_sector_start)) in _fx_directory_entry_write()
634 logical_sector++; in _fx_directory_entry_write()
671 logical_sector = ((ULONG)media_ptr -> fx_media_data_sector_start) + in _fx_directory_entry_write()
[all …]
Dfx_media_read.c75 UINT _fx_media_read(FX_MEDIA *media_ptr, ULONG logical_sector, VOID *buffer_ptr) in _fx_media_read() argument
101 …FX_TRACE_IN_LINE_INSERT(FX_TRACE_MEDIA_READ, media_ptr, logical_sector, buffer_ptr, 0, FX_TRACE_ME… in _fx_media_read()
107 …status = _fx_utility_logical_sector_read(media_ptr, (ULONG64) logical_sector, buffer_ptr, ((ULONG… in _fx_media_read()
Dfx_fault_tolerant_read_directory_sector.c79 UINT _fx_fault_tolerant_read_directory_sector(FX_MEDIA *media_ptr, ULONG64 logical_sector, in _fx_fault_tolerant_read_directory_sector() argument
142 if ((log_sector >= logical_sector) && (log_sector < logical_sector + sectors)) in _fx_fault_tolerant_read_directory_sector()
146 current_buffer_ptr = ((UCHAR *)buffer_ptr) + (log_sector - logical_sector) * in _fx_fault_tolerant_read_directory_sector()
Dfx_directory_create.c106 ULONG64 logical_sector; in _fx_directory_create() local
379 logical_sector = ((ULONG) media_ptr -> fx_media_data_sector_start) + in _fx_directory_create()
388 status = _fx_utility_logical_sector_read(media_ptr, logical_sector, in _fx_directory_create()
427 status = _fx_utility_logical_sector_write(media_ptr, logical_sector, in _fx_directory_create()
443 status = _fx_utility_logical_sector_flush(media_ptr, logical_sector, sectors, FX_TRUE); in _fx_directory_create()
473 …status = _fx_utility_logical_sector_flush(media_ptr, logical_sector + 1, ((ULONG64)(sectors - 1))… in _fx_directory_create()
507 media_ptr -> fx_media_driver_logical_sector = logical_sector + ((ULONG)sectors); in _fx_directory_create()
509 … media_ptr -> fx_media_driver_logical_sector = (ULONG)logical_sector + ((ULONG)sectors); in _fx_directory_create()
518 …IN_LINE_INSERT(FX_TRACE_INTERNAL_IO_DRIVER_WRITE, media_ptr, ((ULONG)logical_sector) + ((ULONG)sec… in _fx_directory_create()
567 sub_dir_entry.fx_dir_entry_log_sector = logical_sector; in _fx_directory_create()
[all …]
Dfx_media_write.c75 UINT _fx_media_write(FX_MEDIA *media_ptr, ULONG logical_sector, VOID *buffer_ptr) in _fx_media_write() argument
101 …FX_TRACE_IN_LINE_INSERT(FX_TRACE_MEDIA_WRITE, media_ptr, logical_sector, buffer_ptr, 0, FX_TRACE_M… in _fx_media_write()
118 …status = _fx_utility_logical_sector_write(media_ptr, (ULONG64) logical_sector, buffer_ptr, ((ULON… in _fx_media_write()
Dfx_unicode_directory_entry_read.c90 ULONG logical_sector; in _fx_unicode_directory_entry_read() local
212 logical_sector = ((ULONG)media_ptr -> fx_media_data_sector_start) + in _fx_unicode_directory_entry_read()
218 status = _fx_utility_logical_sector_read(media_ptr, (ULONG64) logical_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()
242 status = _fx_utility_logical_sector_read(media_ptr, (ULONG64) logical_sector, in _fx_unicode_directory_entry_read()
259 ((logical_sector - (ULONG)media_ptr -> fx_media_root_sector_start) * in _fx_unicode_directory_entry_read()
267 destination_ptr -> fx_dir_entry_log_sector = logical_sector; in _fx_unicode_directory_entry_read()
441 logical_sector++; in _fx_unicode_directory_entry_read()
481 logical_sector = ((ULONG)media_ptr -> fx_media_data_sector_start) + in _fx_unicode_directory_entry_read()
492 logical_sector++; in _fx_unicode_directory_entry_read()
[all …]
Dfx_directory_entry_read.c92 ULONG logical_sector; in _fx_directory_entry_read() local
219 logical_sector = ((ULONG)media_ptr -> fx_media_data_sector_start) + in _fx_directory_entry_read()
225 status = _fx_utility_logical_sector_read(media_ptr, (ULONG64) logical_sector, in _fx_directory_entry_read()
245 logical_sector = (byte_offset / media_ptr -> fx_media_bytes_per_sector) + in _fx_directory_entry_read()
249 status = _fx_utility_logical_sector_read(media_ptr, (ULONG64) logical_sector, in _fx_directory_entry_read()
266 ((logical_sector - (ULONG)media_ptr -> fx_media_root_sector_start) * in _fx_directory_entry_read()
274 destination_ptr -> fx_dir_entry_log_sector = logical_sector; in _fx_directory_entry_read()
416 logical_sector++; in _fx_directory_entry_read()
456 logical_sector = ((ULONG)media_ptr -> fx_media_data_sector_start) + in _fx_directory_entry_read()
467 logical_sector++; in _fx_directory_entry_read()
[all …]
Dfxe_media_write.c75 UINT _fxe_media_write(FX_MEDIA *media_ptr, ULONG logical_sector, VOID *buffer_ptr) in _fxe_media_write() argument
91 status = _fx_media_write(media_ptr, logical_sector, buffer_ptr); in _fxe_media_write()
Dfxe_media_read.c74 UINT _fxe_media_read(FX_MEDIA *media_ptr, ULONG logical_sector, VOID *buffer_ptr) in _fxe_media_read() argument
90 status = _fx_media_read(media_ptr, logical_sector, buffer_ptr); in _fxe_media_read()
Dfx_utility_logical_sector_cache_entry_read.c82 …D_SECTOR *_fx_utility_logical_sector_cache_entry_read(FX_MEDIA *media_ptr, ULONG64 logical_sector, in _fx_utility_logical_sector_cache_entry_read() argument
101 index = (ULONG)(logical_sector & media_ptr -> fx_media_sector_cache_hash_mask); in _fx_utility_logical_sector_cache_entry_read()
114 …if ((cache_entry -> fx_cached_sector_valid) && (cache_entry -> fx_cached_sector == logical_sector)) in _fx_utility_logical_sector_cache_entry_read()
129 …entry + 1) -> fx_cached_sector_valid) && ((cache_entry + 1) -> fx_cached_sector == logical_sector)) in _fx_utility_logical_sector_cache_entry_read()
165 …entry + 2) -> fx_cached_sector_valid) && ((cache_entry + 2) -> fx_cached_sector == logical_sector)) in _fx_utility_logical_sector_cache_entry_read()
206 …entry + 3) -> fx_cached_sector_valid) && ((cache_entry + 3) -> fx_cached_sector == logical_sector)) in _fx_utility_logical_sector_cache_entry_read()
303 …if ((cache_entry -> fx_cached_sector_valid) && (cache_entry -> fx_cached_sector == logical_sector)) in _fx_utility_logical_sector_cache_entry_read()
353 FX_PARAMETER_NOT_USED(logical_sector); in _fx_utility_logical_sector_cache_entry_read()
Dfx_fault_tolerant_add_dir_log.c78 UINT _fx_fault_tolerant_add_dir_log(FX_MEDIA *media_ptr, ULONG64 logical_sector, ULONG offset, in _fx_fault_tolerant_add_dir_log() argument
116 …x_utility_64_unsigned_write((UCHAR *)&dir_log -> fx_fault_tolerant_dir_log_sector, logical_sector); in _fx_fault_tolerant_add_dir_log()
Dfx_directory_free_search.c99 ULONG logical_sector; in _fx_directory_free_search() local
510 logical_sector = ((ULONG) media_ptr -> fx_media_data_sector_start) + in _fx_directory_free_search()
518 status = _fx_utility_logical_sector_read(media_ptr, (ULONG64) logical_sector, in _fx_directory_free_search()
546 status = _fx_utility_logical_sector_write(media_ptr, (ULONG64) logical_sector, in _fx_directory_free_search()
566 …status = _fx_utility_logical_sector_flush(media_ptr, (ULONG64) (logical_sector + 1), (ULONG64) (s… in _fx_directory_free_search()
591 … media_ptr -> fx_media_driver_logical_sector = (ULONG)logical_sector + ((ULONG)sectors); in _fx_directory_free_search()
599 …IN_LINE_INSERT(FX_TRACE_INTERNAL_IO_DRIVER_WRITE, media_ptr, ((ULONG)logical_sector) + ((ULONG)sec… in _fx_directory_free_search()
/FileX-v6.2.1/common/inc/
Dfx_utility.h64 …*_fx_utility_logical_sector_cache_entry_read(FX_MEDIA *media_ptr, ULONG64 logical_sector, FX_CACHE…
65 UINT _fx_utility_logical_sector_read(FX_MEDIA *media_ptr, ULONG64 logical_sector,
67 UINT _fx_utility_logical_sector_write(FX_MEDIA *media_ptr, ULONG64 logical_sector,
Dfx_media.h67 UINT _fx_media_read(FX_MEDIA *media_ptr, ULONG logical_sector, VOID *buffer_ptr);
72 UINT _fx_media_write(FX_MEDIA *media_ptr, ULONG logical_sector, VOID *buffer_ptr);
90 UINT _fxe_media_read(FX_MEDIA *media_ptr, ULONG logical_sector, VOID *buffer_ptr);
95 UINT _fxe_media_write(FX_MEDIA *media_ptr, ULONG logical_sector, VOID *buffer_ptr);
Dfx_fault_tolerant.h368 UINT _fx_fault_tolerant_add_dir_log(FX_MEDIA *media_ptr, ULONG64 logical_sector, ULONG offset,
379 UINT _fx_fault_tolerant_read_directory_sector(FX_MEDIA *media_ptr, ULONG64 logical_sector,
Dfx_api.h1474 UINT fx_media_read(FX_MEDIA *media_ptr, ULONG logical_sector, VOID *buffer_ptr);
1479 UINT fx_media_write(FX_MEDIA *media_ptr, ULONG logical_sector, VOID *buffer_ptr);