Lines Matching refs:cnt
421 int cnt; in sunxi_nfc_read_buf() local
426 cnt = min(len - offs, NFC_SRAM_SIZE); in sunxi_nfc_read_buf()
432 writel(cnt, nfc->regs + NFC_REG_CNT); in sunxi_nfc_read_buf()
442 cnt); in sunxi_nfc_read_buf()
443 offs += cnt; in sunxi_nfc_read_buf()
454 int cnt; in sunxi_nfc_write_buf() local
459 cnt = min(len - offs, NFC_SRAM_SIZE); in sunxi_nfc_write_buf()
465 writel(cnt, nfc->regs + NFC_REG_CNT); in sunxi_nfc_write_buf()
466 memcpy_toio(nfc->regs + NFC_RAM0_BASE, buf + offs, cnt); in sunxi_nfc_write_buf()
475 offs += cnt; in sunxi_nfc_write_buf()
536 int cnt; in sunxi_nfc_hw_ecc_read_page() local
591 cnt = ecc->layout->oobfree[ecc->steps].length; in sunxi_nfc_hw_ecc_read_page()
592 if (cnt > 0) { in sunxi_nfc_hw_ecc_read_page()
597 chip->read_buf(mtd, chip->oob_poi + offset, cnt); in sunxi_nfc_hw_ecc_read_page()
621 int cnt; in sunxi_nfc_hw_ecc_write_page() local
658 cnt = ecc->layout->oobfree[i].length; in sunxi_nfc_hw_ecc_write_page()
659 if (cnt > 0) { in sunxi_nfc_hw_ecc_write_page()
664 chip->write_buf(mtd, chip->oob_poi + offset, cnt); in sunxi_nfc_hw_ecc_write_page()
688 int cnt; in sunxi_nfc_hw_syndrome_ecc_read_page() local
731 cnt = mtd->oobsize - (oob - chip->oob_poi); in sunxi_nfc_hw_syndrome_ecc_read_page()
732 if (cnt > 0) { in sunxi_nfc_hw_syndrome_ecc_read_page()
734 chip->read_buf(mtd, oob, cnt); in sunxi_nfc_hw_syndrome_ecc_read_page()
755 int cnt; in sunxi_nfc_hw_syndrome_ecc_write_page() local
787 cnt = mtd->oobsize - (oob - chip->oob_poi); in sunxi_nfc_hw_syndrome_ecc_write_page()
788 if (cnt > 0) { in sunxi_nfc_hw_syndrome_ecc_write_page()
790 chip->write_buf(mtd, oob, cnt); in sunxi_nfc_hw_syndrome_ecc_write_page()