Lines Matching refs:ops
79 struct mtd_oob_ops ops; in nandmtd_WriteChunkToNAND() local
94 ops.mode = MTD_OOB_AUTO; in nandmtd_WriteChunkToNAND()
95 ops.ooblen = 8; /* temp hack */ in nandmtd_WriteChunkToNAND()
97 ops.mode = MTD_OOB_RAW; in nandmtd_WriteChunkToNAND()
98 ops.ooblen = YAFFS_BYTES_PER_SPARE; in nandmtd_WriteChunkToNAND()
100 ops.len = data ? dev->nDataBytesPerChunk : ops.ooblen; in nandmtd_WriteChunkToNAND()
101 ops.datbuf = (u8 *)data; in nandmtd_WriteChunkToNAND()
102 ops.ooboffs = 0; in nandmtd_WriteChunkToNAND()
103 ops.oobbuf = spareAsBytes; in nandmtd_WriteChunkToNAND()
104 retval = mtd->write_oob(mtd, addr, &ops); in nandmtd_WriteChunkToNAND()
143 struct mtd_oob_ops ops; in nandmtd_ReadChunkFromNAND() local
157 ops.mode = MTD_OOB_AUTO; in nandmtd_ReadChunkFromNAND()
158 ops.ooblen = 8; /* temp hack */ in nandmtd_ReadChunkFromNAND()
160 ops.mode = MTD_OOB_RAW; in nandmtd_ReadChunkFromNAND()
161 ops.ooblen = YAFFS_BYTES_PER_SPARE; in nandmtd_ReadChunkFromNAND()
163 ops.len = data ? dev->nDataBytesPerChunk : ops.ooblen; in nandmtd_ReadChunkFromNAND()
164 ops.datbuf = data; in nandmtd_ReadChunkFromNAND()
165 ops.ooboffs = 0; in nandmtd_ReadChunkFromNAND()
166 ops.oobbuf = spareAsBytes; in nandmtd_ReadChunkFromNAND()
167 retval = mtd->read_oob(mtd, addr, &ops); in nandmtd_ReadChunkFromNAND()