Lines Matching refs:oobregion

1802 				int *sectionp, struct mtd_oob_region *oobregion,  in mtd_ooblayout_find_region()  argument
1805 struct mtd_oob_region *oobregion)) in mtd_ooblayout_find_region()
1809 memset(oobregion, 0, sizeof(*oobregion)); in mtd_ooblayout_find_region()
1812 ret = iter(mtd, section, oobregion); in mtd_ooblayout_find_region()
1816 if (pos + oobregion->length > byte) in mtd_ooblayout_find_region()
1819 pos += oobregion->length; in mtd_ooblayout_find_region()
1827 oobregion->offset += byte - pos; in mtd_ooblayout_find_region()
1828 oobregion->length -= byte - pos; in mtd_ooblayout_find_region()
1849 struct mtd_oob_region *oobregion) in mtd_ooblayout_find_eccregion() argument
1851 return mtd_ooblayout_find_region(mtd, eccbyte, section, oobregion, in mtd_ooblayout_find_eccregion()
1874 struct mtd_oob_region *oobregion)) in mtd_ooblayout_get_bytes() argument
1876 struct mtd_oob_region oobregion; in mtd_ooblayout_get_bytes() local
1880 &oobregion, iter); in mtd_ooblayout_get_bytes()
1885 cnt = min_t(int, nbytes, oobregion.length); in mtd_ooblayout_get_bytes()
1886 memcpy(buf, oobbuf + oobregion.offset, cnt); in mtd_ooblayout_get_bytes()
1893 ret = iter(mtd, ++section, &oobregion); in mtd_ooblayout_get_bytes()
1917 struct mtd_oob_region *oobregion)) in mtd_ooblayout_set_bytes() argument
1919 struct mtd_oob_region oobregion; in mtd_ooblayout_set_bytes() local
1923 &oobregion, iter); in mtd_ooblayout_set_bytes()
1928 cnt = min_t(int, nbytes, oobregion.length); in mtd_ooblayout_set_bytes()
1929 memcpy(oobbuf + oobregion.offset, buf, cnt); in mtd_ooblayout_set_bytes()
1936 ret = iter(mtd, ++section, &oobregion); in mtd_ooblayout_set_bytes()
1954 struct mtd_oob_region *oobregion)) in mtd_ooblayout_count_bytes() argument
1956 struct mtd_oob_region oobregion; in mtd_ooblayout_count_bytes() local
1960 ret = iter(mtd, section++, &oobregion); in mtd_ooblayout_count_bytes()
1967 nbytes += oobregion.length; in mtd_ooblayout_count_bytes()