Lines Matching refs:adjops
1342 struct mtd_oob_ops adjops = *ops; in mtd_io_emulated_slc() local
1367 adjops.len = ops->len - ops->retlen; in mtd_io_emulated_slc()
1368 if (adjops.len > mtd->writesize - pageofs) in mtd_io_emulated_slc()
1369 adjops.len = mtd->writesize - pageofs; in mtd_io_emulated_slc()
1371 adjops.ooblen = ops->ooblen - ops->oobretlen; in mtd_io_emulated_slc()
1372 if (adjops.ooblen > oobavail - adjops.ooboffs) in mtd_io_emulated_slc()
1373 adjops.ooblen = oobavail - adjops.ooboffs; in mtd_io_emulated_slc()
1376 ret = mtd_read_oob_std(mtd, pos + pageofs, &adjops); in mtd_io_emulated_slc()
1380 ret = mtd_write_oob_std(mtd, pos + pageofs, &adjops); in mtd_io_emulated_slc()
1387 ops->retlen += adjops.retlen; in mtd_io_emulated_slc()
1388 ops->oobretlen += adjops.oobretlen; in mtd_io_emulated_slc()
1389 adjops.datbuf += adjops.retlen; in mtd_io_emulated_slc()
1390 adjops.oobbuf += adjops.oobretlen; in mtd_io_emulated_slc()
1391 adjops.ooboffs = 0; in mtd_io_emulated_slc()