Lines Matching refs:oobregion
1575 * @oobregion: used to retrieve the ECC position
1579 * This function returns the section id and oobregion information of a
1583 * mtd_ooblayout_find_region(mtd, 3, §ion, &oobregion, mtd_ooblayout_ecc);
1588 int *sectionp, struct mtd_oob_region *oobregion,
1591 struct mtd_oob_region *oobregion))
1595 memset(oobregion, 0, sizeof(*oobregion));
1598 ret = iter(mtd, section, oobregion);
1602 if (pos + oobregion->length > byte)
1605 pos += oobregion->length;
1613 oobregion->offset += byte - pos;
1614 oobregion->length -= byte - pos;
1626 * @oobregion: OOB region information
1635 struct mtd_oob_region *oobregion)
1637 return mtd_ooblayout_find_region(mtd, eccbyte, section, oobregion,
1660 struct mtd_oob_region *oobregion))
1662 struct mtd_oob_region oobregion;
1666 &oobregion, iter);
1671 cnt = min_t(int, nbytes, oobregion.length);
1672 memcpy(buf, oobbuf + oobregion.offset, cnt);
1679 ret = iter(mtd, ++section, &oobregion);
1703 struct mtd_oob_region *oobregion))
1705 struct mtd_oob_region oobregion;
1709 &oobregion, iter);
1714 cnt = min_t(int, nbytes, oobregion.length);
1715 memcpy(oobbuf + oobregion.offset, buf, cnt);
1722 ret = iter(mtd, ++section, &oobregion);
1740 struct mtd_oob_region *oobregion))
1742 struct mtd_oob_region oobregion;
1746 ret = iter(mtd, section++, &oobregion);
1753 nbytes += oobregion.length;