| /OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/ |
| H A D | rockchip_nand_spl_v9.c | 77 u8 chipnr; member 111 static void rockchip_nand_select_chip(void __iomem *regs, int chipnr) in rockchip_nand_select_chip() argument 117 if (chipnr != -1) in rockchip_nand_select_chip() 118 reg |= 1 << chipnr; in rockchip_nand_select_chip() 383 g_rk_nand->chipnr = 1; in rockchip_nandc_probe() 506 g_rk_nand->chipnr = 1; in board_nand_init() 567 if (g_rk_nand && g_rk_nand->chipnr) in rk_nand_init()
|
| H A D | rockchip_nand_spl.c | 81 u8 chipnr; member 112 static void rockchip_nand_select_chip(void __iomem *regs, int chipnr) in rockchip_nand_select_chip() argument 118 if (chipnr != -1) in rockchip_nand_select_chip() 119 reg |= 1 << chipnr; in rockchip_nand_select_chip() 385 g_rk_nand->chipnr = 1; in rockchip_nandc_probe() 508 g_rk_nand->chipnr = 1; in board_nand_init() 569 if (g_rk_nand && g_rk_nand->chipnr) in rk_nand_init()
|
| H A D | nand_base.c | 185 static void nand_select_chip(struct mtd_info *mtd, int chipnr) in nand_select_chip() argument 189 switch (chipnr) { in nand_select_chip() 944 static int nand_reset_data_interface(struct nand_chip *chip, int chipnr) in nand_reset_data_interface() argument 968 ret = chip->setup_data_interface(mtd, chipnr, conf); in nand_reset_data_interface() 988 static int nand_setup_data_interface(struct nand_chip *chip, int chipnr) in nand_setup_data_interface() argument 1012 ret = chip->setup_data_interface(mtd, chipnr, chip->data_interface); in nand_setup_data_interface() 1598 int nand_reset(struct nand_chip *chip, int chipnr) in nand_reset() argument 1603 ret = nand_reset_data_interface(chip, chipnr); in nand_reset() 1611 chip->select_chip(mtd, chipnr); in nand_reset() 1617 chip->select_chip(mtd, chipnr); in nand_reset() [all …]
|
| H A D | nand_util.c | 268 int chipnr; in nand_get_lock_status() local 273 chipnr = (int)(offset >> chip->chip_shift); in nand_get_lock_status() 274 chip->select_chip(mtd, chipnr); in nand_get_lock_status() 314 int chipnr; in nand_unlock() local 323 chipnr = (int)(start >> chip->chip_shift); in nand_unlock() 324 chip->select_chip(mtd, chipnr); in nand_unlock()
|
| H A D | stm32_fmc2_nand.c | 239 static void stm32_fmc2_select_chip(struct mtd_info *mtd, int chipnr) in stm32_fmc2_select_chip() argument 245 if (chipnr < 0 || chipnr >= nand->ncs) in stm32_fmc2_select_chip() 248 if (nand->cs_used[chipnr] == fmc2->cs_sel) in stm32_fmc2_select_chip() 251 fmc2->cs_sel = nand->cs_used[chipnr]; in stm32_fmc2_select_chip() 784 static int stm32_fmc2_setup_interface(struct mtd_info *mtd, int chipnr, in stm32_fmc2_setup_interface() argument 794 if (chipnr == NAND_DATA_IFACE_CHECK_ONLY) in stm32_fmc2_setup_interface()
|
| H A D | rockchip_nand.c | 114 static void rockchip_nand_select_chip(struct mtd_info *mtd, int chipnr) in rockchip_nand_select_chip() argument 125 if (chipnr == -1) { in rockchip_nand_select_chip() 128 banknr = rknand->banks[chipnr]; in rockchip_nand_select_chip() 546 int chipnr = (int)(ofs >> chip->chip_shift); in rockchip_nand_block_bad() local 549 chip->select_chip(mtd, chipnr); in rockchip_nand_block_bad()
|
| H A D | rockchip_nand_v9.c | 120 static void rockchip_nand_select_chip(struct mtd_info *mtd, int chipnr) in rockchip_nand_select_chip() argument 131 if (chipnr == -1) { in rockchip_nand_select_chip() 134 banknr = rknand->banks[chipnr]; in rockchip_nand_select_chip() 547 int chipnr = (int)(ofs >> chip->chip_shift); in rockchip_nand_block_bad() local 550 chip->select_chip(mtd, chipnr); in rockchip_nand_block_bad()
|
| H A D | tegra_nand.c | 221 static void nand_select_chip(struct mtd_info *mtd, int chipnr) in nand_select_chip() argument 223 switch (chipnr) { in nand_select_chip()
|
| H A D | denali.c | 943 static int denali_setup_data_interface(struct mtd_info *mtd, int chipnr, in denali_setup_data_interface() argument 972 if (chipnr == NAND_DATA_IFACE_CHECK_ONLY) in denali_setup_data_interface()
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/ |
| H A D | nand_base.c | 389 int chipnr, page, status, len, ret; in nand_do_write_oob() local 403 chipnr = (int)(to >> chip->chip_shift); in nand_do_write_oob() 411 ret = nand_reset(chip, chipnr); in nand_do_write_oob() 415 nand_select_target(chip, chipnr); in nand_do_write_oob() 751 static int nand_reset_interface(struct nand_chip *chip, int chipnr) in nand_reset_interface() argument 774 ret = ops->setup_interface(chip, chipnr, in nand_reset_interface() 792 static int nand_setup_interface(struct nand_chip *chip, int chipnr) in nand_setup_interface() argument 815 nand_select_target(chip, chipnr); in nand_setup_interface() 824 ret = ops->setup_interface(chip, chipnr, chip->best_interface_config); in nand_setup_interface() 833 nand_select_target(chip, chipnr); in nand_setup_interface() [all …]
|
| H A 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()
|
| H A D | mxic_nand.c | 454 static int mxic_nfc_setup_interface(struct nand_chip *chip, int chipnr, in mxic_nfc_setup_interface() argument 466 if (chipnr == NAND_DATA_IFACE_CHECK_ONLY) in mxic_nfc_setup_interface()
|
| H A 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()
|
| H A D | stm32_fmc2_nand.c | 334 static int stm32_fmc2_nfc_select_chip(struct nand_chip *chip, int chipnr) in stm32_fmc2_nfc_select_chip() argument 341 if (nand->cs_used[chipnr] == nfc->cs_sel) in stm32_fmc2_nfc_select_chip() 344 nfc->cs_sel = nand->cs_used[chipnr]; in stm32_fmc2_nfc_select_chip() 1519 static int stm32_fmc2_nfc_setup_interface(struct nand_chip *chip, int chipnr, in stm32_fmc2_nfc_setup_interface() argument 1528 if (chipnr == NAND_DATA_IFACE_CHECK_ONLY) in stm32_fmc2_nfc_setup_interface()
|
| H A D | denali.c | 764 static int denali_setup_interface(struct nand_chip *chip, int chipnr, in denali_setup_interface() argument 795 if (chipnr == NAND_DATA_IFACE_CHECK_ONLY) in denali_setup_interface() 798 sel = &to_denali_chip(chip)->sels[chipnr]; in denali_setup_interface()
|
| H A D | sh_flctl.c | 917 static void flctl_select_chip(struct nand_chip *chip, int chipnr) in flctl_select_chip() argument 922 switch (chipnr) { in flctl_select_chip()
|
| H A D | mxc_nand.c | 1747 static int mxcnd_setup_interface(struct nand_chip *chip, int chipnr, in mxcnd_setup_interface() argument 1752 return host->devtype_data->setup_interface(chip, chipnr, conf); in mxcnd_setup_interface()
|
| H A D | qcom_nandc.c | 2319 static void qcom_nandc_select_chip(struct nand_chip *chip, int chipnr) in qcom_nandc_select_chip() argument 2323 if (chipnr <= 0) in qcom_nandc_select_chip()
|
| H A D | marvell_nand.c | 2351 static int marvell_nfc_setup_interface(struct nand_chip *chip, int chipnr, in marvell_nfc_setup_interface() argument 2418 if (chipnr < 0) in marvell_nfc_setup_interface()
|
| H A D | cadence-nand-controller.c | 2307 cadence_nand_setup_interface(struct nand_chip *chip, int chipnr, in cadence_nand_setup_interface() argument
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/ingenic/ |
| H A D | ingenic_nand_drv.c | 344 unsigned int chipnr) in ingenic_nand_init_chip() argument 354 cs = &nfc->cs[chipnr]; in ingenic_nand_init_chip() 364 cs->base = devm_platform_ioremap_resource(pdev, chipnr); in ingenic_nand_init_chip()
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/gpmi-nand/ |
| H A D | gpmi-nand.c | 767 static int gpmi_setup_interface(struct nand_chip *chip, int chipnr, in gpmi_setup_interface() argument 783 if (chipnr < 0) in gpmi_setup_interface() 1760 int column, page, chipnr; in gpmi_block_markbad() local 1762 chipnr = (int)(ofs >> chip->chip_shift); in gpmi_block_markbad() 1763 nand_select_target(chip, chipnr); in gpmi_block_markbad() 1936 int chipnr; in mx23_boot_init() local 1969 chipnr = block >> (chip->chip_shift - chip->phys_erase_shift); in mx23_boot_init() 1974 nand_select_target(chip, chipnr); in mx23_boot_init()
|
| /OK3568_Linux_fs/u-boot/include/linux/mtd/ |
| H A D | rawnand.h | 888 int (*setup_data_interface)(struct mtd_info *mtd, int chipnr, 1247 int nand_reset(struct nand_chip *chip, int chipnr);
|
| /OK3568_Linux_fs/kernel/include/linux/mtd/ |
| H A D | rawnand.h | 1062 int (*setup_interface)(struct nand_chip *chip, int chipnr, 1460 int nand_reset(struct nand_chip *chip, int chipnr);
|