Lines Matching refs:nand

43 #define DENALI_NAND_NAME    "denali-nand"
1488 denali->mtd.name = "denali-nand";
1490 denali->mtd.priv = &denali->nand;
1493 denali->nand.select_chip = denali_select_chip;
1494 denali->nand.cmdfunc = denali_cmdfunc;
1495 denali->nand.read_byte = denali_read_byte;
1496 denali->nand.waitfunc = denali_waitfunc;
1501 * with the nand subsystem
1535 * support for multi nand
1536 * MTD known nothing about multi nand, so we should tell it
1540 denali->nand.chipsize <<= (denali->devnum - 1);
1541 denali->nand.page_shift += (denali->devnum - 1);
1542 denali->nand.pagemask = (denali->nand.chipsize >>
1543 denali->nand.page_shift) - 1;
1544 denali->nand.bbt_erase_shift += (denali->devnum - 1);
1545 denali->nand.phys_erase_shift = denali->nand.bbt_erase_shift;
1546 denali->nand.chip_shift += (denali->devnum - 1);
1550 denali->mtd.size = denali->nand.numchips * denali->nand.chipsize;
1560 denali->nand.bbt_td = &bbt_main_descr;
1561 denali->nand.bbt_md = &bbt_mirror_descr;
1564 denali->nand.bbt_options |= NAND_BBT_USE_FLASH;
1565 denali->nand.options |= NAND_SKIP_BBTSCAN;
1566 denali->nand.ecc.mode = NAND_ECC_HW_SYNDROME;
1573 if (!nand_is_slc(&denali->nand) &&
1578 denali->nand.ecc.strength = 15;
1579 denali->nand.ecc.layout = &nand_15bit_oob;
1580 denali->nand.ecc.bytes = ECC_15BITS;
1588 denali->nand.ecc.strength = 8;
1589 denali->nand.ecc.layout = &nand_8bit_oob;
1590 denali->nand.ecc.bytes = ECC_8BITS;
1594 denali->nand.ecc.bytes *= denali->devnum;
1595 denali->nand.ecc.strength *= denali->devnum;
1596 denali->nand.ecc.layout->eccbytes *=
1598 denali->nand.ecc.layout->oobfree[0].offset =
1599 denali->bbtskipbytes + denali->nand.ecc.layout->eccbytes;
1600 denali->nand.ecc.layout->oobfree[0].length =
1601 denali->mtd.oobsize - denali->nand.ecc.layout->eccbytes -
1606 * contained by each nand chip. blksperchip will help driver to
1609 denali->totalblks = denali->mtd.size >> denali->nand.phys_erase_shift;
1610 denali->blksperchip = denali->totalblks / denali->nand.numchips;
1617 denali->nand.ecc.calculate = denali_ecc_calculate;
1618 denali->nand.ecc.correct = denali_ecc_correct;
1619 denali->nand.ecc.hwctl = denali_ecc_hwctl;
1622 denali->nand.ecc.size = ECC_SECTOR_SIZE * denali->devnum;
1623 denali->nand.ecc.read_page = denali_read_page;
1624 denali->nand.ecc.read_page_raw = denali_read_page_raw;
1625 denali->nand.ecc.write_page = denali_write_page;
1626 denali->nand.ecc.write_page_raw = denali_write_page_raw;
1627 denali->nand.ecc.read_oob = denali_read_oob;
1628 denali->nand.ecc.write_oob = denali_write_oob;
1629 denali->nand.erase = denali_erase;