Lines Matching full:steps
177 * the largest page size we support is 8K, this will have 16 steps/codewords
685 * @num_cw: number of steps for the read/write operation
1403 num_cw = command == NAND_CMD_PAGEPROG ? ecc->steps : 1; in parse_erase_write_errors()
1485 update_rw_regs(host, ecc->steps, true); in qcom_nandc_command()
1610 data_size1 = mtd->writesize - host->cw_size * (ecc->steps - 1); in qcom_nandc_read_cw_raw()
1613 if (cw == (ecc->steps - 1)) { in qcom_nandc_read_cw_raw()
1615 ((ecc->steps - 1) * 4); in qcom_nandc_read_cw_raw()
1616 oob_size2 = (ecc->steps * 4) + host->ecc_bytes_hw + in qcom_nandc_read_cw_raw()
1695 for_each_set_bit(cw, &uncorrectable_cws, ecc->steps) { in check_for_erased_page()
1696 if (cw == (ecc->steps - 1)) { in check_for_erased_page()
1697 data_size = ecc->size - ((ecc->steps - 1) * 4); in check_for_erased_page()
1698 oob_size = (ecc->steps * 4) + host->ecc_bytes_hw; in check_for_erased_page()
1752 for (i = 0; i < ecc->steps; i++, buf++) { in parse_read_errors()
1756 if (i == (ecc->steps - 1)) { in parse_read_errors()
1757 data_len = ecc->size - ((ecc->steps - 1) << 2); in parse_read_errors()
1758 oob_len = ecc->steps << 2; in parse_read_errors()
1852 for (i = 0; i < ecc->steps; i++) { in read_page_ecc()
1855 if (i == (ecc->steps - 1)) { in read_page_ecc()
1856 data_size = ecc->size - ((ecc->steps - 1) << 2); in read_page_ecc()
1857 oob_size = (ecc->steps << 2) + host->ecc_bytes_hw + in read_page_ecc()
1936 set_address(host, host->cw_size * (ecc->steps - 1), page); in copy_last_cw()
1979 for (cw = 0; cw < ecc->steps; cw++) { in qcom_nandc_read_page_raw()
2005 update_rw_regs(host, ecc->steps, true); in qcom_nandc_read_oob()
2029 update_rw_regs(host, ecc->steps, false); in qcom_nandc_write_page()
2032 for (i = 0; i < ecc->steps; i++) { in qcom_nandc_write_page()
2035 if (i == (ecc->steps - 1)) { in qcom_nandc_write_page()
2036 data_size = ecc->size - ((ecc->steps - 1) << 2); in qcom_nandc_write_page()
2037 oob_size = (ecc->steps << 2) + host->ecc_bytes_hw + in qcom_nandc_write_page()
2046 i == (ecc->steps - 1) ? NAND_BAM_NO_EOT : 0); in qcom_nandc_write_page()
2055 if (i == (ecc->steps - 1)) { in qcom_nandc_write_page()
2099 update_rw_regs(host, ecc->steps, false); in qcom_nandc_write_page_raw()
2102 for (i = 0; i < ecc->steps; i++) { in qcom_nandc_write_page_raw()
2106 data_size1 = mtd->writesize - host->cw_size * (ecc->steps - 1); in qcom_nandc_write_page_raw()
2109 if (i == (ecc->steps - 1)) { in qcom_nandc_write_page_raw()
2111 ((ecc->steps - 1) << 2); in qcom_nandc_write_page_raw()
2112 oob_size2 = (ecc->steps << 2) + host->ecc_bytes_hw + in qcom_nandc_write_page_raw()
2173 data_size = ecc->size - ((ecc->steps - 1) << 2); in qcom_nandc_write_oob()
2181 set_address(host, host->cw_size * (ecc->steps - 1), page); in qcom_nandc_write_oob()
2229 bbpos = mtd->writesize - host->cw_size * (ecc->steps - 1); in qcom_nandc_block_bad()
2261 set_address(host, host->cw_size * (ecc->steps - 1), page); in qcom_nandc_block_markbad()
2439 oobregion->length = (ecc->bytes * (ecc->steps - 1)) + in qcom_nand_ooblayout_ecc()
2460 oobregion->length = ecc->steps * 4; in qcom_nand_ooblayout_free()
2461 oobregion->offset = ((ecc->steps - 1) * ecc->bytes) + host->bbm_size; in qcom_nand_ooblayout_free()
2489 /* controller only supports 512 bytes data steps */ in qcom_nand_attach_chip()
2636 …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()