Lines Matching refs:adjops
1647 struct mtd_oob_ops adjops = *ops; in mtd_io_emulated_slc() local
1672 adjops.len = ops->len - ops->retlen; in mtd_io_emulated_slc()
1673 if (adjops.len > mtd->writesize - pageofs) in mtd_io_emulated_slc()
1674 adjops.len = mtd->writesize - pageofs; in mtd_io_emulated_slc()
1676 adjops.ooblen = ops->ooblen - ops->oobretlen; in mtd_io_emulated_slc()
1677 if (adjops.ooblen > oobavail - adjops.ooboffs) in mtd_io_emulated_slc()
1678 adjops.ooblen = oobavail - adjops.ooboffs; in mtd_io_emulated_slc()
1681 ret = mtd_read_oob_std(mtd, pos + pageofs, &adjops); in mtd_io_emulated_slc()
1685 ret = mtd_write_oob_std(mtd, pos + pageofs, &adjops); in mtd_io_emulated_slc()
1692 ops->retlen += adjops.retlen; in mtd_io_emulated_slc()
1693 ops->oobretlen += adjops.oobretlen; in mtd_io_emulated_slc()
1694 adjops.datbuf += adjops.retlen; in mtd_io_emulated_slc()
1695 adjops.oobbuf += adjops.oobretlen; in mtd_io_emulated_slc()
1696 adjops.ooboffs = 0; in mtd_io_emulated_slc()