/linux-6.3-rc2/drivers/mtd/nand/raw/bcm47xxnflash/ |
A D | ops_bcm4706.c | 88 struct nand_chip *nand_chip = mtd_to_nand(mtd); in bcm47xxnflash_ops_bcm4706_read() local 138 struct nand_chip *nand_chip = mtd_to_nand(mtd); in bcm47xxnflash_ops_bcm4706_write() local 169 static void bcm47xxnflash_ops_bcm4706_cmd_ctrl(struct nand_chip *nand_chip, in bcm47xxnflash_ops_bcm4706_cmd_ctrl() argument 195 static int bcm47xxnflash_ops_bcm4706_dev_ready(struct nand_chip *nand_chip) in bcm47xxnflash_ops_bcm4706_dev_ready() argument 209 static void bcm47xxnflash_ops_bcm4706_cmdfunc(struct nand_chip *nand_chip, in bcm47xxnflash_ops_bcm4706_cmdfunc() argument 226 nand_chip->legacy.cmd_ctrl(nand_chip, command, NAND_CTRL_CLE); in bcm47xxnflash_ops_bcm4706_cmdfunc() 229 nand_wait_ready(nand_chip); in bcm47xxnflash_ops_bcm4706_cmdfunc() 307 static u8 bcm47xxnflash_ops_bcm4706_read_byte(struct nand_chip *nand_chip) in bcm47xxnflash_ops_bcm4706_read_byte() argument 335 static void bcm47xxnflash_ops_bcm4706_read_buf(struct nand_chip *nand_chip, in bcm47xxnflash_ops_bcm4706_read_buf() argument 351 static void bcm47xxnflash_ops_bcm4706_write_buf(struct nand_chip *nand_chip, in bcm47xxnflash_ops_bcm4706_write_buf() argument [all …]
|
/linux-6.3-rc2/drivers/mtd/nand/raw/ |
A D | internals.h | 48 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, 87 void onfi_fill_interface_config(struct nand_chip *chip, 108 int nand_exit_status_op(struct nand_chip *chip); 111 void nand_decode_ext_id(struct nand_chip *chip); 133 static inline int nand_exec_op(struct nand_chip *chip, in nand_exec_op() 165 int nand_legacy_check_hooks(struct nand_chip *chip); 169 int nand_onfi_detect(struct nand_chip *chip); [all …]
|
A D | socrates_nand.c | 26 struct nand_chip nand_chip; member 86 static void socrates_nand_cmd_ctrl(struct nand_chip *nand_chip, int cmd, in socrates_nand_cmd_ctrl() argument 111 static int socrates_nand_device_ready(struct nand_chip *nand_chip) in socrates_nand_device_ready() argument 140 struct nand_chip *nand_chip; in socrates_nand_probe() local 154 nand_chip = &host->nand_chip; in socrates_nand_probe() 155 mtd = nand_to_mtd(nand_chip); in socrates_nand_probe() 160 nand_chip->controller = &host->controller; in socrates_nand_probe() 163 nand_set_controller_data(nand_chip, host); in socrates_nand_probe() 186 res = nand_scan(nand_chip, 1); in socrates_nand_probe() 194 nand_cleanup(nand_chip); in socrates_nand_probe() [all …]
|
A D | lpc32xx_mlc.c | 132 struct nand_chip *nand_chip = mtd_to_nand(mtd); in lpc32xx_ooblayout_ecc() local 146 struct nand_chip *nand_chip = mtd_to_nand(mtd); in lpc32xx_ooblayout_free() local 176 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 294 static int lpc32xx_nand_device_ready(struct nand_chip *nand_chip) in lpc32xx_nand_device_ready() argument 687 struct nand_chip *nand_chip; in lpc32xx_nand_probe() local 705 nand_chip = &host->nand_chip; in lpc32xx_nand_probe() 706 mtd = nand_to_mtd(nand_chip); in lpc32xx_nand_probe() 796 res = nand_scan(nand_chip, 1); in lpc32xx_nand_probe() 810 nand_cleanup(nand_chip); in lpc32xx_nand_probe() [all …]
|
A D | mxc_nand.c | 293 struct nand_chip *nand_chip = mtd_to_nand(mtd); in mxc_do_addr_cycle() local 555 struct nand_chip *nand_chip = mtd_to_nand(mtd); in send_page_v3() local 571 struct nand_chip *nand_chip = mtd_to_nand(mtd); in send_page_v2() local 585 struct nand_chip *nand_chip = mtd_to_nand(mtd); in send_page_v1() local 896 static u_char mxc_nand_read_byte(struct nand_chip *nand_chip) in mxc_nand_read_byte() argument 1006 struct nand_chip *nand_chip = mtd_to_nand(mtd); in mxc_v1_ooblayout_ecc() local 1020 struct nand_chip *nand_chip = mtd_to_nand(mtd); in mxc_v1_ooblayout_free() local 1053 struct nand_chip *nand_chip = mtd_to_nand(mtd); in mxc_v2_ooblayout_ecc() local 1068 struct nand_chip *nand_chip = mtd_to_nand(mtd); in mxc_v2_ooblayout_free() local 1114 struct nand_chip *nand_chip = mtd_to_nand(mtd); in preset_v1() local [all …]
|
A D | nand_legacy.c | 28 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() 193 void nand_wait_ready(struct nand_chip *chip) in nand_wait_ready() 356 static void nand_ccs_delay(struct nand_chip *chip) in nand_ccs_delay() 533 static int nand_wait(struct nand_chip *chip) in nand_wait() 581 void nand_legacy_set_defaults(struct nand_chip *chip) in nand_legacy_set_defaults() 614 void nand_legacy_adjust_cmdfunc(struct nand_chip *chip) in nand_legacy_adjust_cmdfunc() [all …]
|
A D | nand_toshiba.c | 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() 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() 258 static int tc58nvg0s3e_init(struct nand_chip *chip) in tc58nvg0s3e_init() 266 static int th58nvg2s3hbai4_init(struct nand_chip *chip) in th58nvg2s3hbai4_init() [all …]
|
A D | nand_macronix.c | 39 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() 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() 301 static void macronix_nand_deep_power_down_support(struct nand_chip *chip) in macronix_nand_deep_power_down_support() [all …]
|
A D | xway_nand.c | 66 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 …]
|
A D | sharpsl.c | 22 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()
|
A D | au1550nd.c | 21 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() 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() 258 struct nand_chip *this; in au1550nd_probe() [all …]
|
A D | nand_base.c | 608 struct nand_chip *chip = mtd_to_nand(mtd); in nand_block_isreserved() 2086 int nand_reset_op(struct nand_chip *chip) in nand_reset_op() 3914 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_oob() 4490 struct nand_chip *chip = mtd_to_nand(mtd); in panic_nand_write() 4520 struct nand_chip *chip = mtd_to_nand(mtd); in nand_write_oob() 5966 nand_match_ecc_req(struct nand_chip *chip, in nand_match_ecc_req() 6049 nand_maximize_ecc(struct nand_chip *chip, in nand_maximize_ecc() 6151 struct nand_chip *chip = container_of(nand, struct nand_chip, in rawnand_erase() 6168 struct nand_chip *chip = container_of(nand, struct nand_chip, in rawnand_markbad() 6176 struct nand_chip *chip = container_of(nand, struct nand_chip, in rawnand_isbad() [all …]
|
A D | oxnas_nand.c | 34 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()
|
A D | mpc5121_nfc.c | 108 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() 272 struct nand_chip *chip = mtd_to_nand(mtd); in ads5121_chipselect_init() 396 struct nand_chip *nand = mtd_to_nand(mtd); in mpc5121_nfc_copy_spare() 448 struct nand_chip *chip = mtd_to_nand(mtd); in mpc5121_nfc_buf_copy() 516 struct nand_chip *chip = mtd_to_nand(mtd); in mpc5121_nfc_read_hw_config() [all …]
|
A D | ndfc.c | 34 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()
|
A D | pasemi_nand.c | 30 struct nand_chip chip; 37 static void pasemi_read_buf(struct nand_chip *chip, u_char *buf, int len) in pasemi_read_buf() 47 static void pasemi_write_buf(struct nand_chip *chip, const u_char *buf, in pasemi_write_buf() 58 static void pasemi_hwcontrol(struct nand_chip *chip, int cmd, in pasemi_hwcontrol() 76 static int pasemi_device_ready(struct nand_chip *chip) in pasemi_device_ready() 83 static int pasemi_attach_chip(struct nand_chip *chip) in pasemi_attach_chip() 102 struct nand_chip *chip; in pasemi_nand_probe() 205 struct nand_chip *chip; in pasemi_nand_remove()
|
A D | nand_hynix.c | 60 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() 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() 609 static void hynix_nand_decode_id(struct nand_chip *chip) in hynix_nand_decode_id() 668 static void hynix_nand_cleanup(struct nand_chip *chip) in hynix_nand_cleanup() 681 h27ucg8t2atrbc_choose_interface_config(struct nand_chip *chip, in h27ucg8t2atrbc_choose_interface_config() 689 static int h27ucg8t2etrbc_init(struct nand_chip *chip) in h27ucg8t2etrbc_init() [all …]
|
A D | txx9ndfmc.c | 61 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() 208 static void txx9ndfmc_enable_hwecc(struct nand_chip *chip, int mode) in txx9ndfmc_enable_hwecc() 251 static int txx9ndfmc_attach_chip(struct nand_chip *chip) in txx9ndfmc_attach_chip() 317 struct nand_chip *chip; in txx9ndfmc_probe() [all …]
|
A D | nand_micron.c | 69 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() 304 micron_nand_read_page_on_die_ecc(struct nand_chip *chip, uint8_t *buf, in micron_nand_read_page_on_die_ecc() 414 static int micron_supports_on_die_ecc(struct nand_chip *chip) in micron_supports_on_die_ecc() 477 static int micron_nand_init(struct nand_chip *chip) in micron_nand_init() 575 static void micron_nand_cleanup(struct nand_chip *chip) in micron_nand_cleanup() [all …]
|
A D | mtk_nand.c | 127 struct nand_chip nand; 321 struct nand_chip *chip = mtd_to_nand(mtd); in mtk_nfc_hw_runtime_config() 661 struct nand_chip *chip = mtd_to_nand(mtd); in mtk_nfc_bad_mark_swap() 676 struct nand_chip *chip = mtd_to_nand(mtd); in mtk_nfc_format_subpage() 710 struct nand_chip *chip = mtd_to_nand(mtd); in mtk_nfc_format_page() 918 struct nand_chip *chip = mtd_to_nand(mtd); in mtk_nfc_update_ecc_stats() 1151 struct nand_chip *chip = mtd_to_nand(mtd); in mtk_nfc_ooblayout_free() 1170 struct nand_chip *chip = mtd_to_nand(mtd); in mtk_nfc_ooblayout_ecc() 1370 struct nand_chip *nand; in mtk_nfc_nand_chip_init() 1608 struct nand_chip *chip; in mtk_nfc_remove() [all …]
|
A D | lpc32xx_slc.c | 215 struct nand_chip nand_chip; member 295 static int lpc32xx_nand_device_ready(struct nand_chip *chip) in lpc32xx_nand_device_ready() 335 static int lpc32xx_nand_ecc_calculate(struct nand_chip *chip, in lpc32xx_nand_ecc_calculate() 349 static uint8_t lpc32xx_nand_read_byte(struct nand_chip *chip) in lpc32xx_nand_read_byte() 428 struct nand_chip *chip = mtd_to_nand(mtd); in lpc32xx_xmit_dma() 488 struct nand_chip *chip = mtd_to_nand(mtd); in lpc32xx_xfer() 721 struct mtd_info *mtd = nand_to_mtd(&host->nand_chip); in lpc32xx_nand_dma_setup() 769 static int lpc32xx_nand_attach_chip(struct nand_chip *chip) in lpc32xx_nand_attach_chip() 830 struct nand_chip *chip; in lpc32xx_nand_probe() 867 chip = &host->nand_chip; in lpc32xx_nand_probe() [all …]
|
A D | nand_bbt.c | 259 static int read_abs_bbt(struct nand_chip *this, uint8_t *buf, in read_abs_bbt() 389 static void read_abs_bbts(struct nand_chip *this, uint8_t *buf, in read_abs_bbts() 490 static int create_bbt(struct nand_chip *this, uint8_t *buf, in create_bbt() 552 static int search_bbt(struct nand_chip *this, uint8_t *buf, in search_bbt() 717 static void mark_bbt_block_bad(struct nand_chip *this, in mark_bbt_block_bad() 745 static int write_bbt(struct nand_chip *this, uint8_t *buf, in write_bbt() 931 static inline int nand_memory_bbt(struct nand_chip *this, in nand_memory_bbt() 950 static int check_create(struct nand_chip *this, uint8_t *buf, in check_create() 1398 int nand_create_bbt(struct nand_chip *this) in nand_create_bbt() 1434 int nand_isreserved_bbt(struct nand_chip *this, loff_t offs) in nand_isreserved_bbt() [all …]
|
A D | meson_nand.c | 113 struct nand_chip nand; 335 static u8 *meson_nfc_oob_ptr(struct nand_chip *nand, int i) in meson_nfc_oob_ptr() 356 static void meson_nfc_get_data_oob(struct nand_chip *nand, in meson_nfc_get_data_oob() 375 static void meson_nfc_set_data_oob(struct nand_chip *nand, in meson_nfc_set_data_oob() 700 struct nand_chip *nand, int raw) in meson_nfc_check_ecc_pages_valid() 896 static int meson_nfc_exec_op(struct nand_chip *nand, in meson_nfc_exec_op() 962 struct nand_chip *nand = mtd_to_nand(mtd); in meson_ooblayout_ecc() 976 struct nand_chip *nand = mtd_to_nand(mtd); in meson_ooblayout_free() 1074 static void meson_nfc_free_buffer(struct nand_chip *nand) in meson_nfc_free_buffer() 1149 static int meson_nand_bch_mode(struct nand_chip *nand) in meson_nand_bch_mode() [all …]
|
/linux-6.3-rc2/include/linux/mtd/ |
A D | rawnand.h | 26 struct nand_chip; 1085 int (*attach_chip)(struct nand_chip *chip); 1087 int (*exec_op)(struct nand_chip *chip, 1152 u8 (*read_byte)(struct nand_chip *chip); 1159 int (*dev_ready)(struct nand_chip *chip); 1160 int (*waitfunc)(struct nand_chip *chip); 1181 int (*suspend)(struct nand_chip *chip); 1182 void (*resume)(struct nand_chip *chip); 1272 struct nand_chip { struct 1539 int nand_reset_op(struct nand_chip *chip); [all …]
|
A D | platnand.h | 56 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);
|