Lines Matching refs:steps
178 * the largest page size we support is 8K, this will have 16 steps/codewords
767 return cw == (ecc->steps - 1);
807 * @num_cw: number of steps for the read/write operation
1480 raw_cw = ecc->steps - 1;
1487 data_size1 = mtd->writesize - host->cw_size * (ecc->steps - 1);
1492 ((ecc->steps - 1) * 4);
1493 oob_size2 = (ecc->steps * 4) + host->ecc_bytes_hw +
1569 for_each_set_bit(cw, &uncorrectable_cws, ecc->steps) {
1571 data_size = ecc->size - ((ecc->steps - 1) * 4);
1572 oob_size = (ecc->steps * 4) + host->ecc_bytes_hw;
1626 for (i = 0; i < ecc->steps; i++, buf++) {
1631 data_len = ecc->size - ((ecc->steps - 1) << 2);
1632 oob_len = ecc->steps << 2;
1725 for (i = 0; i < ecc->steps; i++) {
1729 data_size = ecc->size - ((ecc->steps - 1) << 2);
1730 oob_size = (ecc->steps << 2) + host->ecc_bytes_hw +
1807 set_address(host, host->cw_size * (ecc->steps - 1), page);
1808 update_rw_regs(host, 1, true, ecc->steps - 1);
1810 config_nand_single_cw_page_read(chip, host->use_ecc, ecc->steps - 1);
1902 update_rw_regs(host, ecc->steps, true, 0);
1925 for (cw = 0; cw < ecc->steps; cw++) {
1953 update_rw_regs(host, ecc->steps, true, 0);
1983 update_rw_regs(host, ecc->steps, false, 0);
1986 for (i = 0; i < ecc->steps; i++) {
1990 data_size = ecc->size - ((ecc->steps - 1) << 2);
1991 oob_size = (ecc->steps << 2) + host->ecc_bytes_hw +
1999 i == (ecc->steps - 1) ? NAND_BAM_NO_EOT : 0);
2053 update_rw_regs(host, ecc->steps, false, 0);
2056 for (i = 0; i < ecc->steps; i++) {
2060 data_size1 = mtd->writesize - host->cw_size * (ecc->steps - 1);
2065 ((ecc->steps - 1) << 2);
2066 oob_size2 = (ecc->steps << 2) + host->ecc_bytes_hw +
2127 data_size = ecc->size - ((ecc->steps - 1) << 2);
2135 set_address(host, host->cw_size * (ecc->steps - 1), page);
2180 bbpos = mtd->writesize - host->cw_size * (ecc->steps - 1);
2211 set_address(host, host->cw_size * (ecc->steps - 1), page);
2212 update_rw_regs(host, 1, false, ecc->steps - 1);
2324 oobregion->length = (ecc->bytes * (ecc->steps - 1)) +
2345 oobregion->length = ecc->steps * 4;
2346 oobregion->offset = ((ecc->steps - 1) * ecc->bytes) + host->bbm_size;
2375 /* controller only supports 512 bytes data steps */
2536 "cfg0 %x cfg1 %x ecc_buf_cfg %x ecc_bch cfg %x cw_size %d cw_data %d strength %d parity_bytes %d steps %d\n",
2699 num_cw = nandc->exec_opwrite ? ecc->steps : 1;