Home
last modified time | relevance | path

Searched refs:chipnr (Results 1 – 13 of 13) sorted by relevance

/Linux-v4.19/drivers/mtd/nand/raw/
Djz4740_nand.c81 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()
309 size_t chipnr, uint8_t *nand_maf_id, in jz_nand_detect_bank() argument
332 if (chipnr == 0) { in jz_nand_detect_bank()
346 chip->select_chip(mtd, chipnr); in jz_nand_detect_bank()
359 dev_info(&pdev->dev, "Found chip %zu on bank %i\n", chipnr, bank); in jz_nand_detect_bank()
396 size_t chipnr, bank_idx; in jz_nand_probe() local
446 chipnr = 0; in jz_nand_probe()
466 nand->banks[chipnr] = bank; in jz_nand_probe()
[all …]
Djz4780_nand.c74 static void jz4780_nand_select_chip(struct mtd_info *mtd, int chipnr) in jz4780_nand_select_chip() argument
81 if (chipnr == -1 && nfc->selected >= 0) { in jz4780_nand_select_chip()
86 nfc->selected = chipnr; in jz4780_nand_select_chip()
222 unsigned int chipnr) in jz4780_nand_init_chip() argument
233 cs = &nfc->cs[chipnr]; in jz4780_nand_init_chip()
243 res = platform_get_resource(pdev, IORESOURCE_MEM, chipnr); in jz4780_nand_init_chip()
Dnand_base.c299 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()
[all …]
Dcafe_nand.c320 static void cafe_select_chip(struct mtd_info *mtd, int chipnr) in cafe_select_chip() argument
325 cafe_dev_dbg(&cafe->pdev->dev, "select_chip %d\n", chipnr); in cafe_select_chip()
329 if (chipnr) in cafe_select_chip()
Dfsmc_nand.c613 static void fsmc_select_chip(struct mtd_info *mtd, int chipnr) in fsmc_select_chip() argument
619 if (chipnr > 0) in fsmc_select_chip()
623 if (chipnr < 0) in fsmc_select_chip()
Dsh_flctl.c926 static void flctl_select_chip(struct mtd_info *mtd, int chipnr) in flctl_select_chip() argument
931 switch (chipnr) { in flctl_select_chip()
Ddenali.c950 static int denali_setup_data_interface(struct mtd_info *mtd, int chipnr, in denali_setup_data_interface() argument
979 if (chipnr == NAND_DATA_IFACE_CHECK_ONLY) in denali_setup_data_interface()
Dmarvell_nand.c2195 static int marvell_nfc_setup_data_interface(struct mtd_info *mtd, int chipnr, in marvell_nfc_setup_data_interface() argument
2264 if (chipnr < 0) in marvell_nfc_setup_data_interface()
Dqcom_nandc.c2331 static void qcom_nandc_select_chip(struct mtd_info *mtd, int chipnr) in qcom_nandc_select_chip() argument
2336 if (chipnr <= 0) in qcom_nandc_select_chip()
/Linux-v4.19/drivers/mtd/nand/raw/gpmi-nand/
Dgpmi-nand.c828 static void gpmi_select_chip(struct mtd_info *mtd, int chipnr) in gpmi_select_chip() argument
838 if (this->current_chip < 0 && chipnr >= 0) { in gpmi_select_chip()
842 } else if (this->current_chip >= 0 && chipnr < 0) { in gpmi_select_chip()
854 if (chipnr >= 0 && this->hw.must_apply_timings) { in gpmi_select_chip()
859 this->current_chip = chipnr; in gpmi_select_chip()
1557 int column, page, chipnr; in gpmi_block_markbad() local
1559 chipnr = (int)(ofs >> chip->chip_shift); in gpmi_block_markbad()
1560 chip->select_chip(mtd, chipnr); in gpmi_block_markbad()
1736 int chipnr; in mx23_boot_init() local
1769 chipnr = block >> (chip->chip_shift - chip->phys_erase_shift); in mx23_boot_init()
[all …]
Dgpmi-nand.h181 int gpmi_setup_data_interface(struct mtd_info *mtd, int chipnr,
Dgpmi-lib.c474 int gpmi_setup_data_interface(struct mtd_info *mtd, int chipnr, in gpmi_setup_data_interface() argument
491 if (chipnr < 0) in gpmi_setup_data_interface()
/Linux-v4.19/include/linux/mtd/
Drawnand.h1311 int (*setup_data_interface)(struct mtd_info *mtd, int chipnr,
1706 int nand_reset(struct nand_chip *chip, int chipnr);