/linux-master/drivers/mtd/nand/raw/gpmi-nand/ |
H A D | Makefile | 2 obj-$(CONFIG_MTD_NAND_GPMI_NAND) += gpmi-nand.o
|
/linux-master/drivers/mtd/nand/ |
H A D | core.c | 10 #define pr_fmt(fmt) "nand: " fmt 13 #include <linux/mtd/nand.h> 17 * @nand: NAND device 22 bool nanddev_isbad(struct nand_device *nand, const struct nand_pos *pos) argument 27 if (nanddev_bbt_is_initialized(nand)) { 31 entry = nanddev_bbt_pos_to_entry(nand, pos); 32 status = nanddev_bbt_get_block_status(nand, entry); 35 if (nand->ops->isbad(nand, pos)) 40 nanddev_bbt_set_block_status(nand, entr 64 nanddev_markbad(struct nand_device *nand, const struct nand_pos *pos) argument 105 nanddev_isreserved(struct nand_device *nand, const struct nand_pos *pos) argument 129 nanddev_erase(struct nand_device *nand, const struct nand_pos *pos) argument 157 struct nand_device *nand = mtd_to_nanddev(mtd); local 193 struct nand_device *nand = mtd_to_nanddev(mtd); local 216 nanddev_get_ecc_engine(struct nand_device *nand) argument 255 nanddev_put_ecc_engine(struct nand_device *nand) argument 275 nanddev_find_ecc_configuration(struct nand_device *nand) argument 297 nanddev_ecc_engine_init(struct nand_device *nand) argument 331 nanddev_ecc_engine_cleanup(struct nand_device *nand) argument 351 nanddev_init(struct nand_device *nand, const struct nand_ops *ops, struct module *owner) argument 396 nanddev_cleanup(struct nand_device *nand) argument [all...] |
H A D | bbt.c | 10 #define pr_fmt(fmt) "nand-bbt: " fmt 12 #include <linux/mtd/nand.h> 17 * @nand: NAND device 23 int nanddev_bbt_init(struct nand_device *nand) argument 26 unsigned int nblocks = nanddev_neraseblocks(nand); 28 nand->bbt.cache = bitmap_zalloc(nblocks * bits_per_block, GFP_KERNEL); 29 if (!nand->bbt.cache) 38 * @nand: NAND device 42 void nanddev_bbt_cleanup(struct nand_device *nand) argument 44 bitmap_free(nand 57 nanddev_bbt_update(struct nand_device *nand) argument 71 nanddev_bbt_get_block_status(const struct nand_device *nand, unsigned int entry) argument 104 nanddev_bbt_set_block_status(struct nand_device *nand, unsigned int entry, enum nand_bbt_block_status status) argument [all...] |
H A D | ecc.c | 97 #include <linux/mtd/nand.h> 108 * @nand: the NAND device 112 int nand_ecc_init_ctx(struct nand_device *nand) argument 114 if (!nand->ecc.engine || !nand->ecc.engine->ops->init_ctx) 117 return nand->ecc.engine->ops->init_ctx(nand); 123 * @nand: the NAND device 125 void nand_ecc_cleanup_ctx(struct nand_device *nand) argument 127 if (nand 137 nand_ecc_prepare_io_req(struct nand_device *nand, struct nand_page_io_req *req) argument 152 nand_ecc_finish_io_req(struct nand_device *nand, struct nand_page_io_req *req) argument 166 struct nand_device *nand = mtd_to_nanddev(mtd); local 226 struct nand_device *nand = mtd_to_nanddev(mtd); local 241 struct nand_device *nand = mtd_to_nanddev(mtd); local 271 struct nand_device *nand = mtd_to_nanddev(mtd); local 298 struct nand_device *nand = mtd_to_nanddev(mtd); local 428 of_get_nand_ecc_user_config(struct nand_device *nand) argument 467 nand_ecc_is_strong_enough(struct nand_device *nand) argument 490 nand_ecc_init_req_tweaking(struct nand_ecc_req_tweak_ctx *ctx, struct nand_device *nand) argument 528 struct nand_device *nand = ctx->nand; local 594 nand_ecc_get_sw_engine(struct nand_device *nand) argument 614 nand_ecc_get_on_die_hw_engine(struct nand_device *nand) argument 664 nand_ecc_get_on_host_hw_engine(struct nand_device *nand) argument 696 nand_ecc_put_on_host_hw_engine(struct nand_device *nand) argument [all...] |
H A D | ecc-sw-bch.c | 14 #include <linux/mtd/nand.h> 15 #include <linux/mtd/nand-ecc-sw-bch.h> 19 * @nand: NAND device 23 int nand_ecc_sw_bch_calculate(struct nand_device *nand, argument 26 struct nand_ecc_sw_bch_conf *engine_conf = nand->ecc.ctx.priv; 30 bch_encode(engine_conf->bch, buf, nand->ecc.ctx.conf.step_size, code); 42 * @nand: NAND device 49 int nand_ecc_sw_bch_correct(struct nand_device *nand, unsigned char *buf, argument 52 struct nand_ecc_sw_bch_conf *engine_conf = nand->ecc.ctx.priv; 53 unsigned int step_size = nand 82 nand_ecc_sw_bch_cleanup(struct nand_device *nand) argument 108 nand_ecc_sw_bch_init(struct nand_device *nand) argument 170 nand_ecc_sw_bch_init_ctx(struct nand_device *nand) argument 277 nand_ecc_sw_bch_cleanup_ctx(struct nand_device *nand) argument 291 nand_ecc_sw_bch_prepare_io_req(struct nand_device *nand, struct nand_page_io_req *req) argument 328 nand_ecc_sw_bch_finish_io_req(struct nand_device *nand, struct nand_page_io_req *req) argument [all...] |
H A D | ecc-sw-hamming.c | 20 #include <linux/mtd/nand.h> 21 #include <linux/mtd/nand-ecc-sw-hamming.h> 358 * @nand: NAND device 362 int nand_ecc_sw_hamming_calculate(struct nand_device *nand, argument 365 struct nand_ecc_sw_hamming_conf *engine_conf = nand->ecc.ctx.priv; 366 unsigned int step_size = nand->ecc.ctx.conf.step_size; 447 * @nand: NAND device 454 int nand_ecc_sw_hamming_correct(struct nand_device *nand, unsigned char *buf, argument 458 struct nand_ecc_sw_hamming_conf *engine_conf = nand->ecc.ctx.priv; 459 unsigned int step_size = nand 467 nand_ecc_sw_hamming_init_ctx(struct nand_device *nand) argument 532 nand_ecc_sw_hamming_cleanup_ctx(struct nand_device *nand) argument 545 nand_ecc_sw_hamming_prepare_io_req(struct nand_device *nand, struct nand_page_io_req *req) argument 582 nand_ecc_sw_hamming_finish_io_req(struct nand_device *nand, struct nand_page_io_req *req) argument [all...] |
H A D | ecc-mxic.c | 18 #include <linux/mtd/nand.h> 19 #include <linux/mtd/nand-ecc-mxic.h> 124 static struct mxic_ecc_engine *nand_to_mxic(struct nand_device *nand) argument 126 struct nand_ecc_engine *eng = nand->ecc.engine; 137 struct nand_device *nand = mtd_to_nanddev(mtd); local 138 struct mxic_ecc_ctx *ctx = nand_to_ecc_ctx(nand); 152 struct nand_device *nand = mtd_to_nanddev(mtd); local 153 struct mxic_ecc_ctx *ctx = nand_to_ecc_ctx(nand); 219 static int mxic_ecc_init_ctx(struct nand_device *nand, struct device *dev) argument 221 struct mxic_ecc_engine *mxic = nand_to_mxic(nand); 360 mxic_ecc_init_ctx_external(struct nand_device *nand) argument 380 mxic_ecc_init_ctx_pipelined(struct nand_device *nand) argument 412 mxic_ecc_cleanup_ctx(struct nand_device *nand) argument 519 mxic_ecc_count_biterrs(struct mxic_ecc_engine *mxic, struct nand_device *nand) argument 552 mxic_ecc_prepare_io_req_external(struct nand_device *nand, struct nand_page_io_req *req) argument 612 mxic_ecc_finish_io_req_external(struct nand_device *nand, struct nand_page_io_req *req) argument 668 mxic_ecc_prepare_io_req_pipelined(struct nand_device *nand, struct nand_page_io_req *req) argument 700 mxic_ecc_finish_io_req_pipelined(struct nand_device *nand, struct nand_page_io_req *req) argument [all...] |
/linux-master/include/linux/mtd/ |
H A D | nand-ecc-sw-bch.h | 11 #include <linux/mtd/nand.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, argument 54 static inline int nand_ecc_sw_bch_correct(struct nand_device *nand, argument 62 static inline int nand_ecc_sw_bch_init_ctx(struct nand_device *nand) argument 67 static inline void nand_ecc_sw_bch_cleanup_ctx(struct nand_device *nand) {} argument
|
H A D | nand-ecc-sw-hamming.h | 13 #include <linux/mtd/nand.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) argument 55 static inline void nand_ecc_sw_hamming_cleanup_ctx(struct nand_device *nand) {} argument 64 static inline int nand_ecc_sw_hamming_calculate(struct nand_device *nand, argument 79 static inline int nand_ecc_sw_hamming_correct(struct nand_device *nand, argument
|
H A D | nand.h | 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 *nand); 300 void nand_ecc_cleanup_ctx(struct nand_device *nand); 362 struct nand_device *nand; member in struct:nand_ecc_req_tweak_ctx 461 nanddev_to_mtd(struct nand_device *nand) argument 472 nanddev_bits_per_cell(const struct nand_device *nand) argument 483 nanddev_page_size(const struct nand_device *nand) argument 495 nanddev_per_page_oobsize(const struct nand_device *nand) argument 507 nanddev_pages_per_eraseblock(const struct nand_device *nand) argument 519 nanddev_pages_per_target(const struct nand_device *nand) argument 532 nanddev_eraseblock_size(const struct nand_device *nand) argument 544 nanddev_eraseblocks_per_lun(const struct nand_device *nand) argument 556 nanddev_eraseblocks_per_target(const struct nand_device *nand) argument 567 nanddev_target_size(const struct nand_device *nand) argument 581 nanddev_ntargets(const struct nand_device *nand) argument 592 nanddev_neraseblocks(const struct nand_device *nand) argument 604 nanddev_size(const struct nand_device *nand) argument 619 nanddev_get_memorg(struct nand_device *nand) argument 629 nanddev_get_ecc_conf(struct nand_device *nand) argument 639 nanddev_get_ecc_nsteps(struct nand_device *nand) argument 649 nanddev_get_ecc_bytes_per_step(struct nand_device *nand) argument 660 nanddev_get_ecc_requirements(struct nand_device *nand) argument 672 nanddev_set_ecc_requirements(struct nand_device *nand, const struct nand_ecc_props *reqs) argument 692 nanddev_register(struct nand_device *nand) argument 707 nanddev_unregister(struct nand_device *nand) argument 719 nanddev_set_of_node(struct nand_device *nand, struct device_node *np) argument 731 nanddev_get_of_node(struct nand_device *nand) argument 746 nanddev_offs_to_pos(struct nand_device *nand, loff_t offs, struct nand_pos *pos) argument 801 nanddev_pos_to_offs(struct nand_device *nand, const struct nand_pos *pos) argument 826 nanddev_pos_to_row(struct nand_device *nand, const struct nand_pos *pos) argument 842 nanddev_pos_next_target(struct nand_device *nand, struct nand_pos *pos) argument 860 nanddev_pos_next_lun(struct nand_device *nand, struct nand_pos *pos) argument 880 nanddev_pos_next_eraseblock(struct nand_device *nand, struct nand_pos *pos) argument 899 nanddev_pos_next_page(struct nand_device *nand, struct nand_pos *pos) argument 918 nanddev_io_iter_init(struct nand_device *nand, enum nand_page_io_req_type reqtype, loff_t offs, struct mtd_oob_ops *req, struct nand_io_iter *iter) argument 949 nanddev_io_iter_next_page(struct nand_device *nand, struct nand_io_iter *iter) argument 976 nanddev_io_iter_end(struct nand_device *nand, const struct nand_io_iter *iter) argument 1008 nand_to_ecc_ctx(struct nand_device *nand) argument 1042 nanddev_bbt_pos_to_entry(struct nand_device *nand, const struct nand_pos *pos) argument 1056 nanddev_bbt_is_initialized(struct nand_device *nand) argument [all...] |
/linux-master/drivers/mtd/nand/raw/atmel/ |
H A D | Makefile | 2 obj-$(CONFIG_MTD_NAND_ATMEL) += atmel-nand-controller.o atmel-pmecc.o 4 atmel-nand-controller-objs := nand-controller.o
|
H A D | nand-controller.c | 13 * Derived from drivers/mtd/nand/autcpu12.c (removed in v3.8) 24 * (u-boot-1.1.5/board/atmel/at91sam9263ek/nand.c) 201 struct atmel_nand *nand); 203 int (*setup_interface)(struct atmel_nand *nand, int csline, 205 int (*exec_op)(struct atmel_nand *nand, 471 static void atmel_nand_data_in(struct atmel_nand *nand, void *buf, argument 476 nc = to_nand_controller(nand->base.controller); 485 !atmel_nand_dma_transfer(nc, buf, nand->activecs->io.dma, len, 489 if ((nand->base.options & NAND_BUSWIDTH_16) && !force_8bit) 490 ioread16_rep(nand 495 atmel_nand_data_out(struct atmel_nand *nand, const void *buf, unsigned int len, bool force_8bit) argument 519 atmel_nand_waitrdy(struct atmel_nand *nand, unsigned int timeout_ms) argument 528 atmel_hsmc_nand_waitrdy(struct atmel_nand *nand, unsigned int timeout_ms) argument 544 atmel_nand_select_target(struct atmel_nand *nand, unsigned int cs) argument 550 atmel_hsmc_nand_select_target(struct atmel_nand *nand, unsigned int cs) argument 573 atmel_smc_nand_exec_instr(struct atmel_nand *nand, const struct nand_op_instr *instr) argument 610 atmel_smc_nand_exec_op(struct atmel_nand *nand, const struct nand_operation *op, bool check_only) argument 635 struct atmel_nand *nand = to_atmel_nand(chip); local 664 struct atmel_nand *nand = to_atmel_nand(chip); local 682 struct atmel_nand *nand = to_atmel_nand(chip); local 700 atmel_hsmc_nand_exec_op(struct atmel_nand *nand, const struct nand_operation *op, bool check_only) argument 790 struct atmel_nand *nand = to_atmel_nand(chip); local 809 struct atmel_nand *nand = to_atmel_nand(chip); local 817 struct atmel_nand *nand = to_atmel_nand(chip); local 852 struct atmel_nand *nand = to_atmel_nand(chip); local 905 struct atmel_nand *nand = to_atmel_nand(chip); local 987 struct atmel_nand *nand = to_atmel_nand(chip); local 1048 struct atmel_nand *nand = to_atmel_nand(chip); local 1116 struct atmel_nand *nand = to_atmel_nand(chip); local 1239 atmel_smc_nand_prepare_smcconf(struct atmel_nand *nand, const struct nand_interface_config *conf, struct atmel_smc_cs_conf *smcconf) argument 1469 atmel_smc_nand_setup_interface(struct atmel_nand *nand, int csline, const struct nand_interface_config *conf) argument 1494 atmel_hsmc_nand_setup_interface(struct atmel_nand *nand, int csline, const struct nand_interface_config *conf) argument 1527 struct atmel_nand *nand = to_atmel_nand(chip); local 1548 struct atmel_nand *nand = to_atmel_nand(chip); local 1556 atmel_nand_init(struct atmel_nand_controller *nc, struct atmel_nand *nand) argument 1580 atmel_smc_nand_init(struct atmel_nand_controller *nc, struct atmel_nand *nand) argument 1606 atmel_nand_controller_remove_nand(struct atmel_nand *nand) argument 1626 struct atmel_nand *nand; local 1726 atmel_nand_controller_add_nand(struct atmel_nand_controller *nc, struct atmel_nand *nand) argument 1762 struct atmel_nand *nand, *tmp; local 1779 struct atmel_nand *nand; local 1879 struct atmel_nand *nand; local 1980 struct atmel_nand *nand = to_atmel_nand(chip); local 2638 struct atmel_nand *nand; local [all...] |
/linux-master/drivers/mtd/nand/spi/ |
H A D | esmt.c | 57 #define ESMT_OOB_SECTION_SIZE(nand) \ 58 (nanddev_per_page_oobsize(nand) / ESMT_OOB_SECTION_COUNT) 59 #define ESMT_OOB_FREE_SIZE(nand) \ 60 (ESMT_OOB_SECTION_SIZE(nand) / 2) 61 #define ESMT_OOB_ECC_SIZE(nand) \ 62 (ESMT_OOB_SECTION_SIZE(nand) - ESMT_OOB_FREE_SIZE(nand)) 68 struct nand_device *nand = mtd_to_nanddev(mtd); local 73 region->offset = section * ESMT_OOB_SECTION_SIZE(nand) + 74 ESMT_OOB_FREE_SIZE(nand); 83 struct nand_device *nand = mtd_to_nanddev(mtd); local [all...] |
H A D | core.c | 10 #define pr_fmt(fmt) "spi-nand: " fmt 53 struct nand_device *nand = spinand_to_nand(spinand); local 56 spinand->cur_target >= nand->memorg.ntargets)) 65 struct nand_device *nand = spinand_to_nand(spinand); local 69 spinand->cur_target >= nand->memorg.ntargets)) 119 struct nand_device *nand = spinand_to_nand(spinand); local 122 if (WARN_ON(target >= nand->memorg.ntargets)) 128 if (nand->memorg.ntargets == 1) { 143 struct nand_device *nand = spinand_to_nand(spinand); local 147 for (target = 0; target < nand 167 struct nand_device *nand = spinand_to_nand(spinand); local 205 struct nand_device *nand = spinand_to_nand(spinand); local 256 spinand_ondie_ecc_init_ctx(struct nand_device *nand) argument 280 spinand_ondie_ecc_cleanup_ctx(struct nand_device *nand) argument 285 spinand_ondie_ecc_prepare_io_req(struct nand_device *nand, struct nand_page_io_req *req) argument 297 spinand_ondie_ecc_finish_io_req(struct nand_device *nand, struct nand_page_io_req *req) argument 333 spinand_ondie_ecc_save_status(struct nand_device *nand, u8 status) argument 352 struct nand_device *nand = spinand_to_nand(spinand); local 362 struct nand_device *nand = spinand_to_nand(spinand); local 423 struct nand_device *nand = spinand_to_nand(spinand); local 482 struct nand_device *nand = spinand_to_nand(spinand); local 492 struct nand_device *nand = spinand_to_nand(spinand); local 572 struct nand_device *nand = spinand_to_nand(spinand); local 603 struct nand_device *nand = spinand_to_nand(spinand); local 637 struct nand_device *nand = mtd_to_nanddev(mtd); local 693 struct nand_device *nand = mtd_to_nanddev(mtd); local 724 spinand_isbad(struct nand_device *nand, const struct nand_pos *pos) argument 746 struct nand_device *nand = mtd_to_nanddev(mtd); local 759 spinand_markbad(struct nand_device *nand, const struct nand_pos *pos) argument 785 struct nand_device *nand = mtd_to_nanddev(mtd); local 798 spinand_erase(struct nand_device *nand, const struct nand_pos *pos) argument 843 struct nand_device *nand = mtd_to_nanddev(mtd); local 858 struct nand_device *nand = spinand_to_nand(spinand); local 914 struct nand_device *nand = spinand_to_nand(spinand); local 1028 struct nand_device *nand = spinand_to_nand(spinand); local 1079 struct nand_device *nand = spinand_to_nand(spinand); local 1126 struct nand_device *nand = spinand_to_nand(spinand); local 1159 struct nand_device *nand = spinand_to_nand(spinand); local 1219 struct nand_device *nand = mtd_to_nanddev(mtd); local 1318 struct nand_device *nand = spinand_to_nand(spinand); local [all...] |
/linux-master/drivers/mtd/nand/raw/ |
H A D | Makefile | 3 obj-$(CONFIG_MTD_RAW_NAND) += nand.o 42 obj-$(CONFIG_MTD_NAND_GPMI_NAND) += gpmi-nand/ 54 obj-$(CONFIG_MTD_NAND_CADENCE) += cadence-nand-controller.o 55 obj-$(CONFIG_MTD_NAND_ARASAN) += arasan-nand-controller.o 56 obj-$(CONFIG_MTD_NAND_INTEL_LGM) += intel-nand-controller.o 57 obj-$(CONFIG_MTD_NAND_ROCKCHIP) += rockchip-nand-controller.o 58 obj-$(CONFIG_MTD_NAND_PL35X) += pl35x-nand-controller.o 59 obj-$(CONFIG_MTD_NAND_RENESAS) += renesas-nand-controller.o 61 nand-objs := nand_base.o nand_legacy.o nand_bbt.o nand_timings.o nand_ids.o 62 nand [all...] |
H A D | meson_nand.c | 98 /* nand flash controller delay 3 ns */ 121 struct nand_chip nand; member in struct:meson_nfc_nand_chip 253 static struct meson_nfc_nand_chip *to_meson_nand(struct nand_chip *nand) argument 255 return container_of(nand, struct meson_nfc_nand_chip, nand); 258 static void meson_nfc_select_chip(struct nand_chip *nand, int chip) argument 260 struct meson_nfc_nand_chip *meson_chip = to_meson_nand(nand); 261 struct meson_nfc *nfc = nand_get_controller_data(nand); 301 static void meson_nfc_cmd_access(struct nand_chip *nand, int raw, bool dir, argument 304 struct mtd_info *mtd = nand_to_mtd(nand); 367 meson_nfc_oob_ptr(struct nand_chip *nand, int i) argument 377 meson_nfc_data_ptr(struct nand_chip *nand, int i) argument 388 meson_nfc_get_data_oob(struct nand_chip *nand, u8 *buf, u8 *oobbuf) argument 407 meson_nfc_set_data_oob(struct nand_chip *nand, const u8 *buf, u8 *oobbuf) argument 426 meson_nfc_wait_no_rb_pin(struct nand_chip *nand, int timeout_ms, bool need_cmd_read0) argument 485 meson_nfc_queue_rb(struct nand_chip *nand, int timeout_ms, bool need_cmd_read0) argument 508 meson_nfc_set_user_byte(struct nand_chip *nand, u8 *oob_buf) argument 521 meson_nfc_get_user_byte(struct nand_chip *nand, u8 *oob_buf) argument 534 meson_nfc_ecc_correct(struct nand_chip *nand, u32 *bitflips, u64 *correct_bitmap) argument 563 meson_nfc_dma_buffer_setup(struct nand_chip *nand, void *databuf, int datalen, void *infobuf, int infolen, enum dma_data_direction dir) argument 603 meson_nfc_dma_buffer_release(struct nand_chip *nand, int datalen, int infolen, enum dma_data_direction dir) argument 616 meson_nfc_read_buf(struct nand_chip *nand, u8 *buf, int len) argument 645 meson_nfc_write_buf(struct nand_chip *nand, u8 *buf, int len) argument 666 meson_nfc_rw_cmd_prepare_and_execute(struct nand_chip *nand, int page, bool in) argument 719 meson_nfc_write_page_sub(struct nand_chip *nand, int page, int raw) argument 764 meson_nfc_write_page_raw(struct nand_chip *nand, const u8 *buf, int oob_required, int page) argument 774 meson_nfc_write_page_hwecc(struct nand_chip *nand, const u8 *buf, int oob_required, int page) argument 788 meson_nfc_check_ecc_pages_valid(struct meson_nfc *nfc, struct nand_chip *nand, int raw) argument 808 meson_nfc_read_page_sub(struct nand_chip *nand, int page, int raw) argument 849 meson_nfc_read_page_raw(struct nand_chip *nand, u8 *buf, int oob_required, int page) argument 864 meson_nfc_read_page_hwecc(struct nand_chip *nand, u8 *buf, int oob_required, int page) argument 918 meson_nfc_read_oob_raw(struct nand_chip *nand, int page) argument 923 meson_nfc_read_oob(struct nand_chip *nand, int page) argument 1015 meson_nfc_exec_op(struct nand_chip *nand, const struct nand_operation *op, bool check_only) argument 1087 struct nand_chip *nand = mtd_to_nand(mtd); local 1101 struct nand_chip *nand = mtd_to_nand(mtd); local 1202 meson_nfc_free_buffer(struct nand_chip *nand) argument 1210 meson_chip_buffer_init(struct nand_chip *nand) argument 1235 meson_nfc_setup_interface(struct nand_chip *nand, int csline, const struct nand_interface_config *conf) argument 1277 meson_nand_bch_mode(struct nand_chip *nand) argument 1296 meson_nand_detach_chip(struct nand_chip *nand) argument 1301 meson_nand_attach_chip(struct nand_chip *nand) argument 1377 struct nand_chip *nand; local [all...] |
H A D | sunxi_nand.c | 184 * @nand: base NAND chip structure 194 struct nand_chip nand; member in struct:sunxi_nand_chip 203 static inline struct sunxi_nand_chip *to_sunxi_nand(struct nand_chip *nand) argument 205 return container_of(nand, struct sunxi_nand_chip, nand); 415 static void sunxi_nfc_select_chip(struct nand_chip *nand, unsigned int cs) argument 417 struct mtd_info *mtd = nand_to_mtd(nand); 418 struct sunxi_nand_chip *sunxi_nand = to_sunxi_nand(nand); 419 struct sunxi_nfc *nfc = to_sunxi_nfc(sunxi_nand->nand.controller); 430 ctl |= NFC_CE_SEL(sel->cs) | NFC_EN | NFC_PAGE_SHIFT(nand 446 sunxi_nfc_read_buf(struct nand_chip *nand, uint8_t *buf, int len) argument 483 sunxi_nfc_write_buf(struct nand_chip *nand, const uint8_t *buf, int len) argument 602 sunxi_nfc_randomizer_state(struct nand_chip *nand, int page, bool ecc) argument 622 sunxi_nfc_randomizer_config(struct nand_chip *nand, int page, bool ecc) argument 638 sunxi_nfc_randomizer_enable(struct nand_chip *nand) argument 649 sunxi_nfc_randomizer_disable(struct nand_chip *nand) argument 660 sunxi_nfc_randomize_bbm(struct nand_chip *nand, int page, u8 *bbm) argument 668 sunxi_nfc_randomizer_write_buf(struct nand_chip *nand, const uint8_t *buf, int len, bool ecc, int page) argument 678 sunxi_nfc_randomizer_read_buf(struct nand_chip *nand, uint8_t *buf, int len, bool ecc, int page) argument 687 sunxi_nfc_hw_ecc_enable(struct nand_chip *nand) argument 695 sunxi_nfc_hw_ecc_disable(struct nand_chip *nand) argument 715 sunxi_nfc_hw_ecc_get_prot_oob_bytes(struct nand_chip *nand, u8 *oob, int step, bool bbm, int page) argument 728 sunxi_nfc_hw_ecc_set_prot_oob_bytes(struct nand_chip *nand, const u8 *oob, int step, bool bbm, int page) argument 746 sunxi_nfc_hw_ecc_update_stats(struct nand_chip *nand, unsigned int *max_bitflips, int ret) argument 759 sunxi_nfc_hw_ecc_correct(struct nand_chip *nand, u8 *data, u8 *oob, int step, u32 status, bool *erased) argument 795 sunxi_nfc_hw_ecc_read_chunk(struct nand_chip *nand, u8 *data, int data_off, u8 *oob, int oob_off, int *cur_off, unsigned int *max_bitflips, bool bbm, bool oob_required, int page) argument 876 sunxi_nfc_hw_ecc_read_extra_oob(struct nand_chip *nand, u8 *oob, int *cur_off, bool randomize, int page) argument 902 sunxi_nfc_hw_ecc_read_chunks_dma(struct nand_chip *nand, uint8_t *buf, int oob_required, int page, int nchunks) argument 1030 sunxi_nfc_hw_ecc_write_chunk(struct nand_chip *nand, const u8 *data, int data_off, const u8 *oob, int oob_off, int *cur_off, bool bbm, int page) argument 1069 sunxi_nfc_hw_ecc_write_extra_oob(struct nand_chip *nand, u8 *oob, int *cur_off, int page) argument 1091 sunxi_nfc_hw_ecc_read_page(struct nand_chip *nand, uint8_t *buf, int oob_required, int page) argument 1131 sunxi_nfc_hw_ecc_read_page_dma(struct nand_chip *nand, u8 *buf, int oob_required, int page) argument 1149 sunxi_nfc_hw_ecc_read_subpage(struct nand_chip *nand, u32 data_offs, u32 readlen, u8 *bufpoi, int page) argument 1185 sunxi_nfc_hw_ecc_read_subpage_dma(struct nand_chip *nand, u32 data_offs, u32 readlen, u8 *buf, int page) argument 1205 sunxi_nfc_hw_ecc_write_page(struct nand_chip *nand, const uint8_t *buf, int oob_required, int page) argument 1241 sunxi_nfc_hw_ecc_write_subpage(struct nand_chip *nand, u32 data_offs, u32 data_len, const u8 *buf, int oob_required, int page) argument 1275 sunxi_nfc_hw_ecc_write_page_dma(struct nand_chip *nand, const u8 *buf, int oob_required, int page) argument 1346 sunxi_nfc_hw_ecc_read_oob(struct nand_chip *nand, int page) argument 1353 sunxi_nfc_hw_ecc_write_oob(struct nand_chip *nand, int page) argument 1389 sunxi_nfc_setup_interface(struct nand_chip *nand, int csline, const struct nand_interface_config *conf) argument 1562 struct nand_chip *nand = mtd_to_nand(mtd); local 1577 struct nand_chip *nand = mtd_to_nand(mtd); local 1617 sunxi_nand_hw_ecc_ctrl_init(struct nand_chip *nand, struct nand_ecc_ctrl *ecc, struct device_node *np) argument 1724 sunxi_nand_attach_chip(struct nand_chip *nand) argument 1764 sunxi_nfc_exec_subop(struct nand_chip *nand, const struct nand_subop *subop) argument 1860 sunxi_nfc_soft_waitrdy(struct nand_chip *nand, const struct nand_subop *subop) argument 1897 sunxi_nfc_exec_op(struct nand_chip *nand, const struct nand_operation *op, bool check_only) argument 1943 struct nand_chip *nand; local [all...] |
H A D | fsmc_nand.c | 11 * Based on drivers/mtd/nand/nomadik_nand.c (removed in v3.8) 29 #include <linux/mtd/nand-ecc-sw-hamming.h> 124 * @nand: Chip related info for a NAND flash. 146 struct nand_chip nand; member in struct:fsmc_nand_data 253 return container_of(chip, struct fsmc_nand_data, nand); 275 if (host->nand.options & NAND_BUSWIDTH_16) 347 static int fsmc_setup_interface(struct nand_chip *nand, int csline, argument 350 struct fsmc_nand_data *host = nand_to_fsmc(nand); 694 * @chip: nand chip info structure 866 struct nand_chip *nand) 864 fsmc_nand_probe_config_dt(struct platform_device *pdev, struct fsmc_nand_data *host, struct nand_chip *nand) argument 909 fsmc_nand_attach_chip(struct nand_chip *nand) argument 1025 struct nand_chip *nand; local [all...] |
H A D | mtk_nand.c | 19 #include <linux/mtd/nand-ecc-mtk.h> 89 #define MTK_NAME "mtk-nand" 126 struct nand_chip nand; member in struct:mtk_nfc_nand_chip 178 static inline struct mtk_nfc_nand_chip *to_mtk_nand(struct nand_chip *nand) argument 180 return container_of(nand, struct mtk_nfc_nand_chip, nand); 499 static void mtk_nfc_select_target(struct nand_chip *nand, unsigned int cs) argument 501 struct mtk_nfc *nfc = nand_get_controller_data(nand); 502 struct mtk_nfc_nand_chip *mtk_nand = to_mtk_nand(nand); 504 mtk_nfc_hw_runtime_config(nand_to_mtd(nand)); 661 struct mtk_nfc_nand_chip *nand = to_mtk_nand(chip); local 1164 struct nand_chip *nand = mtd_to_nand(mtd); local 1183 struct nand_chip *nand = mtd_to_nand(mtd); local 1196 struct nand_chip *nand = mtd_to_nand(mtd); local 1228 struct nand_chip *nand = mtd_to_nand(mtd); local 1343 struct nand_chip *nand; local 1605 struct nand_chip *nand; local [all...] |
H A D | nand_macronix.c | 354 static int macronix_30lfxg18ac_otp_enable(struct nand_chip *nand) argument 359 return nand_set_features(nand, ONFI_FEATURE_ADDR_30LFXG18AC_OTP, 363 static int macronix_30lfxg18ac_otp_disable(struct nand_chip *nand) argument 367 return nand_set_features(nand, ONFI_FEATURE_ADDR_30LFXG18AC_OTP, 376 struct nand_chip *nand; local 382 nand = mtd_to_nand(mtd); 383 nand_select_target(nand, 0); 385 ret = macronix_30lfxg18ac_otp_enable(nand); 404 ret = nand_prog_page_op(nand, phys_page, offs_in_page, 407 ret = nand_read_page_op(nand, phys_pag [all...] |
/linux-master/include/linux/platform_data/ |
H A D | mtd-nand-s3c2410.h | 15 * struct s3c2410_nand_set - define a set of one or more nand chips 27 * define a set of one or more nand chips registered with an unique mtd. Also 63 * @nand: The NAND platform data to register with s3c_device_nand. 65 * This function copies the given NAND platform data, @nand and registers 66 * it with the s3c_device_nand. This allows @nand to be __initdata. 68 extern void s3c_nand_set_platdata(struct s3c2410_platform_nand *nand);
|
/linux-master/drivers/mtd/nand/raw/ingenic/ |
H A D | ingenic_nand_drv.c | 27 #define DRV_NAME "ingenic-nand" 143 struct ingenic_nand *nand = to_ingenic_nand(nand_to_mtd(chip)); local 145 nand->reading = (mode == NAND_ECC_READ); 151 struct ingenic_nand *nand = to_ingenic_nand(nand_to_mtd(chip)); local 152 struct ingenic_nfc *nfc = to_ingenic_nfc(nand->chip.controller); 159 if (nand->reading) 162 params.size = nand->chip.ecc.size; 163 params.bytes = nand->chip.ecc.bytes; 164 params.strength = nand->chip.ecc.strength; 172 struct ingenic_nand *nand local 261 struct ingenic_nand *nand = to_ingenic_nand(nand_to_mtd(chip)); local 315 struct ingenic_nand *nand = to_ingenic_nand(nand_to_mtd(chip)); local 350 struct ingenic_nand *nand; local [all...] |
/linux-master/drivers/watchdog/ |
H A D | rc32434_wdt.c | 67 /* apply or and nand masks to data read from addr and write back */ 68 #define SET_BITS(addr, or, nand) \ 69 writel((readl(&addr) | or) & ~nand, &addr) 89 u32 or, nand; local 98 nand = 1 << RC32434_ERR_WNE; 102 nand |= 1 << RC32434_ERR_WTO; 104 SET_BITS(wdt_reg->errcs, or, nand); 110 nand = 1 << RC32434_WTC_TO; 113 SET_BITS(wdt_reg->wtc, or, nand);
|
/linux-master/arch/arm/boot/dts/mediatek/ |
H A D | Makefile | 10 mt7623a-rfb-nand.dtb \
|
/linux-master/scripts/dtc/include-prefixes/arm/mediatek/ |
H A D | Makefile | 10 mt7623a-rfb-nand.dtb \
|