Lines Matching refs:plnand
275 struct pl35x_nand *plnand; in pl35x_smc_set_ecc_mode() local
284 plnand = to_pl35x_nand(chip); in pl35x_smc_set_ecc_mode()
285 plnand->ecc_cfg = ecc_cfg; in pl35x_smc_set_ecc_mode()
316 struct pl35x_nand *plnand = to_pl35x_nand(chip); in pl35x_nand_select_target() local
322 writel(plnand->timings, nfc->conf_regs + PL35X_SMC_CYCLES); in pl35x_nand_select_target()
326 writel(plnand->ecc_cfg, nfc->conf_regs + PL35X_SMC_ECC_CFG); in pl35x_nand_select_target()
507 struct pl35x_nand *plnand = to_pl35x_nand(chip); in pl35x_nand_write_page_hwecc() local
510 unsigned int nrows = plnand->addr_cycles; in pl35x_nand_write_page_hwecc()
521 PL35X_SMC_CMD_PHASE_NADDRS(plnand->addr_cycles) | in pl35x_nand_write_page_hwecc()
535 if (plnand->addr_cycles > 4) in pl35x_nand_write_page_hwecc()
598 struct pl35x_nand *plnand = to_pl35x_nand(chip); in pl35x_nand_read_page_hwecc() local
601 unsigned int nrows = plnand->addr_cycles; in pl35x_nand_read_page_hwecc()
611 PL35X_SMC_CMD_PHASE_NADDRS(plnand->addr_cycles) | in pl35x_nand_read_page_hwecc()
627 if (plnand->addr_cycles > 4) in pl35x_nand_read_page_hwecc()
788 struct pl35x_nand *plnand = to_pl35x_nand(chip); in pl35x_nfc_setup_interface() local
857 plnand->timings = PL35X_SMC_NAND_TRC_CYCLES(tmgs.t_rc) | in pl35x_nfc_setup_interface()
872 struct pl35x_nand *plnand = to_pl35x_nand(chip); in pl35x_smc_set_ecc_pg_size() local
890 plnand->ecc_cfg = readl(nfc->conf_regs + PL35X_SMC_ECC_CFG); in pl35x_smc_set_ecc_pg_size()
891 plnand->ecc_cfg &= ~PL35X_SMC_ECC_CFG_PGSIZE_MASK; in pl35x_smc_set_ecc_pg_size()
892 plnand->ecc_cfg |= sz; in pl35x_smc_set_ecc_pg_size()
893 writel(plnand->ecc_cfg, nfc->conf_regs + PL35X_SMC_ECC_CFG); in pl35x_smc_set_ecc_pg_size()
944 struct pl35x_nand *plnand = to_pl35x_nand(chip); in pl35x_nand_attach_chip() local
962 plnand->addr_cycles = 1; in pl35x_nand_attach_chip()
964 plnand->addr_cycles = 2; in pl35x_nand_attach_chip()
967 plnand->addr_cycles += 3; in pl35x_nand_attach_chip()
969 plnand->addr_cycles += 2; in pl35x_nand_attach_chip()
1041 struct pl35x_nand *plnand; in pl35x_nand_chip_init() local
1046 plnand = devm_kzalloc(nfc->dev, sizeof(*plnand), GFP_KERNEL); in pl35x_nand_chip_init()
1047 if (!plnand) in pl35x_nand_chip_init()
1064 plnand->cs = cs; in pl35x_nand_chip_init()
1066 chip = &plnand->chip; in pl35x_nand_chip_init()
1092 list_add_tail(&plnand->node, &nfc->chips); in pl35x_nand_chip_init()
1099 struct pl35x_nand *plnand, *tmp; in pl35x_nand_chips_cleanup() local
1103 list_for_each_entry_safe(plnand, tmp, &nfc->chips, node) { in pl35x_nand_chips_cleanup()
1104 chip = &plnand->chip; in pl35x_nand_chips_cleanup()
1108 list_del(&plnand->node); in pl35x_nand_chips_cleanup()