Home
last modified time | relevance | path

Searched refs:cache_entry (Results 1 – 6 of 6) sorted by relevance

/FileX-v6.2.1/common/src/
Dfx_utility_logical_sector_cache_entry_read.c87 FX_CACHED_SECTOR *cache_entry; in _fx_utility_logical_sector_cache_entry_read() local
110 cache_entry = &(media_ptr -> fx_media_sector_cache[index]); 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()
119 media_ptr -> fx_media_memory_buffer = cache_entry -> fx_cached_sector_memory_buffer; in _fx_utility_logical_sector_cache_entry_read()
129 …else if (((cache_entry + 1) -> fx_cached_sector_valid) && ((cache_entry + 1) -> fx_cached_sector =… in _fx_utility_logical_sector_cache_entry_read()
134 … media_ptr -> fx_media_memory_buffer = (cache_entry + 1) -> fx_cached_sector_memory_buffer; in _fx_utility_logical_sector_cache_entry_read()
144 …temp_storage.fx_cached_sector_memory_buffer = (cache_entry) -> fx_cached_sector_memory_b… in _fx_utility_logical_sector_cache_entry_read()
145 … temp_storage.fx_cached_sector = (cache_entry) -> fx_cached_sector; in _fx_utility_logical_sector_cache_entry_read()
146 …temp_storage.fx_cached_sector_buffer_dirty = (cache_entry) -> fx_cached_sector_buffer_d… in _fx_utility_logical_sector_cache_entry_read()
147 … temp_storage.fx_cached_sector_valid = (cache_entry) -> fx_cached_sector_valid; in _fx_utility_logical_sector_cache_entry_read()
[all …]
Dfx_utility_logical_sector_flush.c87 FX_CACHED_SECTOR *cache_entry; in _fx_utility_logical_sector_flush() local
118 cache_entry = media_ptr -> fx_media_sector_cache_list_ptr; in _fx_utility_logical_sector_flush()
121 while ((cache_size--) && (cache_entry -> fx_cached_sector)) in _fx_utility_logical_sector_flush()
142 if ((cache_entry -> fx_cached_sector_valid) && in _fx_utility_logical_sector_flush()
143 (cache_entry -> fx_cached_sector >= starting_sector) && in _fx_utility_logical_sector_flush()
144 (cache_entry -> fx_cached_sector <= ending_sector)) in _fx_utility_logical_sector_flush()
149 if (cache_entry -> fx_cached_sector_buffer_dirty) in _fx_utility_logical_sector_flush()
167 … media_ptr -> fx_media_driver_buffer = cache_entry -> fx_cached_sector_memory_buffer; in _fx_utility_logical_sector_flush()
169 … media_ptr -> fx_media_driver_logical_sector = cache_entry -> fx_cached_sector; in _fx_utility_logical_sector_flush()
171 … media_ptr -> fx_media_driver_logical_sector = (ULONG)cache_entry -> fx_cached_sector; in _fx_utility_logical_sector_flush()
[all …]
Dfx_utility_logical_sector_read.c108 FX_CACHED_SECTOR *cache_entry; in _fx_utility_logical_sector_read() local
144cache_entry = _fx_utility_logical_sector_cache_entry_read(media_ptr, logical_sector, &previous_cac… in _fx_utility_logical_sector_read()
147 if (cache_entry == FX_NULL) in _fx_utility_logical_sector_read()
174 if ((cache_entry -> fx_cached_sector_valid) && in _fx_utility_logical_sector_read()
175 (cache_entry -> fx_cached_sector_buffer_dirty)) in _fx_utility_logical_sector_read()
190 … media_ptr -> fx_media_driver_buffer = cache_entry -> fx_cached_sector_memory_buffer; in _fx_utility_logical_sector_read()
192 media_ptr -> fx_media_driver_logical_sector = cache_entry -> fx_cached_sector; in _fx_utility_logical_sector_read()
194 media_ptr -> fx_media_driver_logical_sector = (ULONG)cache_entry -> fx_cached_sector; in _fx_utility_logical_sector_read()
197 media_ptr -> fx_media_driver_sector_type = cache_entry -> fx_cached_sector_type; in _fx_utility_logical_sector_read()
200 if (cache_entry -> fx_cached_sector_type != FX_DATA_SECTOR) in _fx_utility_logical_sector_read()
[all …]
Dfx_utility_logical_sector_write.c100 FX_CACHED_SECTOR *cache_entry; in _fx_utility_logical_sector_write() local
140 cache_entry = &(media_ptr -> fx_media_sector_cache[index]); in _fx_utility_logical_sector_write()
142 for (i = 0; i < FX_SECTOR_CACHE_DEPTH; i++, cache_entry++) 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()
160 cache_entry = media_ptr -> fx_media_sector_cache_list_ptr; 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()
177 if (cache_entry -> fx_cached_sector_next_used) in _fx_utility_logical_sector_write()
181 cache_entry = cache_entry -> fx_cached_sector_next_used; in _fx_utility_logical_sector_write()
190 !(cache_found && (cache_entry -> fx_cached_sector_memory_buffer == buffer_ptr))) in _fx_utility_logical_sector_write()
200 cache_entry -> fx_cached_sector_valid = FX_FALSE; in _fx_utility_logical_sector_write()
[all …]
/FileX-v6.2.1/test/regression_test/
Dfilex_file_write_available_cluster_test.c317 FX_CACHED_SECTOR cache_entry; in ftest_0_entry() local
324 ram_disk.fx_media_sector_cache_list_ptr = &cache_entry; in ftest_0_entry()
326 cache_entry.fx_cached_sector_memory_buffer = NULL; in ftest_0_entry()
327 cache_entry.fx_cached_sector_next_used = NULL; in ftest_0_entry()
/FileX-v6.2.1/ports/linux/gnu/inc/
Dfx_port.h247cache_entry = FX_NULL; \