Home
last modified time | relevance | path

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

/FileX-v6.2.1/common/src/
Dfx_media_space_available.c80 ULONG64 available_bytes; in _fx_media_space_available() local
83 status = _fx_media_extended_space_available(media_ptr, &available_bytes); in _fx_media_space_available()
90 if (available_bytes > 0x00000000FFFFFFFF) in _fx_media_space_available()
99 *available_bytes_ptr = (ULONG)(available_bytes); in _fx_media_space_available()
Dfx_media_extended_space_available.c77 ULONG64 available_bytes; in _fx_media_extended_space_available() local
103 available_bytes = ((ULONG64)available_clusters) * ((ULONG64)bytes_per_cluster); in _fx_media_extended_space_available()
106 *available_bytes_ptr = available_bytes; in _fx_media_extended_space_available()
/FileX-v6.2.1/test/regression_test/
Dfilex_utility_fat_flush_test.c91 ULONG available_bytes; in ftest_0_entry() local
157 status = fx_media_space_available(&ram_disk, &available_bytes); in ftest_0_entry()
160 if ((status != FX_SUCCESS) || (available_bytes < sizeof(ULONG))) in ftest_0_entry()
170 while (i < available_bytes) in ftest_0_entry()
279 status = fx_media_space_available(&ram_disk, &available_bytes); in ftest_0_entry()
282 if ((status != FX_SUCCESS) || (available_bytes < sizeof(ULONG))) in ftest_0_entry()
292 while (i < available_bytes) in ftest_0_entry()
374 status = fx_media_space_available(&ram_disk, &available_bytes); in ftest_0_entry()
377 if ((status != FX_SUCCESS) || (available_bytes < sizeof(ULONG))) in ftest_0_entry()
387 while (i < available_bytes/128) in ftest_0_entry()
Dfilex_media_flush_test.c91 ULONG available_bytes; in ftest_0_entry() local
187 status = fx_media_space_available(&ram_disk, &available_bytes); in ftest_0_entry()
190 if ((status != FX_SUCCESS) || (available_bytes < sizeof(ULONG))) in ftest_0_entry()
200 while (i < available_bytes) in ftest_0_entry()
271 while (i < available_bytes) in ftest_0_entry()
370 status = fx_media_space_available(&ram_disk, &available_bytes); in ftest_0_entry()
373 if ((status != FX_SUCCESS) || (available_bytes < sizeof(ULONG))) in ftest_0_entry()
383 while (i < available_bytes) in ftest_0_entry()
443 while (i < available_bytes) in ftest_0_entry()
Dfilex_media_cache_invalidate_test.c93 ULONG available_bytes; in ftest_0_entry() local
171 status = fx_media_space_available(&ram_disk, &available_bytes); in ftest_0_entry()
174 if ((status != FX_SUCCESS) || (available_bytes < sizeof(ULONG))) in ftest_0_entry()
184 while (i < available_bytes) in ftest_0_entry()
255 while (i < available_bytes) in ftest_0_entry()
354 status = fx_media_space_available(&ram_disk, &available_bytes); in ftest_0_entry()
357 if ((status != FX_SUCCESS) || (available_bytes < sizeof(ULONG))) in ftest_0_entry()
367 while (i < available_bytes) in ftest_0_entry()
438 while (i < available_bytes) in ftest_0_entry()
Dfilex_file_seek_test.c91 ULONG available_bytes; in ftest_0_entry() local
226 status = fx_media_space_available(&ram_disk, &available_bytes); in ftest_0_entry()
229 if ((status != FX_SUCCESS) || (available_bytes < sizeof(ULONG))) in ftest_0_entry()
239 while (i < available_bytes) in ftest_0_entry()
332 status = fx_file_seek(&my_file, available_bytes - 4); in ftest_0_entry()
338 … if ((status) || (read_value != (available_bytes/sizeof(ULONG) - 1)) || (actual != sizeof(ULONG))) in ftest_0_entry()
357 status = fx_file_seek(&my_file, available_bytes/2); in ftest_0_entry()
363 … if ((status) || (read_value != (available_bytes/(2*sizeof(ULONG)))) || (actual != sizeof(ULONG))) in ftest_0_entry()
418 status = fx_file_seek(&my_file, available_bytes - 4); in ftest_0_entry()
424 … if ((status) || (read_value != (available_bytes/sizeof(ULONG) - 1)) || (actual != sizeof(ULONG))) in ftest_0_entry()
[all …]
Dfilex_fault_tolerant_file_truncate_release_available_test.c120 ULONG available_bytes[3]; in ftest_0_entry() local
221 status = fx_media_space_available(&ram_disk, &available_bytes[0]); in ftest_0_entry()
241 status = fx_media_space_available(&ram_disk, &available_bytes[1]); in ftest_0_entry()
245 return_if_fail(available_bytes[0] == available_bytes[1]); in ftest_0_entry()
260 status = fx_media_space_available(&ram_disk, &available_bytes[2]); in ftest_0_entry()
268 return_if_fail(available_bytes[0] == available_bytes[2]); in ftest_0_entry()
Dfilex_fault_tolerant_loop_write_data_test.c124 ULONG available_bytes; in ftest_0_entry() local
229 status = fx_media_space_available(&ram_disk, &available_bytes); in ftest_0_entry()
276 …if ((status != FX_SUCCESS) && (available_bytes != (current_available_bytes + two_cluster_size * 2)… in ftest_0_entry()
284 available_bytes = current_available_bytes; in ftest_0_entry()
345 status = fx_media_space_available(&ram_disk, &available_bytes); in ftest_0_entry()
348 if ((status != FX_SUCCESS) || (available_bytes != current_available_bytes)) in ftest_0_entry()
Dfilex_fault_tolerant_media_full_test.c104 ULONG available_bytes; in ftest_0_entry() local
189 status = fx_media_space_available(&ram_disk, &available_bytes); in ftest_0_entry()
190 return_if_fail( (status == FX_SUCCESS) && (available_bytes >= sizeof(ULONG))); in ftest_0_entry()
195 while (j < available_bytes) in ftest_0_entry()
236 while (j < available_bytes) in ftest_0_entry()
Dfilex_fault_tolerant_write_large_data_test.c103 ULONG available_bytes; in ftest_0_entry() local
237 status = fx_media_space_available(&ram_disk, &available_bytes); in ftest_0_entry()
240 if ((status != FX_SUCCESS) || (available_bytes < sizeof(ULONG))) in ftest_0_entry()
248 status = fx_file_write(&my_file, (void *) large_data_buffer, available_bytes); in ftest_0_entry()
311 if ((status != FX_SUCCESS) || (actual != available_bytes)) in ftest_0_entry()
Dfilex_fault_tolerant_delete_large_data_test.c104 ULONG available_bytes; in ftest_0_entry() local
238 status = fx_media_space_available(&ram_disk, &available_bytes); in ftest_0_entry()
241 if ((status != FX_SUCCESS) || (available_bytes < sizeof(ULONG))) in ftest_0_entry()
249 status = fx_file_write(&my_file, (void *) large_data_buffer, available_bytes); in ftest_0_entry()
312 if ((status != FX_SUCCESS) || (actual != available_bytes)) in ftest_0_entry()
Dfilex_file_allocate_truncate_test.c92 ULONG available_bytes; in ftest_0_entry() local
176 status = fx_media_space_available(&ram_disk, &available_bytes); in ftest_0_entry()
179 if ((status != FX_SUCCESS) || (available_bytes < sizeof(ULONG))) in ftest_0_entry()
303 status = fx_file_allocate(&my_file, available_bytes/2); in ftest_0_entry()
319 status += fx_file_best_effort_allocate(&my_file, available_bytes, &actual); in ftest_0_entry()
353 while (i < available_bytes) in ftest_0_entry()
413 status = fx_file_truncate(&my_file, available_bytes/2); in ftest_0_entry()
467 while (i < available_bytes) in ftest_0_entry()
489 status = fx_file_truncate_release(&my_file, available_bytes/2); in ftest_0_entry()
495 if ((status) || (my_file.fx_file_current_file_size != available_bytes/2)) in ftest_0_entry()
[all …]
Dfilex_fault_tolerant_write_large_data_interrupt_test.c63 static ULONG available_bytes; variable
262 status = fx_media_space_available(&ram_disk, &available_bytes); in ftest_0_entry()
265 if ((status != FX_SUCCESS) || (available_bytes < sizeof(ULONG))) in ftest_0_entry()
272 write_data_size = available_bytes; 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.c63 static ULONG available_bytes; variable
263 status = fx_media_space_available(&ram_disk, &available_bytes); in ftest_0_entry()
266 if ((status != FX_SUCCESS) || (available_bytes < sizeof(ULONG))) in ftest_0_entry()
273 write_data_size = available_bytes; in ftest_0_entry()
321 if ((status != FX_SUCCESS) || (j != available_bytes)) in ftest_0_entry()
Dfilex_fault_tolerant_write_large_data_redo_log_interrupt_test.c63 static ULONG available_bytes; variable
264 status = fx_media_space_available(&ram_disk, &available_bytes); in ftest_0_entry()
267 if ((status != FX_SUCCESS) || (available_bytes < sizeof(ULONG))) in ftest_0_entry()
274 write_data_size = available_bytes; in ftest_0_entry()
322 if ((status != FX_SUCCESS) || (j != available_bytes)) in ftest_0_entry()
Dfilex_fault_tolerant_write_large_data_fat_interrupt_test.c64 static ULONG available_bytes; variable
264 status = fx_media_space_available(&ram_disk, &available_bytes); in ftest_0_entry()
267 if ((status != FX_SUCCESS) || (available_bytes < sizeof(ULONG))) in ftest_0_entry()
274 write_data_size = available_bytes; in ftest_0_entry()
324 if ((status != FX_SUCCESS) || (j != available_bytes)) in ftest_0_entry()
Dfilex_fault_tolerant_write_large_data_directory_interrupt_test.c63 static ULONG available_bytes; variable
263 status = fx_media_space_available(&ram_disk, &available_bytes); in ftest_0_entry()
266 if ((status != FX_SUCCESS) || (available_bytes < sizeof(ULONG))) in ftest_0_entry()
273 write_data_size = available_bytes; in ftest_0_entry()
Dfilex_fault_tolerant_write_large_data_fat_chain_cleanup_interrupt_test.c63 static ULONG available_bytes; variable
273 status = fx_media_space_available(&ram_disk, &available_bytes); in ftest_0_entry()
276 if ((status != FX_SUCCESS) || (available_bytes < sizeof(ULONG))) in ftest_0_entry()
283 write_data_size = available_bytes; in ftest_0_entry()
Dfilex_file_read_write_test.c104 ULONG available_bytes; in ftest_0_entry() local
211 status = fx_media_space_available(&ram_disk, &available_bytes); in ftest_0_entry()
214 if ((status != FX_SUCCESS) || (available_bytes < sizeof(ULONG))) in ftest_0_entry()
235 while (i < available_bytes) in ftest_0_entry()
319 while (i < available_bytes) in ftest_0_entry()
426 status = fx_media_space_available(&ram_disk, &available_bytes); in ftest_0_entry()
429 if ((status != FX_SUCCESS) || (available_bytes < sizeof(ULONG))) in ftest_0_entry()
439 while (i < available_bytes) in ftest_0_entry()
512 while (i < available_bytes) in ftest_0_entry()
571 while (i < available_bytes) in ftest_0_entry()
[all …]
Dfilextestcontrol.c471 ULONG64 available_bytes; in tx_application_define() local
922 status = _fxe_media_extended_space_available(&media_instance, &available_bytes); in tx_application_define()
942 status = _fxe_media_extended_space_available(FX_NULL, &available_bytes); in tx_application_define()
970 status = _fxe_media_extended_space_available(&media_instance, &available_bytes); in tx_application_define()
987 status = _fxe_media_extended_space_available(&media_instance, &available_bytes); in tx_application_define()
1006 status = _fxe_media_extended_space_available(&media_instance, &available_bytes); in tx_application_define()
3931 status = _fxe_file_extended_best_effort_allocate(&file_instance, 20, &available_bytes); in tx_application_define()
3948 status = _fxe_file_extended_best_effort_allocate(&file_instance, 20, &available_bytes); in tx_application_define()
3967 status = _fxe_file_extended_best_effort_allocate(&file_instance, 20, &available_bytes); in tx_application_define()