/u-boot/fs/yaffs2/ |
A D | yaffs_yaffs2.h | 21 void yaffs_calc_oldest_dirty_seq(struct yaffs_dev *dev); 22 void yaffs2_find_oldest_dirty_seq(struct yaffs_dev *dev); 23 void yaffs2_clear_oldest_dirty_seq(struct yaffs_dev *dev, 25 void yaffs2_update_oldest_dirty_seq(struct yaffs_dev *dev, unsigned block_no, 28 u32 yaffs2_find_refresh_block(struct yaffs_dev *dev); 29 int yaffs2_checkpt_required(struct yaffs_dev *dev); 30 int yaffs_calc_checkpt_blocks_required(struct yaffs_dev *dev); 32 void yaffs2_checkpt_invalidate(struct yaffs_dev *dev); 33 int yaffs2_checkpt_save(struct yaffs_dev *dev); 34 int yaffs2_checkpt_restore(struct yaffs_dev *dev); [all …]
|
A D | yaffs_flashif.h | 21 int yflash_EraseBlockInNAND(struct yaffs_dev *dev, int blockNumber); 22 int yflash_WriteChunkToNAND(struct yaffs_dev *dev, int nand_chunk, 24 int yflash_WriteChunkWithTagsToNAND(struct yaffs_dev *dev, int nand_chunk, 26 int yflash_ReadChunkFromNAND(struct yaffs_dev *dev, int nand_chunk, 28 int yflash_ReadChunkWithTagsFromNAND(struct yaffs_dev *dev, int nand_chunk, 30 int yflash_InitialiseNAND(struct yaffs_dev *dev); 31 int yflash_MarkNANDBlockBad(struct yaffs_dev *dev, int block_no); 32 int yflash_QueryNANDBlock(struct yaffs_dev *dev, int block_no,
|
A D | yaffs_flashif2.h | 21 int yflash2_EraseBlockInNAND(struct yaffs_dev *dev, int blockNumber); 22 int yflash2_WriteChunkToNAND(struct yaffs_dev *dev, int nand_chunk, 24 int yflash2_WriteChunkWithTagsToNAND(struct yaffs_dev *dev, int nand_chunk, 26 int yflash2_ReadChunkFromNAND(struct yaffs_dev *dev, int nand_chunk, 28 int yflash2_ReadChunkWithTagsFromNAND(struct yaffs_dev *dev, int nand_chunk, 30 int yflash2_InitialiseNAND(struct yaffs_dev *dev); 31 int yflash2_MarkNANDBlockBad(struct yaffs_dev *dev, int block_no); 32 int yflash2_QueryNANDBlock(struct yaffs_dev *dev, int block_no,
|
A D | yaffs_nandif.h | 32 int (*initialise)(struct yaffs_dev *dev); 33 int (*deinitialise)(struct yaffs_dev *dev); 35 int (*readChunk) (struct yaffs_dev *dev, 44 int (*writeChunk)(struct yaffs_dev *dev, 51 int (*eraseBlock)(struct yaffs_dev *dev, unsigned blockId); 53 int (*checkBlockOk)(struct yaffs_dev *dev, unsigned blockId); 54 int (*markBlockBad)(struct yaffs_dev *dev, unsigned blockId); 60 struct yaffs_dev *
|
A D | yaffs_bitmap.h | 25 void yaffs_verify_chunk_bit_id(struct yaffs_dev *dev, int blk, int chunk); 26 void yaffs_clear_chunk_bits(struct yaffs_dev *dev, int blk); 27 void yaffs_clear_chunk_bit(struct yaffs_dev *dev, int blk, int chunk); 28 void yaffs_set_chunk_bit(struct yaffs_dev *dev, int blk, int chunk); 29 int yaffs_check_chunk_bit(struct yaffs_dev *dev, int blk, int chunk); 30 int yaffs_still_some_chunks(struct yaffs_dev *dev, int blk); 31 int yaffs_count_chunk_bits(struct yaffs_dev *dev, int blk);
|
A D | yaffs_allocator.h | 21 void yaffs_init_raw_tnodes_and_objs(struct yaffs_dev *dev); 22 void yaffs_deinit_raw_tnodes_and_objs(struct yaffs_dev *dev); 24 struct yaffs_tnode *yaffs_alloc_raw_tnode(struct yaffs_dev *dev); 25 void yaffs_free_raw_tnode(struct yaffs_dev *dev, struct yaffs_tnode *tn); 27 struct yaffs_obj *yaffs_alloc_raw_obj(struct yaffs_dev *dev); 28 void yaffs_free_raw_obj(struct yaffs_dev *dev, struct yaffs_obj *obj);
|
A D | yaffs_checkptrw.h | 21 int yaffs2_checkpt_open(struct yaffs_dev *dev, int writing); 23 int yaffs2_checkpt_wr(struct yaffs_dev *dev, const void *data, int n_bytes); 25 int yaffs2_checkpt_rd(struct yaffs_dev *dev, void *data, int n_bytes); 27 int yaffs2_get_checkpt_sum(struct yaffs_dev *dev, u32 * sum); 29 int yaffs_checkpt_close(struct yaffs_dev *dev); 31 int yaffs2_checkpt_invalidate_stream(struct yaffs_dev *dev);
|
A D | yaffs_summary.h | 22 int yaffs_summary_init(struct yaffs_dev *dev); 23 void yaffs_summary_deinit(struct yaffs_dev *dev); 25 int yaffs_summary_add(struct yaffs_dev *dev, 28 int yaffs_summary_fetch(struct yaffs_dev *dev, 31 int yaffs_summary_read(struct yaffs_dev *dev, 34 void yaffs_summary_gc(struct yaffs_dev *dev, int blk);
|
A D | yaffs_nand.h | 20 int yaffs_rd_chunk_tags_nand(struct yaffs_dev *dev, int nand_chunk, 23 int yaffs_wr_chunk_tags_nand(struct yaffs_dev *dev, 27 int yaffs_mark_bad(struct yaffs_dev *dev, int block_no); 29 int yaffs_query_init_block_state(struct yaffs_dev *dev, 34 int yaffs_erase_block(struct yaffs_dev *dev, int flash_block); 36 int yaffs_init_nand(struct yaffs_dev *dev);
|
A D | yaffs_nandemul2k.h | 23 int nandemul2k_WriteChunkWithTagsToNAND(struct yaffs_dev *dev, 26 int nandemul2k_ReadChunkWithTagsFromNAND(struct yaffs_dev *dev, 29 int nandemul2k_MarkNANDBlockBad(struct yaffs_dev *dev, int block_no); 30 int nandemul2k_QueryNANDBlock(struct yaffs_dev *dev, int block_no, 32 int nandemul2k_EraseBlockInNAND(struct yaffs_dev *dev, 34 int nandemul2k_InitialiseNAND(struct yaffs_dev *dev);
|
A D | yaffs_guts.h | 433 struct yaffs_dev *my_dev; /* The device I'm on */ 557 int (*write_chunk_fn) (struct yaffs_dev *dev, 560 int (*read_chunk_fn) (struct yaffs_dev *dev, 587 void (*sb_dirty_fn) (struct yaffs_dev *dev); 590 unsigned (*gc_control) (struct yaffs_dev *dev); 615 struct yaffs_dev { struct 830 int yaffs_guts_initialise(struct yaffs_dev *dev); 831 void yaffs_deinitialise(struct yaffs_dev *dev); 863 int yaffs_checkpoint_save(struct yaffs_dev *dev); 910 void yaffs_guts_test(struct yaffs_dev *dev); [all …]
|
A D | yaffs_verify.h | 21 void yaffs_verify_blk(struct yaffs_dev *dev, struct yaffs_block_info *bi, 23 void yaffs_verify_collected_blk(struct yaffs_dev *dev, 25 void yaffs_verify_blocks(struct yaffs_dev *dev); 34 void yaffs_verify_objects(struct yaffs_dev *dev); 37 void yaffs_verify_free_chunks(struct yaffs_dev *dev); 41 int yaffs_skip_verification(struct yaffs_dev *dev);
|
A D | yaffs_bitmap.c | 20 static inline u8 *yaffs_block_bits(struct yaffs_dev *dev, int blk) in yaffs_block_bits() 32 void yaffs_verify_chunk_bit_id(struct yaffs_dev *dev, int blk, int chunk) in yaffs_verify_chunk_bit_id() 43 void yaffs_clear_chunk_bits(struct yaffs_dev *dev, int blk) in yaffs_clear_chunk_bits() 50 void yaffs_clear_chunk_bit(struct yaffs_dev *dev, int blk, int chunk) in yaffs_clear_chunk_bit() 58 void yaffs_set_chunk_bit(struct yaffs_dev *dev, int blk, int chunk) in yaffs_set_chunk_bit() 66 int yaffs_check_chunk_bit(struct yaffs_dev *dev, int blk, int chunk) in yaffs_check_chunk_bit() 74 int yaffs_still_some_chunks(struct yaffs_dev *dev, int blk) in yaffs_still_some_chunks() 87 int yaffs_count_chunk_bits(struct yaffs_dev *dev, int blk) in yaffs_count_chunk_bits()
|
A D | yaffs_mtdif.h | 21 int nandmtd_WriteChunkToNAND(struct yaffs_dev *dev, int chunkInNAND, 23 int nandmtd_ReadChunkFromNAND(struct yaffs_dev *dev, int chunkInNAND, u8 *data, 25 int nandmtd_EraseBlockInNAND(struct yaffs_dev *dev, int blockNumber); 26 int nandmtd_InitialiseNAND(struct yaffs_dev *dev);
|
A D | yaffs_mtdif2.h | 21 int nandmtd2_write_chunk_tags(struct yaffs_dev *dev, int chunkInNAND, 24 int nandmtd2_read_chunk_tags(struct yaffs_dev *dev, int chunkInNAND, 26 int nandmtd2_MarkNANDBlockBad(struct yaffs_dev *dev, int blockNo); 27 int nandmtd2_QueryNANDBlock(struct yaffs_dev *dev, int blockNo,
|
A D | yaffs_tagscompat.h | 20 int yaffs_tags_compat_wr(struct yaffs_dev *dev, 23 int yaffs_tags_compat_rd(struct yaffs_dev *dev, 26 int yaffs_tags_compat_mark_bad(struct yaffs_dev *dev, int block_no); 27 int yaffs_tags_compat_query_block(struct yaffs_dev *dev,
|
A D | yaffs_nandif.c | 32 int ynandif_WriteChunkWithTagsToNAND(struct yaffs_dev *dev, int nand_chunk, in ynandif_WriteChunkWithTagsToNAND() 74 int ynandif_ReadChunkWithTagsFromNAND(struct yaffs_dev *dev, int nand_chunk, in ynandif_ReadChunkWithTagsFromNAND() 140 int ynandif_MarkNANDBlockBad(struct yaffs_dev *dev, int blockId) in ynandif_MarkNANDBlockBad() 147 int ynandif_EraseBlockInNAND(struct yaffs_dev *dev, int blockId) in ynandif_EraseBlockInNAND() 156 static int ynandif_IsBlockOk(struct yaffs_dev *dev, int blockId) in ynandif_IsBlockOk() 163 int ynandif_QueryNANDBlock(struct yaffs_dev *dev, int blockId, in ynandif_QueryNANDBlock() 190 int ynandif_InitialiseNAND(struct yaffs_dev *dev) in ynandif_InitialiseNAND() 199 int ynandif_Deinitialise_flash_fn(struct yaffs_dev *dev) in ynandif_Deinitialise_flash_fn() 209 struct yaffs_dev * 215 struct yaffs_dev *dev = malloc(sizeof(struct yaffs_dev)); in yaffs_add_dev_from_geometry() [all …]
|
A D | yaffs_nand.c | 20 int yaffs_rd_chunk_tags_nand(struct yaffs_dev *dev, int nand_chunk, in yaffs_rd_chunk_tags_nand() 51 int yaffs_wr_chunk_tags_nand(struct yaffs_dev *dev, in yaffs_wr_chunk_tags_nand() 83 int yaffs_mark_bad(struct yaffs_dev *dev, int block_no) in yaffs_mark_bad() 92 int yaffs_query_init_block_state(struct yaffs_dev *dev, in yaffs_query_init_block_state() 105 int yaffs_erase_block(struct yaffs_dev *dev, int flash_block) in yaffs_erase_block() 115 int yaffs_init_nand(struct yaffs_dev *dev) in yaffs_init_nand()
|
A D | yaffs_allocator.c | 57 static void yaffs_deinit_raw_tnodes(struct yaffs_dev *dev) in yaffs_deinit_raw_tnodes() 81 static void yaffs_init_raw_tnodes(struct yaffs_dev *dev) in yaffs_init_raw_tnodes() 96 static int yaffs_create_tnodes(struct yaffs_dev *dev, int n_tnodes) in yaffs_create_tnodes() 159 struct yaffs_tnode *yaffs_alloc_raw_tnode(struct yaffs_dev *dev) in yaffs_alloc_raw_tnode() 207 static void yaffs_init_raw_objs(struct yaffs_dev *dev) in yaffs_init_raw_objs() 221 static void yaffs_deinit_raw_objs(struct yaffs_dev *dev) in yaffs_deinit_raw_objs() 243 static int yaffs_create_free_objs(struct yaffs_dev *dev, int n_obj) in yaffs_create_free_objs() 288 struct yaffs_obj *yaffs_alloc_raw_obj(struct yaffs_dev *dev) in yaffs_alloc_raw_obj() 313 void yaffs_free_raw_obj(struct yaffs_dev *dev, struct yaffs_obj *obj) in yaffs_free_raw_obj() 328 void yaffs_deinit_raw_tnodes_and_objs(struct yaffs_dev *dev) in yaffs_deinit_raw_tnodes_and_objs() [all …]
|
A D | yaffs_summary.c | 56 static void yaffs_summary_clear(struct yaffs_dev *dev) in yaffs_summary_clear() 65 void yaffs_summary_deinit(struct yaffs_dev *dev) in yaffs_summary_deinit() 74 int yaffs_summary_init(struct yaffs_dev *dev) in yaffs_summary_init() 102 static unsigned yaffs_summary_sum(struct yaffs_dev *dev) in yaffs_summary_sum() 119 static int yaffs_summary_write(struct yaffs_dev *dev, int blk) in yaffs_summary_write() 179 int yaffs_summary_read(struct yaffs_dev *dev, in yaffs_summary_read() 247 int yaffs_summary_add(struct yaffs_dev *dev, in yaffs_summary_add() 276 int yaffs_summary_fetch(struct yaffs_dev *dev, in yaffs_summary_fetch() 293 void yaffs_summary_gc(struct yaffs_dev *dev, int blk) in yaffs_summary_gc()
|
A D | yaffs_checkptrw.c | 18 static int yaffs2_checkpt_space_ok(struct yaffs_dev *dev) in yaffs2_checkpt_space_ok() 28 static int yaffs_checkpt_erase(struct yaffs_dev *dev) in yaffs_checkpt_erase() 65 static void yaffs2_checkpt_find_erased_block(struct yaffs_dev *dev) in yaffs2_checkpt_find_erased_block() 98 static void yaffs2_checkpt_find_block(struct yaffs_dev *dev) in yaffs2_checkpt_find_block() 139 int yaffs2_checkpt_open(struct yaffs_dev *dev, int writing) in yaffs2_checkpt_open() 194 int yaffs2_get_checkpt_sum(struct yaffs_dev *dev, u32 * sum) in yaffs2_get_checkpt_sum() 203 static int yaffs2_checkpt_flush_buffer(struct yaffs_dev *dev) in yaffs2_checkpt_flush_buffer() 258 int yaffs2_checkpt_wr(struct yaffs_dev *dev, const void *data, int n_bytes) in yaffs2_checkpt_wr() 288 int yaffs2_checkpt_rd(struct yaffs_dev *dev, void *data, int n_bytes) in yaffs2_checkpt_rd() 359 int yaffs_checkpt_close(struct yaffs_dev *dev) in yaffs_checkpt_close() [all …]
|
A D | yaffs_tagscompat.c | 20 static void yaffs_handle_rd_data_error(struct yaffs_dev *dev, int nand_chunk); 98 static void yaffs_get_tags_from_spare(struct yaffs_dev *dev, in yaffs_get_tags_from_spare() 126 static int yaffs_wr_nand(struct yaffs_dev *dev, in yaffs_wr_nand() 140 static int yaffs_rd_chunk_nand(struct yaffs_dev *dev, in yaffs_rd_chunk_nand() 262 static void yaffs_handle_rd_data_error(struct yaffs_dev *dev, int nand_chunk) in yaffs_handle_rd_data_error() 280 int yaffs_tags_compat_wr(struct yaffs_dev *dev, in yaffs_tags_compat_wr() 312 int yaffs_tags_compat_rd(struct yaffs_dev *dev, in yaffs_tags_compat_rd() 361 int yaffs_tags_compat_mark_bad(struct yaffs_dev *dev, int flash_block) in yaffs_tags_compat_mark_bad() 377 int yaffs_tags_compat_query_block(struct yaffs_dev *dev, in yaffs_tags_compat_query_block()
|
A D | yaffs_guts.c | 995 struct yaffs_dev *dev = in->my_dev; in yaffs_find_chunk_in_file() 1021 struct yaffs_dev *dev = in->my_dev; in yaffs_find_del_file_chunk() 1057 struct yaffs_dev *dev = in->my_dev; in yaffs_put_chunk_in_file() 1209 struct yaffs_dev *dev = in->my_dev; in yaffs_soft_del_worker() 1586 struct yaffs_dev *dev = in->my_dev; in yaffs_invalidate_whole_cache() 1613 struct yaffs_dev *dev; in yaffs_free_obj() 2058 struct yaffs_dev *dev; in yaffs_update_parent() 3163 struct yaffs_dev *dev; in yaffs_check_obj_details_loaded() 3421 struct yaffs_dev *dev; in yaffs_file_rd() 3506 struct yaffs_dev *dev; in yaffs_do_file_wr() [all …]
|
A D | yaffs_verify.c | 20 int yaffs_skip_verification(struct yaffs_dev *dev) in yaffs_skip_verification() 26 static int yaffs_skip_full_verification(struct yaffs_dev *dev) in yaffs_skip_full_verification() 31 static int yaffs_skip_nand_verification(struct yaffs_dev *dev) in yaffs_skip_nand_verification() 49 void yaffs_verify_blk(struct yaffs_dev *dev, struct yaffs_block_info *bi, int n) in yaffs_verify_blk() 93 void yaffs_verify_collected_blk(struct yaffs_dev *dev, in yaffs_verify_collected_blk() 108 void yaffs_verify_blocks(struct yaffs_dev *dev) in yaffs_verify_blocks() 229 struct yaffs_dev *dev; in yaffs_verify_file() 306 struct yaffs_dev *dev; in yaffs_verify_obj() 401 void yaffs_verify_objects(struct yaffs_dev *dev) in yaffs_verify_objects() 499 void yaffs_verify_free_chunks(struct yaffs_dev *dev) in yaffs_verify_free_chunks()
|
A D | yaffs_yaffs2.c | 43 void yaffs_calc_oldest_dirty_seq(struct yaffs_dev *dev) in yaffs_calc_oldest_dirty_seq() 73 void yaffs2_find_oldest_dirty_seq(struct yaffs_dev *dev) in yaffs2_find_oldest_dirty_seq() 142 u32 yaffs2_find_refresh_block(struct yaffs_dev *dev) in yaffs2_find_refresh_block() 196 int yaffs2_checkpt_required(struct yaffs_dev *dev) in yaffs2_checkpt_required() 282 struct yaffs_dev *dev) in yaffs2_dev_to_checkpt_dev() 451 struct yaffs_dev *dev = in->my_dev; in yaffs2_checkpt_tnode_worker() 505 struct yaffs_dev *dev = obj->my_dev; in yaffs2_rd_checkpt_tnodes() 787 int yaffs_checkpoint_save(struct yaffs_dev *dev) in yaffs_checkpoint_save() 809 int yaffs2_checkpt_restore(struct yaffs_dev *dev) in yaffs2_checkpt_restore() 843 struct yaffs_dev *dev = NULL; in yaffs2_handle_hole() [all …]
|