Lines Matching refs:col
731 uint16_t col; local
746 col = host->col_addr >> 1;
750 nfc_word.word = readw(&spare_buf[col]);
752 nfc_word.word = readw(&main_buf[col]);
770 uint16_t col, ret; local
775 col = host->col_addr;
777 if (col < mtd->writesize && host->spare_only)
778 col += mtd->writesize;
780 if (col < mtd->writesize) {
782 (col >> 1));
785 ((col - mtd->writesize) >> 1));
788 if (col & 1) {
806 host->col_addr = col + 2;
821 int n, col, i = 0; local
826 col = host->col_addr;
829 if (col < mtd->writesize && host->spare_only)
830 col += mtd->writesize;
832 n = mtd->writesize + mtd->oobsize - col;
835 pr_debug("%s:%d: col = %d, n = %d\n", __func__, __LINE__, col, n);
840 if (col < mtd->writesize) {
841 p = host->regs->main_area[0] + (col & ~3);
844 mtd->writesize + (col & ~3);
850 if (((col | (unsigned long)&buf[i]) & 3) || n < 4) {
857 nfc_word.bytes[col & 3] = buf[i++];
859 col++;
863 int m = mtd->writesize - col;
865 if (col >= mtd->writesize)
871 __func__, __LINE__, n, m, i, col);
874 col += m;
880 host->col_addr = col;
892 int n, col, i = 0; local
897 col = host->col_addr;
900 if (col < mtd->writesize && host->spare_only)
901 col += mtd->writesize;
903 n = mtd->writesize + mtd->oobsize - col;
909 if (col < mtd->writesize) {
910 p = host->regs->main_area[0] + (col & ~3);
913 mtd->writesize + (col & ~3);
916 if (((col | (int)&buf[i]) & 3) || n < 4) {
923 buf[i++] = nfc_word.bytes[col & 3];
925 col++;
927 int m = mtd->writesize - col;
929 if (col >= mtd->writesize)
935 col += m;
941 host->col_addr = col;