Lines Matching refs:adjops
1580 struct mtd_oob_ops adjops = *ops; in mtd_io_emulated_slc() local
1605 adjops.len = ops->len - ops->retlen; in mtd_io_emulated_slc()
1606 if (adjops.len > mtd->writesize - pageofs) in mtd_io_emulated_slc()
1607 adjops.len = mtd->writesize - pageofs; in mtd_io_emulated_slc()
1609 adjops.ooblen = ops->ooblen - ops->oobretlen; in mtd_io_emulated_slc()
1610 if (adjops.ooblen > oobavail - adjops.ooboffs) in mtd_io_emulated_slc()
1611 adjops.ooblen = oobavail - adjops.ooboffs; in mtd_io_emulated_slc()
1614 ret = mtd_read_oob_std(mtd, pos + pageofs, &adjops); in mtd_io_emulated_slc()
1618 ret = mtd_write_oob_std(mtd, pos + pageofs, &adjops); in mtd_io_emulated_slc()
1625 ops->retlen += adjops.retlen; in mtd_io_emulated_slc()
1626 ops->oobretlen += adjops.oobretlen; in mtd_io_emulated_slc()
1627 adjops.datbuf += adjops.retlen; in mtd_io_emulated_slc()
1628 adjops.oobbuf += adjops.oobretlen; in mtd_io_emulated_slc()
1629 adjops.ooboffs = 0; in mtd_io_emulated_slc()