Home
last modified time | relevance | path

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

123456

/openbmc/linux/drivers/mtd/nand/
H A Dcore.c22 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() 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()
[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() 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
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-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()
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() local
152 struct nand_device *nand = mtd_to_nanddev(mtd); in mxic_ecc_ooblayout_free() local
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 …]
/openbmc/u-boot/include/linux/mtd/
H A Dnand.h220 static inline struct mtd_info *nanddev_to_mtd(struct nand_device *nand) in nanddev_to_mtd()
231 static inline unsigned int nanddev_bits_per_cell(const struct nand_device *nand) in nanddev_bits_per_cell()
242 static inline size_t nanddev_page_size(const struct nand_device *nand) in nanddev_page_size()
254 nanddev_per_page_oobsize(const struct nand_device *nand) in nanddev_per_page_oobsize()
266 nanddev_pages_per_eraseblock(const struct nand_device *nand) in nanddev_pages_per_eraseblock()
277 static inline size_t nanddev_eraseblock_size(const struct nand_device *nand) in nanddev_eraseblock_size()
289 nanddev_eraseblocks_per_lun(const struct nand_device *nand) in nanddev_eraseblocks_per_lun()
300 static inline u64 nanddev_target_size(const struct nand_device *nand) in nanddev_target_size()
314 static inline unsigned int nanddev_ntargets(const struct nand_device *nand) in nanddev_ntargets()
325 static inline unsigned int nanddev_neraseblocks(const struct nand_device *nand) in nanddev_neraseblocks()
[all …]
/openbmc/linux/include/linux/mtd/
H A Dnand.h362 struct nand_device *nand; member
461 static inline struct mtd_info *nanddev_to_mtd(struct nand_device *nand) in nanddev_to_mtd()
472 static inline unsigned int nanddev_bits_per_cell(const struct nand_device *nand) in nanddev_bits_per_cell()
483 static inline size_t nanddev_page_size(const struct nand_device *nand) in nanddev_page_size()
495 nanddev_per_page_oobsize(const struct nand_device *nand) in nanddev_per_page_oobsize()
507 nanddev_pages_per_eraseblock(const struct nand_device *nand) in nanddev_pages_per_eraseblock()
519 nanddev_pages_per_target(const struct nand_device *nand) in nanddev_pages_per_target()
532 static inline size_t nanddev_eraseblock_size(const struct nand_device *nand) in nanddev_eraseblock_size()
544 nanddev_eraseblocks_per_lun(const struct nand_device *nand) in nanddev_eraseblocks_per_lun()
556 nanddev_eraseblocks_per_target(const struct nand_device *nand) in nanddev_eraseblocks_per_target()
[all …]
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()
/openbmc/linux/drivers/mtd/nand/spi/
H A Dcore.c53 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
143 struct nand_device *nand = spinand_to_nand(spinand); in spinand_read_cfg() local
167 struct nand_device *nand = spinand_to_nand(spinand); in spinand_init_cfg_cache() local
205 struct nand_device *nand = spinand_to_nand(spinand); in spinand_check_ecc_status() local
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 *nand, in spinand_ondie_ecc_finish_io_req()
[all …]
H A Desmt.c57 #define ESMT_OOB_SECTION_SIZE(nand) \ argument
59 #define ESMT_OOB_FREE_SIZE(nand) \ argument
61 #define ESMT_OOB_ECC_SIZE(nand) \ argument
68 struct nand_device *nand = mtd_to_nanddev(mtd); in f50l1g41lb_ooblayout_ecc() local
83 struct nand_device *nand = mtd_to_nanddev(mtd); in f50l1g41lb_ooblayout_free() local
H A Dwinbond.c109 struct nand_device *nand = spinand_to_nand(spinand); in w25n02kv_ecc_get_status() local
176 struct nand_device *nand = spinand_to_nand(spinand); in winbond_spinand_init() local
/openbmc/u-boot/drivers/mtd/nand/
H A Dcore.c24 bool nanddev_isbad(struct nand_device *nand, const struct nand_pos *pos) in nanddev_isbad()
63 int nanddev_markbad(struct nand_device *nand, const struct nand_pos *pos) in nanddev_markbad()
104 bool nanddev_isreserved(struct nand_device *nand, const struct nand_pos *pos) in nanddev_isreserved()
128 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() local
189 int nanddev_init(struct nand_device *nand, const struct nand_ops *ops, in nanddev_init()
234 void nanddev_cleanup(struct nand_device *nand) in nanddev_cleanup()
H A Dbbt.c25 int nanddev_bbt_init(struct nand_device *nand) in nanddev_bbt_init()
46 void nanddev_bbt_cleanup(struct nand_device *nand) in nanddev_bbt_cleanup()
61 int nanddev_bbt_update(struct nand_device *nand) in nanddev_bbt_update()
75 int nanddev_bbt_get_block_status(const struct nand_device *nand, in nanddev_bbt_get_block_status()
108 int nanddev_bbt_set_block_status(struct nand_device *nand, unsigned int entry, in nanddev_bbt_set_block_status()
/openbmc/u-boot/drivers/mtd/nand/spi/
H A Dcore.c37 struct nand_device *nand = spinand_to_nand(spinand); in spinand_cache_op_adjust_colum() local
78 struct nand_device *nand = spinand_to_nand(spinand); in spinand_get_cfg() local
90 struct nand_device *nand = spinand_to_nand(spinand); in spinand_set_cfg() local
144 struct nand_device *nand = spinand_to_nand(spinand); in spinand_select_target() local
168 struct nand_device *nand = spinand_to_nand(spinand); in spinand_init_cfg_cache() local
231 struct nand_device *nand = spinand_to_nand(spinand); in spinand_load_page_op() local
242 struct nand_device *nand = spinand_to_nand(spinand); in spinand_read_from_cache_op() local
315 struct nand_device *nand = spinand_to_nand(spinand); in spinand_write_to_cache_op() local
400 struct nand_device *nand = spinand_to_nand(spinand); in spinand_program_op() local
410 struct nand_device *nand = &spinand->base; in spinand_erase_op() local
[all …]
/openbmc/linux/drivers/mtd/nand/raw/
H A Dmeson_nand.c119 struct nand_chip nand; member
251 static struct meson_nfc_nand_chip *to_meson_nand(struct nand_chip *nand) in to_meson_nand()
256 static void meson_nfc_select_chip(struct nand_chip *nand, int chip) in meson_nfc_select_chip()
299 static void meson_nfc_cmd_access(struct nand_chip *nand, int raw, bool dir, in meson_nfc_cmd_access()
365 static u8 *meson_nfc_oob_ptr(struct nand_chip *nand, int i) in meson_nfc_oob_ptr()
375 static u8 *meson_nfc_data_ptr(struct nand_chip *nand, int i) in meson_nfc_data_ptr()
386 static void meson_nfc_get_data_oob(struct nand_chip *nand, in meson_nfc_get_data_oob()
405 static void meson_nfc_set_data_oob(struct nand_chip *nand, in meson_nfc_set_data_oob()
424 static int meson_nfc_wait_no_rb_pin(struct nand_chip *nand, int timeout_ms, in meson_nfc_wait_no_rb_pin()
483 static int meson_nfc_queue_rb(struct nand_chip *nand, int timeout_ms, in meson_nfc_queue_rb()
[all …]
H A Dsunxi_nand.c194 struct nand_chip nand; member
203 static inline struct sunxi_nand_chip *to_sunxi_nand(struct nand_chip *nand) in to_sunxi_nand()
415 static void sunxi_nfc_select_chip(struct nand_chip *nand, unsigned int cs) in sunxi_nfc_select_chip()
446 static void sunxi_nfc_read_buf(struct nand_chip *nand, uint8_t *buf, int len) in sunxi_nfc_read_buf()
483 static void sunxi_nfc_write_buf(struct nand_chip *nand, const uint8_t *buf, in sunxi_nfc_write_buf()
602 static u16 sunxi_nfc_randomizer_state(struct nand_chip *nand, int page, in sunxi_nfc_randomizer_state()
622 static void sunxi_nfc_randomizer_config(struct nand_chip *nand, int page, in sunxi_nfc_randomizer_config()
638 static void sunxi_nfc_randomizer_enable(struct nand_chip *nand) in sunxi_nfc_randomizer_enable()
649 static void sunxi_nfc_randomizer_disable(struct nand_chip *nand) in sunxi_nfc_randomizer_disable()
660 static void sunxi_nfc_randomize_bbm(struct nand_chip *nand, int page, u8 *bbm) in sunxi_nfc_randomize_bbm()
[all …]
/openbmc/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 …]
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dmxs_nand.c267 struct nand_chip *nand = mtd_to_nand(mtd); in mxs_nand_cmd_ctrl() local
361 struct nand_chip *nand = mtd_to_nand(mtd); in mxs_nand_select_chip() local
408 struct nand_chip *nand = mtd_to_nand(mtd); in mxs_nand_read_buf() local
492 struct nand_chip *nand = mtd_to_nand(mtd); in mxs_nand_write_buf() local
553 static int mxs_nand_ecc_read_page(struct mtd_info *mtd, struct nand_chip *nand, in mxs_nand_ecc_read_page()
705 struct nand_chip *nand, const uint8_t *buf, in mxs_nand_ecc_write_page()
881 static int mxs_nand_ecc_read_oob(struct mtd_info *mtd, struct nand_chip *nand, in mxs_nand_ecc_read_oob()
916 static int mxs_nand_ecc_write_oob(struct mtd_info *mtd, struct nand_chip *nand, in mxs_nand_ecc_write_oob()
969 struct nand_chip *nand = mtd_to_nand(mtd); in mxs_nand_set_geometry() local
999 struct nand_chip *nand = mtd_to_nand(mtd); in mxs_nand_setup_ecc() local
[all …]
H A Dsunxi_nand.c237 struct nand_chip nand; member
250 static inline struct sunxi_nand_chip *to_sunxi_nand(struct nand_chip *nand) in to_sunxi_nand()
381 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_dev_ready() local
419 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_select_chip() local
464 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_read_buf() local
497 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_write_buf() local
538 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_cmd_ctrl() local
705 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_randomizer_config() local
721 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_randomizer_enable() local
733 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_randomizer_disable() local
[all …]
/openbmc/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
/openbmc/linux/arch/arm/boot/dts/microchip/
H A Dat91-linea.dtsi61 nand: nand@3 { label
H A Dat91-wb50n.dtsi121 nand: nand@3 { label
/openbmc/u-boot/arch/arm/dts/
H A Darmada-375-db.dts132 nand: nand@d0000 { label

123456