Lines Matching refs:param
52 if (dev->param.inband_tags) { in ynandif_WriteChunkWithTagsToNAND()
61 yaffs_pack_tags2(&pt, tags, !dev->param.no_tags_ecc); in ynandif_WriteChunkWithTagsToNAND()
67 data, dev->param.total_bytes_per_chunk, in ynandif_WriteChunkWithTagsToNAND()
91 } else if (dev->param.inband_tags) { in ynandif_ReadChunkWithTagsFromNAND()
106 data ? dev->param.total_bytes_per_chunk : 0, in ynandif_ReadChunkWithTagsFromNAND()
110 if (dev->param.inband_tags) { in ynandif_ReadChunkWithTagsFromNAND()
119 yaffs_unpack_tags2(tags, &pt, !dev->param.no_tags_ecc); in ynandif_ReadChunkWithTagsFromNAND()
170 chunkNo = blockId * dev->param.chunks_per_block; in ynandif_QueryNANDBlock()
215 struct yaffs_param *param; in yaffs_add_dev_from_geometry() local
221 param = &dev->param; in yaffs_add_dev_from_geometry()
223 param->name = clonedName; in yaffs_add_dev_from_geometry()
224 param->write_chunk_tags_fn = ynandif_WriteChunkWithTagsToNAND; in yaffs_add_dev_from_geometry()
225 param->read_chunk_tags_fn = ynandif_ReadChunkWithTagsFromNAND; in yaffs_add_dev_from_geometry()
226 param->erase_fn = ynandif_EraseBlockInNAND; in yaffs_add_dev_from_geometry()
227 param->initialise_flash_fn = ynandif_InitialiseNAND; in yaffs_add_dev_from_geometry()
228 param->query_block_fn = ynandif_QueryNANDBlock; in yaffs_add_dev_from_geometry()
229 param->bad_block_fn = ynandif_MarkNANDBlockBad; in yaffs_add_dev_from_geometry()
230 param->n_caches = 20; in yaffs_add_dev_from_geometry()
231 param->start_block = geometry->start_block; in yaffs_add_dev_from_geometry()
232 param->end_block = geometry->end_block; in yaffs_add_dev_from_geometry()
233 param->total_bytes_per_chunk = geometry->dataSize; in yaffs_add_dev_from_geometry()
234 param->spare_bytes_per_chunk = geometry->spareSize; in yaffs_add_dev_from_geometry()
235 param->inband_tags = geometry->inband_tags; in yaffs_add_dev_from_geometry()
236 param->chunks_per_block = geometry->pagesPerBlock; in yaffs_add_dev_from_geometry()
237 param->use_nand_ecc = geometry->hasECC; in yaffs_add_dev_from_geometry()
238 param->is_yaffs2 = geometry->useYaffs2; in yaffs_add_dev_from_geometry()
239 param->n_reserved_blocks = 5; in yaffs_add_dev_from_geometry()