Home
last modified time | relevance | path

Searched refs:nand_chip (Results 1 – 25 of 95) sorted by relevance

1234

/Linux-v5.10/drivers/mtd/nand/raw/bcm47xxnflash/
Dops_bcm4706.c88 struct nand_chip *nand_chip = mtd_to_nand(mtd); in bcm47xxnflash_ops_bcm4706_read() local
89 struct bcm47xxnflash *b47n = nand_get_controller_data(nand_chip); in bcm47xxnflash_ops_bcm4706_read()
96 BUG_ON(b47n->curr_page_addr & ~nand_chip->pagemask); in bcm47xxnflash_ops_bcm4706_read()
138 struct nand_chip *nand_chip = mtd_to_nand(mtd); in bcm47xxnflash_ops_bcm4706_write() local
139 struct bcm47xxnflash *b47n = nand_get_controller_data(nand_chip); in bcm47xxnflash_ops_bcm4706_write()
146 BUG_ON(b47n->curr_page_addr & ~nand_chip->pagemask); in bcm47xxnflash_ops_bcm4706_write()
169 static void bcm47xxnflash_ops_bcm4706_cmd_ctrl(struct nand_chip *nand_chip, in bcm47xxnflash_ops_bcm4706_cmd_ctrl() argument
172 struct bcm47xxnflash *b47n = nand_get_controller_data(nand_chip); in bcm47xxnflash_ops_bcm4706_cmd_ctrl()
189 static void bcm47xxnflash_ops_bcm4706_select_chip(struct nand_chip *chip, in bcm47xxnflash_ops_bcm4706_select_chip()
195 static int bcm47xxnflash_ops_bcm4706_dev_ready(struct nand_chip *nand_chip) in bcm47xxnflash_ops_bcm4706_dev_ready() argument
[all …]
/Linux-v5.10/drivers/mtd/nand/raw/
Dinternals.h48 void (*detect)(struct nand_chip *chip);
49 int (*init)(struct nand_chip *chip);
50 void (*cleanup)(struct nand_chip *chip);
51 void (*fixup_onfi_param_page)(struct nand_chip *chip,
83 int nand_bbm_get_next_page(struct nand_chip *chip, int page);
84 int nand_markbad_bbm(struct nand_chip *chip, loff_t ofs);
85 int nand_erase_nand(struct nand_chip *chip, struct erase_info *instr,
87 void onfi_fill_interface_config(struct nand_chip *chip,
93 int nand_choose_best_sdr_timings(struct nand_chip *chip,
97 int nand_get_features(struct nand_chip *chip, int addr, u8 *subfeature_param);
[all …]
Dsocrates_nand.c26 struct nand_chip nand_chip; member
37 static void socrates_nand_write_buf(struct nand_chip *this, const uint8_t *buf, in socrates_nand_write_buf()
56 static void socrates_nand_read_buf(struct nand_chip *this, uint8_t *buf, in socrates_nand_read_buf()
76 static uint8_t socrates_nand_read_byte(struct nand_chip *this) in socrates_nand_read_byte()
86 static void socrates_nand_cmd_ctrl(struct nand_chip *nand_chip, int cmd, in socrates_nand_cmd_ctrl() argument
89 struct socrates_nand_host *host = nand_get_controller_data(nand_chip); in socrates_nand_cmd_ctrl()
111 static int socrates_nand_device_ready(struct nand_chip *nand_chip) in socrates_nand_device_ready() argument
113 struct socrates_nand_host *host = nand_get_controller_data(nand_chip); in socrates_nand_device_ready()
120 static int socrates_attach_chip(struct nand_chip *chip) in socrates_attach_chip()
141 struct nand_chip *nand_chip; in socrates_nand_probe() local
[all …]
Dtmio_nand.c107 struct nand_chip chip;
131 static void tmio_nand_hwcontrol(struct nand_chip *chip, int cmd, in tmio_nand_hwcontrol()
163 static int tmio_nand_dev_ready(struct nand_chip *chip) in tmio_nand_dev_ready()
187 static int tmio_nand_wait(struct nand_chip *nand_chip) in tmio_nand_wait() argument
189 struct tmio_nand *tmio = mtd_to_tmio(nand_to_mtd(nand_chip)); in tmio_nand_wait()
203 if (unlikely(!tmio_nand_dev_ready(nand_chip))) { in tmio_nand_wait()
212 nand_status_op(nand_chip, &status); in tmio_nand_wait()
224 static u_char tmio_nand_read_byte(struct nand_chip *chip) in tmio_nand_read_byte()
244 tmio_nand_write_buf(struct nand_chip *chip, const u_char *buf, int len) in tmio_nand_write_buf()
251 static void tmio_nand_read_buf(struct nand_chip *chip, u_char *buf, int len) in tmio_nand_read_buf()
[all …]
Dlpc32xx_mlc.c134 struct nand_chip *nand_chip = mtd_to_nand(mtd); in lpc32xx_ooblayout_ecc() local
136 if (section >= nand_chip->ecc.steps) in lpc32xx_ooblayout_ecc()
139 oobregion->offset = ((section + 1) * 16) - nand_chip->ecc.bytes; in lpc32xx_ooblayout_ecc()
140 oobregion->length = nand_chip->ecc.bytes; in lpc32xx_ooblayout_ecc()
148 struct nand_chip *nand_chip = mtd_to_nand(mtd); in lpc32xx_ooblayout_free() local
150 if (section >= nand_chip->ecc.steps) in lpc32xx_ooblayout_free()
154 oobregion->length = 16 - nand_chip->ecc.bytes; in lpc32xx_ooblayout_free()
178 struct nand_chip nand_chip; member
279 static void lpc32xx_nand_cmd_ctrl(struct nand_chip *nand_chip, int cmd, in lpc32xx_nand_cmd_ctrl() argument
282 struct lpc32xx_nand_host *host = nand_get_controller_data(nand_chip); in lpc32xx_nand_cmd_ctrl()
[all …]
Dmxc_nand.c128 int (*read_page)(struct nand_chip *chip, void *buf, void *oob, bool ecc,
139 void (*select_chip)(struct nand_chip *chip, int cs);
140 int (*setup_interface)(struct nand_chip *chip, int csline,
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
[all …]
Dnand_legacy.c28 static uint8_t nand_read_byte(struct nand_chip *chip) in nand_read_byte()
40 static uint8_t nand_read_byte16(struct nand_chip *chip) in nand_read_byte16()
52 static void nand_select_chip(struct nand_chip *chip, int chipnr) in nand_select_chip()
74 static void nand_write_byte(struct nand_chip *chip, uint8_t byte) in nand_write_byte()
86 static void nand_write_byte16(struct nand_chip *chip, uint8_t byte) in nand_write_byte16()
117 static void nand_write_buf(struct nand_chip *chip, const uint8_t *buf, int len) in nand_write_buf()
130 static void nand_read_buf(struct nand_chip *chip, uint8_t *buf, int len) in nand_read_buf()
143 static void nand_write_buf16(struct nand_chip *chip, const uint8_t *buf, in nand_write_buf16()
159 static void nand_read_buf16(struct nand_chip *chip, uint8_t *buf, int len) in nand_read_buf16()
174 static void panic_nand_wait_ready(struct nand_chip *chip, unsigned long timeo) in panic_nand_wait_ready()
[all …]
Dnand_toshiba.c29 static int toshiba_nand_benand_read_eccstatus_op(struct nand_chip *chip, in toshiba_nand_benand_read_eccstatus_op()
50 static int toshiba_nand_benand_eccstatus(struct nand_chip *chip) in toshiba_nand_benand_eccstatus()
96 toshiba_nand_read_page_benand(struct nand_chip *chip, uint8_t *buf, in toshiba_nand_read_page_benand()
109 toshiba_nand_read_subpage_benand(struct nand_chip *chip, uint32_t data_offs, in toshiba_nand_read_subpage_benand()
122 static void toshiba_nand_benand_init(struct nand_chip *chip) in toshiba_nand_benand_init()
146 static void toshiba_nand_decode_id(struct nand_chip *chip) in toshiba_nand_decode_id()
202 tc58teg5dclta00_choose_interface_config(struct nand_chip *chip, in tc58teg5dclta00_choose_interface_config()
211 tc58nvg0s3e_choose_interface_config(struct nand_chip *chip, in tc58nvg0s3e_choose_interface_config()
220 th58nvg2s3hbai4_choose_interface_config(struct nand_chip *chip, in th58nvg2s3hbai4_choose_interface_config()
246 static int tc58teg5dclta00_init(struct nand_chip *chip) in tc58teg5dclta00_init()
[all …]
Dnand_macronix.c39 static int macronix_nand_setup_read_retry(struct nand_chip *chip, int mode) in macronix_nand_setup_read_retry()
52 static int macronix_nand_randomizer_check_enable(struct nand_chip *chip) in macronix_nand_randomizer_check_enable()
91 static void macronix_nand_onfi_init(struct nand_chip *chip) in macronix_nand_onfi_init()
148 static void macronix_nand_fix_broken_get_timings(struct nand_chip *chip) in macronix_nand_fix_broken_get_timings()
188 static int mxic_nand_lock(struct nand_chip *chip, loff_t ofs, uint64_t len) in mxic_nand_lock()
204 static int mxic_nand_unlock(struct nand_chip *chip, loff_t ofs, uint64_t len) in mxic_nand_unlock()
220 static void macronix_nand_block_protection_support(struct nand_chip *chip) in macronix_nand_block_protection_support()
249 static int nand_power_down_op(struct nand_chip *chip) in nand_power_down_op()
271 static int mxic_nand_suspend(struct nand_chip *chip) in mxic_nand_suspend()
284 static void mxic_nand_resume(struct nand_chip *chip) in mxic_nand_resume()
[all …]
Dxway_nand.c66 struct nand_chip chip;
73 struct nand_chip *chip = mtd_to_nand(mtd); in xway_readb()
81 struct nand_chip *chip = mtd_to_nand(mtd); in xway_writeb()
87 static void xway_select_chip(struct nand_chip *chip, int select) in xway_select_chip()
107 static void xway_cmd_ctrl(struct nand_chip *chip, int cmd, unsigned int ctrl) in xway_cmd_ctrl()
123 static int xway_dev_ready(struct nand_chip *chip) in xway_dev_ready()
128 static unsigned char xway_read_byte(struct nand_chip *chip) in xway_read_byte()
133 static void xway_read_buf(struct nand_chip *chip, u_char *buf, int len) in xway_read_buf()
141 static void xway_write_buf(struct nand_chip *chip, const u_char *buf, int len) in xway_write_buf()
149 static int xway_attach_chip(struct nand_chip *chip) in xway_attach_chip()
[all …]
Dtango_nand.c95 struct nand_chip nand_chip; member
105 #define to_tango_chip(ptr) container_of(ptr, struct tango_chip, nand_chip)
116 static void tango_select_target(struct nand_chip *chip, unsigned int cs) in tango_select_target()
129 static int tango_waitrdy(struct nand_chip *chip, unsigned int timeout_ms) in tango_waitrdy()
139 static int tango_exec_instr(struct nand_chip *chip, in tango_exec_instr()
172 static int tango_exec_op(struct nand_chip *chip, in tango_exec_op()
196 static int check_erased_page(struct nand_chip *chip, u8 *buf) in check_erased_page()
223 static int decode_error_report(struct nand_chip *chip) in decode_error_report()
296 static int tango_read_page(struct nand_chip *chip, u8 *buf, in tango_read_page()
320 static int tango_write_page(struct nand_chip *chip, const u8 *buf, in tango_write_page()
[all …]
Dsharpsl.c24 struct nand_chip chip;
59 static void sharpsl_nand_hwcontrol(struct nand_chip *chip, int cmd, in sharpsl_nand_hwcontrol()
78 static int sharpsl_nand_dev_ready(struct nand_chip *chip) in sharpsl_nand_dev_ready()
84 static void sharpsl_nand_enable_hwecc(struct nand_chip *chip, int mode) in sharpsl_nand_enable_hwecc()
90 static int sharpsl_nand_calculate_ecc(struct nand_chip *chip, in sharpsl_nand_calculate_ecc()
100 static int sharpsl_attach_chip(struct nand_chip *chip) in sharpsl_attach_chip()
124 struct nand_chip *this; in sharpsl_nand_probe()
157 this = (struct nand_chip *)(&sharpsl->chip); in sharpsl_nand_probe()
218 struct nand_chip *chip = &sharpsl->chip; in sharpsl_nand_remove()
Dau1550nd.c20 struct nand_chip chip;
26 static struct au1550nd_ctx *chip_to_au_ctx(struct nand_chip *this) in chip_to_au_ctx()
39 static void au_write_buf(struct nand_chip *this, const void *buf, in au_write_buf()
60 static void au_read_buf(struct nand_chip *this, void *buf, in au_read_buf()
81 static void au_write_buf16(struct nand_chip *this, const void *buf, in au_write_buf16()
103 static void au_read_buf16(struct nand_chip *this, void *buf, unsigned int len) in au_read_buf16()
137 static int au1550nd_waitrdy(struct nand_chip *this, unsigned int timeout_ms) in au1550nd_waitrdy()
152 static int au1550nd_exec_instr(struct nand_chip *this, in au1550nd_exec_instr()
209 static int au1550nd_exec_op(struct nand_chip *this, in au1550nd_exec_op()
239 static int au1550nd_attach_chip(struct nand_chip *chip) in au1550nd_attach_chip()
[all …]
Doxnas_nand.c34 struct nand_chip *chips[OXNAS_NAND_MAX_CHIPS];
38 static uint8_t oxnas_nand_read_byte(struct nand_chip *chip) in oxnas_nand_read_byte()
45 static void oxnas_nand_read_buf(struct nand_chip *chip, u8 *buf, int len) in oxnas_nand_read_buf()
52 static void oxnas_nand_write_buf(struct nand_chip *chip, const u8 *buf, in oxnas_nand_write_buf()
61 static void oxnas_nand_cmd_ctrl(struct nand_chip *chip, int cmd, in oxnas_nand_cmd_ctrl()
80 struct nand_chip *chip; in oxnas_nand_probe()
116 chip = devm_kzalloc(&pdev->dev, sizeof(struct nand_chip), in oxnas_nand_probe()
179 struct nand_chip *chip; in oxnas_nand_remove()
Dpasemi_nand.c35 static void pasemi_read_buf(struct nand_chip *chip, u_char *buf, int len) in pasemi_read_buf()
45 static void pasemi_write_buf(struct nand_chip *chip, const u_char *buf, in pasemi_write_buf()
56 static void pasemi_hwcontrol(struct nand_chip *chip, int cmd, in pasemi_hwcontrol()
72 static int pasemi_device_ready(struct nand_chip *chip) in pasemi_device_ready()
77 static int pasemi_attach_chip(struct nand_chip *chip) in pasemi_attach_chip()
97 struct nand_chip *chip; in pasemi_nand_probe()
112 chip = kzalloc(sizeof(struct nand_chip), GFP_KERNEL); in pasemi_nand_probe()
188 struct nand_chip *chip; in pasemi_nand_remove()
Dmpc5121_nfc.c108 struct nand_chip chip;
124 struct nand_chip *chip = mtd_to_nand(mtd); in nfc_read()
133 struct nand_chip *chip = mtd_to_nand(mtd); in nfc_write()
203 struct nand_chip *chip = mtd_to_nand(mtd); in mpc5121_nfc_irq()
215 struct nand_chip *chip = mtd_to_nand(mtd); in mpc5121_nfc_done()
235 struct nand_chip *chip = mtd_to_nand(mtd); in mpc5121_nfc_addr_cycle()
254 static void mpc5121_nfc_select_chip(struct nand_chip *nand, int chip) in mpc5121_nfc_select_chip()
272 struct nand_chip *chip = mtd_to_nand(mtd); in ads5121_chipselect_init()
292 static void ads5121_select_chip(struct nand_chip *nand, int chip) in ads5121_select_chip()
311 static int mpc5121_nfc_dev_ready(struct nand_chip *nand) in mpc5121_nfc_dev_ready()
[all …]
Domap2.c145 struct nand_chip nand;
249 static void omap_hwcontrol(struct nand_chip *chip, int cmd, unsigned int ctrl) in omap_hwcontrol()
273 struct nand_chip *nand = mtd_to_nand(mtd); in omap_read_buf8()
307 struct nand_chip *nand = mtd_to_nand(mtd); in omap_read_buf16()
341 static void omap_read_buf_pref(struct nand_chip *chip, u_char *buf, int len) in omap_read_buf_pref()
388 static void omap_write_buf_pref(struct nand_chip *chip, const u_char *buf, in omap_write_buf_pref()
534 static void omap_read_buf_dma_pref(struct nand_chip *chip, u_char *buf, in omap_read_buf_dma_pref()
552 static void omap_write_buf_dma_pref(struct nand_chip *chip, const u_char *buf, in omap_write_buf_dma_pref()
616 static void omap_read_buf_irq_pref(struct nand_chip *chip, u_char *buf, in omap_read_buf_irq_pref()
664 static void omap_write_buf_irq_pref(struct nand_chip *chip, const u_char *buf, in omap_write_buf_irq_pref()
[all …]
Dndfc.c35 struct nand_chip chip;
42 static void ndfc_select_chip(struct nand_chip *nchip, int chip) in ndfc_select_chip()
56 static void ndfc_hwcontrol(struct nand_chip *chip, int cmd, unsigned int ctrl) in ndfc_hwcontrol()
69 static int ndfc_ready(struct nand_chip *chip) in ndfc_ready()
76 static void ndfc_enable_hwecc(struct nand_chip *chip, int mode) in ndfc_enable_hwecc()
87 static int ndfc_calculate_ecc(struct nand_chip *chip, in ndfc_calculate_ecc()
111 static void ndfc_read_buf(struct nand_chip *chip, uint8_t *buf, int len) in ndfc_read_buf()
120 static void ndfc_write_buf(struct nand_chip *chip, const uint8_t *buf, int len) in ndfc_write_buf()
136 struct nand_chip *chip = &ndfc->chip; in ndfc_chip_init()
247 struct nand_chip *chip = &ndfc->chip; in ndfc_remove()
Dnand_base.c99 static int check_offs_len(struct nand_chip *chip, loff_t ofs, uint64_t len) in check_offs_len()
171 void nand_select_target(struct nand_chip *chip, unsigned int cs) in nand_select_target()
194 void nand_deselect_target(struct nand_chip *chip) in nand_deselect_target()
209 static void nand_release_device(struct nand_chip *chip) in nand_release_device()
225 int nand_bbm_get_next_page(struct nand_chip *chip, int page) in nand_bbm_get_next_page()
252 static int nand_block_bad(struct nand_chip *chip, loff_t ofs) in nand_block_bad()
281 static int nand_isbad_bbm(struct nand_chip *chip, loff_t ofs) in nand_isbad_bbm()
300 static int nand_get_device(struct nand_chip *chip) in nand_get_device()
319 static int nand_check_wp(struct nand_chip *chip) in nand_check_wp()
343 static uint8_t *nand_fill_oob(struct nand_chip *chip, uint8_t *oob, size_t len, in nand_fill_oob()
[all …]
Dnand_hynix.c60 static bool hynix_nand_has_valid_jedecid(struct nand_chip *chip) in hynix_nand_has_valid_jedecid()
72 static int hynix_nand_cmd_op(struct nand_chip *chip, u8 cmd) in hynix_nand_cmd_op()
88 static int hynix_nand_reg_write_op(struct nand_chip *chip, u8 addr, u8 val) in hynix_nand_reg_write_op()
108 static int hynix_nand_setup_read_retry(struct nand_chip *chip, int retry_mode) in hynix_nand_setup_read_retry()
191 static int hynix_read_rr_otp(struct nand_chip *chip, in hynix_read_rr_otp()
287 static int hynix_mlc_1xnm_rr_init(struct nand_chip *chip, in hynix_mlc_1xnm_rr_init()
372 static int hynix_nand_rr_init(struct nand_chip *chip) in hynix_nand_rr_init()
408 static void hynix_nand_extract_oobsize(struct nand_chip *chip, in hynix_nand_extract_oobsize()
495 static void hynix_nand_extract_ecc_requirements(struct nand_chip *chip, in hynix_nand_extract_ecc_requirements()
584 static void hynix_nand_extract_scrambling_requirements(struct nand_chip *chip, in hynix_nand_extract_scrambling_requirements()
[all …]
Dtxx9ndfmc.c62 struct nand_chip chip;
78 struct nand_chip *chip = mtd_to_nand(mtd); in mtd_to_platdev()
102 static uint8_t txx9ndfmc_read_byte(struct nand_chip *chip) in txx9ndfmc_read_byte()
109 static void txx9ndfmc_write_buf(struct nand_chip *chip, const uint8_t *buf, in txx9ndfmc_write_buf()
122 static void txx9ndfmc_read_buf(struct nand_chip *chip, uint8_t *buf, int len) in txx9ndfmc_read_buf()
131 static void txx9ndfmc_cmd_ctrl(struct nand_chip *chip, int cmd, in txx9ndfmc_cmd_ctrl()
161 static int txx9ndfmc_dev_ready(struct nand_chip *chip) in txx9ndfmc_dev_ready()
168 static int txx9ndfmc_calculate_ecc(struct nand_chip *chip, const uint8_t *dat, in txx9ndfmc_calculate_ecc()
188 static int txx9ndfmc_correct_data(struct nand_chip *chip, unsigned char *buf, in txx9ndfmc_correct_data()
209 static void txx9ndfmc_enable_hwecc(struct nand_chip *chip, int mode) in txx9ndfmc_enable_hwecc()
[all …]
Dnand_micron.c69 static int micron_nand_setup_read_retry(struct nand_chip *chip, int retry_mode) in micron_nand_setup_read_retry()
79 static int micron_nand_onfi_init(struct nand_chip *chip) in micron_nand_onfi_init()
135 struct nand_chip *chip = mtd_to_nand(mtd); in micron_nand_on_die_8_ooblayout_ecc()
150 struct nand_chip *chip = mtd_to_nand(mtd); in micron_nand_on_die_8_ooblayout_free()
166 static int micron_nand_on_die_ecc_setup(struct nand_chip *chip, bool enable) in micron_nand_on_die_ecc_setup()
188 static int micron_nand_on_die_ecc_status_4(struct nand_chip *chip, u8 status, in micron_nand_on_die_ecc_status_4()
275 static int micron_nand_on_die_ecc_status_8(struct nand_chip *chip, u8 status) in micron_nand_on_die_ecc_status_8()
304 micron_nand_read_page_on_die_ecc(struct nand_chip *chip, uint8_t *buf, in micron_nand_read_page_on_die_ecc()
369 micron_nand_write_page_on_die_ecc(struct nand_chip *chip, const uint8_t *buf, in micron_nand_write_page_on_die_ecc()
414 static int micron_supports_on_die_ecc(struct nand_chip *chip) in micron_supports_on_die_ecc()
[all …]
/Linux-v5.10/include/linux/mtd/
Drawnand.h27 struct nand_chip;
361 void (*hwctl)(struct nand_chip *chip, int mode);
362 int (*calculate)(struct nand_chip *chip, const uint8_t *dat,
364 int (*correct)(struct nand_chip *chip, uint8_t *dat, uint8_t *read_ecc,
366 int (*read_page_raw)(struct nand_chip *chip, uint8_t *buf,
368 int (*write_page_raw)(struct nand_chip *chip, const uint8_t *buf,
370 int (*read_page)(struct nand_chip *chip, uint8_t *buf,
372 int (*read_subpage)(struct nand_chip *chip, uint32_t offs,
374 int (*write_subpage)(struct nand_chip *chip, uint32_t offset,
377 int (*write_page)(struct nand_chip *chip, const uint8_t *buf,
[all …]
Dplatnand.h56 int (*dev_ready)(struct nand_chip *chip);
57 void (*select_chip)(struct nand_chip *chip, int cs);
58 void (*cmd_ctrl)(struct nand_chip *chip, int dat, unsigned int ctrl);
59 void (*write_buf)(struct nand_chip *chip, const uint8_t *buf, int len);
60 void (*read_buf)(struct nand_chip *chip, uint8_t *buf, int len);
Dnand_bch.h12 struct nand_chip;
22 int nand_bch_calculate_ecc(struct nand_chip *chip, const u_char *dat,
28 int nand_bch_correct_data(struct nand_chip *chip, u_char *dat,
44 nand_bch_calculate_ecc(struct nand_chip *chip, const u_char *dat, in nand_bch_calculate_ecc()
51 nand_bch_correct_data(struct nand_chip *chip, unsigned char *buf, in nand_bch_correct_data()

1234