Lines Matching refs:chipnr
299 static void nand_select_chip(struct mtd_info *mtd, int chipnr) in nand_select_chip() argument
303 switch (chipnr) { in nand_select_chip()
1230 static int nand_reset_data_interface(struct nand_chip *chip, int chipnr) in nand_reset_data_interface() argument
1253 ret = chip->setup_data_interface(mtd, chipnr, &chip->data_interface); in nand_reset_data_interface()
1273 static int nand_setup_data_interface(struct nand_chip *chip, int chipnr) in nand_setup_data_interface() argument
1286 chip->select_chip(mtd, chipnr); in nand_setup_data_interface()
1295 ret = chip->setup_data_interface(mtd, chipnr, &chip->data_interface); in nand_setup_data_interface()
1304 chip->select_chip(mtd, chipnr); in nand_setup_data_interface()
1324 nand_reset_data_interface(chip, chipnr); in nand_setup_data_interface()
1325 chip->select_chip(mtd, chipnr); in nand_setup_data_interface()
2799 int nand_reset(struct nand_chip *chip, int chipnr) in nand_reset() argument
2805 ret = nand_reset_data_interface(chip, chipnr); in nand_reset()
2813 chip->select_chip(mtd, chipnr); in nand_reset()
2830 ret = nand_setup_data_interface(chip, chipnr); in nand_reset()
3538 int chipnr, page, realpage, col, bytes, aligned, oob_required; in nand_do_read_ops() local
3551 chipnr = (int)(from >> chip->chip_shift); in nand_do_read_ops()
3552 chip->select_chip(mtd, chipnr); in nand_do_read_ops()
3689 chipnr++; in nand_do_read_ops()
3691 chip->select_chip(mtd, chipnr); in nand_do_read_ops()
3877 int page, realpage, chipnr; in nand_do_read_oob() local
3892 chipnr = (int)(from >> chip->chip_shift); in nand_do_read_oob()
3893 chip->select_chip(mtd, chipnr); in nand_do_read_oob()
3931 chipnr++; in nand_do_read_oob()
3933 chip->select_chip(mtd, chipnr); in nand_do_read_oob()
4400 int chipnr, realpage, page, column; in nand_do_write_ops() local
4425 chipnr = (int)(to >> chip->chip_shift); in nand_do_write_ops()
4426 chip->select_chip(mtd, chipnr); in nand_do_write_ops()
4501 chipnr++; in nand_do_write_ops()
4503 chip->select_chip(mtd, chipnr); in nand_do_write_ops()
4531 int chipnr = (int)(to >> chip->chip_shift); in panic_nand_write() local
4538 chip->select_chip(mtd, chipnr); in panic_nand_write()
4565 int chipnr, page, status, len; in nand_do_write_oob() local
4580 chipnr = (int)(to >> chip->chip_shift); in nand_do_write_oob()
4588 nand_reset(chip, chipnr); in nand_do_write_oob()
4590 chip->select_chip(mtd, chipnr); in nand_do_write_oob()
4698 int page, status, pages_per_block, ret, chipnr; in nand_erase_nand() local
4714 chipnr = (int)(instr->addr >> chip->chip_shift); in nand_erase_nand()
4720 chip->select_chip(mtd, chipnr); in nand_erase_nand()
4769 chipnr++; in nand_erase_nand()
4771 chip->select_chip(mtd, chipnr); in nand_erase_nand()
4810 int chipnr = (int)(offs >> chip->chip_shift); in nand_block_isbad() local
4815 chip->select_chip(mtd, chipnr); in nand_block_isbad()