Lines Matching full:steps
169 * the largest page size we support is 8K, this will have 16 steps/codewords
678 * @num_cw: number of steps for the read/write operation
1396 num_cw = command == NAND_CMD_PAGEPROG ? ecc->steps : 1; in parse_erase_write_errors()
1477 update_rw_regs(host, ecc->steps, true); in qcom_nandc_command()
1602 data_size1 = mtd->writesize - host->cw_size * (ecc->steps - 1); in qcom_nandc_read_cw_raw()
1605 if (cw == (ecc->steps - 1)) { in qcom_nandc_read_cw_raw()
1607 ((ecc->steps - 1) * 4); in qcom_nandc_read_cw_raw()
1608 oob_size2 = (ecc->steps * 4) + host->ecc_bytes_hw + in qcom_nandc_read_cw_raw()
1685 for_each_set_bit(cw, &uncorrectable_cws, ecc->steps) { in check_for_erased_page()
1686 if (cw == (ecc->steps - 1)) { in check_for_erased_page()
1687 data_size = ecc->size - ((ecc->steps - 1) * 4); in check_for_erased_page()
1688 oob_size = (ecc->steps * 4) + host->ecc_bytes_hw; in check_for_erased_page()
1742 for (i = 0; i < ecc->steps; i++, buf++) { in parse_read_errors()
1746 if (i == (ecc->steps - 1)) { in parse_read_errors()
1747 data_len = ecc->size - ((ecc->steps - 1) << 2); in parse_read_errors()
1748 oob_len = ecc->steps << 2; in parse_read_errors()
1842 for (i = 0; i < ecc->steps; i++) { in read_page_ecc()
1845 if (i == (ecc->steps - 1)) { in read_page_ecc()
1846 data_size = ecc->size - ((ecc->steps - 1) << 2); in read_page_ecc()
1847 oob_size = (ecc->steps << 2) + host->ecc_bytes_hw + in read_page_ecc()
1926 set_address(host, host->cw_size * (ecc->steps - 1), page); in copy_last_cw()
1969 for (cw = 0; cw < ecc->steps; cw++) { in qcom_nandc_read_page_raw()
1994 update_rw_regs(host, ecc->steps, true); in qcom_nandc_read_oob()
2018 update_rw_regs(host, ecc->steps, false); in qcom_nandc_write_page()
2021 for (i = 0; i < ecc->steps; i++) { in qcom_nandc_write_page()
2024 if (i == (ecc->steps - 1)) { in qcom_nandc_write_page()
2025 data_size = ecc->size - ((ecc->steps - 1) << 2); in qcom_nandc_write_page()
2026 oob_size = (ecc->steps << 2) + host->ecc_bytes_hw + in qcom_nandc_write_page()
2035 i == (ecc->steps - 1) ? NAND_BAM_NO_EOT : 0); in qcom_nandc_write_page()
2044 if (i == (ecc->steps - 1)) { in qcom_nandc_write_page()
2089 update_rw_regs(host, ecc->steps, false); in qcom_nandc_write_page_raw()
2092 for (i = 0; i < ecc->steps; i++) { in qcom_nandc_write_page_raw()
2096 data_size1 = mtd->writesize - host->cw_size * (ecc->steps - 1); in qcom_nandc_write_page_raw()
2099 if (i == (ecc->steps - 1)) { in qcom_nandc_write_page_raw()
2101 ((ecc->steps - 1) << 2); in qcom_nandc_write_page_raw()
2102 oob_size2 = (ecc->steps << 2) + host->ecc_bytes_hw + in qcom_nandc_write_page_raw()
2163 data_size = ecc->size - ((ecc->steps - 1) << 2); in qcom_nandc_write_oob()
2171 set_address(host, host->cw_size * (ecc->steps - 1), page); in qcom_nandc_write_oob()
2219 bbpos = mtd->writesize - host->cw_size * (ecc->steps - 1); in qcom_nandc_block_bad()
2250 set_address(host, host->cw_size * (ecc->steps - 1), page); in qcom_nandc_block_markbad()
2424 oobregion->length = (ecc->bytes * (ecc->steps - 1)) + in qcom_nand_ooblayout_ecc()
2445 oobregion->length = ecc->steps * 4; in qcom_nand_ooblayout_free()
2446 oobregion->offset = ((ecc->steps - 1) * ecc->bytes) + host->bbm_size; in qcom_nand_ooblayout_free()
2474 /* controller only supports 512 bytes data steps */ in qcom_nand_attach_chip()
2621 …fg1 %x ecc_buf_cfg %x ecc_bch cfg %x cw_size %d cw_data %d strength %d parity_bytes %d steps %d\n", in qcom_nand_attach_chip()