Lines Matching refs:oobregion
1829 * @oobregion: used to retrieve the ECC position
1833 * This function returns the section id and oobregion information of a
1837 * mtd_ooblayout_find_region(mtd, 3, §ion, &oobregion, mtd_ooblayout_ecc);
1842 int *sectionp, struct mtd_oob_region *oobregion,
1845 struct mtd_oob_region *oobregion))
1849 memset(oobregion, 0, sizeof(*oobregion));
1852 ret = iter(mtd, section, oobregion);
1856 if (pos + oobregion->length > byte)
1859 pos += oobregion->length;
1867 oobregion->offset += byte - pos;
1868 oobregion->length -= byte - pos;
1880 * @oobregion: OOB region information
1889 struct mtd_oob_region *oobregion)
1891 return mtd_ooblayout_find_region(mtd, eccbyte, section, oobregion,
1914 struct mtd_oob_region *oobregion))
1916 struct mtd_oob_region oobregion;
1920 &oobregion, iter);
1925 cnt = min_t(int, nbytes, oobregion.length);
1926 memcpy(buf, oobbuf + oobregion.offset, cnt);
1933 ret = iter(mtd, ++section, &oobregion);
1957 struct mtd_oob_region *oobregion))
1959 struct mtd_oob_region oobregion;
1963 &oobregion, iter);
1968 cnt = min_t(int, nbytes, oobregion.length);
1969 memcpy(oobbuf + oobregion.offset, buf, cnt);
1976 ret = iter(mtd, ++section, &oobregion);
1994 struct mtd_oob_region *oobregion))
1996 struct mtd_oob_region oobregion;
2000 ret = iter(mtd, section++, &oobregion);
2007 nbytes += oobregion.length;