| /linux/include/linux/mtd/ |
| H A D | nand.h | 15 struct nand_device; 229 int (*erase)(struct nand_device *nand, const struct nand_pos *pos); 230 int (*markbad)(struct nand_device *nand, const struct nand_pos *pos); 231 bool (*isbad)(struct nand_device *nand, const struct nand_pos *pos); 261 int (*init_ctx)(struct nand_device *nand); 262 void (*cleanup_ctx)(struct nand_device *nand); 263 int (*prepare_io_req)(struct nand_device *nand, 265 int (*finish_io_req)(struct nand_device *nand, 301 void of_get_nand_ecc_user_config(struct nand_device *nand); 302 int nand_ecc_init_ctx(struct nand_device *nand); [all …]
|
| H A D | nand-ecc-sw-bch.h | 37 int nand_ecc_sw_bch_calculate(struct nand_device *nand, 39 int nand_ecc_sw_bch_correct(struct nand_device *nand, unsigned char *buf, 41 int nand_ecc_sw_bch_init_ctx(struct nand_device *nand); 42 void nand_ecc_sw_bch_cleanup_ctx(struct nand_device *nand); 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 | 34 int nand_ecc_sw_hamming_init_ctx(struct nand_device *nand); 35 void nand_ecc_sw_hamming_cleanup_ctx(struct nand_device *nand); 38 int nand_ecc_sw_hamming_calculate(struct nand_device *nand, 44 int nand_ecc_sw_hamming_correct(struct nand_device *nand, unsigned char *buf, 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()
|
| H A D | rawnand.h | 1289 struct nand_device base;
|
| /linux/drivers/mtd/nand/ |
| 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() 162 bool nand_ecc_is_pipelined(const struct nand_device *nand) in nand_ecc_is_pipelined() 173 struct nand_device *nand = mtd_to_nanddev(mtd); in nand_ooblayout_ecc_sp() 233 struct nand_device *nand = mtd_to_nanddev(mtd); in nand_ooblayout_ecc_lp() 248 struct nand_device *nand = mtd_to_nanddev(mtd); in nand_ooblayout_free_lp() 278 struct nand_device *nand = mtd_to_nanddev(mtd); in nand_ooblayout_ecc_lp_hamming() 305 struct nand_device *nand = mtd_to_nanddev(mtd); in nand_ooblayout_free_lp_hamming() [all …]
|
| 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-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 | 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/drivers/mtd/nand/spi/ |
| H A D | core.c | 154 struct nand_device *nand = spinand_to_nand(spinand); in spinand_get_cfg() 166 struct nand_device *nand = spinand_to_nand(spinand); in spinand_set_cfg() 220 struct nand_device *nand = spinand_to_nand(spinand); in spinand_select_target() 244 struct nand_device *nand = spinand_to_nand(spinand); in spinand_read_cfg() 268 struct nand_device *nand = spinand_to_nand(spinand); in spinand_init_cfg_cache() 284 struct nand_device *nand = spinand_to_nand(spinand); in spinand_init_quad_enable() 321 struct nand_device *nand = spinand_to_nand(spinand); in spinand_check_ecc_status() 372 static int spinand_ondie_ecc_init_ctx(struct nand_device *nand) in spinand_ondie_ecc_init_ctx() 396 static void spinand_ondie_ecc_cleanup_ctx(struct nand_device *nand) in spinand_ondie_ecc_cleanup_ctx() 401 static int spinand_ondie_ecc_prepare_io_req(struct nand_device *nand, in spinand_ondie_ecc_prepare_io_req() [all …]
|
| H A D | gigadevice.c | 102 struct nand_device *nand = spinand_to_nand(spinand); in gd5fxgm9_ecc_get_status()
|
| /linux/drivers/mtd/nand/raw/ |
| H A D | nand_esmt.c | 13 struct nand_device *base = &chip->base; in esmt_nand_decode_id()
|
| H A D | nand_samsung.c | 13 struct nand_device *base = &chip->base; in samsung_nand_decode_id()
|
| H A D | nand_jedec.c | 26 struct nand_device *base = &chip->base; in nand_jedec_detect()
|
| H A D | vf610_nfc.c | 771 struct nand_device *nand = mtd_to_nanddev(mtd); in vf610_nfc_ooblayout_ecc() 786 struct nand_device *nand = mtd_to_nanddev(mtd); in vf610_nfc_ooblayout_free()
|
| H A D | nand_micron.c | 479 struct nand_device *base = &chip->base; in micron_nand_init()
|
| H A D | nand_hynix.c | 497 struct nand_device *base = &chip->base; in hynix_nand_extract_ecc_requirements()
|
| H A D | tegra_nand.c | 846 struct nand_device *base = mtd_to_nanddev(nand_to_mtd(chip)); in tegra_nand_get_strength()
|
| /linux/drivers/spi/ |
| H A D | spi-amlogic-spifc-a4.c | 218 static struct aml_sfc *nand_to_aml_sfc(struct nand_device *nand) in nand_to_aml_sfc() 857 struct nand_device *nand = mtd_to_nanddev(mtd); in aml_sfc_layout_ecc() 871 struct nand_device *nand = mtd_to_nanddev(mtd); in aml_sfc_ooblayout_free() 947 static int aml_sfc_ecc_init_ctx(struct nand_device *nand) in aml_sfc_ecc_init_ctx() 1007 static void aml_sfc_ecc_cleanup_ctx(struct nand_device *nand) in aml_sfc_ecc_cleanup_ctx() 1016 static int aml_sfc_ecc_prepare_io_req(struct nand_device *nand, in aml_sfc_ecc_prepare_io_req() 1041 static int aml_sfc_ecc_finish_io_req(struct nand_device *nand, in aml_sfc_ecc_finish_io_req()
|
| H A D | spi-mtk-snfi.c | 321 static struct mtk_snand *nand_to_mtk_snand(struct nand_device *nand) in nand_to_mtk_snand() 644 struct nand_device *nand = mtd_to_nanddev(mtd); in mtk_snand_ooblayout_free() 660 static int mtk_snand_ecc_init_ctx(struct nand_device *nand) in mtk_snand_ecc_init_ctx() 739 static void mtk_snand_ecc_cleanup_ctx(struct nand_device *nand) in mtk_snand_ecc_cleanup_ctx() 746 static int mtk_snand_ecc_prepare_io_req(struct nand_device *nand, in mtk_snand_ecc_prepare_io_req() 762 static int mtk_snand_ecc_finish_io_req(struct nand_device *nand, in mtk_snand_ecc_finish_io_req()
|
| H A D | spi-qpic-snand.c | 167 static struct qcom_nand_controller *nand_to_qcom_snand(struct nand_device *nand) 213 struct nand_device *nand = mtd_to_nanddev(mtd); in qcom_spi_ooblayout_ecc() 237 struct nand_device *nand = mtd_to_nanddev(mtd); in qcom_spi_ooblayout_free() 255 static int qcom_spi_ecc_init_ctx_pipelined(struct nand_device *nand) in qcom_spi_ecc_init_ctx_pipelined() 432 static void qcom_spi_ecc_cleanup_ctx_pipelined(struct nand_device *nand) 443 static int qcom_spi_ecc_prepare_io_req_pipelined(struct nand_device *nand, in qcom_spi_ecc_prepare_io_req_pipelined() 474 static int qcom_spi_ecc_finish_io_req_pipelined(struct nand_device *nand, in qcom_spi_ecc_finish_io_req_pipelined()
|