Lines Matching full:steps

149 	return cw == (ecc->steps - 1);  in qcom_nandc_is_last_cw()
254 * @num_cw: number of steps for the read/write operation
489 raw_cw = ecc->steps - 1; in qcom_nandc_read_cw_raw()
496 data_size1 = mtd->writesize - host->cw_size * (ecc->steps - 1); in qcom_nandc_read_cw_raw()
501 ((ecc->steps - 1) * 4); in qcom_nandc_read_cw_raw()
502 oob_size2 = (ecc->steps * 4) + host->ecc_bytes_hw + in qcom_nandc_read_cw_raw()
578 for_each_set_bit(cw, &uncorrectable_cws, ecc->steps) { in check_for_erased_page()
580 data_size = ecc->size - ((ecc->steps - 1) * 4); in check_for_erased_page()
581 oob_size = (ecc->steps * 4) + host->ecc_bytes_hw; in check_for_erased_page()
635 for (i = 0; i < ecc->steps; i++, buf++) { in parse_read_errors()
640 data_len = ecc->size - ((ecc->steps - 1) << 2); in parse_read_errors()
641 oob_len = ecc->steps << 2; in parse_read_errors()
734 for (i = 0; i < ecc->steps; i++) { in read_page_ecc()
738 data_size = ecc->size - ((ecc->steps - 1) << 2); in read_page_ecc()
739 oob_size = (ecc->steps << 2) + host->ecc_bytes_hw + in read_page_ecc()
816 set_address(host, host->cw_size * (ecc->steps - 1), page); in copy_last_cw()
817 update_rw_regs(host, 1, true, ecc->steps - 1); in copy_last_cw()
819 config_nand_single_cw_page_read(chip, host->use_ecc, ecc->steps - 1); in copy_last_cw()
911 update_rw_regs(host, ecc->steps, true, 0); in qcom_nandc_read_page()
934 for (cw = 0; cw < ecc->steps; cw++) { in qcom_nandc_read_page_raw()
962 update_rw_regs(host, ecc->steps, true, 0); in qcom_nandc_read_oob()
992 update_rw_regs(host, ecc->steps, false, 0); in qcom_nandc_write_page()
995 for (i = 0; i < ecc->steps; i++) { in qcom_nandc_write_page()
999 data_size = ecc->size - ((ecc->steps - 1) << 2); in qcom_nandc_write_page()
1000 oob_size = (ecc->steps << 2) + host->ecc_bytes_hw + in qcom_nandc_write_page()
1008 i == (ecc->steps - 1) ? NAND_BAM_NO_EOT : 0); in qcom_nandc_write_page()
1062 update_rw_regs(host, ecc->steps, false, 0); in qcom_nandc_write_page_raw()
1065 for (i = 0; i < ecc->steps; i++) { in qcom_nandc_write_page_raw()
1069 data_size1 = mtd->writesize - host->cw_size * (ecc->steps - 1); in qcom_nandc_write_page_raw()
1074 ((ecc->steps - 1) << 2); in qcom_nandc_write_page_raw()
1075 oob_size2 = (ecc->steps << 2) + host->ecc_bytes_hw + in qcom_nandc_write_page_raw()
1136 data_size = ecc->size - ((ecc->steps - 1) << 2); in qcom_nandc_write_oob()
1144 set_address(host, host->cw_size * (ecc->steps - 1), page); in qcom_nandc_write_oob()
1189 bbpos = mtd->writesize - host->cw_size * (ecc->steps - 1); in qcom_nandc_block_bad()
1220 set_address(host, host->cw_size * (ecc->steps - 1), page); in qcom_nandc_block_markbad()
1221 update_rw_regs(host, 1, false, ecc->steps - 1); in qcom_nandc_block_markbad()
1333 oobregion->length = (ecc->bytes * (ecc->steps - 1)) + in qcom_nand_ooblayout_ecc()
1354 oobregion->length = ecc->steps * 4; in qcom_nand_ooblayout_free()
1355 oobregion->offset = ((ecc->steps - 1) * ecc->bytes) + host->bbm_size; in qcom_nand_ooblayout_free()
1384 /* controller only supports 512 bytes data steps */ in qcom_nand_attach_chip()
1544 …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()
1707 num_cw = nandc->exec_opwrite ? ecc->steps : 1; in qcom_read_status_exec()