Lines Matching refs:adjops
1335 struct mtd_oob_ops adjops = *ops; in mtd_io_emulated_slc() local
1360 adjops.len = ops->len - ops->retlen; in mtd_io_emulated_slc()
1361 if (adjops.len > mtd->writesize - pageofs) in mtd_io_emulated_slc()
1362 adjops.len = mtd->writesize - pageofs; in mtd_io_emulated_slc()
1364 adjops.ooblen = ops->ooblen - ops->oobretlen; in mtd_io_emulated_slc()
1365 if (adjops.ooblen > oobavail - adjops.ooboffs) in mtd_io_emulated_slc()
1366 adjops.ooblen = oobavail - adjops.ooboffs; in mtd_io_emulated_slc()
1369 ret = mtd_read_oob_std(mtd, pos + pageofs, &adjops); in mtd_io_emulated_slc()
1373 ret = mtd_write_oob_std(mtd, pos + pageofs, &adjops); in mtd_io_emulated_slc()
1380 ops->retlen += adjops.retlen; in mtd_io_emulated_slc()
1381 ops->oobretlen += adjops.oobretlen; in mtd_io_emulated_slc()
1382 adjops.datbuf += adjops.retlen; in mtd_io_emulated_slc()
1383 adjops.oobbuf += adjops.oobretlen; in mtd_io_emulated_slc()
1384 adjops.ooboffs = 0; in mtd_io_emulated_slc()