Lines Matching refs:bytes

580 	u32 bytes;  in omap_nand_irq()  local
582 bytes = readl(info->reg.gpmc_prefetch_status); in omap_nand_irq()
583 bytes = PREFETCH_STATUS_FIFO_CNT(bytes); in omap_nand_irq()
584 bytes = bytes & 0xFFFC; /* io in multiple of 4 bytes */ in omap_nand_irq()
589 if (info->buf_len && (info->buf_len < bytes)) in omap_nand_irq()
590 bytes = info->buf_len; in omap_nand_irq()
592 bytes = 0; in omap_nand_irq()
594 (u32 *)info->buf, bytes >> 2); in omap_nand_irq()
595 info->buf = info->buf + bytes; in omap_nand_irq()
596 info->buf_len -= bytes; in omap_nand_irq()
600 (u32 *)info->buf, bytes >> 2); in omap_nand_irq()
601 info->buf = info->buf + bytes; in omap_nand_irq()
1167 int eccbytes = info->nand.ecc.bytes; in omap_calculate_ecc_bch()
1305 for (i = 0; i < info->nand.ecc.bytes - 1; i++) { in erased_sector_bitflips()
1317 memset(oob, 0xFF, info->nand.ecc.bytes); in erased_sector_bitflips()
1356 actual_eccbytes = ecc->bytes - 1; in omap_elm_correct_data()
1361 actual_eccbytes = ecc->bytes - 1; in omap_elm_correct_data()
1365 actual_eccbytes = ecc->bytes; in omap_elm_correct_data()
1426 calc_ecc += ecc->bytes; in omap_elm_correct_data()
1427 read_ecc += ecc->bytes; in omap_elm_correct_data()
1491 spare_ecc += ecc->bytes; in omap_elm_correct_data()
1833 nand_chip->ecc.bytes = 3; in omap_nand_probe()
1840 ecclayout->eccbytes = nand_chip->ecc.bytes * in omap_nand_probe()
1858 nand_chip->ecc.bytes = 7; in omap_nand_probe()
1864 ecclayout->eccbytes = nand_chip->ecc.bytes * in omap_nand_probe()
1870 if (((i + 1) % nand_chip->ecc.bytes) == 0) in omap_nand_probe()
1879 nand_chip->ecc.bytes, in omap_nand_probe()
1893 nand_chip->ecc.bytes = 7 + 1; in omap_nand_probe()
1901 ecclayout->eccbytes = nand_chip->ecc.bytes * in omap_nand_probe()
1913 nand_chip->ecc.size, nand_chip->ecc.bytes); in omap_nand_probe()
1922 nand_chip->ecc.bytes = 13; in omap_nand_probe()
1928 ecclayout->eccbytes = nand_chip->ecc.bytes * in omap_nand_probe()
1934 if (((i + 1) % nand_chip->ecc.bytes) == 0) in omap_nand_probe()
1943 nand_chip->ecc.bytes, in omap_nand_probe()
1957 nand_chip->ecc.bytes = 13 + 1; in omap_nand_probe()
1967 nand_chip->ecc.size, nand_chip->ecc.bytes); in omap_nand_probe()
1972 ecclayout->eccbytes = nand_chip->ecc.bytes * in omap_nand_probe()
1987 nand_chip->ecc.bytes = 26; in omap_nand_probe()
1997 nand_chip->ecc.size, nand_chip->ecc.bytes); in omap_nand_probe()
2002 ecclayout->eccbytes = nand_chip->ecc.bytes * in omap_nand_probe()