/kernel/linux/linux-6.6/include/linux/mtd/ |
H A D | nand.h | 15 struct nand_device; 226 int (*erase)(struct nand_device *nand, const struct nand_pos *pos); 227 int (*markbad)(struct nand_device *nand, const struct nand_pos *pos); 228 bool (*isbad)(struct nand_device *nand, const struct nand_pos *pos); 258 int (*init_ctx)(struct nand_device *nand); 259 void (*cleanup_ctx)(struct nand_device *nand); 260 int (*prepare_io_req)(struct nand_device *nand, 262 int (*finish_io_req)(struct nand_device *nand, 298 void of_get_nand_ecc_user_config(struct nand_device *nand); 299 int nand_ecc_init_ctx(struct nand_device *nan 417 struct nand_device { global() struct [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 | spinand.h | 427 struct nand_device base; 483 static inline struct spinand_device *nand_to_spinand(struct nand_device *nand) in nand_to_spinand() 494 static inline struct nand_device *
|
/kernel/linux/linux-5.10/include/linux/mtd/ |
H A D | nand.h | 15 struct nand_device; 226 int (*erase)(struct nand_device *nand, const struct nand_pos *pos); 227 int (*markbad)(struct nand_device *nand, const struct nand_pos *pos); 228 bool (*isbad)(struct nand_device *nand, const struct nand_pos *pos); 256 int (*init_ctx)(struct nand_device *nand); 257 void (*cleanup_ctx)(struct nand_device *nand); 258 int (*prepare_io_req)(struct nand_device *nand, 260 int (*finish_io_req)(struct nand_device *nand, 272 void of_get_nand_ecc_user_config(struct nand_device *nand); 273 int nand_ecc_init_ctx(struct nand_device *nan 319 struct nand_device { global() struct [all...] |
H A D | spinand.h | 390 struct nand_device base; 446 static inline struct spinand_device *nand_to_spinand(struct nand_device *nand) in nand_to_spinand() 457 static inline struct nand_device *
|
/kernel/linux/linux-6.6/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() 105 bool nanddev_isreserved(struct nand_device *nand, const struct nand_pos *pos) in nanddev_isreserved() 129 static int nanddev_erase(struct nand_device *nand, const struct nand_pos *pos) in nanddev_erase() 157 struct nand_device *nand = mtd_to_nanddev(mtd); in nanddev_mtd_erase() 193 struct nand_device *nand = mtd_to_nanddev(mtd); in nanddev_mtd_max_bad_blocks() 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 *nan [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() 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 *nan [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-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() 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 *nan [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()
|
/kernel/linux/linux-5.10/drivers/mtd/nand/ |
H A D | ecc.c | 105 int nand_ecc_init_ctx(struct nand_device *nand) in nand_ecc_init_ctx() 118 void nand_ecc_cleanup_ctx(struct nand_device *nand) in nand_ecc_cleanup_ctx() 130 int nand_ecc_prepare_io_req(struct nand_device *nand, in nand_ecc_prepare_io_req() 145 int nand_ecc_finish_io_req(struct nand_device *nand, in nand_ecc_finish_io_req() 159 struct nand_device *nand = mtd_to_nanddev(mtd); in nand_ooblayout_ecc_sp() 219 struct nand_device *nand = mtd_to_nanddev(mtd); in nand_ooblayout_ecc_lp() 234 struct nand_device *nand = mtd_to_nanddev(mtd); in nand_ooblayout_free_lp() 264 struct nand_device *nand = mtd_to_nanddev(mtd); in nand_ooblayout_ecc_lp_hamming() 291 struct nand_device *nand = mtd_to_nanddev(mtd); in nand_ooblayout_free_lp_hamming() 421 void of_get_nand_ecc_user_config(struct nand_device *nan [all...] |
H A D | bbt.c | 23 int nanddev_bbt_init(struct nand_device *nand) in nanddev_bbt_init() 45 void nanddev_bbt_cleanup(struct nand_device *nand) in nanddev_bbt_cleanup() 60 int nanddev_bbt_update(struct nand_device *nand) in nanddev_bbt_update() 74 int nanddev_bbt_get_block_status(const struct nand_device *nand, in nanddev_bbt_get_block_status() 107 int nanddev_bbt_set_block_status(struct nand_device *nand, unsigned int entry, in nanddev_bbt_set_block_status()
|
H A D | core.c | 22 bool nanddev_isbad(struct nand_device *nand, const struct nand_pos *pos) in nanddev_isbad() 61 int nanddev_markbad(struct nand_device *nand, const struct nand_pos *pos) in nanddev_markbad() 102 bool nanddev_isreserved(struct nand_device *nand, const struct nand_pos *pos) in nanddev_isreserved() 126 int nanddev_erase(struct nand_device *nand, const struct nand_pos *pos) in nanddev_erase() 155 struct nand_device *nand = mtd_to_nanddev(mtd); in nanddev_mtd_erase() 191 struct nand_device *nand = mtd_to_nanddev(mtd); in nanddev_mtd_max_bad_blocks() 221 int nanddev_init(struct nand_device *nand, const struct nand_ops *ops, in nanddev_init() 266 void nanddev_cleanup(struct nand_device *nand) in nanddev_cleanup()
|
/kernel/linux/linux-6.6/drivers/mtd/nand/spi/ |
H A D | core.c | 53 struct nand_device *nand = spinand_to_nand(spinand); in spinand_get_cfg() 65 struct nand_device *nand = spinand_to_nand(spinand); in spinand_set_cfg() 119 struct nand_device *nand = spinand_to_nand(spinand); in spinand_select_target() 143 struct nand_device *nand = spinand_to_nand(spinand); in spinand_read_cfg() 167 struct nand_device *nand = spinand_to_nand(spinand); in spinand_init_cfg_cache() 205 struct nand_device *nand = spinand_to_nand(spinand); in spinand_check_ecc_status() 256 static int spinand_ondie_ecc_init_ctx(struct nand_device *nand) in spinand_ondie_ecc_init_ctx() 280 static void spinand_ondie_ecc_cleanup_ctx(struct nand_device *nand) in spinand_ondie_ecc_cleanup_ctx() 285 static int spinand_ondie_ecc_prepare_io_req(struct nand_device *nand, in spinand_ondie_ecc_prepare_io_req() 297 static int spinand_ondie_ecc_finish_io_req(struct nand_device *nan [all...] |
H A D | winbond.c | 109 struct nand_device *nand = spinand_to_nand(spinand); in w25n02kv_ecc_get_status() 176 struct nand_device *nand = spinand_to_nand(spinand); in winbond_spinand_init()
|
H A D | esmt.c | 68 struct nand_device *nand = mtd_to_nanddev(mtd); in f50l1g41lb_ooblayout_ecc() 83 struct nand_device *nand = mtd_to_nanddev(mtd); in f50l1g41lb_ooblayout_free()
|
/kernel/linux/linux-5.10/drivers/mtd/nand/spi/ |
H A D | core.c | 53 struct nand_device *nand = spinand_to_nand(spinand); in spinand_get_cfg() 65 struct nand_device *nand = spinand_to_nand(spinand); in spinand_set_cfg() 119 struct nand_device *nand = spinand_to_nand(spinand); in spinand_select_target() 143 struct nand_device *nand = spinand_to_nand(spinand); in spinand_init_cfg_cache() 206 struct nand_device *nand = spinand_to_nand(spinand); in spinand_load_page_op() 216 struct nand_device *nand = spinand_to_nand(spinand); in spinand_read_from_cache_op() 274 struct nand_device *nand = spinand_to_nand(spinand); in spinand_write_to_cache_op() 327 struct nand_device *nand = spinand_to_nand(spinand); in spinand_program_op() 337 struct nand_device *nand = spinand_to_nand(spinand); in spinand_erase_op() 407 struct nand_device *nan in spinand_check_ecc_status() [all...] |
H A D | winbond.c | 101 struct nand_device *nand = spinand_to_nand(spinand); in winbond_spinand_init()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/arch/arm/mach-omap1/ |
H A D | board-perseus2.c | 166 static struct platform_device nand_device = { variable 219 &nand_device,
|