Home
last modified time | relevance | path

Searched defs:nand (Results 1 – 25 of 31) sorted by relevance

12

/drivers/mtd/nand/
Dcore.c22 bool nanddev_isbad(struct nand_device *nand, const struct nand_pos *pos) in nanddev_isbad()
61 int nanddev_markbad(struct nand_device *nand, const struct nand_pos *pos) in nanddev_markbad()
102 bool nanddev_isreserved(struct nand_device *nand, const struct nand_pos *pos) in nanddev_isreserved()
126 int nanddev_erase(struct nand_device *nand, const struct nand_pos *pos) in nanddev_erase()
155 struct nand_device *nand = mtd_to_nanddev(mtd); in nanddev_mtd_erase() local
191 struct nand_device *nand = mtd_to_nanddev(mtd); in nanddev_mtd_max_bad_blocks() local
214 static int nanddev_get_ecc_engine(struct nand_device *nand) in nanddev_get_ecc_engine()
251 static int nanddev_put_ecc_engine(struct nand_device *nand) in nanddev_put_ecc_engine()
271 static int nanddev_find_ecc_configuration(struct nand_device *nand) in nanddev_find_ecc_configuration()
293 int nanddev_ecc_engine_init(struct nand_device *nand) in nanddev_ecc_engine_init()
[all …]
Decc.c106 int nand_ecc_init_ctx(struct nand_device *nand) in nand_ecc_init_ctx()
119 void nand_ecc_cleanup_ctx(struct nand_device *nand) in nand_ecc_cleanup_ctx()
131 int nand_ecc_prepare_io_req(struct nand_device *nand, in nand_ecc_prepare_io_req()
146 int nand_ecc_finish_io_req(struct nand_device *nand, in nand_ecc_finish_io_req()
160 struct nand_device *nand = mtd_to_nanddev(mtd); in nand_ooblayout_ecc_sp() local
220 struct nand_device *nand = mtd_to_nanddev(mtd); in nand_ooblayout_ecc_lp() local
235 struct nand_device *nand = mtd_to_nanddev(mtd); in nand_ooblayout_free_lp() local
265 struct nand_device *nand = mtd_to_nanddev(mtd); in nand_ooblayout_ecc_lp_hamming() local
292 struct nand_device *nand = mtd_to_nanddev(mtd); in nand_ooblayout_free_lp_hamming() local
422 void of_get_nand_ecc_user_config(struct nand_device *nand) in of_get_nand_ecc_user_config()
[all …]
Decc-sw-bch.c23 int nand_ecc_sw_bch_calculate(struct nand_device *nand, in nand_ecc_sw_bch_calculate()
49 int nand_ecc_sw_bch_correct(struct nand_device *nand, unsigned char *buf, in nand_ecc_sw_bch_correct()
82 static void nand_ecc_sw_bch_cleanup(struct nand_device *nand) in nand_ecc_sw_bch_cleanup()
108 static int nand_ecc_sw_bch_init(struct nand_device *nand) in nand_ecc_sw_bch_init()
170 int nand_ecc_sw_bch_init_ctx(struct nand_device *nand) in nand_ecc_sw_bch_init_ctx()
277 void nand_ecc_sw_bch_cleanup_ctx(struct nand_device *nand) in nand_ecc_sw_bch_cleanup_ctx()
291 static int nand_ecc_sw_bch_prepare_io_req(struct nand_device *nand, in nand_ecc_sw_bch_prepare_io_req()
328 static int nand_ecc_sw_bch_finish_io_req(struct nand_device *nand, in nand_ecc_sw_bch_finish_io_req()
Dbbt.c23 int nanddev_bbt_init(struct nand_device *nand) in nanddev_bbt_init()
45 void nanddev_bbt_cleanup(struct nand_device *nand) in nanddev_bbt_cleanup()
60 int nanddev_bbt_update(struct nand_device *nand) in nanddev_bbt_update()
74 int nanddev_bbt_get_block_status(const struct nand_device *nand, in nanddev_bbt_get_block_status()
107 int nanddev_bbt_set_block_status(struct nand_device *nand, unsigned int entry, in nanddev_bbt_set_block_status()
Decc-sw-hamming.c362 int nand_ecc_sw_hamming_calculate(struct nand_device *nand, in nand_ecc_sw_hamming_calculate()
454 int nand_ecc_sw_hamming_correct(struct nand_device *nand, unsigned char *buf, in nand_ecc_sw_hamming_correct()
466 int nand_ecc_sw_hamming_init_ctx(struct nand_device *nand) in nand_ecc_sw_hamming_init_ctx()
531 void nand_ecc_sw_hamming_cleanup_ctx(struct nand_device *nand) in nand_ecc_sw_hamming_cleanup_ctx()
544 static int nand_ecc_sw_hamming_prepare_io_req(struct nand_device *nand, in nand_ecc_sw_hamming_prepare_io_req()
581 static int nand_ecc_sw_hamming_finish_io_req(struct nand_device *nand, in nand_ecc_sw_hamming_finish_io_req()
/drivers/mtd/nand/spi/
Dcore.c53 struct nand_device *nand = spinand_to_nand(spinand); in spinand_get_cfg() local
65 struct nand_device *nand = spinand_to_nand(spinand); in spinand_set_cfg() local
119 struct nand_device *nand = spinand_to_nand(spinand); in spinand_select_target() local
143 struct nand_device *nand = spinand_to_nand(spinand); in spinand_read_cfg() local
167 struct nand_device *nand = spinand_to_nand(spinand); in spinand_init_cfg_cache() local
205 struct nand_device *nand = spinand_to_nand(spinand); in spinand_check_ecc_status() local
256 static int spinand_ondie_ecc_init_ctx(struct nand_device *nand) in spinand_ondie_ecc_init_ctx()
280 static void spinand_ondie_ecc_cleanup_ctx(struct nand_device *nand) in spinand_ondie_ecc_cleanup_ctx()
285 static int spinand_ondie_ecc_prepare_io_req(struct nand_device *nand, in spinand_ondie_ecc_prepare_io_req()
297 static int spinand_ondie_ecc_finish_io_req(struct nand_device *nand, in spinand_ondie_ecc_finish_io_req()
[all …]
Dtoshiba.c74 struct nand_device *nand = spinand_to_nand(spinand); in tx58cxgxsxraix_ecc_get_status() local
Dwinbond.c101 struct nand_device *nand = spinand_to_nand(spinand); in winbond_spinand_init() local
Dmacronix.c70 struct nand_device *nand = spinand_to_nand(spinand); in mx35lf1ge4ab_ecc_get_status() local
/drivers/mtd/nand/raw/
Dsunxi_nand.c195 struct nand_chip nand; member
204 static inline struct sunxi_nand_chip *to_sunxi_nand(struct nand_chip *nand) in to_sunxi_nand()
416 static void sunxi_nfc_select_chip(struct nand_chip *nand, unsigned int cs) in sunxi_nfc_select_chip()
447 static void sunxi_nfc_read_buf(struct nand_chip *nand, uint8_t *buf, int len) in sunxi_nfc_read_buf()
484 static void sunxi_nfc_write_buf(struct nand_chip *nand, const uint8_t *buf, in sunxi_nfc_write_buf()
603 static u16 sunxi_nfc_randomizer_state(struct nand_chip *nand, int page, in sunxi_nfc_randomizer_state()
623 static void sunxi_nfc_randomizer_config(struct nand_chip *nand, int page, in sunxi_nfc_randomizer_config()
639 static void sunxi_nfc_randomizer_enable(struct nand_chip *nand) in sunxi_nfc_randomizer_enable()
650 static void sunxi_nfc_randomizer_disable(struct nand_chip *nand) in sunxi_nfc_randomizer_disable()
661 static void sunxi_nfc_randomize_bbm(struct nand_chip *nand, int page, u8 *bbm) in sunxi_nfc_randomize_bbm()
[all …]
Dmeson_nand.c110 struct nand_chip nand; member
219 static struct meson_nfc_nand_chip *to_meson_nand(struct nand_chip *nand) in to_meson_nand()
224 static void meson_nfc_select_chip(struct nand_chip *nand, int chip) in meson_nfc_select_chip()
267 static void meson_nfc_cmd_access(struct nand_chip *nand, int raw, bool dir, in meson_nfc_cmd_access()
333 static u8 *meson_nfc_oob_ptr(struct nand_chip *nand, int i) in meson_nfc_oob_ptr()
343 static u8 *meson_nfc_data_ptr(struct nand_chip *nand, int i) in meson_nfc_data_ptr()
354 static void meson_nfc_get_data_oob(struct nand_chip *nand, in meson_nfc_get_data_oob()
373 static void meson_nfc_set_data_oob(struct nand_chip *nand, in meson_nfc_set_data_oob()
420 static void meson_nfc_set_user_byte(struct nand_chip *nand, u8 *oob_buf) in meson_nfc_set_user_byte()
433 static void meson_nfc_get_user_byte(struct nand_chip *nand, u8 *oob_buf) in meson_nfc_get_user_byte()
[all …]
Dmtk_nand.c127 struct nand_chip nand; member
179 static inline struct mtk_nfc_nand_chip *to_mtk_nand(struct nand_chip *nand) in to_mtk_nand()
500 static void mtk_nfc_select_target(struct nand_chip *nand, unsigned int cs) in mtk_nfc_select_target()
662 struct mtk_nfc_nand_chip *nand = to_mtk_nand(chip); in mtk_nfc_bad_mark_swap() local
1191 struct nand_chip *nand = mtd_to_nand(mtd); in mtk_nfc_set_fdm() local
1210 struct nand_chip *nand = mtd_to_nand(mtd); in mtk_nfc_set_bad_mark_ctl() local
1223 struct nand_chip *nand = mtd_to_nand(mtd); in mtk_nfc_set_spare_per_sector() local
1255 struct nand_chip *nand = mtd_to_nand(mtd); in mtk_nfc_ecc_init() local
1370 struct nand_chip *nand; in mtk_nfc_nand_chip_init() local
1643 struct nand_chip *nand; in mtk_nfc_resume() local
Dfsmc_nand.c146 struct nand_chip nand; member
347 static int fsmc_setup_interface(struct nand_chip *nand, int csline, in fsmc_setup_interface()
866 struct nand_chip *nand) in fsmc_nand_probe_config_dt()
909 static int fsmc_nand_attach_chip(struct nand_chip *nand) in fsmc_nand_attach_chip()
1025 struct nand_chip *nand; in fsmc_nand_probe() local
Dmpc5121_nfc.c254 static void mpc5121_nfc_select_chip(struct nand_chip *nand, int chip) in mpc5121_nfc_select_chip()
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()
396 struct nand_chip *nand = mtd_to_nand(mtd); in mpc5121_nfc_copy_spare() local
Dstm32_fmc2_nand.c246 struct stm32_fmc2_nand nand; member
282 struct stm32_fmc2_nand *nand = to_fmc2_nand(chip); in stm32_fmc2_nfc_timings_init() local
337 struct stm32_fmc2_nand *nand = to_fmc2_nand(chip); in stm32_fmc2_nfc_select_chip() local
1395 struct stm32_fmc2_nand *nand = to_fmc2_nand(chip); in stm32_fmc2_nfc_calc_timings() local
1756 struct stm32_fmc2_nand *nand = &nfc->nand; in stm32_fmc2_nfc_parse_child() local
1856 struct stm32_fmc2_nand *nand; in stm32_fmc2_nfc_probe() local
2002 struct stm32_fmc2_nand *nand = &nfc->nand; in stm32_fmc2_nfc_remove() local
2039 struct stm32_fmc2_nand *nand = &nfc->nand; in stm32_fmc2_nfc_resume() local
Dtegra_nand.c460 struct tegra_nand_chip *nand = to_tegra_chip(chip); in tegra_nand_select_target() local
480 struct tegra_nand_chip *nand = to_tegra_chip(chip); in tegra_nand_hw_ecc() local
657 struct tegra_nand_chip *nand = to_tegra_chip(chip); in tegra_nand_read_page_hwecc() local
916 struct tegra_nand_chip *nand = to_tegra_chip(chip); in tegra_nand_attach_chip() local
1070 struct tegra_nand_chip *nand; in tegra_nand_chips_init() local
Domap2.c145 struct nand_chip nand; member
278 struct nand_chip *nand = mtd_to_nand(mtd); in omap_read_buf8() local
312 struct nand_chip *nand = mtd_to_nand(mtd); in omap_read_buf16() local
1920 struct nand_device *nand = mtd_to_nanddev(mtd); in omap_sw_ooblayout_ecc() local
1941 struct nand_device *nand = mtd_to_nanddev(mtd); in omap_sw_ooblayout_free() local
Ddiskonchip.c1301 struct nand_chip *nand = NULL; in doc_probe() local
1525 struct nand_chip *nand; in release_nanddoc() local
Dcafe_nand.c61 struct nand_chip nand; member
Dnand_base.c5361 struct nand_device *nand = mtd_to_nanddev(nand_to_mtd(chip)); in rawnand_dt_init() local
5998 static int rawnand_erase(struct nand_device *nand, const struct nand_pos *pos) in rawnand_erase()
6014 static int rawnand_markbad(struct nand_device *nand, in rawnand_markbad()
6023 static bool rawnand_isbad(struct nand_device *nand, const struct nand_pos *pos) in rawnand_isbad()
/drivers/mtd/nand/raw/atmel/
Dnand-controller.c471 static void atmel_nand_data_in(struct atmel_nand *nand, void *buf, in atmel_nand_data_in()
495 static void atmel_nand_data_out(struct atmel_nand *nand, const void *buf, in atmel_nand_data_out()
519 static int atmel_nand_waitrdy(struct atmel_nand *nand, unsigned int timeout_ms) in atmel_nand_waitrdy()
528 static int atmel_hsmc_nand_waitrdy(struct atmel_nand *nand, in atmel_hsmc_nand_waitrdy()
544 static void atmel_nand_select_target(struct atmel_nand *nand, in atmel_nand_select_target()
550 static void atmel_hsmc_nand_select_target(struct atmel_nand *nand, in atmel_hsmc_nand_select_target()
573 static int atmel_smc_nand_exec_instr(struct atmel_nand *nand, in atmel_smc_nand_exec_instr()
610 static int atmel_smc_nand_exec_op(struct atmel_nand *nand, in atmel_smc_nand_exec_op()
635 struct atmel_nand *nand = to_atmel_nand(chip); in atmel_hsmc_exec_cmd_addr() local
664 struct atmel_nand *nand = to_atmel_nand(chip); in atmel_hsmc_exec_rw() local
[all …]
/drivers/mtd/nand/raw/ingenic/
Dingenic_nand_drv.c144 struct ingenic_nand *nand = to_ingenic_nand(nand_to_mtd(chip)); in ingenic_nand_ecc_hwctl() local
152 struct ingenic_nand *nand = to_ingenic_nand(nand_to_mtd(chip)); in ingenic_nand_ecc_calculate() local
173 struct ingenic_nand *nand = to_ingenic_nand(nand_to_mtd(chip)); in ingenic_nand_ecc_correct() local
262 struct ingenic_nand *nand = to_ingenic_nand(nand_to_mtd(chip)); in ingenic_nand_exec_instr() local
316 struct ingenic_nand *nand = to_ingenic_nand(nand_to_mtd(chip)); in ingenic_nand_exec_op() local
351 struct ingenic_nand *nand; in ingenic_nand_init_chip() local
/drivers/watchdog/
Drc32434_wdt.c68 #define SET_BITS(addr, or, nand) \ argument
89 u32 or, nand; in rc32434_wdt_start() local
/drivers/staging/mt7621-dts/
Dmt7621.dtsi361 nand: nand@1e003000 { label
/drivers/mtd/nand/raw/gpmi-nand/
Dgpmi-nand.h138 struct nand_chip nand; member

12