Lines Matching refs:oobregion

1210 				int *sectionp, struct mtd_oob_region *oobregion,  in mtd_ooblayout_find_region()  argument
1213 struct mtd_oob_region *oobregion)) in mtd_ooblayout_find_region()
1217 memset(oobregion, 0, sizeof(*oobregion)); in mtd_ooblayout_find_region()
1220 ret = iter(mtd, section, oobregion); in mtd_ooblayout_find_region()
1224 if (pos + oobregion->length > byte) in mtd_ooblayout_find_region()
1227 pos += oobregion->length; in mtd_ooblayout_find_region()
1235 oobregion->offset += byte - pos; in mtd_ooblayout_find_region()
1236 oobregion->length -= byte - pos; in mtd_ooblayout_find_region()
1257 struct mtd_oob_region *oobregion) in mtd_ooblayout_find_eccregion() argument
1259 return mtd_ooblayout_find_region(mtd, eccbyte, section, oobregion, in mtd_ooblayout_find_eccregion()
1282 struct mtd_oob_region *oobregion)) in mtd_ooblayout_get_bytes() argument
1284 struct mtd_oob_region oobregion; in mtd_ooblayout_get_bytes() local
1288 &oobregion, iter); in mtd_ooblayout_get_bytes()
1293 cnt = min_t(int, nbytes, oobregion.length); in mtd_ooblayout_get_bytes()
1294 memcpy(buf, oobbuf + oobregion.offset, cnt); in mtd_ooblayout_get_bytes()
1301 ret = iter(mtd, ++section, &oobregion); in mtd_ooblayout_get_bytes()
1325 struct mtd_oob_region *oobregion)) in mtd_ooblayout_set_bytes() argument
1327 struct mtd_oob_region oobregion; in mtd_ooblayout_set_bytes() local
1331 &oobregion, iter); in mtd_ooblayout_set_bytes()
1336 cnt = min_t(int, nbytes, oobregion.length); in mtd_ooblayout_set_bytes()
1337 memcpy(oobbuf + oobregion.offset, buf, cnt); in mtd_ooblayout_set_bytes()
1344 ret = iter(mtd, ++section, &oobregion); in mtd_ooblayout_set_bytes()
1362 struct mtd_oob_region *oobregion)) in mtd_ooblayout_count_bytes() argument
1364 struct mtd_oob_region oobregion; in mtd_ooblayout_count_bytes() local
1368 ret = iter(mtd, section++, &oobregion); in mtd_ooblayout_count_bytes()
1375 nbytes += oobregion.length; in mtd_ooblayout_count_bytes()