Lines Matching refs:col
732 uint16_t col; local
747 col = host->col_addr >> 1;
751 nfc_word.word = readw(&spare_buf[col]);
753 nfc_word.word = readw(&main_buf[col]);
771 uint16_t col, ret; local
776 col = host->col_addr;
778 if (col < mtd->writesize && host->spare_only)
779 col += mtd->writesize;
781 if (col < mtd->writesize) {
783 (col >> 1));
786 ((col - mtd->writesize) >> 1));
789 if (col & 1) {
807 host->col_addr = col + 2;
822 int n, col, i = 0; local
827 col = host->col_addr;
830 if (col < mtd->writesize && host->spare_only)
831 col += mtd->writesize;
833 n = mtd->writesize + mtd->oobsize - col;
836 pr_debug("%s:%d: col = %d, n = %d\n", __func__, __LINE__, col, n);
841 if (col < mtd->writesize) {
842 p = host->regs->main_area[0] + (col & ~3);
845 mtd->writesize + (col & ~3);
851 if (((col | (unsigned long)&buf[i]) & 3) || n < 4) {
858 nfc_word.bytes[col & 3] = buf[i++];
860 col++;
864 int m = mtd->writesize - col;
866 if (col >= mtd->writesize)
872 __func__, __LINE__, n, m, i, col);
875 col += m;
881 host->col_addr = col;
893 int n, col, i = 0; local
898 col = host->col_addr;
901 if (col < mtd->writesize && host->spare_only)
902 col += mtd->writesize;
904 n = mtd->writesize + mtd->oobsize - col;
910 if (col < mtd->writesize) {
911 p = host->regs->main_area[0] + (col & ~3);
914 mtd->writesize + (col & ~3);
917 if (((col | (int)&buf[i]) & 3) || n < 4) {
924 buf[i++] = nfc_word.bytes[col & 3];
926 col++;
928 int m = mtd->writesize - col;
930 if (col >= mtd->writesize)
936 col += m;
942 host->col_addr = col;