• Home
  • Raw
  • Download

Lines Matching refs:nand

502 static void stm32_fmc2_hwctl(struct nand_device *nand)  in stm32_fmc2_hwctl()  argument
506 if (nand->ecc.max_bit_corr != FMC2_ECC_HAM) { in stm32_fmc2_hwctl()
514 static int stm32_fmc2_read_page(struct nand_device *nand, in stm32_fmc2_read_page() argument
517 unsigned int eccsize = nand->ecc.size; in stm32_fmc2_read_page()
518 unsigned int eccbytes = nand->ecc.bytes; in stm32_fmc2_read_page()
519 unsigned int eccsteps = nand->page_size / eccsize; in stm32_fmc2_read_page()
534 for (s = 0U, i = nand->page_size + FMC2_BBM_LEN, p = (uint8_t *)buffer; in stm32_fmc2_read_page()
537 stm32_fmc2_hwctl(nand); in stm32_fmc2_read_page()
546 if (nand->ecc.max_bit_corr == FMC2_ECC_HAM) { in stm32_fmc2_read_page()
561 if (nand->ecc.max_bit_corr == FMC2_ECC_HAM) { in stm32_fmc2_read_page()
575 static void stm32_fmc2_read_data(struct nand_device *nand, in stm32_fmc2_read_data() argument
581 if (use_bus8 && (nand->buswidth == NAND_BUS_WIDTH_16)) { in stm32_fmc2_read_data()
616 if (use_bus8 && (nand->buswidth == NAND_BUS_WIDTH_16)) { in stm32_fmc2_read_data()
622 static void stm32_fmc2_write_data(struct nand_device *nand, in stm32_fmc2_write_data() argument
628 if (use_bus8 && (nand->buswidth == NAND_BUS_WIDTH_16)) { in stm32_fmc2_write_data()
664 if (use_bus8 && (nand->buswidth == NAND_BUS_WIDTH_16)) { in stm32_fmc2_write_data()
726 stm32_fmc2_read_data(req->nand, req->addr, req->length, in stm32_fmc2_exec()
732 stm32_fmc2_write_data(req->nand, req->addr, req->length, in stm32_fmc2_exec()
748 static void stm32_fmc2_setup(struct nand_device *nand) in stm32_fmc2_setup() argument
754 if (nand->buswidth == NAND_BUS_WIDTH_16) { in stm32_fmc2_setup()
758 if (nand->ecc.mode == NAND_ECC_HW) { in stm32_fmc2_setup()
759 nand->mtd_read_page = stm32_fmc2_read_page; in stm32_fmc2_setup()
767 switch (nand->ecc.max_bit_corr) { in stm32_fmc2_setup()
769 nand->ecc.bytes = 3; in stm32_fmc2_setup()
774 nand->ecc.bytes = 13; in stm32_fmc2_setup()
779 nand->ecc.bytes = 7; in stm32_fmc2_setup()
783 if ((nand->buswidth & NAND_BUS_WIDTH_16) != 0) { in stm32_fmc2_setup()
784 nand->ecc.bytes++; in stm32_fmc2_setup()