Home
last modified time | relevance | path

Searched refs:nand_device (Results 1 – 25 of 37) sorted by relevance

12

/linux/include/linux/mtd/
H A Dnand.h15 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 Dnand-ecc-sw-bch.h37 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 Dnand-ecc-sw-hamming.h34 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 Dspinand.h758 struct nand_device base;
834 static inline struct spinand_device *nand_to_spinand(struct nand_device *nand) in nand_to_spinand()
845 static inline struct nand_device *
/linux/drivers/mtd/nand/
H A Dcore.c153 bool nanddev_isbad(struct nand_device *nand, const struct nand_pos *pos) in nanddev_isbad()
195 int nanddev_markbad(struct nand_device *nand, const struct nand_pos *pos) in nanddev_markbad()
236 bool nanddev_isreserved(struct nand_device *nand, const struct nand_pos *pos) in nanddev_isreserved()
260 static int nanddev_erase(struct nand_device *nand, const struct nand_pos *pos) in nanddev_erase()
288 struct nand_device *nand = mtd_to_nanddev(mtd); in nanddev_mtd_erase()
324 struct nand_device *nand = mtd_to_nanddev(mtd); in nanddev_mtd_max_bad_blocks()
347 static int nanddev_get_ecc_engine(struct nand_device *nand) in nanddev_get_ecc_engine()
386 static int nanddev_put_ecc_engine(struct nand_device *nand) in nanddev_put_ecc_engine()
406 static int nanddev_find_ecc_configuration(struct nand_device *nand) in nanddev_find_ecc_configuration()
428 int nanddev_ecc_engine_init(struct nand_device *nand) in nanddev_ecc_engine_init()
[all …]
H A Decc.c112 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()
226 struct nand_device *nand = mtd_to_nanddev(mtd); in nand_ooblayout_ecc_lp()
241 struct nand_device *nand = mtd_to_nanddev(mtd); in nand_ooblayout_free_lp()
271 struct nand_device *nand = mtd_to_nanddev(mtd); in nand_ooblayout_ecc_lp_hamming()
298 struct nand_device *nand = mtd_to_nanddev(mtd); in nand_ooblayout_free_lp_hamming()
428 void of_get_nand_ecc_user_config(struct nand_device *nand) in of_get_nand_ecc_user_config()
[all …]
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-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 Decc-realtek.c99 static inline void *nand_to_ctx(struct nand_device *nand) in nand_to_ctx()
104 static inline struct rtl_ecc_engine *nand_to_rtlc(struct nand_device *nand) in nand_to_rtlc()
114 struct nand_device *nand = mtd_to_nanddev(mtd); in rtl_ecc_ooblayout_ecc()
129 struct nand_device *nand = mtd_to_nanddev(mtd); in rtl_ecc_ooblayout_free()
222 static int rtl_ecc_prepare_io_req(struct nand_device *nand, struct nand_page_io_req *req) in rtl_ecc_prepare_io_req()
255 static int rtl_ecc_finish_io_req(struct nand_device *nand, struct nand_page_io_req *req) in rtl_ecc_finish_io_req()
308 static int rtl_ecc_check_support(struct nand_device *nand) in rtl_ecc_check_support()
332 static int rtl_ecc_init_ctx(struct nand_device *nand) in rtl_ecc_init_ctx()
375 static void rtl_ecc_cleanup_ctx(struct nand_device *nand) in rtl_ecc_cleanup_ctx()
H A Decc-mxic.c124 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()
152 struct nand_device *nand = mtd_to_nanddev(mtd); in mxic_ecc_ooblayout_free()
219 static int mxic_ecc_init_ctx(struct nand_device *nand, struct device *dev) in mxic_ecc_init_ctx()
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()
[all …]
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/spi/
H A Dcore.c143 struct nand_device *nand = spinand_to_nand(spinand); in spinand_get_cfg()
155 struct nand_device *nand = spinand_to_nand(spinand); in spinand_set_cfg()
209 struct nand_device *nand = spinand_to_nand(spinand); in spinand_select_target()
233 struct nand_device *nand = spinand_to_nand(spinand); in spinand_read_cfg()
257 struct nand_device *nand = spinand_to_nand(spinand); in spinand_init_cfg_cache()
292 struct nand_device *nand = spinand_to_nand(spinand); in spinand_check_ecc_status()
343 static int spinand_ondie_ecc_init_ctx(struct nand_device *nand) in spinand_ondie_ecc_init_ctx()
367 static void spinand_ondie_ecc_cleanup_ctx(struct nand_device *nand) in spinand_ondie_ecc_cleanup_ctx()
372 static int spinand_ondie_ecc_prepare_io_req(struct nand_device *nand, in spinand_ondie_ecc_prepare_io_req()
387 static int spinand_ondie_ecc_finish_io_req(struct nand_device *nand, in spinand_ondie_ecc_finish_io_req()
[all …]
H A Desmt.c74 struct nand_device *nand = mtd_to_nanddev(mtd); in f50l1g41lb_ooblayout_ecc()
89 struct nand_device *nand = mtd_to_nanddev(mtd); in f50l1g41lb_ooblayout_free()
H A Dforesee.c59 struct nand_device *nand = spinand_to_nand(spinand); in f35sqa002g_ecc_get_status()
H A Dwinbond.c293 struct nand_device *nand = spinand_to_nand(spinand); in w25n02kv_ecc_get_status()
596 struct nand_device *nand = spinand_to_nand(spinand); in winbond_spinand_init()
H A Dtoshiba.c74 struct nand_device *nand = spinand_to_nand(spinand); in tx58cxgxsxraix_ecc_get_status()
/linux/drivers/spi/
H A Dspi-amlogic-spifc-a4.c218 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 Dspi-mtk-snfi.c321 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 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()
230 struct nand_device *nand = mtd_to_nanddev(mtd); in qcom_spi_ooblayout_free()
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/mtd/nand/raw/
H A Dnand_esmt.c13 struct nand_device *base = &chip->base; in esmt_nand_decode_id()
H A Dnand_onfi.c37 struct nand_device *base = &chip->base; in nand_flash_detect_ext_param_page()
146 struct nand_device *base = &chip->base; in nand_onfi_detect()
H A Dnand_samsung.c13 struct nand_device *base = &chip->base; in samsung_nand_decode_id()
H A Dnand_jedec.c26 struct nand_device *base = &chip->base; in nand_jedec_detect()
H A Dnand_base.c4960 struct nand_device *base = &chip->base; in find_full_id_nand()
5496 struct nand_device *nand = mtd_to_nanddev(nand_to_mtd(chip)); in rawnand_dt_init()
5644 struct nand_device *base = &chip->base; in rawnand_sw_hamming_init()
5675 struct nand_device *base = &chip->base; in rawnand_sw_hamming_calculate()
5686 struct nand_device *base = &chip->base; in rawnand_sw_hamming_correct()
5694 struct nand_device *base = &chip->base; in rawnand_sw_hamming_cleanup()
5702 struct nand_device *base = &chip->base; in rawnand_sw_bch_init()
5729 struct nand_device *base = &chip->base; in rawnand_sw_bch_calculate()
5737 struct nand_device *base = &chip->base; in rawnand_sw_bch_correct()
5745 struct nand_device *base = &chip->base; in rawnand_sw_bch_cleanup()
[all …]
H A Dnand_toshiba.c148 struct nand_device *base = &chip->base; in toshiba_nand_decode_id()

12