Lines Matching refs:adjops
1641 struct mtd_oob_ops adjops = *ops; in mtd_io_emulated_slc() local
1666 adjops.len = ops->len - ops->retlen; in mtd_io_emulated_slc()
1667 if (adjops.len > mtd->writesize - pageofs) in mtd_io_emulated_slc()
1668 adjops.len = mtd->writesize - pageofs; in mtd_io_emulated_slc()
1670 adjops.ooblen = ops->ooblen - ops->oobretlen; in mtd_io_emulated_slc()
1671 if (adjops.ooblen > oobavail - adjops.ooboffs) in mtd_io_emulated_slc()
1672 adjops.ooblen = oobavail - adjops.ooboffs; in mtd_io_emulated_slc()
1675 ret = mtd_read_oob_std(mtd, pos + pageofs, &adjops); in mtd_io_emulated_slc()
1679 ret = mtd_write_oob_std(mtd, pos + pageofs, &adjops); in mtd_io_emulated_slc()
1686 ops->retlen += adjops.retlen; in mtd_io_emulated_slc()
1687 ops->oobretlen += adjops.oobretlen; in mtd_io_emulated_slc()
1688 adjops.datbuf += adjops.retlen; in mtd_io_emulated_slc()
1689 adjops.oobbuf += adjops.oobretlen; in mtd_io_emulated_slc()
1690 adjops.ooboffs = 0; in mtd_io_emulated_slc()