| /Linux-v5.4/drivers/mtd/nand/raw/ingenic/ |
| D | ingenic_nand_drv.c | 145 static void ingenic_nand_select_chip(struct nand_chip *chip, int chipnr) in ingenic_nand_select_chip() argument 152 if (chipnr == -1 && nfc->selected >= 0) { in ingenic_nand_select_chip() 157 nfc->selected = chipnr; in ingenic_nand_select_chip() 308 unsigned int chipnr) in ingenic_nand_init_chip() argument 318 cs = &nfc->cs[chipnr]; in ingenic_nand_init_chip() 328 cs->base = devm_platform_ioremap_resource(pdev, chipnr); in ingenic_nand_init_chip()
|
| /Linux-v5.4/drivers/mtd/nand/raw/ |
| D | nand_base.c | 444 int chipnr, page, status, len, ret; in nand_do_write_oob() local 458 chipnr = (int)(to >> chip->chip_shift); in nand_do_write_oob() 466 ret = nand_reset(chip, chipnr); in nand_do_write_oob() 470 nand_select_target(chip, chipnr); in nand_do_write_oob() 796 static int nand_reset_data_interface(struct nand_chip *chip, int chipnr) in nand_reset_data_interface() argument 818 ret = chip->controller->ops->setup_data_interface(chip, chipnr, in nand_reset_data_interface() 839 static int nand_setup_data_interface(struct nand_chip *chip, int chipnr) in nand_setup_data_interface() argument 851 nand_select_target(chip, chipnr); in nand_setup_data_interface() 860 ret = chip->controller->ops->setup_data_interface(chip, chipnr, in nand_setup_data_interface() 870 nand_select_target(chip, chipnr); in nand_setup_data_interface() [all …]
|
| D | nand_legacy.c | 52 static void nand_select_chip(struct nand_chip *chip, int chipnr) in nand_select_chip() argument 54 switch (chipnr) { in nand_select_chip()
|
| D | mxic_nand.c | 451 static int mxic_nfc_setup_data_interface(struct nand_chip *chip, int chipnr, in mxic_nfc_setup_data_interface() argument 463 if (chipnr == NAND_DATA_IFACE_CHECK_ONLY) in mxic_nfc_setup_data_interface()
|
| D | cafe_nand.c | 317 static void cafe_select_chip(struct nand_chip *chip, int chipnr) in cafe_select_chip() argument 321 cafe_dev_dbg(&cafe->pdev->dev, "select_chip %d\n", chipnr); in cafe_select_chip() 325 if (chipnr) in cafe_select_chip()
|
| D | stm32_fmc2_nand.c | 336 static int stm32_fmc2_select_chip(struct nand_chip *chip, int chipnr) in stm32_fmc2_select_chip() argument 343 if (nand->cs_used[chipnr] == fmc2->cs_sel) in stm32_fmc2_select_chip() 346 fmc2->cs_sel = nand->cs_used[chipnr]; in stm32_fmc2_select_chip() 1552 static int stm32_fmc2_setup_interface(struct nand_chip *chip, int chipnr, in stm32_fmc2_setup_interface() argument 1561 if (chipnr == NAND_DATA_IFACE_CHECK_ONLY) in stm32_fmc2_setup_interface()
|
| D | denali.c | 765 static int denali_setup_data_interface(struct nand_chip *chip, int chipnr, in denali_setup_data_interface() argument 795 if (chipnr == NAND_DATA_IFACE_CHECK_ONLY) in denali_setup_data_interface() 798 sel = &to_denali_chip(chip)->sels[chipnr]; in denali_setup_data_interface()
|
| D | sh_flctl.c | 915 static void flctl_select_chip(struct nand_chip *chip, int chipnr) in flctl_select_chip() argument 920 switch (chipnr) { in flctl_select_chip()
|
| D | mxc_nand.c | 1741 static int mxcnd_setup_data_interface(struct nand_chip *chip, int chipnr, in mxcnd_setup_data_interface() argument 1746 return host->devtype_data->setup_data_interface(chip, chipnr, conf); in mxcnd_setup_data_interface()
|
| D | marvell_nand.c | 2308 static int marvell_nfc_setup_data_interface(struct nand_chip *chip, int chipnr, in marvell_nfc_setup_data_interface() argument 2376 if (chipnr < 0) in marvell_nfc_setup_data_interface()
|
| D | qcom_nandc.c | 2316 static void qcom_nandc_select_chip(struct nand_chip *chip, int chipnr) in qcom_nandc_select_chip() argument 2320 if (chipnr <= 0) in qcom_nandc_select_chip()
|
| /Linux-v5.4/drivers/mtd/nand/raw/gpmi-nand/ |
| D | gpmi-nand.c | 732 static int gpmi_setup_data_interface(struct nand_chip *chip, int chipnr, in gpmi_setup_data_interface() argument 748 if (chipnr < 0) in gpmi_setup_data_interface() 1889 int column, page, chipnr; in gpmi_block_markbad() local 1891 chipnr = (int)(ofs >> chip->chip_shift); in gpmi_block_markbad() 1892 nand_select_target(chip, chipnr); in gpmi_block_markbad() 2065 int chipnr; in mx23_boot_init() local 2098 chipnr = block >> (chip->chip_shift - chip->phys_erase_shift); in mx23_boot_init() 2103 nand_select_target(chip, chipnr); in mx23_boot_init()
|
| /Linux-v5.4/include/linux/mtd/ |
| D | rawnand.h | 942 int (*setup_data_interface)(struct nand_chip *chip, int chipnr, 1324 int nand_reset(struct nand_chip *chip, int chipnr);
|