/kernel/linux/linux-6.6/drivers/mtd/nand/raw/ |
H 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, 84 int nand_bbm_get_next_page(struct nand_chip *chip, int page); 85 int nand_markbad_bbm(struct nand_chip *chip, loff_t ofs); 86 int nand_erase_nand(struct nand_chip *chip, struct erase_info *instr, 88 void onfi_fill_interface_config(struct nand_chip *chip, 96 int nand_choose_best_sdr_timings(struct nand_chip *chip, 99 int nand_choose_best_nvddr_timings(struct nand_chip *chi [all...] |
H A D | socrates_nand.c | 27 struct nand_chip nand_chip; member 38 static void socrates_nand_write_buf(struct nand_chip *this, const uint8_t *buf, in socrates_nand_write_buf() 57 static void socrates_nand_read_buf(struct nand_chip *this, uint8_t *buf, in socrates_nand_read_buf() 77 static uint8_t socrates_nand_read_byte(struct nand_chip *this) in socrates_nand_read_byte() 87 static void socrates_nand_cmd_ctrl(struct nand_chip *nand_chip, int cmd, in socrates_nand_cmd_ctrl() argument 90 struct socrates_nand_host *host = nand_get_controller_data(nand_chip); in socrates_nand_cmd_ctrl() 112 static int socrates_nand_device_ready(struct nand_chip *nand_chip) in socrates_nand_device_ready() argument 141 struct nand_chip *nand_chip; socrates_nand_probe() local [all...] |
H A D | lpc32xx_mlc.c | 132 struct nand_chip *nand_chip = mtd_to_nand(mtd); in lpc32xx_ooblayout_ecc() local 134 if (section >= nand_chip->ecc.steps) in lpc32xx_ooblayout_ecc() 137 oobregion->offset = ((section + 1) * 16) - nand_chip->ecc.bytes; in lpc32xx_ooblayout_ecc() 138 oobregion->length = nand_chip->ecc.bytes; in lpc32xx_ooblayout_ecc() 146 struct nand_chip *nand_chip = mtd_to_nand(mtd); in lpc32xx_ooblayout_free() local 148 if (section >= nand_chip->ecc.steps) in lpc32xx_ooblayout_free() 152 oobregion->length = 16 - nand_chip->ecc.bytes; in lpc32xx_ooblayout_free() 176 struct nand_chip nand_chi member 278 lpc32xx_nand_cmd_ctrl(struct nand_chip *nand_chip, int cmd, unsigned int ctrl) lpc32xx_nand_cmd_ctrl() argument 294 lpc32xx_nand_device_ready(struct nand_chip *nand_chip) lpc32xx_nand_device_ready() argument 688 struct nand_chip *nand_chip; lpc32xx_nand_probe() local [all...] |
H A D | mxc_nand.c | 126 int (*read_page)(struct nand_chip *chip, void *buf, void *oob, bool ecc, 137 void (*select_chip)(struct nand_chip *chip, int cs); 138 int (*setup_interface)(struct nand_chip *chip, int csline, 140 void (*enable_hwecc)(struct nand_chip *chip, bool enable); 161 struct nand_chip nand; 249 struct nand_chip *this = mtd_to_nand(mtd); in copy_spare() 292 struct nand_chip *nand_chip = mtd_to_nand(mtd); in mxc_do_addr_cycle() local 293 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in mxc_do_addr_cycle() 325 if (nand_chip in mxc_do_addr_cycle() 554 struct nand_chip *nand_chip = mtd_to_nand(mtd); send_page_v3() local 570 struct nand_chip *nand_chip = mtd_to_nand(mtd); send_page_v2() local 584 struct nand_chip *nand_chip = mtd_to_nand(mtd); send_page_v1() local 895 mxc_nand_read_byte(struct nand_chip *nand_chip) mxc_nand_read_byte() argument 921 mxc_nand_write_buf(struct nand_chip *nand_chip, const u_char *buf, int len) mxc_nand_write_buf() argument 940 mxc_nand_read_buf(struct nand_chip *nand_chip, u_char *buf, int len) mxc_nand_read_buf() argument 957 mxc_nand_select_chip_v1_v3(struct nand_chip *nand_chip, int chip) mxc_nand_select_chip_v1_v3() argument 977 mxc_nand_select_chip_v2(struct nand_chip *nand_chip, int chip) mxc_nand_select_chip_v2() argument 1005 struct nand_chip *nand_chip = mtd_to_nand(mtd); mxc_v1_ooblayout_ecc() local 1019 struct nand_chip *nand_chip = mtd_to_nand(mtd); mxc_v1_ooblayout_free() local 1052 struct nand_chip *nand_chip = mtd_to_nand(mtd); mxc_v2_ooblayout_ecc() local 1067 struct nand_chip *nand_chip = mtd_to_nand(mtd); mxc_v2_ooblayout_free() local 1113 struct nand_chip *nand_chip = mtd_to_nand(mtd); preset_v1() local 1216 struct nand_chip *nand_chip = mtd_to_nand(mtd); preset_v2() local 1333 mxc_nand_command(struct nand_chip *nand_chip, unsigned command, int column, int page_addr) mxc_nand_command() argument [all...] |
H A D | nand_toshiba.c | 29 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 *chi [all...] |
H A D | nand_macronix.c | 50 static int macronix_nand_setup_read_retry(struct nand_chip *chip, int mode) in macronix_nand_setup_read_retry() 63 static int macronix_nand_randomizer_check_enable(struct nand_chip *chip) in macronix_nand_randomizer_check_enable() 102 static void macronix_nand_onfi_init(struct nand_chip *chip) in macronix_nand_onfi_init() 158 static void macronix_nand_fix_broken_get_timings(struct nand_chip *chip) in macronix_nand_fix_broken_get_timings() 198 static int mxic_nand_lock(struct nand_chip *chip, loff_t ofs, uint64_t len) in mxic_nand_lock() 214 static int mxic_nand_unlock(struct nand_chip *chip, loff_t ofs, uint64_t len) in mxic_nand_unlock() 230 static void macronix_nand_block_protection_support(struct nand_chip *chip) in macronix_nand_block_protection_support() 259 static int nand_power_down_op(struct nand_chip *chip) in nand_power_down_op() 281 static int mxic_nand_suspend(struct nand_chip *chip) in mxic_nand_suspend() 294 static void mxic_nand_resume(struct nand_chip *chi [all...] |
H 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() 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 *chi [all...] |
H A D | xway_nand.c | 67 struct nand_chip chip; 74 struct nand_chip *chip = mtd_to_nand(mtd); in xway_readb() 82 struct nand_chip *chip = mtd_to_nand(mtd); in xway_writeb() 88 static void xway_select_chip(struct nand_chip *chip, int select) in xway_select_chip() 108 static void xway_cmd_ctrl(struct nand_chip *chip, int cmd, unsigned int ctrl) in xway_cmd_ctrl() 124 static int xway_dev_ready(struct nand_chip *chip) in xway_dev_ready() 129 static unsigned char xway_read_byte(struct nand_chip *chip) in xway_read_byte() 134 static void xway_read_buf(struct nand_chip *chip, u_char *buf, int len) in xway_read_buf() 142 static void xway_write_buf(struct nand_chip *chip, const u_char *buf, int len) in xway_write_buf() 150 static int xway_attach_chip(struct nand_chip *chi [all...] |
H A D | nand_base.c | 100 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 *chi [all...] |
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/ |
H 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, 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 *chi [all...] |
H A D | socrates_nand.c | 26 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 140 struct nand_chip *nand_chip; socrates_nand_probe() local [all...] |
H A D | tmio_nand.c | 107 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 *chi 388 struct nand_chip *nand_chip; tmio_probe() local [all...] |
H A D | lpc32xx_mlc.c | 134 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_chi member 279 lpc32xx_nand_cmd_ctrl(struct nand_chip *nand_chip, int cmd, unsigned int ctrl) lpc32xx_nand_cmd_ctrl() argument 295 lpc32xx_nand_device_ready(struct nand_chip *nand_chip) lpc32xx_nand_device_ready() argument 690 struct nand_chip *nand_chip; lpc32xx_nand_probe() local [all...] |
H A D | mxc_nand.c | 128 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 in mxc_do_addr_cycle() 557 struct nand_chip *nand_chip = mtd_to_nand(mtd); send_page_v3() local 573 struct nand_chip *nand_chip = mtd_to_nand(mtd); send_page_v2() local 587 struct nand_chip *nand_chip = mtd_to_nand(mtd); send_page_v1() local 898 mxc_nand_read_byte(struct nand_chip *nand_chip) mxc_nand_read_byte() argument 924 mxc_nand_write_buf(struct nand_chip *nand_chip, const u_char *buf, int len) mxc_nand_write_buf() argument 943 mxc_nand_read_buf(struct nand_chip *nand_chip, u_char *buf, int len) mxc_nand_read_buf() argument 960 mxc_nand_select_chip_v1_v3(struct nand_chip *nand_chip, int chip) mxc_nand_select_chip_v1_v3() argument 980 mxc_nand_select_chip_v2(struct nand_chip *nand_chip, int chip) mxc_nand_select_chip_v2() argument 1008 struct nand_chip *nand_chip = mtd_to_nand(mtd); mxc_v1_ooblayout_ecc() local 1022 struct nand_chip *nand_chip = mtd_to_nand(mtd); mxc_v1_ooblayout_free() local 1055 struct nand_chip *nand_chip = mtd_to_nand(mtd); mxc_v2_ooblayout_ecc() local 1070 struct nand_chip *nand_chip = mtd_to_nand(mtd); mxc_v2_ooblayout_free() local 1116 struct nand_chip *nand_chip = mtd_to_nand(mtd); preset_v1() local 1219 struct nand_chip *nand_chip = mtd_to_nand(mtd); preset_v2() local 1336 mxc_nand_command(struct nand_chip *nand_chip, unsigned command, int column, int page_addr) mxc_nand_command() argument [all...] |
H A D | nand_toshiba.c | 29 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 *chi [all...] |
H 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() 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 *chi [all...] |
H 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() 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 *chi [all...] |
H 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 *chi [all...] |
/kernel/linux/linux-6.6/include/linux/mtd/ |
H A D | rawnand.h | 26 struct nand_chip; 363 void (*hwctl)(struct nand_chip *chip, int mode); 364 int (*calculate)(struct nand_chip *chip, const uint8_t *dat, 366 int (*correct)(struct nand_chip *chip, uint8_t *dat, uint8_t *read_ecc, 368 int (*read_page_raw)(struct nand_chip *chip, uint8_t *buf, 370 int (*write_page_raw)(struct nand_chip *chip, const uint8_t *buf, 372 int (*read_page)(struct nand_chip *chip, uint8_t *buf, 374 int (*read_subpage)(struct nand_chip *chip, uint32_t offs, 376 int (*write_subpage)(struct nand_chip *chip, uint32_t offset, 379 int (*write_page)(struct nand_chip *chi 1275 struct nand_chip { global() struct [all...] |
H 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);
|
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/bcm47xxnflash/ |
H A D | ops_bcm4706.c | 88 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() 97 /* Don't validate column using nand_chip->page_shift, it may be bigger 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() 147 /* Don't validate column using nand_chip in bcm47xxnflash_ops_bcm4706_write() 169 bcm47xxnflash_ops_bcm4706_cmd_ctrl(struct nand_chip *nand_chip, int cmd, unsigned int ctrl) bcm47xxnflash_ops_bcm4706_cmd_ctrl() argument 195 bcm47xxnflash_ops_bcm4706_dev_ready(struct nand_chip *nand_chip) bcm47xxnflash_ops_bcm4706_dev_ready() argument 209 bcm47xxnflash_ops_bcm4706_cmdfunc(struct nand_chip *nand_chip, unsigned command, int column, int page_addr) bcm47xxnflash_ops_bcm4706_cmdfunc() argument 307 bcm47xxnflash_ops_bcm4706_read_byte(struct nand_chip *nand_chip) bcm47xxnflash_ops_bcm4706_read_byte() argument 335 bcm47xxnflash_ops_bcm4706_read_buf(struct nand_chip *nand_chip, uint8_t *buf, int len) bcm47xxnflash_ops_bcm4706_read_buf() argument 351 bcm47xxnflash_ops_bcm4706_write_buf(struct nand_chip *nand_chip, const uint8_t *buf, int len) bcm47xxnflash_ops_bcm4706_write_buf() argument 372 struct nand_chip *nand_chip = (struct nand_chip *)&b47n->nand_chip; bcm47xxnflash_ops_bcm4706_init() local [all...] |
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/bcm47xxnflash/ |
H A D | ops_bcm4706.c | 88 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() 97 /* Don't validate column using nand_chip->page_shift, it may be bigger 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() 147 /* Don't validate column using nand_chip in bcm47xxnflash_ops_bcm4706_write() 169 bcm47xxnflash_ops_bcm4706_cmd_ctrl(struct nand_chip *nand_chip, int cmd, unsigned int ctrl) bcm47xxnflash_ops_bcm4706_cmd_ctrl() argument 195 bcm47xxnflash_ops_bcm4706_dev_ready(struct nand_chip *nand_chip) bcm47xxnflash_ops_bcm4706_dev_ready() argument 209 bcm47xxnflash_ops_bcm4706_cmdfunc(struct nand_chip *nand_chip, unsigned command, int column, int page_addr) bcm47xxnflash_ops_bcm4706_cmdfunc() argument 307 bcm47xxnflash_ops_bcm4706_read_byte(struct nand_chip *nand_chip) bcm47xxnflash_ops_bcm4706_read_byte() argument 335 bcm47xxnflash_ops_bcm4706_read_buf(struct nand_chip *nand_chip, uint8_t *buf, int len) bcm47xxnflash_ops_bcm4706_read_buf() argument 351 bcm47xxnflash_ops_bcm4706_write_buf(struct nand_chip *nand_chip, const uint8_t *buf, int len) bcm47xxnflash_ops_bcm4706_write_buf() argument 372 struct nand_chip *nand_chip = (struct nand_chip *)&b47n->nand_chip; bcm47xxnflash_ops_bcm4706_init() local [all...] |
/kernel/linux/linux-5.10/include/linux/mtd/ |
H A D | rawnand.h | 27 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 *chi 1218 struct nand_chip { global() struct [all...] |
H 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);
|
H A D | nand_bch.h | 12 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()
|