Home
last modified time | relevance | path

Searched refs:adjops (Results 1 – 1 of 1) sorted by relevance

/linux-6.6.21/drivers/mtd/
Dmtdcore.c1628 struct mtd_oob_ops adjops = *ops; in mtd_io_emulated_slc() local
1653 adjops.len = ops->len - ops->retlen; in mtd_io_emulated_slc()
1654 if (adjops.len > mtd->writesize - pageofs) in mtd_io_emulated_slc()
1655 adjops.len = mtd->writesize - pageofs; in mtd_io_emulated_slc()
1657 adjops.ooblen = ops->ooblen - ops->oobretlen; in mtd_io_emulated_slc()
1658 if (adjops.ooblen > oobavail - adjops.ooboffs) in mtd_io_emulated_slc()
1659 adjops.ooblen = oobavail - adjops.ooboffs; in mtd_io_emulated_slc()
1662 ret = mtd_read_oob_std(mtd, pos + pageofs, &adjops); in mtd_io_emulated_slc()
1666 ret = mtd_write_oob_std(mtd, pos + pageofs, &adjops); in mtd_io_emulated_slc()
1673 ops->retlen += adjops.retlen; in mtd_io_emulated_slc()
[all …]