Home
last modified time | relevance | path

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

1234

/linux-6.1.9/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-6.1.9/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,
95 int nand_choose_best_sdr_timings(struct nand_chip *chip,
98 int nand_choose_best_nvddr_timings(struct nand_chip *chip,
[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()
140 struct nand_chip *nand_chip; in socrates_nand_probe() local
[all …]
Dtmio_nand.c106 struct nand_chip chip;
130 static void tmio_nand_hwcontrol(struct nand_chip *chip, int cmd, in tmio_nand_hwcontrol()
162 static int tmio_nand_dev_ready(struct nand_chip *chip) in tmio_nand_dev_ready()
186 static int tmio_nand_wait(struct nand_chip *nand_chip) in tmio_nand_wait() argument
188 struct tmio_nand *tmio = mtd_to_tmio(nand_to_mtd(nand_chip)); in tmio_nand_wait()
202 if (unlikely(!tmio_nand_dev_ready(nand_chip))) { in tmio_nand_wait()
211 nand_status_op(nand_chip, &status); in tmio_nand_wait()
223 static u_char tmio_nand_read_byte(struct nand_chip *chip) in tmio_nand_read_byte()
243 tmio_nand_write_buf(struct nand_chip *chip, const u_char *buf, int len) in tmio_nand_write_buf()
250 static void tmio_nand_read_buf(struct nand_chip *chip, u_char *buf, int len) in tmio_nand_read_buf()
[all …]
Dlpc32xx_mlc.c133 struct nand_chip *nand_chip = mtd_to_nand(mtd); in lpc32xx_ooblayout_ecc() local
135 if (section >= nand_chip->ecc.steps) in lpc32xx_ooblayout_ecc()
138 oobregion->offset = ((section + 1) * 16) - nand_chip->ecc.bytes; in lpc32xx_ooblayout_ecc()
139 oobregion->length = nand_chip->ecc.bytes; in lpc32xx_ooblayout_ecc()
147 struct nand_chip *nand_chip = mtd_to_nand(mtd); in lpc32xx_ooblayout_free() local
149 if (section >= nand_chip->ecc.steps) in lpc32xx_ooblayout_free()
153 oobregion->length = 16 - nand_chip->ecc.bytes; in lpc32xx_ooblayout_free()
177 struct nand_chip nand_chip; member
278 static void lpc32xx_nand_cmd_ctrl(struct nand_chip *nand_chip, int cmd, in lpc32xx_nand_cmd_ctrl() argument
281 struct lpc32xx_nand_host *host = nand_get_controller_data(nand_chip); in lpc32xx_nand_cmd_ctrl()
[all …]
Dmxc_nand.c127 int (*read_page)(struct nand_chip *chip, void *buf, void *oob, bool ecc,
138 void (*select_chip)(struct nand_chip *chip, int cs);
139 int (*setup_interface)(struct nand_chip *chip, int csline,
141 void (*enable_hwecc)(struct nand_chip *chip, bool enable);
162 struct nand_chip nand;
250 struct nand_chip *this = mtd_to_nand(mtd); in copy_spare()
293 struct nand_chip *nand_chip = mtd_to_nand(mtd); in mxc_do_addr_cycle() local
294 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in mxc_do_addr_cycle()
326 if (nand_chip->options & NAND_ROW_ADDR_3) { in mxc_do_addr_cycle()
555 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 …]
Dsharpsl.c22 struct nand_chip chip;
57 static void sharpsl_nand_hwcontrol(struct nand_chip *chip, int cmd, in sharpsl_nand_hwcontrol()
76 static int sharpsl_nand_dev_ready(struct nand_chip *chip) in sharpsl_nand_dev_ready()
82 static void sharpsl_nand_enable_hwecc(struct nand_chip *chip, int mode) in sharpsl_nand_enable_hwecc()
88 static int sharpsl_nand_calculate_ecc(struct nand_chip *chip, in sharpsl_nand_calculate_ecc()
98 static int sharpsl_attach_chip(struct nand_chip *chip) in sharpsl_attach_chip()
122 struct nand_chip *this; in sharpsl_nand_probe()
155 this = (struct nand_chip *)(&sharpsl->chip); in sharpsl_nand_probe()
216 struct nand_chip *chip = &sharpsl->chip; in sharpsl_nand_remove()
Dau1550nd.c21 struct nand_chip chip;
27 static struct au1550nd_ctx *chip_to_au_ctx(struct nand_chip *this) in chip_to_au_ctx()
40 static void au_write_buf(struct nand_chip *this, const void *buf, in au_write_buf()
61 static void au_read_buf(struct nand_chip *this, void *buf, in au_read_buf()
82 static void au_write_buf16(struct nand_chip *this, const void *buf, in au_write_buf16()
104 static void au_read_buf16(struct nand_chip *this, void *buf, unsigned int len) in au_read_buf16()
138 static int au1550nd_waitrdy(struct nand_chip *this, unsigned int timeout_ms) in au1550nd_waitrdy()
153 static int au1550nd_exec_instr(struct nand_chip *this, in au1550nd_exec_instr()
210 static int au1550nd_exec_op(struct nand_chip *this, in au1550nd_exec_op()
240 static int au1550nd_attach_chip(struct nand_chip *chip) in au1550nd_attach_chip()
[all …]
Dpasemi_nand.c34 static void pasemi_read_buf(struct nand_chip *chip, u_char *buf, int len) in pasemi_read_buf()
44 static void pasemi_write_buf(struct nand_chip *chip, const u_char *buf, in pasemi_write_buf()
55 static void pasemi_hwcontrol(struct nand_chip *chip, int cmd, in pasemi_hwcontrol()
71 static int pasemi_device_ready(struct nand_chip *chip) in pasemi_device_ready()
76 static int pasemi_attach_chip(struct nand_chip *chip) in pasemi_attach_chip()
95 struct nand_chip *chip; in pasemi_nand_probe()
110 chip = kzalloc(sizeof(struct nand_chip), GFP_KERNEL); in pasemi_nand_probe()
193 struct nand_chip *chip; in pasemi_nand_remove()
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()
114 chip = devm_kzalloc(&pdev->dev, sizeof(struct nand_chip), in oxnas_nand_probe()
177 struct nand_chip *chip; in oxnas_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()
310 static int mpc5121_nfc_dev_ready(struct nand_chip *nand) in mpc5121_nfc_dev_ready()
[all …]
Dnand_base.c100 static int check_offs_len(struct nand_chip *chip, loff_t ofs, uint64_t len) in check_offs_len()
172 void nand_select_target(struct nand_chip *chip, unsigned int cs) in nand_select_target()
195 void nand_deselect_target(struct nand_chip *chip) in nand_deselect_target()
210 static void nand_release_device(struct nand_chip *chip) in nand_release_device()
226 int nand_bbm_get_next_page(struct nand_chip *chip, int page) in nand_bbm_get_next_page()
253 static int nand_block_bad(struct nand_chip *chip, loff_t ofs) in nand_block_bad()
292 static bool nand_region_is_secured(struct nand_chip *chip, loff_t offset, u64 size) in nand_region_is_secured()
313 static int nand_isbad_bbm(struct nand_chip *chip, loff_t ofs) in nand_isbad_bbm()
339 static void nand_get_device(struct nand_chip *chip) in nand_get_device()
361 static int nand_check_wp(struct nand_chip *chip) in nand_check_wp()
[all …]
Dndfc.c34 struct nand_chip chip;
41 static void ndfc_select_chip(struct nand_chip *nchip, int chip) in ndfc_select_chip()
55 static void ndfc_hwcontrol(struct nand_chip *chip, int cmd, unsigned int ctrl) in ndfc_hwcontrol()
68 static int ndfc_ready(struct nand_chip *chip) in ndfc_ready()
75 static void ndfc_enable_hwecc(struct nand_chip *chip, int mode) in ndfc_enable_hwecc()
86 static int ndfc_calculate_ecc(struct nand_chip *chip, in ndfc_calculate_ecc()
110 static void ndfc_read_buf(struct nand_chip *chip, uint8_t *buf, int len) in ndfc_read_buf()
119 static void ndfc_write_buf(struct nand_chip *chip, const uint8_t *buf, int len) in ndfc_write_buf()
135 struct nand_chip *chip = &ndfc->chip; in ndfc_chip_init()
246 struct nand_chip *chip = &ndfc->chip; in ndfc_remove()
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 …]
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 …]
Dtxx9ndfmc.c61 struct nand_chip chip;
77 struct nand_chip *chip = mtd_to_nand(mtd); in mtd_to_platdev()
101 static uint8_t txx9ndfmc_read_byte(struct nand_chip *chip) in txx9ndfmc_read_byte()
108 static void txx9ndfmc_write_buf(struct nand_chip *chip, const uint8_t *buf, in txx9ndfmc_write_buf()
121 static void txx9ndfmc_read_buf(struct nand_chip *chip, uint8_t *buf, int len) in txx9ndfmc_read_buf()
130 static void txx9ndfmc_cmd_ctrl(struct nand_chip *chip, int cmd, in txx9ndfmc_cmd_ctrl()
160 static int txx9ndfmc_dev_ready(struct nand_chip *chip) in txx9ndfmc_dev_ready()
167 static int txx9ndfmc_calculate_ecc(struct nand_chip *chip, const uint8_t *dat, in txx9ndfmc_calculate_ecc()
187 static int txx9ndfmc_correct_data(struct nand_chip *chip, unsigned char *buf, in txx9ndfmc_correct_data()
208 static void txx9ndfmc_enable_hwecc(struct nand_chip *chip, int mode) in txx9ndfmc_enable_hwecc()
[all …]
Dmtk_nand.c127 struct nand_chip nand;
179 static inline struct mtk_nfc_nand_chip *to_mtk_nand(struct nand_chip *nand) in to_mtk_nand()
184 static inline u8 *data_ptr(struct nand_chip *chip, const u8 *p, int i) in data_ptr()
189 static inline u8 *oob_ptr(struct nand_chip *chip, int i) in oob_ptr()
208 static inline int mtk_data_len(struct nand_chip *chip) in mtk_data_len()
215 static inline u8 *mtk_data_ptr(struct nand_chip *chip, int i) in mtk_data_ptr()
222 static inline u8 *mtk_oob_ptr(struct nand_chip *chip, int i) in mtk_oob_ptr()
321 struct nand_chip *chip = mtd_to_nand(mtd); in mtk_nfc_hw_runtime_config()
401 static inline u8 mtk_nfc_read_byte(struct nand_chip *chip) in mtk_nfc_read_byte()
429 static void mtk_nfc_read_buf(struct nand_chip *chip, u8 *buf, int len) in mtk_nfc_read_buf()
[all …]
Dlpc32xx_slc.c217 struct nand_chip nand_chip; member
271 static void lpc32xx_nand_cmd_ctrl(struct nand_chip *chip, int cmd, in lpc32xx_nand_cmd_ctrl()
296 static int lpc32xx_nand_device_ready(struct nand_chip *chip) in lpc32xx_nand_device_ready()
328 static void lpc32xx_nand_ecc_enable(struct nand_chip *chip, int mode) in lpc32xx_nand_ecc_enable()
336 static int lpc32xx_nand_ecc_calculate(struct nand_chip *chip, in lpc32xx_nand_ecc_calculate()
350 static uint8_t lpc32xx_nand_read_byte(struct nand_chip *chip) in lpc32xx_nand_read_byte()
360 static void lpc32xx_nand_read_buf(struct nand_chip *chip, u_char *buf, int len) in lpc32xx_nand_read_buf()
372 static void lpc32xx_nand_write_buf(struct nand_chip *chip, const uint8_t *buf, in lpc32xx_nand_write_buf()
385 static int lpc32xx_nand_read_oob_syndrome(struct nand_chip *chip, int page) in lpc32xx_nand_read_oob_syndrome()
395 static int lpc32xx_nand_write_oob_syndrome(struct nand_chip *chip, int page) in lpc32xx_nand_write_oob_syndrome()
[all …]
Dnand_bbt.c76 static inline uint8_t bbt_get_entry(struct nand_chip *chip, int block) in bbt_get_entry()
83 static inline void bbt_mark_entry(struct nand_chip *chip, int block, in bbt_mark_entry()
166 static int read_bbt(struct nand_chip *this, uint8_t *buf, int page, int num, in read_bbt()
259 static int read_abs_bbt(struct nand_chip *this, uint8_t *buf, in read_abs_bbt()
287 static int scan_read_data(struct nand_chip *this, uint8_t *buf, loff_t offs, in scan_read_data()
312 static int scan_read_oob(struct nand_chip *this, uint8_t *buf, loff_t offs, in scan_read_oob()
343 static int scan_read(struct nand_chip *this, uint8_t *buf, loff_t offs, in scan_read()
353 static int scan_write_bbt(struct nand_chip *this, loff_t offs, size_t len, in scan_write_bbt()
369 static u32 bbt_get_ver_offs(struct nand_chip *this, struct nand_bbt_descr *td) in bbt_get_ver_offs()
389 static void read_abs_bbts(struct nand_chip *this, uint8_t *buf, in read_abs_bbts()
[all …]
/linux-6.1.9/include/linux/mtd/
Drawnand.h26 struct nand_chip;
359 void (*hwctl)(struct nand_chip *chip, int mode);
360 int (*calculate)(struct nand_chip *chip, const uint8_t *dat,
362 int (*correct)(struct nand_chip *chip, uint8_t *dat, uint8_t *read_ecc,
364 int (*read_page_raw)(struct nand_chip *chip, uint8_t *buf,
366 int (*write_page_raw)(struct nand_chip *chip, const uint8_t *buf,
368 int (*read_page)(struct nand_chip *chip, uint8_t *buf,
370 int (*read_subpage)(struct nand_chip *chip, uint32_t offs,
372 int (*write_subpage)(struct nand_chip *chip, uint32_t offset,
375 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);

1234