Home
last modified time | relevance | path

Searched defs:nand (Results 1 – 25 of 56) sorted by relevance

123

/linux/drivers/mtd/nand/raw/
H A Dnuvoton-ma35d1-nand-controller.c148 struct ma35_nand_info *nand = nand_get_controller_data(chip); in ma35_clear_spare() local
155 static inline void read_remaining_bytes(struct ma35_nand_info *nand, u32 *buf, in read_remaining_bytes()
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
234 static int ma35_nand_hwecc_init(struct nand_chip *chip, struct ma35_nand_info *nand) in ma35_nand_hwecc_init()
286 struct ma35_nand_info *nand = nand_get_controller_data(chip); in ma35_nfi_correct() local
389 struct ma35_nand_info *nand = nand_get_controller_data(chip); in ma35_nfi_ecc_check() local
421 static void ma35_nand_dmac_init(struct ma35_nand_info *nand) in ma35_nand_dmac_init()
434 struct ma35_nand_info *nand = nand_get_controller_data(chip); in ma35_nand_do_write() local
[all …]
H A Dmeson_nand.c124 struct nand_chip nand; member
258 static struct meson_nfc_nand_chip *to_meson_nand(struct nand_chip *nand) in to_meson_nand()
263 static void meson_nfc_select_chip(struct nand_chip *nand, int chip) in meson_nfc_select_chip()
306 static int meson_nfc_is_boot_page(struct nand_chip *nand, int page) in meson_nfc_is_boot_page()
315 static void meson_nfc_cmd_access(struct nand_chip *nand, int raw, bool dir, int page) in meson_nfc_cmd_access()
393 static u8 *meson_nfc_oob_ptr(struct nand_chip *nand, int i) in meson_nfc_oob_ptr()
403 static u8 *meson_nfc_data_ptr(struct nand_chip *nand, int i) in meson_nfc_data_ptr()
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()
452 static int meson_nfc_wait_no_rb_pin(struct nand_chip *nand, int timeout_ms, in meson_nfc_wait_no_rb_pin()
[all …]
H A Dstm32_fmc2_nand.c256 struct stm32_fmc2_nand nand; member
296 struct stm32_fmc2_nand *nand = to_fmc2_nand(chip); in stm32_fmc2_nfc_timings_init() local
351 struct stm32_fmc2_nand *nand = to_fmc2_nand(chip); in stm32_fmc2_nfc_select_chip() local
1417 struct stm32_fmc2_nand *nand = to_fmc2_nand(chip); in stm32_fmc2_nfc_calc_timings() local
1787 static void stm32_fmc2_nfc_wp_enable(struct stm32_fmc2_nand *nand) in stm32_fmc2_nfc_wp_enable()
1793 static void stm32_fmc2_nfc_wp_disable(struct stm32_fmc2_nand *nand) in stm32_fmc2_nfc_wp_disable()
1802 struct stm32_fmc2_nand *nand = &nfc->nand; in stm32_fmc2_nfc_parse_child() local
1910 struct stm32_fmc2_nand *nand; in stm32_fmc2_nfc_probe() local
2058 struct stm32_fmc2_nand *nand = &nfc->nand; in stm32_fmc2_nfc_remove() local
2082 struct stm32_fmc2_nand *nand = &nfc->nand; in stm32_fmc2_nfc_suspend() local
[all …]
H A Dmtk_nand.c126 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
H A Dnand_macronix.c354 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 Dmpc5121_nfc.c254 static void mpc5121_nfc_select_chip(struct nand_chip *nand, int chip) in mpc5121_nfc_select_chip()
292 static void ads5121_select_chip(struct nand_chip *nand, int chip) in ads5121_select_chip()
310 static int mpc5121_nfc_dev_ready(struct nand_chip *nand) in mpc5121_nfc_dev_ready()
396 struct nand_chip *nand = mtd_to_nand(mtd); in mpc5121_nfc_copy_spare() local
/linux/drivers/mtd/nand/
H A Decc-sw-bch.c23 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 Dbbt.c23 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 Decc-sw-hamming.c362 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/drivers/mtd/nand/raw/atmel/
H A Dnand-controller.c471 static void atmel_nand_data_in(struct atmel_nand *nand, void *buf, in atmel_nand_data_in()
495 static void atmel_nand_data_out(struct atmel_nand *nand, const void *buf, in atmel_nand_data_out()
519 static int atmel_nand_waitrdy(struct atmel_nand *nand, unsigned int timeout_ms) in atmel_nand_waitrdy()
528 static int atmel_hsmc_nand_waitrdy(struct atmel_nand *nand, in atmel_hsmc_nand_waitrdy()
544 static void atmel_nand_select_target(struct atmel_nand *nand, in atmel_nand_select_target()
550 static void atmel_hsmc_nand_select_target(struct atmel_nand *nand, in atmel_hsmc_nand_select_target()
573 static int atmel_smc_nand_exec_instr(struct atmel_nand *nand, in atmel_smc_nand_exec_instr()
610 static int atmel_smc_nand_exec_op(struct atmel_nand *nand, in atmel_smc_nand_exec_op()
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
[all …]
/linux/include/linux/mtd/
H A Dnand-ecc-sw-bch.h47 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 Dnand-ecc-sw-hamming.h50 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/drivers/mtd/nand/raw/ingenic/
H A Dingenic_nand_drv.c143 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/arch/arm/boot/dts/microchip/
H A Dat91-linea.dtsi61 nand: nand@3 { label
H A Dat91-wb50n.dtsi121 nand: nand@3 { label
H A Dethernut5.dts77 nand: nand@3 { label
H A Daks-cdu.dts66 nand: nand@3 { label
H A Dat91-som60.dtsi171 nand: nand@3 { label
/linux/drivers/spi/
H A Dspi-qpic-snand.c161 static struct qcom_nand_controller *nand_to_qcom_snand(struct nand_device *nand) in nand_to_qcom_snand()
206 struct nand_device *nand = mtd_to_nanddev(mtd); in qcom_spi_ooblayout_ecc() local
230 struct nand_device *nand = mtd_to_nanddev(mtd); in qcom_spi_ooblayout_free() local
248 static int qcom_spi_ecc_init_ctx_pipelined(struct nand_device *nand) in qcom_spi_ecc_init_ctx_pipelined()
401 static void qcom_spi_ecc_cleanup_ctx_pipelined(struct nand_device *nand) in qcom_spi_ecc_cleanup_ctx_pipelined()
408 static int qcom_spi_ecc_prepare_io_req_pipelined(struct nand_device *nand, in qcom_spi_ecc_prepare_io_req_pipelined()
431 static int qcom_spi_ecc_finish_io_req_pipelined(struct nand_device *nand, in qcom_spi_ecc_finish_io_req_pipelined()
/linux/drivers/watchdog/
H A Drc32434_wdt.c68 #define SET_BITS(addr, or, nand) \ argument
89 u32 or, nand; in rc32434_wdt_start() local
/linux/arch/arm/boot/dts/marvell/
H A Darmada-385-linksys.dtsi147 nand: nand@0 { label
/linux/arch/mips/boot/dts/loongson/
H A Dloongson1c.dtsi104 nand: nand-controller@38000 { label
H A Dloongson1b.dtsi157 nand: nand-controller@38000 { label
/linux/drivers/mtd/nand/spi/
H A Dwinbond.c252 struct nand_device *nand = spinand_to_nand(spinand); in w25n02kv_ecc_get_status() local
535 struct nand_device *nand = spinand_to_nand(spinand); in winbond_spinand_init() local
/linux/arch/arm64/boot/dts/freescale/
H A Dfsl-ls1088a-ten64.dts360 nand: flash@1 { label

123