Lines Matching refs:retval
44 int retval = 0; in nandmtd2_WriteChunkWithTagsToNAND() local
77 retval = mtd->write_oob(mtd, addr, &ops); in nandmtd2_WriteChunkWithTagsToNAND()
81 retval = in nandmtd2_WriteChunkWithTagsToNAND()
85 retval = in nandmtd2_WriteChunkWithTagsToNAND()
91 if (retval == 0) in nandmtd2_WriteChunkWithTagsToNAND()
105 int retval = 0; in nandmtd2_ReadChunkWithTagsFromNAND() local
130 retval = mtd->read(mtd, addr, dev->totalBytesPerChunk, in nandmtd2_ReadChunkWithTagsFromNAND()
139 retval = mtd->read_oob(mtd, addr, &ops); in nandmtd2_ReadChunkWithTagsFromNAND()
144 retval = mtd->read_ecc(mtd, addr, dev->nDataBytesPerChunk, in nandmtd2_ReadChunkWithTagsFromNAND()
149 retval = in nandmtd2_ReadChunkWithTagsFromNAND()
153 retval = in nandmtd2_ReadChunkWithTagsFromNAND()
176 if (tags && retval == -EBADMSG && tags->eccResult == YAFFS_ECC_RESULT_NO_ERROR) { in nandmtd2_ReadChunkWithTagsFromNAND()
180 if (tags && retval == -EUCLEAN && tags->eccResult == YAFFS_ECC_RESULT_NO_ERROR) { in nandmtd2_ReadChunkWithTagsFromNAND()
184 if (retval == 0) in nandmtd2_ReadChunkWithTagsFromNAND()
193 int retval; in nandmtd2_MarkNANDBlockBad() local
197 retval = in nandmtd2_MarkNANDBlockBad()
202 if (retval == 0) in nandmtd2_MarkNANDBlockBad()
213 int retval; in nandmtd2_QueryNANDBlock() local
217 retval = in nandmtd2_QueryNANDBlock()
222 if (retval) { in nandmtd2_QueryNANDBlock()
246 if (retval == 0) in nandmtd2_QueryNANDBlock()