Lines Matching refs:blk
936 int blk, int chunk_in_block, in yaffs2_scan_chunk() argument
951 int chunk = blk * dev->param.chunks_per_block + chunk_in_block; in yaffs2_scan_chunk()
997 blk, chunk_in_block); in yaffs2_scan_chunk()
1001 dev->alloc_block = blk; in yaffs2_scan_chunk()
1003 dev->alloc_block_finder = blk; in yaffs2_scan_chunk()
1011 blk); in yaffs2_scan_chunk()
1022 blk, chunk_in_block); in yaffs2_scan_chunk()
1032 blk, chunk_in_block, tags.obj_id, in yaffs2_scan_chunk()
1043 yaffs_set_chunk_bit(dev, blk, chunk_in_block); in yaffs2_scan_chunk()
1090 yaffs_set_chunk_bit(dev, blk, chunk_in_block); in yaffs2_scan_chunk()
1342 int blk; in yaffs2_scan_backwards() local
1388 for (blk = dev->internal_start_block; blk <= dev->internal_end_block; in yaffs2_scan_backwards()
1389 blk++) { in yaffs2_scan_backwards()
1390 yaffs_clear_chunk_bits(dev, blk); in yaffs2_scan_backwards()
1394 yaffs_query_init_block_state(dev, blk, &state, &seq_number); in yaffs2_scan_backwards()
1406 blk, bi->block_state, seq_number); in yaffs2_scan_backwards()
1413 "block %d is bad", blk); in yaffs2_scan_backwards()
1424 block_index[n_to_scan].block = blk; in yaffs2_scan_backwards()
1432 blk, seq_number); in yaffs2_scan_backwards()
1464 blk = block_index[block_iter].block; in yaffs2_scan_backwards()
1465 bi = yaffs_get_block_info(dev, blk); in yaffs2_scan_backwards()
1467 summary_available = yaffs_summary_read(dev, dev->sum_tags, blk); in yaffs2_scan_backwards()
1484 if (yaffs2_scan_chunk(dev, bi, blk, c, in yaffs2_scan_backwards()
1501 yaffs_block_became_dirty(dev, blk); in yaffs2_scan_backwards()