Lines Matching refs:adjops
1498 struct mtd_oob_ops adjops = *ops; in mtd_io_emulated_slc() local
1523 adjops.len = ops->len - ops->retlen; in mtd_io_emulated_slc()
1524 if (adjops.len > mtd->writesize - pageofs) in mtd_io_emulated_slc()
1525 adjops.len = mtd->writesize - pageofs; in mtd_io_emulated_slc()
1527 adjops.ooblen = ops->ooblen - ops->oobretlen; in mtd_io_emulated_slc()
1528 if (adjops.ooblen > oobavail - adjops.ooboffs) in mtd_io_emulated_slc()
1529 adjops.ooblen = oobavail - adjops.ooboffs; in mtd_io_emulated_slc()
1532 ret = mtd_read_oob_std(mtd, pos + pageofs, &adjops); in mtd_io_emulated_slc()
1536 ret = mtd_write_oob_std(mtd, pos + pageofs, &adjops); in mtd_io_emulated_slc()
1543 ops->retlen += adjops.retlen; in mtd_io_emulated_slc()
1544 ops->oobretlen += adjops.oobretlen; in mtd_io_emulated_slc()
1545 adjops.datbuf += adjops.retlen; in mtd_io_emulated_slc()
1546 adjops.oobbuf += adjops.oobretlen; in mtd_io_emulated_slc()
1547 adjops.ooboffs = 0; in mtd_io_emulated_slc()