Lines Matching defs:section

1504  * mtd_ooblayout_ecc - Get the OOB region definition of a specific ECC section
1506 * @section: ECC section. Depending on the layout you may have all the ECC
1507 * bytes stored in a single contiguous section, or one section
1513 * This function returns ECC section information in the OOB area. If you want
1515 * mtd_ooblayout_ecc(mtd, section++, oobecc) until it returns -ERANGE.
1519 int mtd_ooblayout_ecc(struct mtd_info *mtd, int section,
1526 if (!master || section < 0)
1532 return master->ooblayout->ecc(master, section, oobecc);
1538 * section
1540 * @section: Free section you are interested in. Depending on the layout
1542 * section, or one section per ECC chunk plus an extra section
1549 * mtd_ooblayout_free(mtd, section++, oobfree) until it returns -ERANGE.
1553 int mtd_ooblayout_free(struct mtd_info *mtd, int section,
1560 if (!master || section < 0)
1566 return master->ooblayout->free(master, section, oobfree);
1574 * @sectionp: pointer where the section id will be stored
1579 * This function returns the section id and oobregion information of a
1583 * mtd_ooblayout_find_region(mtd, 3, &section, &oobregion, mtd_ooblayout_ecc);
1590 int section,
1593 int pos = 0, ret, section = 0;
1598 ret = iter(mtd, section, oobregion);
1606 section++;
1615 *sectionp = section;
1625 * @sectionp: pointer where the section id will be stored
1634 int *section,
1637 return mtd_ooblayout_find_region(mtd, eccbyte, section, oobregion,
1649 * @iter: section iterator
1659 int section,
1663 int section, ret;
1665 ret = mtd_ooblayout_find_region(mtd, start, &section,
1679 ret = iter(mtd, ++section, &oobregion);
1692 * @iter: section iterator
1702 int section,
1706 int section, ret;
1708 ret = mtd_ooblayout_find_region(mtd, start, &section,
1722 ret = iter(mtd, ++section, &oobregion);
1739 int section,
1743 int section = 0, ret, nbytes = 0;
1746 ret = iter(mtd, section++, &oobregion);