Lines Matching full:steps

178  * the largest page size we support is 8K, this will have 16 steps/codewords
767 return cw == (ecc->steps - 1); in qcom_nandc_is_last_cw()
807 * @num_cw: number of steps for the read/write operation
1480 raw_cw = ecc->steps - 1; in qcom_nandc_read_cw_raw()
1487 data_size1 = mtd->writesize - host->cw_size * (ecc->steps - 1); in qcom_nandc_read_cw_raw()
1492 ((ecc->steps - 1) * 4); in qcom_nandc_read_cw_raw()
1493 oob_size2 = (ecc->steps * 4) + host->ecc_bytes_hw + in qcom_nandc_read_cw_raw()
1569 for_each_set_bit(cw, &uncorrectable_cws, ecc->steps) { in check_for_erased_page()
1571 data_size = ecc->size - ((ecc->steps - 1) * 4); in check_for_erased_page()
1572 oob_size = (ecc->steps * 4) + host->ecc_bytes_hw; in check_for_erased_page()
1626 for (i = 0; i < ecc->steps; i++, buf++) { in parse_read_errors()
1631 data_len = ecc->size - ((ecc->steps - 1) << 2); in parse_read_errors()
1632 oob_len = ecc->steps << 2; in parse_read_errors()
1725 for (i = 0; i < ecc->steps; i++) { in read_page_ecc()
1729 data_size = ecc->size - ((ecc->steps - 1) << 2); in read_page_ecc()
1730 oob_size = (ecc->steps << 2) + host->ecc_bytes_hw + in read_page_ecc()
1807 set_address(host, host->cw_size * (ecc->steps - 1), page); in copy_last_cw()
1808 update_rw_regs(host, 1, true, ecc->steps - 1); in copy_last_cw()
1810 config_nand_single_cw_page_read(chip, host->use_ecc, ecc->steps - 1); in copy_last_cw()
1902 update_rw_regs(host, ecc->steps, true, 0); in qcom_nandc_read_page()
1925 for (cw = 0; cw < ecc->steps; cw++) { in qcom_nandc_read_page_raw()
1953 update_rw_regs(host, ecc->steps, true, 0); in qcom_nandc_read_oob()
1983 update_rw_regs(host, ecc->steps, false, 0); in qcom_nandc_write_page()
1986 for (i = 0; i < ecc->steps; i++) { in qcom_nandc_write_page()
1990 data_size = ecc->size - ((ecc->steps - 1) << 2); in qcom_nandc_write_page()
1991 oob_size = (ecc->steps << 2) + host->ecc_bytes_hw + in qcom_nandc_write_page()
1999 i == (ecc->steps - 1) ? NAND_BAM_NO_EOT : 0); in qcom_nandc_write_page()
2053 update_rw_regs(host, ecc->steps, false, 0); in qcom_nandc_write_page_raw()
2056 for (i = 0; i < ecc->steps; i++) { in qcom_nandc_write_page_raw()
2060 data_size1 = mtd->writesize - host->cw_size * (ecc->steps - 1); in qcom_nandc_write_page_raw()
2065 ((ecc->steps - 1) << 2); in qcom_nandc_write_page_raw()
2066 oob_size2 = (ecc->steps << 2) + host->ecc_bytes_hw + in qcom_nandc_write_page_raw()
2127 data_size = ecc->size - ((ecc->steps - 1) << 2); in qcom_nandc_write_oob()
2135 set_address(host, host->cw_size * (ecc->steps - 1), page); in qcom_nandc_write_oob()
2180 bbpos = mtd->writesize - host->cw_size * (ecc->steps - 1); in qcom_nandc_block_bad()
2211 set_address(host, host->cw_size * (ecc->steps - 1), page); in qcom_nandc_block_markbad()
2212 update_rw_regs(host, 1, false, ecc->steps - 1); in qcom_nandc_block_markbad()
2324 oobregion->length = (ecc->bytes * (ecc->steps - 1)) + in qcom_nand_ooblayout_ecc()
2345 oobregion->length = ecc->steps * 4; in qcom_nand_ooblayout_free()
2346 oobregion->offset = ((ecc->steps - 1) * ecc->bytes) + host->bbm_size; in qcom_nand_ooblayout_free()
2375 /* controller only supports 512 bytes data steps */ in qcom_nand_attach_chip()
2536 …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()
2699 num_cw = nandc->exec_opwrite ? ecc->steps : 1; in qcom_read_status_exec()