Lines Matching refs:alloc_block
424 if (dev->alloc_block < 0) { in yaffs_alloc_chunk()
426 dev->alloc_block = yaffs_find_alloc_block(dev); in yaffs_alloc_chunk()
440 if (dev->alloc_block >= 0) { in yaffs_alloc_chunk()
441 bi = yaffs_get_block_info(dev, dev->alloc_block); in yaffs_alloc_chunk()
443 ret_val = (dev->alloc_block * dev->param.chunks_per_block) + in yaffs_alloc_chunk()
446 yaffs_set_chunk_bit(dev, dev->alloc_block, dev->alloc_page); in yaffs_alloc_chunk()
455 dev->alloc_block = -1; in yaffs_alloc_chunk()
476 if (dev->alloc_block > 0) in yaffs_get_erased_chunks()
491 if (dev->alloc_block > 0) { in yaffs_skip_rest_of_block()
492 bi = yaffs_get_block_info(dev, dev->alloc_block); in yaffs_skip_rest_of_block()
495 dev->alloc_block = -1; in yaffs_skip_rest_of_block()
2264 dev->alloc_block = -1; /* force it to get a new one */ in yaffs_init_blocks()
4838 dev->alloc_block = -1; in yaffs_guts_initialise()