Lines Matching defs:section

1758  * mtd_ooblayout_ecc - Get the OOB region definition of a specific ECC section
1760 * @section: ECC section. Depending on the layout you may have all the ECC
1761 * bytes stored in a single contiguous section, or one section
1767 * This function returns ECC section information in the OOB area. If you want
1769 * mtd_ooblayout_ecc(mtd, section++, oobecc) until it returns -ERANGE.
1773 int mtd_ooblayout_ecc(struct mtd_info *mtd, int section,
1780 if (!master || section < 0)
1786 return master->ooblayout->ecc(master, section, oobecc);
1792 * section
1794 * @section: Free section you are interested in. Depending on the layout
1796 * section, or one section per ECC chunk plus an extra section
1803 * mtd_ooblayout_free(mtd, section++, oobfree) until it returns -ERANGE.
1807 int mtd_ooblayout_free(struct mtd_info *mtd, int section,
1814 if (!master || section < 0)
1820 return master->ooblayout->free(master, section, oobfree);
1828 * @sectionp: pointer where the section id will be stored
1833 * This function returns the section id and oobregion information of a
1837 * mtd_ooblayout_find_region(mtd, 3, &section, &oobregion, mtd_ooblayout_ecc);
1844 int section,
1847 int pos = 0, ret, section = 0;
1852 ret = iter(mtd, section, oobregion);
1860 section++;
1869 *sectionp = section;
1879 * @section: pointer where the section id will be stored
1888 int *section,
1891 return mtd_ooblayout_find_region(mtd, eccbyte, section, oobregion,
1903 * @iter: section iterator
1913 int section,
1917 int section, ret;
1919 ret = mtd_ooblayout_find_region(mtd, start, &section,
1933 ret = iter(mtd, ++section, &oobregion);
1946 * @iter: section iterator
1956 int section,
1960 int section, ret;
1962 ret = mtd_ooblayout_find_region(mtd, start, &section,
1976 ret = iter(mtd, ++section, &oobregion);
1993 int section,
1997 int section = 0, ret, nbytes = 0;
2000 ret = iter(mtd, section++, &oobregion);