| /linux-6.15/drivers/mtd/nand/ |
| H A D | core.c | 22 bool nanddev_isbad(struct nand_device *nand, const struct nand_pos *pos) in nanddev_isbad() 64 int nanddev_markbad(struct nand_device *nand, const struct nand_pos *pos) in nanddev_markbad() 157 struct nand_device *nand = mtd_to_nanddev(mtd); in nanddev_mtd_erase() local 193 struct nand_device *nand = mtd_to_nanddev(mtd); in nanddev_mtd_max_bad_blocks() local 216 static int nanddev_get_ecc_engine(struct nand_device *nand) in nanddev_get_ecc_engine() 255 static int nanddev_put_ecc_engine(struct nand_device *nand) in nanddev_put_ecc_engine() 275 static int nanddev_find_ecc_configuration(struct nand_device *nand) in nanddev_find_ecc_configuration() 297 int nanddev_ecc_engine_init(struct nand_device *nand) in nanddev_ecc_engine_init() 331 void nanddev_ecc_engine_cleanup(struct nand_device *nand) in nanddev_ecc_engine_cleanup() 351 int nanddev_init(struct nand_device *nand, const struct nand_ops *ops, in nanddev_init() [all …]
|
| H A D | ecc.c | 112 int nand_ecc_init_ctx(struct nand_device *nand) in nand_ecc_init_ctx() 125 void nand_ecc_cleanup_ctx(struct nand_device *nand) in nand_ecc_cleanup_ctx() 137 int nand_ecc_prepare_io_req(struct nand_device *nand, in nand_ecc_prepare_io_req() 152 int nand_ecc_finish_io_req(struct nand_device *nand, in nand_ecc_finish_io_req() 166 struct nand_device *nand = mtd_to_nanddev(mtd); in nand_ooblayout_ecc_sp() local 226 struct nand_device *nand = mtd_to_nanddev(mtd); in nand_ooblayout_ecc_lp() local 241 struct nand_device *nand = mtd_to_nanddev(mtd); in nand_ooblayout_free_lp() local 271 struct nand_device *nand = mtd_to_nanddev(mtd); in nand_ooblayout_ecc_lp_hamming() local 298 struct nand_device *nand = mtd_to_nanddev(mtd); in nand_ooblayout_free_lp_hamming() local 491 struct nand_device *nand) in nand_ecc_init_req_tweaking() [all …]
|
| H A D | ecc-sw-bch.c | 23 int nand_ecc_sw_bch_calculate(struct nand_device *nand, in nand_ecc_sw_bch_calculate() 49 int nand_ecc_sw_bch_correct(struct nand_device *nand, unsigned char *buf, in nand_ecc_sw_bch_correct() 82 static void nand_ecc_sw_bch_cleanup(struct nand_device *nand) in nand_ecc_sw_bch_cleanup() 108 static int nand_ecc_sw_bch_init(struct nand_device *nand) in nand_ecc_sw_bch_init() 170 int nand_ecc_sw_bch_init_ctx(struct nand_device *nand) in nand_ecc_sw_bch_init_ctx() 277 void nand_ecc_sw_bch_cleanup_ctx(struct nand_device *nand) in nand_ecc_sw_bch_cleanup_ctx() 291 static int nand_ecc_sw_bch_prepare_io_req(struct nand_device *nand, in nand_ecc_sw_bch_prepare_io_req() 328 static int nand_ecc_sw_bch_finish_io_req(struct nand_device *nand, in nand_ecc_sw_bch_finish_io_req()
|
| H A D | bbt.c | 23 int nanddev_bbt_init(struct nand_device *nand) in nanddev_bbt_init() 42 void nanddev_bbt_cleanup(struct nand_device *nand) in nanddev_bbt_cleanup() 57 int nanddev_bbt_update(struct nand_device *nand) in nanddev_bbt_update() 71 int nanddev_bbt_get_block_status(const struct nand_device *nand, in nanddev_bbt_get_block_status() 104 int nanddev_bbt_set_block_status(struct nand_device *nand, unsigned int entry, in nanddev_bbt_set_block_status()
|
| H A D | ecc-mxic.c | 124 static struct mxic_ecc_engine *nand_to_mxic(struct nand_device *nand) in nand_to_mxic() 137 struct nand_device *nand = mtd_to_nanddev(mtd); in mxic_ecc_ooblayout_ecc() local 152 struct nand_device *nand = mtd_to_nanddev(mtd); in mxic_ecc_ooblayout_free() local 360 static int mxic_ecc_init_ctx_external(struct nand_device *nand) in mxic_ecc_init_ctx_external() 380 static int mxic_ecc_init_ctx_pipelined(struct nand_device *nand) in mxic_ecc_init_ctx_pipelined() 412 static void mxic_ecc_cleanup_ctx(struct nand_device *nand) in mxic_ecc_cleanup_ctx() 520 struct nand_device *nand) in mxic_ecc_count_biterrs() 552 static int mxic_ecc_prepare_io_req_external(struct nand_device *nand, in mxic_ecc_prepare_io_req_external() 612 static int mxic_ecc_finish_io_req_external(struct nand_device *nand, in mxic_ecc_finish_io_req_external() 668 static int mxic_ecc_prepare_io_req_pipelined(struct nand_device *nand, in mxic_ecc_prepare_io_req_pipelined() [all …]
|
| H A D | ecc-sw-hamming.c | 362 int nand_ecc_sw_hamming_calculate(struct nand_device *nand, in nand_ecc_sw_hamming_calculate() 454 int nand_ecc_sw_hamming_correct(struct nand_device *nand, unsigned char *buf, in nand_ecc_sw_hamming_correct() 467 int nand_ecc_sw_hamming_init_ctx(struct nand_device *nand) in nand_ecc_sw_hamming_init_ctx() 532 void nand_ecc_sw_hamming_cleanup_ctx(struct nand_device *nand) in nand_ecc_sw_hamming_cleanup_ctx() 545 static int nand_ecc_sw_hamming_prepare_io_req(struct nand_device *nand, in nand_ecc_sw_hamming_prepare_io_req() 582 static int nand_ecc_sw_hamming_finish_io_req(struct nand_device *nand, in nand_ecc_sw_hamming_finish_io_req()
|
| /linux-6.15/include/linux/mtd/ |
| H A D | nand.h | 365 struct nand_device *nand; member 498 nanddev_per_page_oobsize(const struct nand_device *nand) in nanddev_per_page_oobsize() 510 nanddev_pages_per_eraseblock(const struct nand_device *nand) in nanddev_pages_per_eraseblock() 522 nanddev_pages_per_target(const struct nand_device *nand) in nanddev_pages_per_target() 547 nanddev_eraseblocks_per_lun(const struct nand_device *nand) in nanddev_eraseblocks_per_lun() 622 nanddev_get_memorg(struct nand_device *nand) in nanddev_get_memorg() 632 nanddev_get_ecc_conf(struct nand_device *nand) in nanddev_get_ecc_conf() 642 nanddev_get_ecc_nsteps(struct nand_device *nand) in nanddev_get_ecc_nsteps() 652 nanddev_get_ecc_bytes_per_step(struct nand_device *nand) in nanddev_get_ecc_bytes_per_step() 663 nanddev_get_ecc_requirements(struct nand_device *nand) in nanddev_get_ecc_requirements() [all …]
|
| H A D | nand-ecc-sw-bch.h | 47 static inline int nand_ecc_sw_bch_calculate(struct nand_device *nand, in nand_ecc_sw_bch_calculate() 54 static inline int nand_ecc_sw_bch_correct(struct nand_device *nand, in nand_ecc_sw_bch_correct() 62 static inline int nand_ecc_sw_bch_init_ctx(struct nand_device *nand) in nand_ecc_sw_bch_init_ctx() 67 static inline void nand_ecc_sw_bch_cleanup_ctx(struct nand_device *nand) {} in nand_ecc_sw_bch_cleanup_ctx()
|
| H A D | nand-ecc-sw-hamming.h | 50 static inline int nand_ecc_sw_hamming_init_ctx(struct nand_device *nand) in nand_ecc_sw_hamming_init_ctx() 55 static inline void nand_ecc_sw_hamming_cleanup_ctx(struct nand_device *nand) {} in nand_ecc_sw_hamming_cleanup_ctx() 64 static inline int nand_ecc_sw_hamming_calculate(struct nand_device *nand, in nand_ecc_sw_hamming_calculate() 79 static inline int nand_ecc_sw_hamming_correct(struct nand_device *nand, in nand_ecc_sw_hamming_correct()
|
| /linux-6.15/drivers/mtd/nand/spi/ |
| H A D | core.c | 53 struct nand_device *nand = spinand_to_nand(spinand); in spinand_get_cfg() local 65 struct nand_device *nand = spinand_to_nand(spinand); in spinand_set_cfg() local 119 struct nand_device *nand = spinand_to_nand(spinand); in spinand_select_target() local 702 struct nand_device *nand = mtd_to_nanddev(mtd); in spinand_mtd_regular_page_read() local 773 struct nand_device *nand = mtd_to_nanddev(mtd); in spinand_mtd_continuous_page_read() local 857 struct nand_device *nand = mtd_to_nanddev(mtd); in spinand_use_cont_read() local 920 struct nand_device *nand = mtd_to_nanddev(mtd); in spinand_mtd_write() local 981 struct nand_device *nand = mtd_to_nanddev(mtd); in spinand_mtd_block_isbad() local 1023 struct nand_device *nand = mtd_to_nanddev(mtd); in spinand_mtd_block_markbad() local 1081 struct nand_device *nand = mtd_to_nanddev(mtd); in spinand_mtd_block_isreserved() local [all …]
|
| H A D | esmt.c | 62 #define ESMT_OOB_SECTION_SIZE(nand) \ argument 64 #define ESMT_OOB_FREE_SIZE(nand) \ argument 66 #define ESMT_OOB_ECC_SIZE(nand) \ argument 73 struct nand_device *nand = mtd_to_nanddev(mtd); in f50l1g41lb_ooblayout_ecc() local 88 struct nand_device *nand = mtd_to_nanddev(mtd); in f50l1g41lb_ooblayout_free() local
|
| H A D | winbond.c | 147 struct nand_device *nand = spinand_to_nand(spinand); in w25n02kv_ecc_get_status() local 291 struct nand_device *nand = spinand_to_nand(spinand); in winbond_spinand_init() local
|
| /linux-6.15/drivers/mtd/nand/raw/ |
| H A D | nuvoton-ma35d1-nand-controller.c | 148 struct ma35_nand_info *nand = nand_get_controller_data(chip); in ma35_clear_spare() local 170 struct ma35_nand_info *nand = nand_get_controller_data(chip); in ma35_read_spare() local 189 struct ma35_nand_info *nand = nand_get_controller_data(chip); in ma35_write_spare() local 217 struct ma35_nand_info *nand = nand_get_controller_data(chip); in ma35_nand_target_enable() local 286 struct ma35_nand_info *nand = nand_get_controller_data(chip); in ma35_nfi_correct() local 421 static void ma35_nand_dmac_init(struct ma35_nand_info *nand) in ma35_nand_dmac_init() 707 static inline void ma35_hw_init(struct ma35_nand_info *nand) in ma35_hw_init() 722 struct ma35_nand_info *nand = (struct ma35_nand_info *)id; in ma35_nand_irq() local 921 static void ma35_chips_cleanup(struct ma35_nand_info *nand) in ma35_chips_cleanup() 953 struct ma35_nand_info *nand; in ma35_nand_probe() local [all …]
|
| H A D | meson_nand.c | 124 struct nand_chip nand; member 414 static void meson_nfc_get_data_oob(struct nand_chip *nand, in meson_nfc_get_data_oob() 433 static void meson_nfc_set_data_oob(struct nand_chip *nand, in meson_nfc_set_data_oob() 808 struct nand_chip *nand, int raw) in meson_nfc_check_ecc_pages_valid() 1027 static int meson_nfc_exec_op(struct nand_chip *nand, in meson_nfc_exec_op() 1099 struct nand_chip *nand = mtd_to_nand(mtd); in meson_ooblayout_ecc() local 1113 struct nand_chip *nand = mtd_to_nand(mtd); in meson_ooblayout_free() local 1214 static void meson_nfc_free_buffer(struct nand_chip *nand) in meson_nfc_free_buffer() 1222 static int meson_chip_buffer_init(struct nand_chip *nand) in meson_chip_buffer_init() 1289 static int meson_nand_bch_mode(struct nand_chip *nand) in meson_nand_bch_mode() [all …]
|
| H A D | sunxi_nand.c | 194 struct nand_chip nand; member 687 static void sunxi_nfc_hw_ecc_enable(struct nand_chip *nand) in sunxi_nfc_hw_ecc_enable() 695 static void sunxi_nfc_hw_ecc_disable(struct nand_chip *nand) in sunxi_nfc_hw_ecc_disable() 795 static int sunxi_nfc_hw_ecc_read_chunk(struct nand_chip *nand, in sunxi_nfc_hw_ecc_read_chunk() 1562 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nand_ooblayout_ecc() local 1577 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nand_ooblayout_free() local 1724 static int sunxi_nand_attach_chip(struct nand_chip *nand) in sunxi_nand_attach_chip() 1764 static int sunxi_nfc_exec_subop(struct nand_chip *nand, in sunxi_nfc_exec_subop() 1860 static int sunxi_nfc_soft_waitrdy(struct nand_chip *nand, in sunxi_nfc_soft_waitrdy() 1897 static int sunxi_nfc_exec_op(struct nand_chip *nand, in sunxi_nfc_exec_op() [all …]
|
| H A D | stm32_fmc2_nand.c | 256 struct stm32_fmc2_nand nand; member 295 struct stm32_fmc2_nand *nand = to_fmc2_nand(chip); in stm32_fmc2_nfc_timings_init() local 350 struct stm32_fmc2_nand *nand = to_fmc2_nand(chip); in stm32_fmc2_nfc_select_chip() local 1416 struct stm32_fmc2_nand *nand = to_fmc2_nand(chip); in stm32_fmc2_nfc_calc_timings() local 1785 static void stm32_fmc2_nfc_wp_enable(struct stm32_fmc2_nand *nand) in stm32_fmc2_nfc_wp_enable() 1791 static void stm32_fmc2_nfc_wp_disable(struct stm32_fmc2_nand *nand) in stm32_fmc2_nfc_wp_disable() 1800 struct stm32_fmc2_nand *nand = &nfc->nand; in stm32_fmc2_nfc_parse_child() local 1908 struct stm32_fmc2_nand *nand; in stm32_fmc2_nfc_probe() local 2056 struct stm32_fmc2_nand *nand = &nfc->nand; in stm32_fmc2_nfc_remove() local 2080 struct stm32_fmc2_nand *nand = &nfc->nand; in stm32_fmc2_nfc_suspend() local [all …]
|
| H A D | nand_macronix.c | 354 static int macronix_30lfxg18ac_otp_enable(struct nand_chip *nand) in macronix_30lfxg18ac_otp_enable() 363 static int macronix_30lfxg18ac_otp_disable(struct nand_chip *nand) in macronix_30lfxg18ac_otp_disable() 376 struct nand_chip *nand; in __macronix_30lfxg18ac_rw_otp() local
|
| H A D | mtk_nand.c | 126 struct nand_chip nand; member 178 static inline struct mtk_nfc_nand_chip *to_mtk_nand(struct nand_chip *nand) in to_mtk_nand() 499 static void mtk_nfc_select_target(struct nand_chip *nand, unsigned int cs) in mtk_nfc_select_target() 661 struct mtk_nfc_nand_chip *nand = to_mtk_nand(chip); in mtk_nfc_bad_mark_swap() local 1164 struct nand_chip *nand = mtd_to_nand(mtd); in mtk_nfc_set_fdm() local 1183 struct nand_chip *nand = mtd_to_nand(mtd); in mtk_nfc_set_bad_mark_ctl() local 1196 struct nand_chip *nand = mtd_to_nand(mtd); in mtk_nfc_set_spare_per_sector() local 1228 struct nand_chip *nand = mtd_to_nand(mtd); in mtk_nfc_ecc_init() local 1343 struct nand_chip *nand; in mtk_nfc_nand_chip_init() local 1609 struct nand_chip *nand; in mtk_nfc_resume() local
|
| /linux-6.15/drivers/mtd/nand/raw/atmel/ |
| H A D | nand-controller.c | 635 struct atmel_nand *nand = to_atmel_nand(chip); in atmel_hsmc_exec_cmd_addr() local 664 struct atmel_nand *nand = to_atmel_nand(chip); in atmel_hsmc_exec_rw() local 682 struct atmel_nand *nand = to_atmel_nand(chip); in atmel_hsmc_exec_waitrdy() local 1557 struct atmel_nand *nand) in atmel_nand_init() 1581 struct atmel_nand *nand) in atmel_smc_nand_init() 1626 struct atmel_nand *nand; in atmel_nand_create() local 1727 struct atmel_nand *nand) in atmel_nand_controller_add_nand() 1762 struct atmel_nand *nand, *tmp; in atmel_nand_controller_remove_nands() local 1779 struct atmel_nand *nand; in atmel_nand_controller_legacy_add_nands() local 1879 struct atmel_nand *nand; in atmel_nand_controller_add_nands() local [all …]
|
| /linux-6.15/drivers/mtd/nand/raw/ingenic/ |
| H A D | ingenic_nand_drv.c | 143 struct ingenic_nand *nand = to_ingenic_nand(nand_to_mtd(chip)); in ingenic_nand_ecc_hwctl() local 151 struct ingenic_nand *nand = to_ingenic_nand(nand_to_mtd(chip)); in ingenic_nand_ecc_calculate() local 172 struct ingenic_nand *nand = to_ingenic_nand(nand_to_mtd(chip)); in ingenic_nand_ecc_correct() local 261 struct ingenic_nand *nand = to_ingenic_nand(nand_to_mtd(chip)); in ingenic_nand_exec_instr() local 315 struct ingenic_nand *nand = to_ingenic_nand(nand_to_mtd(chip)); in ingenic_nand_exec_op() local 350 struct ingenic_nand *nand; in ingenic_nand_init_chip() local
|
| /linux-6.15/arch/arm/boot/dts/microchip/ |
| H A D | at91-linea.dtsi | 61 nand: nand@3 { label
|
| H A D | at91-wb50n.dtsi | 121 nand: nand@3 { label
|
| /linux-6.15/drivers/watchdog/ |
| H A D | rc32434_wdt.c | 68 #define SET_BITS(addr, or, nand) \ argument 89 u32 or, nand; in rc32434_wdt_start() local
|
| /linux-6.15/arch/arm/boot/dts/marvell/ |
| H A D | armada-385-linksys.dtsi | 147 nand: nand@0 { label
|
| /linux-6.15/drivers/spi/ |
| H A D | spi-qpic-snand.c | 171 static struct qcom_nand_controller *nand_to_qcom_snand(struct nand_device *nand) in nand_to_qcom_snand() 216 struct nand_device *nand = mtd_to_nanddev(mtd); in qcom_spi_ooblayout_ecc() local 232 struct nand_device *nand = mtd_to_nanddev(mtd); in qcom_spi_ooblayout_free() local 250 static int qcom_spi_ecc_init_ctx_pipelined(struct nand_device *nand) in qcom_spi_ecc_init_ctx_pipelined() 344 static void qcom_spi_ecc_cleanup_ctx_pipelined(struct nand_device *nand) in qcom_spi_ecc_cleanup_ctx_pipelined() 351 static int qcom_spi_ecc_prepare_io_req_pipelined(struct nand_device *nand, in qcom_spi_ecc_prepare_io_req_pipelined() 374 static int qcom_spi_ecc_finish_io_req_pipelined(struct nand_device *nand, in qcom_spi_ecc_finish_io_req_pipelined()
|