Lines Matching refs:section

1771  * mtd_ooblayout_ecc - Get the OOB region definition of a specific ECC section
1773 * @section: ECC section. Depending on the layout you may have all the ECC
1774 * bytes stored in a single contiguous section, or one section
1780 * This function returns ECC section information in the OOB area. If you want
1782 * mtd_ooblayout_ecc(mtd, section++, oobecc) until it returns -ERANGE.
1786 int mtd_ooblayout_ecc(struct mtd_info *mtd, int section,
1793 if (!master || section < 0)
1799 return master->ooblayout->ecc(master, section, oobecc);
1805 * section
1807 * @section: Free section you are interested in. Depending on the layout
1809 * section, or one section per ECC chunk plus an extra section
1816 * mtd_ooblayout_free(mtd, section++, oobfree) until it returns -ERANGE.
1820 int mtd_ooblayout_free(struct mtd_info *mtd, int section,
1827 if (!master || section < 0)
1833 return master->ooblayout->free(master, section, oobfree);
1841 * @sectionp: pointer where the section id will be stored
1846 * This function returns the section id and oobregion information of a
1850 * mtd_ooblayout_find_region(mtd, 3, &section, &oobregion, mtd_ooblayout_ecc);
1857 int section,
1860 int pos = 0, ret, section = 0;
1865 ret = iter(mtd, section, oobregion);
1873 section++;
1882 *sectionp = section;
1892 * @section: pointer where the section id will be stored
1901 int *section,
1904 return mtd_ooblayout_find_region(mtd, eccbyte, section, oobregion,
1916 * @iter: section iterator
1926 int section,
1930 int section, ret;
1932 ret = mtd_ooblayout_find_region(mtd, start, &section,
1946 ret = iter(mtd, ++section, &oobregion);
1959 * @iter: section iterator
1969 int section,
1973 int section, ret;
1975 ret = mtd_ooblayout_find_region(mtd, start, &section,
1989 ret = iter(mtd, ++section, &oobregion);
2006 int section,
2010 int section = 0, ret, nbytes = 0;
2013 ret = iter(mtd, section++, &oobregion);