Lines Matching refs:sas
1180 int sas = cfg->spare_area_size << cfg->sector_size_1k;
1186 oobregion->offset = (section * sas) + 6;
1198 int sas = cfg->spare_area_size << cfg->sector_size_1k;
1205 next = (section * sas);
1210 oobregion->offset = ((section - 1) * sas) + 9;
1238 int sas = cfg->spare_area_size << cfg->sector_size_1k;
1244 oobregion->offset = ((section + 1) * sas) - chip->ecc.bytes;
1256 int sas = cfg->spare_area_size << cfg->sector_size_1k;
1262 if (sas <= chip->ecc.bytes)
1265 oobregion->offset = section * sas;
1266 oobregion->length = sas - chip->ecc.bytes;
1282 int sas = cfg->spare_area_size << cfg->sector_size_1k;
1284 if (section > 1 || sas - chip->ecc.bytes < 6 ||
1285 (section && sas - chip->ecc.bytes == 6))
1293 oobregion->length = sas - chip->ecc.bytes - 6;
1315 int sas = p->spare_area_size << p->sector_size_1k;
1339 if (ecc->bytes >= sas) {
1342 ecc->bytes, sas);
1436 * @sas: spare area sector size (i.e., OOB size per FLASH_CACHE)
1440 int sas, int sector_1k)
1442 int tbytes = sas << sector_1k;
1459 * @sas: spare area sector size (i.e., OOB size per FLASH_CACHE)
1463 const u8 *oob, int sas, int sector_1k)
1465 int tbytes = sas << sector_1k;