Lines Matching refs:ecc_strength

229 		geo->ecc_strength,  in gpmi_dump_info()
251 return geo->ecc_strength <= this->devdata->bch_max_ecc_strength; in gpmi_check_ecc()
261 unsigned int ecc_strength, in set_geometry_by_ecc_info() argument
284 geo->ecc_strength = round_up(ecc_strength, 2); in set_geometry_by_ecc_info()
350 (geo->gf_len * geo->ecc_strength * geo->ecc_chunk_count) / 8; in set_geometry_by_ecc_info()
363 (geo->ecc_strength * geo->gf_len * (geo->ecc_chunk_count - 1) in set_geometry_by_ecc_info()
393 int ecc_strength; in get_ecc_strength() local
395 ecc_strength = ((mtd->oobsize - geo->metadata_size) * 8) in get_ecc_strength()
399 return round_down(ecc_strength, 2); in get_ecc_strength()
430 geo->ecc_strength = get_ecc_strength(this); in legacy_set_geometry()
435 geo->ecc_strength, in legacy_set_geometry()
441 (geo->gf_len * geo->ecc_strength * geo->ecc_chunk_count) / 8; in legacy_set_geometry()
506 (geo->ecc_strength * geo->gf_len * (geo->ecc_chunk_count - 1) in legacy_set_geometry()
1205 int eccbits = nfc_geo->ecc_strength * nfc_geo->gf_len; in gpmi_count_bitflips()
1255 nfc_geo->ecc_strength); in gpmi_count_bitflips()
1262 nfc_geo->ecc_strength); in gpmi_count_bitflips()
1286 unsigned int ecc_strength = geo->ecc_strength >> 1; in gpmi_bch_layout_std() local
1293 BF_BCH_FLASH0LAYOUT0_ECC0(ecc_strength, this) | in gpmi_bch_layout_std()
1299 BF_BCH_FLASH0LAYOUT1_ECCN(ecc_strength, this) | in gpmi_bch_layout_std()
1354 unsigned int ecc_strength; in gpmi_ecc_read_subpage() local
1361 ecc_parity_size = geo->gf_len * geo->ecc_strength / 8; in gpmi_ecc_read_subpage()
1391 ecc_parity_size = geo->gf_len * geo->ecc_strength / 8; in gpmi_ecc_read_subpage()
1395 ecc_strength = geo->ecc_strength >> 1; in gpmi_ecc_read_subpage()
1399 BF_BCH_FLASH0LAYOUT0_ECC0(ecc_strength, this) | in gpmi_ecc_read_subpage()
1404 BF_BCH_FLASH0LAYOUT1_ECCN(ecc_strength, this) | in gpmi_ecc_read_subpage()
1579 int eccbits = nfc_geo->ecc_strength * nfc_geo->gf_len; in gpmi_ecc_read_page_raw()
1664 int eccbits = nfc_geo->ecc_strength * nfc_geo->gf_len; in gpmi_ecc_write_page_raw()
2038 ecc->strength = bch_geo->ecc_strength; in gpmi_init_last()
2047 ((bch_geo->gf_len * bch_geo->ecc_strength) % 8) == 0) { in gpmi_init_last()