Lines Matching refs:chipnr
81 static void jz_nand_select_chip(struct mtd_info *mtd, int chipnr) in jz_nand_select_chip() argument
91 if (chipnr == -1) { in jz_nand_select_chip()
94 banknr = nand->banks[chipnr] - 1; in jz_nand_select_chip()
328 size_t chipnr, uint8_t *nand_maf_id, in jz_nand_detect_bank() argument
364 if (chipnr == 0) { in jz_nand_detect_bank()
378 chip->select_chip(mtd, chipnr); in jz_nand_detect_bank()
392 dev_info(&pdev->dev, "Found chip %i on bank %i\n", chipnr, bank); in jz_nand_detect_bank()
415 size_t chipnr, bank_idx; in jz_nand_probe() local
472 chipnr = 0; in jz_nand_probe()
492 nand->banks[chipnr] = bank; in jz_nand_probe()
493 if (jz_nand_detect_bank(pdev, nand, bank, chipnr, in jz_nand_probe()
495 chipnr++; in jz_nand_probe()
497 nand->banks[chipnr] = 0; in jz_nand_probe()
499 if (chipnr == 0) { in jz_nand_probe()
531 while (chipnr--) { in jz_nand_probe()
532 unsigned char bank = nand->banks[chipnr]; in jz_nand_probe()