Lines Matching refs:col
733 uint16_t col; local
748 col = host->col_addr >> 1;
752 nfc_word.word = readw(&spare_buf[col]);
754 nfc_word.word = readw(&main_buf[col]);
772 uint16_t col, ret; local
777 col = host->col_addr;
779 if (col < mtd->writesize && host->spare_only)
780 col += mtd->writesize;
782 if (col < mtd->writesize) {
784 (col >> 1));
787 ((col - mtd->writesize) >> 1));
790 if (col & 1) {
808 host->col_addr = col + 2;
823 int n, col, i = 0; local
828 col = host->col_addr;
831 if (col < mtd->writesize && host->spare_only)
832 col += mtd->writesize;
834 n = mtd->writesize + mtd->oobsize - col;
837 pr_debug("%s:%d: col = %d, n = %d\n", __func__, __LINE__, col, n);
842 if (col < mtd->writesize) {
843 p = host->regs->main_area[0] + (col & ~3);
846 mtd->writesize + (col & ~3);
852 if (((col | (unsigned long)&buf[i]) & 3) || n < 4) {
859 nfc_word.bytes[col & 3] = buf[i++];
861 col++;
865 int m = mtd->writesize - col;
867 if (col >= mtd->writesize)
873 __func__, __LINE__, n, m, i, col);
876 col += m;
882 host->col_addr = col;
894 int n, col, i = 0; local
899 col = host->col_addr;
902 if (col < mtd->writesize && host->spare_only)
903 col += mtd->writesize;
905 n = mtd->writesize + mtd->oobsize - col;
911 if (col < mtd->writesize) {
912 p = host->regs->main_area[0] + (col & ~3);
915 mtd->writesize + (col & ~3);
918 if (((col | (int)&buf[i]) & 3) || n < 4) {
925 buf[i++] = nfc_word.bytes[col & 3];
927 col++;
929 int m = mtd->writesize - col;
931 if (col >= mtd->writesize)
937 col += m;
943 host->col_addr = col;