/Linux-v4.19/drivers/mtd/nand/raw/ |
D | socrates_nand.c | 30 struct nand_chip nand_chip; member 45 struct nand_chip *this = mtd_to_nand(mtd); in socrates_nand_write_buf() 64 struct nand_chip *this = mtd_to_nand(mtd); in socrates_nand_read_buf() 105 struct nand_chip *nand_chip = mtd_to_nand(mtd); in socrates_nand_cmd_ctrl() local 106 struct socrates_nand_host *host = nand_get_controller_data(nand_chip); in socrates_nand_cmd_ctrl() 130 struct nand_chip *nand_chip = mtd_to_nand(mtd); in socrates_nand_device_ready() local 131 struct socrates_nand_host *host = nand_get_controller_data(nand_chip); in socrates_nand_device_ready() 145 struct nand_chip *nand_chip; in socrates_nand_probe() local 159 nand_chip = &host->nand_chip; in socrates_nand_probe() 160 mtd = nand_to_mtd(nand_chip); in socrates_nand_probe() [all …]
|
D | lpc32xx_mlc.c | 144 struct nand_chip *nand_chip = mtd_to_nand(mtd); in lpc32xx_ooblayout_ecc() local 146 if (section >= nand_chip->ecc.steps) in lpc32xx_ooblayout_ecc() 149 oobregion->offset = ((section + 1) * 16) - nand_chip->ecc.bytes; in lpc32xx_ooblayout_ecc() 150 oobregion->length = nand_chip->ecc.bytes; in lpc32xx_ooblayout_ecc() 158 struct nand_chip *nand_chip = mtd_to_nand(mtd); in lpc32xx_ooblayout_free() local 160 if (section >= nand_chip->ecc.steps) in lpc32xx_ooblayout_free() 164 oobregion->length = 16 - nand_chip->ecc.bytes; in lpc32xx_ooblayout_free() 188 struct nand_chip nand_chip; member 292 struct nand_chip *nand_chip = mtd_to_nand(mtd); in lpc32xx_nand_cmd_ctrl() local 293 struct lpc32xx_nand_host *host = nand_get_controller_data(nand_chip); in lpc32xx_nand_cmd_ctrl() [all …]
|
D | tmio_nand.c | 106 struct nand_chip chip; 133 struct nand_chip *chip = mtd_to_nand(mtd); in tmio_nand_hwcontrol() 172 struct nand_chip *nand_chip = &tmio->chip; in tmio_irq() local 177 if (unlikely(!waitqueue_active(&nand_chip->controller->wq))) in tmio_irq() 180 wake_up(&nand_chip->controller->wq); in tmio_irq() 191 tmio_nand_wait(struct mtd_info *mtd, struct nand_chip *nand_chip) in tmio_nand_wait() argument 201 timeout = wait_event_timeout(nand_chip->controller->wq, in tmio_nand_wait() 203 msecs_to_jiffies(nand_chip->state == FL_ERASING ? 400 : 20)); in tmio_nand_wait() 208 nand_chip->state == FL_ERASING ? "erase" : "program", in tmio_nand_wait() 209 nand_chip->state == FL_ERASING ? 400 : 20); in tmio_nand_wait() [all …]
|
D | mxc_nand.c | 128 int (*read_page)(struct nand_chip *chip, void *buf, void *oob, bool ecc, 142 void (*enable_hwecc)(struct nand_chip *chip, bool enable); 163 struct nand_chip nand; 252 struct nand_chip *this = mtd_to_nand(mtd); in copy_spare() 295 struct nand_chip *nand_chip = mtd_to_nand(mtd); in mxc_do_addr_cycle() local 296 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in mxc_do_addr_cycle() 328 if (nand_chip->options & NAND_ROW_ADDR_3) { in mxc_do_addr_cycle() 557 struct nand_chip *nand_chip = mtd_to_nand(mtd); in send_page_v3() local 558 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in send_page_v3() 573 struct nand_chip *nand_chip = mtd_to_nand(mtd); in send_page_v2() local [all …]
|
D | cs553x_nand.c | 98 struct nand_chip *this = mtd_to_nand(mtd); in cs553x_read_buf() 110 struct nand_chip *this = mtd_to_nand(mtd); in cs553x_write_buf() 122 struct nand_chip *this = mtd_to_nand(mtd); in cs553x_read_byte() 128 struct nand_chip *this = mtd_to_nand(mtd); in cs553x_write_byte() 141 struct nand_chip *this = mtd_to_nand(mtd); in cs553x_hwcontrol() 153 struct nand_chip *this = mtd_to_nand(mtd); in cs553x_device_ready() 162 struct nand_chip *this = mtd_to_nand(mtd); in cs_enable_hwecc() 171 struct nand_chip *this = mtd_to_nand(mtd); in cs_calculate_ecc() 187 struct nand_chip *this; in cs553x_init_one() 199 this = kzalloc(sizeof(struct nand_chip), GFP_KERNEL); in cs553x_init_one() [all …]
|
D | au1550nd.c | 23 struct nand_chip chip; 38 struct nand_chip *this = mtd_to_nand(mtd); in au_read_byte() 53 struct nand_chip *this = mtd_to_nand(mtd); in au_write_byte() 66 struct nand_chip *this = mtd_to_nand(mtd); in au_read_byte16() 81 struct nand_chip *this = mtd_to_nand(mtd); in au_write_byte16() 94 struct nand_chip *this = mtd_to_nand(mtd); in au_read_word() 111 struct nand_chip *this = mtd_to_nand(mtd); in au_write_buf() 130 struct nand_chip *this = mtd_to_nand(mtd); in au_read_buf() 149 struct nand_chip *this = mtd_to_nand(mtd); in au_write_buf16() 171 struct nand_chip *this = mtd_to_nand(mtd); in au_read_buf16() [all …]
|
D | tango_nand.c | 98 struct nand_chip nand_chip; member 108 #define to_tango_chip(ptr) container_of(ptr, struct tango_chip, nand_chip) 132 struct nand_chip *chip = mtd_to_nand(mtd); in tango_dev_ready() 161 struct nand_chip *chip = mtd_to_nand(mtd); in tango_select_chip() 180 static int check_erased_page(struct nand_chip *chip, u8 *buf) in check_erased_page() 207 static int decode_error_report(struct nand_chip *chip) in decode_error_report() 280 static int tango_read_page(struct mtd_info *mtd, struct nand_chip *chip, in tango_read_page() 302 static int tango_write_page(struct mtd_info *mtd, struct nand_chip *chip, in tango_write_page() 324 static void aux_read(struct nand_chip *chip, u8 **buf, int len, int *pos) in aux_read() 339 static void aux_write(struct nand_chip *chip, const u8 **buf, int len, int *pos) in aux_write() [all …]
|
D | nand_base.c | 60 struct nand_chip *chip = mtd_to_nand(mtd); in nand_ooblayout_ecc_sp() 115 struct nand_chip *chip = mtd_to_nand(mtd); in nand_ooblayout_ecc_lp() 130 struct nand_chip *chip = mtd_to_nand(mtd); in nand_ooblayout_free_lp() 155 struct nand_chip *chip = mtd_to_nand(mtd); in nand_ooblayout_ecc_lp_hamming() 182 struct nand_chip *chip = mtd_to_nand(mtd); in nand_ooblayout_free_lp_hamming() 219 struct nand_chip *chip = mtd_to_nand(mtd); in check_offs_len() 245 struct nand_chip *chip = mtd_to_nand(mtd); in nand_release_device() 263 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_byte() 276 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_byte16() 288 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_word() [all …]
|
D | nand_micron.c | 79 struct nand_chip *chip = mtd_to_nand(mtd); in micron_nand_setup_read_retry() 88 static int micron_nand_onfi_init(struct nand_chip *chip) in micron_nand_onfi_init() 144 struct nand_chip *chip = mtd_to_nand(mtd); in micron_nand_on_die_8_ooblayout_ecc() 159 struct nand_chip *chip = mtd_to_nand(mtd); in micron_nand_on_die_8_ooblayout_free() 175 static int micron_nand_on_die_ecc_setup(struct nand_chip *chip, bool enable) in micron_nand_on_die_ecc_setup() 197 static int micron_nand_on_die_ecc_status_4(struct nand_chip *chip, u8 status, in micron_nand_on_die_ecc_status_4() 264 static int micron_nand_on_die_ecc_status_8(struct nand_chip *chip, u8 status) in micron_nand_on_die_ecc_status_8() 293 micron_nand_read_page_on_die_ecc(struct mtd_info *mtd, struct nand_chip *chip, in micron_nand_read_page_on_die_ecc() 335 micron_nand_write_page_on_die_ecc(struct mtd_info *mtd, struct nand_chip *chip, in micron_nand_write_page_on_die_ecc() 381 static int micron_supports_on_die_ecc(struct nand_chip *chip) in micron_supports_on_die_ecc() [all …]
|
D | oxnas_nand.c | 38 struct nand_chip *chips[OXNAS_NAND_MAX_CHIPS]; 43 struct nand_chip *chip = mtd_to_nand(mtd); in oxnas_nand_read_byte() 51 struct nand_chip *chip = mtd_to_nand(mtd); in oxnas_nand_read_buf() 59 struct nand_chip *chip = mtd_to_nand(mtd); in oxnas_nand_write_buf() 69 struct nand_chip *chip = mtd_to_nand(mtd); in oxnas_nand_cmd_ctrl() 86 struct nand_chip *chip; in oxnas_nand_probe() 122 chip = devm_kzalloc(&pdev->dev, sizeof(struct nand_chip), in oxnas_nand_probe()
|
D | nand_hynix.c | 68 static bool hynix_nand_has_valid_jedecid(struct nand_chip *chip) in hynix_nand_has_valid_jedecid() 80 static int hynix_nand_cmd_op(struct nand_chip *chip, u8 cmd) in hynix_nand_cmd_op() 98 static int hynix_nand_reg_write_op(struct nand_chip *chip, u8 addr, u8 val) in hynix_nand_reg_write_op() 121 struct nand_chip *chip = mtd_to_nand(mtd); in hynix_nand_setup_read_retry() 203 static int hynix_read_rr_otp(struct nand_chip *chip, in hynix_read_rr_otp() 299 static int hynix_mlc_1xnm_rr_init(struct nand_chip *chip, in hynix_mlc_1xnm_rr_init() 384 static int hynix_nand_rr_init(struct nand_chip *chip) in hynix_nand_rr_init() 420 static void hynix_nand_extract_oobsize(struct nand_chip *chip, in hynix_nand_extract_oobsize() 502 static void hynix_nand_extract_ecc_requirements(struct nand_chip *chip, in hynix_nand_extract_ecc_requirements() 587 static void hynix_nand_extract_scrambling_requirements(struct nand_chip *chip, in hynix_nand_extract_scrambling_requirements() [all …]
|
D | cmx270_nand.c | 54 struct nand_chip *this = mtd_to_nand(mtd); in cmx270_read_byte() 62 struct nand_chip *this = mtd_to_nand(mtd); in cmx270_write_buf() 71 struct nand_chip *this = mtd_to_nand(mtd); in cmx270_read_buf() 95 struct nand_chip *this = mtd_to_nand(mtd); in cmx270_hwcontrol() 138 struct nand_chip *this; in cmx270_init() 161 this = kzalloc(sizeof(struct nand_chip), GFP_KERNEL); in cmx270_init()
|
D | docg4.c | 267 struct nand_chip *nand = mtd_to_nand(mtd); in docg4_read_buf() 278 struct nand_chip *nand = mtd_to_nand(mtd); in docg4_write_buf16() 319 static int docg4_wait(struct mtd_info *mtd, struct nand_chip *nand) in docg4_wait() 343 struct nand_chip *nand = mtd_to_nand(mtd); in docg4_select_chip() 362 struct nand_chip *nand = mtd_to_nand(mtd); in reset() 400 struct nand_chip *nand = mtd_to_nand(mtd); in correct_data() 489 struct nand_chip *nand = mtd_to_nand(mtd); in docg4_read_byte() 570 struct nand_chip *nand = mtd_to_nand(mtd); in pageprog() 607 struct nand_chip *nand = mtd_to_nand(mtd); in sequence_reset() 624 struct nand_chip *nand = mtd_to_nand(mtd); in read_page_prologue() [all …]
|
D | ndfc.c | 40 struct nand_chip chip; 50 struct nand_chip *nchip = mtd_to_nand(mtd); in ndfc_select_chip() 64 struct nand_chip *chip = mtd_to_nand(mtd); in ndfc_hwcontrol() 78 struct nand_chip *chip = mtd_to_nand(mtd); in ndfc_ready() 87 struct nand_chip *chip = mtd_to_nand(mtd); in ndfc_enable_hwecc() 99 struct nand_chip *chip = mtd_to_nand(mtd); in ndfc_calculate_ecc() 123 struct nand_chip *chip = mtd_to_nand(mtd); in ndfc_read_buf() 133 struct nand_chip *chip = mtd_to_nand(mtd); in ndfc_write_buf() 148 struct nand_chip *chip = &ndfc->chip; in ndfc_chip_init()
|
D | pasemi_nand.c | 48 struct nand_chip *chip = mtd_to_nand(mtd); in pasemi_read_buf() 60 struct nand_chip *chip = mtd_to_nand(mtd); in pasemi_write_buf() 73 struct nand_chip *chip = mtd_to_nand(mtd); in pasemi_hwcontrol() 99 struct nand_chip *chip; in pasemi_nand_probe() 114 chip = kzalloc(sizeof(struct nand_chip), GFP_KERNEL); in pasemi_nand_probe() 186 struct nand_chip *chip; in pasemi_nand_remove()
|
D | mtk_nand.c | 131 struct nand_chip nand; 181 static inline struct mtk_nfc_nand_chip *to_mtk_nand(struct nand_chip *nand) in to_mtk_nand() 186 static inline u8 *data_ptr(struct nand_chip *chip, const u8 *p, int i) in data_ptr() 191 static inline u8 *oob_ptr(struct nand_chip *chip, int i) in oob_ptr() 210 static inline int mtk_data_len(struct nand_chip *chip) in mtk_data_len() 217 static inline u8 *mtk_data_ptr(struct nand_chip *chip, int i) in mtk_data_ptr() 224 static inline u8 *mtk_oob_ptr(struct nand_chip *chip, int i) in mtk_oob_ptr() 323 struct nand_chip *chip = mtd_to_nand(mtd); in mtk_nfc_hw_runtime_config() 394 struct nand_chip *nand = mtd_to_nand(mtd); in mtk_nfc_select_chip() 443 struct nand_chip *chip = mtd_to_nand(mtd); in mtk_nfc_read_byte() [all …]
|
D | omap2.c | 148 struct nand_chip nand; 276 struct nand_chip *nand = mtd_to_nand(mtd); in omap_read_buf8() 310 struct nand_chip *nand = mtd_to_nand(mtd); in omap_read_buf16() 941 struct nand_chip *chip = mtd_to_nand(mtd); in omap_enable_hwecc() 985 static int omap_wait(struct mtd_info *mtd, struct nand_chip *chip) in omap_wait() 987 struct nand_chip *this = mtd_to_nand(mtd); in omap_wait() 1039 struct nand_chip *chip = mtd_to_nand(mtd); in omap_enable_hwecc_bch() 1523 static int omap_write_page_bch(struct mtd_info *mtd, struct nand_chip *chip, in omap_write_page_bch() 1564 struct nand_chip *chip, u32 offset, in omap_write_subpage_bch() 1633 static int omap_read_page_bch(struct mtd_info *mtd, struct nand_chip *chip, in omap_read_page_bch() [all …]
|
D | marvell_nand.c | 258 struct nand_chip chip; 270 static inline struct marvell_nand_chip *to_marvell_nand(struct nand_chip *chip) in to_marvell_nand() 329 struct nand_chip *selected_chip; 452 static void marvell_nfc_force_byte_access(struct nand_chip *chip, in marvell_nfc_force_byte_access() 477 static int marvell_nfc_wait_ndrun(struct nand_chip *chip) in marvell_nfc_wait_ndrun() 515 static int marvell_nfc_prepare_cmd(struct nand_chip *chip) in marvell_nfc_prepare_cmd() 547 static void marvell_nfc_send_cmd(struct nand_chip *chip, in marvell_nfc_send_cmd() 574 static int marvell_nfc_end_cmd(struct nand_chip *chip, int flag, in marvell_nfc_end_cmd() 605 static int marvell_nfc_wait_cmdd(struct nand_chip *chip) in marvell_nfc_wait_cmdd() 613 static int marvell_nfc_wait_op(struct nand_chip *chip, unsigned int timeout_ms) in marvell_nfc_wait_op() [all …]
|
D | diskonchip.c | 295 struct nand_chip *this = mtd_to_nand(mtd); in doc2000_write_byte() 307 struct nand_chip *this = mtd_to_nand(mtd); in doc2000_read_byte() 322 struct nand_chip *this = mtd_to_nand(mtd); in doc2000_writebuf() 339 struct nand_chip *this = mtd_to_nand(mtd); in doc2000_readbuf() 354 struct nand_chip *this = mtd_to_nand(mtd); in doc2000_readbuf_dword() 375 struct nand_chip *this = mtd_to_nand(mtd); in doc200x_ident_chip() 421 struct nand_chip *this = mtd_to_nand(mtd); in doc2000_count_chips() 441 static int doc200x_wait(struct mtd_info *mtd, struct nand_chip *this) in doc200x_wait() 457 struct nand_chip *this = mtd_to_nand(mtd); in doc2001_write_byte() 468 struct nand_chip *this = mtd_to_nand(mtd); in doc2001_read_byte() [all …]
|
D | lpc32xx_slc.c | 227 struct nand_chip nand_chip; member 285 struct nand_chip *chip = mtd_to_nand(mtd); in lpc32xx_nand_cmd_ctrl() 309 struct nand_chip *chip = mtd_to_nand(mtd); in lpc32xx_nand_device_ready() 364 struct nand_chip *chip = mtd_to_nand(mtd); in lpc32xx_nand_read_byte() 375 struct nand_chip *chip = mtd_to_nand(mtd); in lpc32xx_nand_read_buf() 388 struct nand_chip *chip = mtd_to_nand(mtd); in lpc32xx_nand_write_buf() 400 struct nand_chip *chip, int page) in lpc32xx_nand_read_oob_syndrome() 409 struct nand_chip *chip, int page) in lpc32xx_nand_write_oob_syndrome() 441 struct nand_chip *chip = mtd_to_nand(mtd); in lpc32xx_xmit_dma() 501 struct nand_chip *chip = mtd_to_nand(mtd); in lpc32xx_xfer() [all …]
|
D | hisi504_nand.c | 135 struct nand_chip chip; 190 struct nand_chip *chip = &host->chip; in hisi_nfc_dma_transfer() 358 struct nand_chip *chip = mtd_to_nand(mtd); in hisi_nfc_select_chip() 369 struct nand_chip *chip = mtd_to_nand(mtd); in hisi_nfc_read_byte() 385 struct nand_chip *chip = mtd_to_nand(mtd); in hisi_nfc_read_word() 395 struct nand_chip *chip = mtd_to_nand(mtd); in hisi_nfc_write_buf() 404 struct nand_chip *chip = mtd_to_nand(mtd); in hisi_nfc_read_buf() 413 struct nand_chip *chip = mtd_to_nand(mtd); in set_addr() 448 struct nand_chip *chip = mtd_to_nand(mtd); in hisi_nfc_cmdfunc() 541 struct nand_chip *chip, uint8_t *buf, int oob_required, int page) in hisi_nand_read_page_hwecc() [all …]
|
D | mpc5121_nfc.c | 120 struct nand_chip chip; 136 struct nand_chip *chip = mtd_to_nand(mtd); in nfc_read() 145 struct nand_chip *chip = mtd_to_nand(mtd); in nfc_write() 215 struct nand_chip *chip = mtd_to_nand(mtd); in mpc5121_nfc_irq() 227 struct nand_chip *chip = mtd_to_nand(mtd); in mpc5121_nfc_done() 247 struct nand_chip *chip = mtd_to_nand(mtd); in mpc5121_nfc_addr_cycle() 282 struct nand_chip *chip = mtd_to_nand(mtd); in ads5121_chipselect_init() 304 struct nand_chip *nand = mtd_to_nand(mtd); in ads5121_select_chip() 334 struct nand_chip *chip = mtd_to_nand(mtd); in mpc5121_nfc_command() 407 struct nand_chip *nand = mtd_to_nand(mtd); in mpc5121_nfc_copy_spare() [all …]
|
D | sunxi_nand.c | 201 struct nand_chip nand; 214 static inline struct sunxi_nand_chip *to_sunxi_nand(struct nand_chip *nand) in to_sunxi_nand() 347 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_dma_op_prepare() 395 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_dma_op_cleanup() 405 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_dev_ready() 425 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_select_chip() 469 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_read_buf() 508 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_write_buf() 555 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_cmd_ctrl() 712 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_randomizer_config() [all …]
|
/Linux-v4.19/drivers/mtd/nand/raw/bcm47xxnflash/ |
D | ops_bcm4706.c | 92 struct nand_chip *nand_chip = mtd_to_nand(mtd); in bcm47xxnflash_ops_bcm4706_read() local 93 struct bcm47xxnflash *b47n = nand_get_controller_data(nand_chip); in bcm47xxnflash_ops_bcm4706_read() 100 BUG_ON(b47n->curr_page_addr & ~nand_chip->pagemask); in bcm47xxnflash_ops_bcm4706_read() 142 struct nand_chip *nand_chip = mtd_to_nand(mtd); in bcm47xxnflash_ops_bcm4706_write() local 143 struct bcm47xxnflash *b47n = nand_get_controller_data(nand_chip); in bcm47xxnflash_ops_bcm4706_write() 150 BUG_ON(b47n->curr_page_addr & ~nand_chip->pagemask); in bcm47xxnflash_ops_bcm4706_write() 176 struct nand_chip *nand_chip = mtd_to_nand(mtd); in bcm47xxnflash_ops_bcm4706_cmd_ctrl() local 177 struct bcm47xxnflash *b47n = nand_get_controller_data(nand_chip); in bcm47xxnflash_ops_bcm4706_cmd_ctrl() 202 struct nand_chip *nand_chip = mtd_to_nand(mtd); in bcm47xxnflash_ops_bcm4706_dev_ready() local 203 struct bcm47xxnflash *b47n = nand_get_controller_data(nand_chip); in bcm47xxnflash_ops_bcm4706_dev_ready() [all …]
|
/Linux-v4.19/include/linux/mtd/ |
D | rawnand.h | 226 struct nand_chip; 516 int (*attach_chip)(struct nand_chip *chip); 517 void (*detach_chip)(struct nand_chip *chip); 532 struct nand_chip *active; 654 int (*read_page_raw)(struct mtd_info *mtd, struct nand_chip *chip, 656 int (*write_page_raw)(struct mtd_info *mtd, struct nand_chip *chip, 658 int (*read_page)(struct mtd_info *mtd, struct nand_chip *chip, 660 int (*read_subpage)(struct mtd_info *mtd, struct nand_chip *chip, 662 int (*write_subpage)(struct mtd_info *mtd, struct nand_chip *chip, 665 int (*write_page)(struct mtd_info *mtd, struct nand_chip *chip, [all …]
|