Lines Matching defs:brcmnand_info
244 struct brcmnand_mtd brcmnand_info;
256 si_t *sih = brcmnand_info.sih;
257 chipcregs_t *cc = brcmnand_info.cc;
295 si_t *sih = brcmnand_info.sih;
296 chipcregs_t *cc = brcmnand_info.cc;
373 brcmnand_info.nflash->enable( brcmnand_info.nflash, 0);
393 brcmnand_info.nflash->enable( brcmnand_info.nflash, 1);
467 si_t *sih = brcmnand_info.sih;
468 chipcregs_t *cc = brcmnand_info.cc;
476 if (brcmnand_info.level == BRCMNAND_ECC_HAMMING) {
481 } else if (brcmnand_info.level >= BRCMNAND_ECC_BCH_1 &&
482 brcmnand_info.level <= BRCMNAND_ECC_BCH_12) {
490 printk("BUG: Unsupported ECC level %d\n", brcmnand_info.level );
521 si_t *sih = brcmnand_info.sih;
522 chipcregs_t *cc = brcmnand_info.cc;
792 si_t *sih = brcmnand_info.sih;
793 chipcregs_t *cc = brcmnand_info.cc;
1020 si_t *sih = brcmnand_info.sih;
1021 chipcregs_t *cc = brcmnand_info.cc;
1053 si_t *sih = brcmnand_info.sih;
1054 chipcregs_t *cc = brcmnand_info.cc;
1139 si_t *sih = brcmnand_info.sih;
1140 chipcregs_t *cc = brcmnand_info.cc;
1504 si_t *sih = brcmnand_info.sih;
1505 chipcregs_t *cc = brcmnand_info.cc;
1773 si_t *sih = brcmnand_info.sih;
1774 chipcregs_t *cc = brcmnand_info.cc;
1801 si_t *sih = brcmnand_info.sih;
1802 chipcregs_t *cc = brcmnand_info.cc;
2083 si_t *sih = brcmnand_info.sih;
2084 chipcregs_t *cc = brcmnand_info.cc;
2108 si_t *sih = brcmnand_info.sih;
2109 chipcregs_t *cc = brcmnand_info.cc;
2197 si_t *sih = brcmnand_info.sih;
2198 chipcregs_t *cc = brcmnand_info.cc;
2231 chipcregs_t *cc = brcmnand_info.cc;
2296 memset(&brcmnand_info, 0, sizeof(struct brcmnand_mtd));
2299 if (!(brcmnand_info.sih = si_kattach(SI_OSH))) {
2306 if (!(brcmnand_info.cc = ioremap_nocache(
2315 if (!(info = hndnand_init(brcmnand_info.sih ))) {
2321 if (CHIPID(brcmnand_info.sih->chip) == BCM4706_CHIP_ID) {
2322 mtd = &brcmnand_info.mtd;
2323 chip = &brcmnand_info.chip;
2345 chip = &brcmnand_info.chip;
2346 mtd = &brcmnand_info.mtd;
2347 brcmnand_info.nflash = info ;
2358 brcmnand_info.level = info->ecclevel;
2362 mtd->priv = &brcmnand_info.chip;
2408 if (brcmnand_info.level== BRCMNAND_ECC_HAMMING)
2414 if (brcmnand_info.level== BRCMNAND_ECC_HAMMING)
2416 else if (brcmnand_info.level== BRCMNAND_ECC_BCH_4) {
2427 if (brcmnand_info.level== BRCMNAND_ECC_HAMMING)
2482 chip->ecc.bytes = brcmnand_eccbytes[brcmnand_info.level];
2562 brcmnand_info.parts = parts;
2567 if (brcmnand_info.cc)
2568 iounmap((void *) brcmnand_info.cc);
2569 if (brcmnand_info.sih)
2570 si_detach(brcmnand_info.sih);
2580 del_mtd_partitions(&brcmnand_info.mtd);
2582 del_mtd_device(&brcmnand_info.mtd);
2584 iounmap((void *) brcmnand_info.cc);
2585 si_detach(brcmnand_info.sih);