Home
last modified time | relevance | path

Searched refs:block_state (Results 1 – 8 of 8) sorted by relevance

/openbmc/u-boot/fs/yaffs2/
H A Dyaffs_verify.c58 if (bi->block_state >= YAFFS_NUMBER_OF_BLOCK_STATES) in yaffs_verify_blk()
61 n, bi->block_state); in yaffs_verify_blk()
63 switch (bi->block_state) { in yaffs_verify_blk()
69 n, block_state_name[bi->block_state]); in yaffs_verify_blk()
100 if (bi->block_state != YAFFS_BLOCK_STATE_COLLECTING && in yaffs_verify_collected_blk()
101 bi->block_state != YAFFS_BLOCK_STATE_EMPTY) { in yaffs_verify_collected_blk()
104 n, bi->block_state); in yaffs_verify_collected_blk()
123 if (bi->block_state < YAFFS_NUMBER_OF_BLOCK_STATES) in yaffs_verify_blocks()
124 state_count[bi->block_state]++; in yaffs_verify_blocks()
H A Dyaffs_checkptrw.c39 if (bi->block_state == YAFFS_BLOCK_STATE_CHECKPOINT) { in yaffs_checkpt_erase()
48 bi->block_state = YAFFS_BLOCK_STATE_EMPTY; in yaffs_checkpt_erase()
54 bi->block_state = YAFFS_BLOCK_STATE_DEAD; in yaffs_checkpt_erase()
82 if (bi->block_state == YAFFS_BLOCK_STATE_EMPTY) { in yaffs2_checkpt_find_erased_block()
226 bi->block_state = YAFFS_BLOCK_STATE_CHECKPOINT; in yaffs2_checkpt_flush_buffer()
375 if (bi && bi->block_state == YAFFS_BLOCK_STATE_EMPTY) in yaffs_checkpt_close()
376 bi->block_state = YAFFS_BLOCK_STATE_CHECKPOINT; in yaffs_checkpt_close()
H A Dyaffs_yaffs2.c56 if (b->block_state == YAFFS_BLOCK_STATE_FULL && in yaffs_calc_oldest_dirty_seq()
176 if (bi->block_state == YAFFS_BLOCK_STATE_FULL) { in yaffs2_find_refresh_block()
987 bi->block_state = YAFFS_BLOCK_STATE_EMPTY; in yaffs2_scan_chunk()
990 if (bi->block_state == YAFFS_BLOCK_STATE_NEEDS_SCAN || in yaffs2_scan_chunk()
991 bi->block_state == YAFFS_BLOCK_STATE_ALLOCATING) { in yaffs2_scan_chunk()
998 bi->block_state = in yaffs2_scan_chunk()
1395 bi->block_state = state; in yaffs2_scan_backwards()
1399 bi->block_state = YAFFS_BLOCK_STATE_CHECKPOINT; in yaffs2_scan_backwards()
1401 bi->block_state = YAFFS_BLOCK_STATE_DEAD; in yaffs2_scan_backwards()
1405 blk, bi->block_state, seq_number); in yaffs2_scan_backwards()
[all …]
H A Dyaffs_yaffs1.c58 bi->block_state = state; in yaffs1_scan()
62 bi->block_state = state = YAFFS_BLOCK_STATE_DEAD; in yaffs1_scan()
86 state = bi->block_state; in yaffs1_scan()
366 bi->block_state = state; in yaffs1_scan()
371 bi->block_state == YAFFS_BLOCK_STATE_FULL) in yaffs1_scan()
H A Dyaffs_guts.c398 if (bi->block_state == YAFFS_BLOCK_STATE_EMPTY) { in yaffs_find_alloc_block()
399 bi->block_state = YAFFS_BLOCK_STATE_ALLOCATING; in yaffs_find_alloc_block()
454 bi->block_state = YAFFS_BLOCK_STATE_FULL; in yaffs_alloc_chunk()
493 if (bi->block_state == YAFFS_BLOCK_STATE_ALLOCATING) { in yaffs_skip_rest_of_block()
494 bi->block_state = YAFFS_BLOCK_STATE_FULL; in yaffs_skip_rest_of_block()
639 bi->block_state = YAFFS_BLOCK_STATE_DEAD; in yaffs_retire_block()
2317 block_no, bi->block_state, in yaffs_block_became_dirty()
2322 bi->block_state = YAFFS_BLOCK_STATE_DIRTY; in yaffs_block_became_dirty()
2369 bi->block_state = YAFFS_BLOCK_STATE_EMPTY; in yaffs_block_became_dirty()
2539 is_checkpt_block = (bi->block_state == YAFFS_BLOCK_STATE_CHECKPOINT); in yaffs_gc_block()
[all …]
H A Dyaffs_guts.h290 unsigned block_state:4; /* One of the above block states. */ member
/openbmc/u-boot/lib/zlib/
H A Ddeflate.c71 } block_state; typedef
73 typedef block_state (*compress_func) OF((deflate_state *s, int flush)); typedef
77 local block_state deflate_stored OF((deflate_state *s, int flush));
78 local block_state deflate_fast OF((deflate_state *s, int flush));
80 local block_state deflate_slow OF((deflate_state *s, int flush));
82 local block_state deflate_rle OF((deflate_state *s, int flush));
83 local block_state deflate_huff OF((deflate_state *s, int flush));
816 block_state bstate;
1460 local block_state deflate_stored(s, flush) in deflate_stored()
1518 local block_state deflate_fast(s, flush) in deflate_fast()
[all …]
/openbmc/qemu/block/
H A Dvhdx.c1713 int block_state; in vhdx_create_bat() local
1759 block_state = type == VHDX_TYPE_FIXED ? PAYLOAD_BLOCK_FULLY_PRESENT : in vhdx_create_bat()
1761 block_state = use_zero_blocks ? PAYLOAD_BLOCK_ZERO : block_state; in vhdx_create_bat()
1769 block_state); in vhdx_create_bat()