Lines Matching refs:blk
26 int blk; in yaffs1_scan() local
51 for (blk = dev->internal_start_block; blk <= dev->internal_end_block; in yaffs1_scan()
52 blk++) { in yaffs1_scan()
53 yaffs_clear_chunk_bits(dev, blk); in yaffs1_scan()
57 yaffs_query_init_block_state(dev, blk, &state, &seq_number); in yaffs1_scan()
67 blk, state, seq_number); in yaffs1_scan()
71 "block %d is bad", blk); in yaffs1_scan()
81 for (blk = dev->internal_start_block; in yaffs1_scan()
82 !alloc_failed && blk <= dev->internal_end_block; blk++) { in yaffs1_scan()
86 bi = yaffs_get_block_info(dev, blk); in yaffs1_scan()
96 chunk = blk * dev->param.chunks_per_block + c; in yaffs1_scan()
124 blk, c); in yaffs1_scan()
126 dev->alloc_block = blk; in yaffs1_scan()
128 dev->alloc_block_finder = blk; in yaffs1_scan()
138 yaffs_set_chunk_bit(dev, blk, c); in yaffs1_scan()
180 yaffs_set_chunk_bit(dev, blk, c); in yaffs1_scan()
373 yaffs_block_became_dirty(dev, blk); in yaffs1_scan()