Home
last modified time | relevance | path

Searched refs:byte_offset (Results 1 – 18 of 18) sorted by relevance

/FileX-v6.4.1/common/src/
Dfx_file_extended_relative_seek.c83 UINT _fx_file_extended_relative_seek(FX_FILE *file_ptr, ULONG64 byte_offset, UINT seek_from) in _fx_file_extended_relative_seek() argument
105 …FX_TRACE_IN_LINE_INSERT(FX_TRACE_FILE_RELATIVE_SEEK, file_ptr, byte_offset, seek_from, file_ptr ->… in _fx_file_extended_relative_seek()
113 return(_fx_file_extended_seek(file_ptr, byte_offset)); in _fx_file_extended_relative_seek()
123 if (byte_offset >= file_ptr -> fx_file_current_file_size) in _fx_file_extended_relative_seek()
133 … return(_fx_file_extended_seek(file_ptr, file_ptr -> fx_file_current_file_size - byte_offset)); in _fx_file_extended_relative_seek()
141 … return(_fx_file_extended_seek(file_ptr, file_ptr -> fx_file_current_file_offset + byte_offset)); in _fx_file_extended_relative_seek()
148 if (byte_offset >= file_ptr -> fx_file_current_file_offset) in _fx_file_extended_relative_seek()
158 … return(_fx_file_extended_seek(file_ptr, file_ptr -> fx_file_current_file_offset - byte_offset)); in _fx_file_extended_relative_seek()
Dfx_utility_FAT_entry_read.c91 ULONG byte_offset, entry32; in _fx_utility_FAT_entry_read() local
238 byte_offset = (((ULONG)cluster << 1) + cluster) >> 1; in _fx_utility_FAT_entry_read()
241 FAT_sector = (byte_offset / media_ptr -> fx_media_bytes_per_sector) + in _fx_utility_FAT_entry_read()
256 byte_offset = byte_offset - in _fx_utility_FAT_entry_read()
261 FAT_ptr = (UCHAR *)media_ptr -> fx_media_memory_buffer + (UINT)byte_offset; 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()
351 byte_offset = (((ULONG)cluster) * 2); in _fx_utility_FAT_entry_read()
354 FAT_sector = (byte_offset / media_ptr -> fx_media_bytes_per_sector) + in _fx_utility_FAT_entry_read()
370 byte_offset = byte_offset - in _fx_utility_FAT_entry_read()
[all …]
Dfx_utility_FAT_flush.c84 ULONG byte_offset; in _fx_utility_FAT_flush() local
121 byte_offset = (((ULONG)cluster << 1) + cluster) >> 1; in _fx_utility_FAT_flush()
124 FAT_sector = (byte_offset / media_ptr -> fx_media_bytes_per_sector) + in _fx_utility_FAT_flush()
195 byte_offset = (((ULONG)cluster << 1) + cluster) >> 1; in _fx_utility_FAT_flush()
198 sector = (byte_offset / media_ptr -> fx_media_bytes_per_sector) + in _fx_utility_FAT_flush()
213 byte_offset = byte_offset - in _fx_utility_FAT_flush()
218 if (byte_offset == (ULONG)(media_ptr -> fx_media_bytes_per_sector - 1)) in _fx_utility_FAT_flush()
226 FAT_ptr = (UCHAR *)media_ptr -> fx_media_memory_buffer + (UINT)byte_offset; in _fx_utility_FAT_flush()
337 byte_offset = (((ULONG)cluster) << 1); in _fx_utility_FAT_flush()
340 FAT_sector = (byte_offset / media_ptr -> fx_media_bytes_per_sector) + in _fx_utility_FAT_flush()
[all …]
Dfx_file_extended_seek.c80 UINT _fx_file_extended_seek(FX_FILE *file_ptr, ULONG64 byte_offset) in _fx_file_extended_seek() argument
113 …FX_TRACE_IN_LINE_INSERT(FX_TRACE_FILE_SEEK, file_ptr, byte_offset, file_ptr -> fx_file_current_fil… in _fx_file_extended_seek()
119 if (byte_offset == file_ptr -> fx_file_current_file_offset) in _fx_file_extended_seek()
145 if (byte_offset > file_ptr -> fx_file_current_file_size) in _fx_file_extended_seek()
149 byte_offset = file_ptr -> fx_file_current_file_size; in _fx_file_extended_seek()
153 … if (byte_offset >= (ULONG64)file_ptr -> fx_file_consecutive_cluster * (ULONG64)bytes_per_cluster) in _fx_file_extended_seek()
160 … ((ULONG64)file_ptr -> fx_file_current_relative_cluster * (ULONG64)bytes_per_cluster < byte_offset) in _fx_file_extended_seek()
165 bytes_remaining = byte_offset - in _fx_file_extended_seek()
175 bytes_remaining = byte_offset - in _fx_file_extended_seek()
244 if (byte_offset > (((ULONG64) bytes_per_cluster) * ((ULONG64) cluster_count))) in _fx_file_extended_seek()
[all …]
Dfx_utility_FAT_sector_get.c74 ULONG byte_offset; in _fx_utility_FAT_sector_get() local
83 byte_offset = (((ULONG)cluster << 1) + cluster) >> 1; in _fx_utility_FAT_sector_get()
92 byte_offset = (((ULONG)cluster) << 1); in _fx_utility_FAT_sector_get()
100 byte_offset = (((ULONG)cluster) * 4); in _fx_utility_FAT_sector_get()
104 FAT_sector = (byte_offset / media_ptr -> fx_media_bytes_per_sector) + in _fx_utility_FAT_sector_get()
Dfx_unicode_directory_entry_read.c91 ULONG byte_offset; in _fx_unicode_directory_entry_read() local
106 byte_offset = entry * FX_DIR_ENTRY_SIZE; in _fx_unicode_directory_entry_read()
127 relative_cluster = (UINT)(byte_offset / bytes_per_cluster); in _fx_unicode_directory_entry_read()
130 byte_offset = byte_offset % bytes_per_cluster; 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()
258 byte_offset = byte_offset - in _fx_unicode_directory_entry_read()
264 read_ptr = (UCHAR *)media_ptr -> fx_media_memory_buffer + (UINT)byte_offset; in _fx_unicode_directory_entry_read()
268 destination_ptr -> fx_dir_entry_byte_offset = byte_offset; in _fx_unicode_directory_entry_read()
[all …]
Dfx_directory_entry_read.c93 ULONG byte_offset; in _fx_directory_entry_read() local
113 byte_offset = entry * FX_DIR_ENTRY_SIZE; in _fx_directory_entry_read()
134 relative_cluster = (UINT)(byte_offset / bytes_per_cluster); in _fx_directory_entry_read()
137 byte_offset = byte_offset % bytes_per_cluster; 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()
265 byte_offset = byte_offset - in _fx_directory_entry_read()
271 read_ptr = (UCHAR *)media_ptr -> fx_media_memory_buffer + (UINT)byte_offset; in _fx_directory_entry_read()
275 destination_ptr -> fx_dir_entry_byte_offset = byte_offset; in _fx_directory_entry_read()
[all …]
Dfx_fault_tolerant_cleanup_FAT_chain.c74 ULONG byte_offset; in _fx_utility_FAT_entry_multiple_sectors_check() local
87 byte_offset = (((ULONG)cluster << 1) + cluster) >> 1; in _fx_utility_FAT_entry_multiple_sectors_check()
90 FAT_sector = (byte_offset / media_ptr -> fx_media_bytes_per_sector) + in _fx_utility_FAT_entry_multiple_sectors_check()
94 byte_offset = byte_offset - 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_file_seek.c77 UINT _fx_file_seek(FX_FILE *file_ptr, ULONG byte_offset) in _fx_file_seek() argument
80 return(_fx_file_extended_seek(file_ptr, (ULONG64) byte_offset)); in _fx_file_seek()
Dfx_file_relative_seek.c83 UINT _fx_file_relative_seek(FX_FILE *file_ptr, ULONG byte_offset, UINT seek_from) in _fx_file_relative_seek() argument
86 return(_fx_file_extended_relative_seek(file_ptr, (ULONG64)byte_offset, seek_from)); in _fx_file_relative_seek()
Dfxe_file_seek.c73 UINT _fxe_file_seek(FX_FILE *file_ptr, ULONG byte_offset) in _fxe_file_seek() argument
89 status = _fx_file_seek(file_ptr, byte_offset); in _fxe_file_seek()
Dfxe_file_extended_seek.c73 UINT _fxe_file_extended_seek(FX_FILE *file_ptr, ULONG64 byte_offset) in _fxe_file_extended_seek() argument
89 status = _fx_file_extended_seek(file_ptr, byte_offset); in _fxe_file_extended_seek()
Dfxe_file_relative_seek.c81 UINT _fxe_file_relative_seek(FX_FILE *file_ptr, ULONG byte_offset, UINT seek_from) in _fxe_file_relative_seek() argument
104 status = _fx_file_relative_seek(file_ptr, byte_offset, seek_from); in _fxe_file_relative_seek()
Dfxe_file_extended_relative_seek.c81 UINT _fxe_file_extended_relative_seek(FX_FILE *file_ptr, ULONG64 byte_offset, UINT seek_from) in _fxe_file_extended_relative_seek() argument
104 status = _fx_file_extended_relative_seek(file_ptr, byte_offset, seek_from); in _fxe_file_extended_relative_seek()
Dfx_unicode_directory_entry_change.c88 ULONG byte_offset; in _fx_unicode_directory_entry_change() local
105 byte_offset = entry_ptr -> fx_dir_entry_byte_offset; in _fx_unicode_directory_entry_change()
219 byte_offset += FX_DIR_ENTRY_SIZE; in _fx_unicode_directory_entry_change()
227 if (byte_offset >= media_ptr -> fx_media_bytes_per_sector) in _fx_unicode_directory_entry_change()
348 byte_offset = 0; in _fx_unicode_directory_entry_change()
Dfx_directory_entry_write.c94 ULONG byte_offset; in _fx_directory_entry_write() local
136 byte_offset = entry_ptr -> fx_dir_entry_byte_offset; in _fx_directory_entry_write()
587 byte_offset += FX_DIR_ENTRY_SIZE; in _fx_directory_entry_write()
595 if (byte_offset >= media_ptr -> fx_media_bytes_per_sector) in _fx_directory_entry_write()
709 byte_offset = 0; in _fx_directory_entry_write()
816 byte_offset += FX_DIR_ENTRY_SIZE; in _fx_directory_entry_write()
824 if (byte_offset >= media_ptr -> fx_media_bytes_per_sector) in _fx_directory_entry_write()
938 byte_offset = 0; in _fx_directory_entry_write()
/FileX-v6.4.1/common/inc/
Dfx_file.h74 UINT _fx_file_relative_seek(FX_FILE *file_ptr, ULONG byte_offset, UINT seek_from);
80 UINT _fx_file_seek(FX_FILE *file_ptr, ULONG byte_offset);
92 UINT _fx_file_extended_relative_seek(FX_FILE *file_ptr, ULONG64 byte_offset, UINT seek_from);
93 UINT _fx_file_extended_seek(FX_FILE *file_ptr, ULONG64 byte_offset);
109 UINT _fxe_file_relative_seek(FX_FILE *file_ptr, ULONG byte_offset, UINT seek_from);
111 UINT _fxe_file_seek(FX_FILE *file_ptr, ULONG byte_offset);
118 UINT _fxe_file_extended_relative_seek(FX_FILE *file_ptr, ULONG64 byte_offset, UINT seek_from);
119 UINT _fxe_file_extended_seek(FX_FILE *file_ptr, ULONG64 byte_offset);
Dfx_api.h1439 UINT fx_file_relative_seek(FX_FILE *file_ptr, ULONG byte_offset, UINT seek_from);
1443 UINT fx_file_seek(FX_FILE *file_ptr, ULONG byte_offset);
1451 UINT fx_file_extended_relative_seek(FX_FILE *file_ptr, ULONG64 byte_offset, UINT seek_from);
1452 UINT fx_file_extended_seek(FX_FILE *file_ptr, ULONG64 byte_offset);