Home
last modified time | relevance | path

Searched refs:nand_to_mtd (Results 1 – 25 of 62) sorted by relevance

123

/Linux-v5.4/drivers/mtd/nand/raw/
Dfsl_upm.c53 struct fsl_upm_nand *fun = to_fsl_upm_nand(nand_to_mtd(chip)); in fun_chip_ready()
65 struct mtd_info *mtd = nand_to_mtd(&fun->chip); in fun_wait_rnb()
79 struct fsl_upm_nand *fun = to_fsl_upm_nand(nand_to_mtd(chip)); in fun_cmd_ctrl()
108 struct fsl_upm_nand *fun = to_fsl_upm_nand(nand_to_mtd(chip)); in fun_select_chip()
123 struct fsl_upm_nand *fun = to_fsl_upm_nand(nand_to_mtd(chip)); in fun_read_byte()
130 struct fsl_upm_nand *fun = to_fsl_upm_nand(nand_to_mtd(chip)); in fun_read_buf()
139 struct fsl_upm_nand *fun = to_fsl_upm_nand(nand_to_mtd(chip)); in fun_write_buf()
155 struct mtd_info *mtd = nand_to_mtd(&fun->chip); in fun_chip_init()
320 struct mtd_info *mtd = nand_to_mtd(&fun->chip); in fun_remove()
Dtmio_nand.c133 struct tmio_nand *tmio = mtd_to_tmio(nand_to_mtd(chip)); in tmio_nand_hwcontrol()
164 struct tmio_nand *tmio = mtd_to_tmio(nand_to_mtd(chip)); in tmio_nand_dev_ready()
188 struct tmio_nand *tmio = mtd_to_tmio(nand_to_mtd(nand_chip)); in tmio_nand_wait()
225 struct tmio_nand *tmio = mtd_to_tmio(nand_to_mtd(chip)); in tmio_nand_read_byte()
245 struct tmio_nand *tmio = mtd_to_tmio(nand_to_mtd(chip)); in tmio_nand_write_buf()
252 struct tmio_nand *tmio = mtd_to_tmio(nand_to_mtd(chip)); in tmio_nand_read_buf()
259 struct tmio_nand *tmio = mtd_to_tmio(nand_to_mtd(chip)); in tmio_nand_enable_hwecc()
269 struct tmio_nand *tmio = mtd_to_tmio(nand_to_mtd(chip)); in tmio_nand_calculate_ecc()
384 mtd = nand_to_mtd(nand_chip); in tmio_probe()
Dsharpsl.c61 struct sharpsl_nand *sharpsl = mtd_to_sharpsl(nand_to_mtd(chip)); in sharpsl_nand_hwcontrol()
79 struct sharpsl_nand *sharpsl = mtd_to_sharpsl(nand_to_mtd(chip)); in sharpsl_nand_dev_ready()
85 struct sharpsl_nand *sharpsl = mtd_to_sharpsl(nand_to_mtd(chip)); in sharpsl_nand_enable_hwecc()
92 struct sharpsl_nand *sharpsl = mtd_to_sharpsl(nand_to_mtd(chip)); in sharpsl_nand_calculate_ecc()
140 mtd = nand_to_mtd(this); in sharpsl_nand_probe()
Ds3c2410.c449 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2410_nand_hwcontrol()
466 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2440_nand_hwcontrol()
485 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2410_nand_devready()
492 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2440_nand_devready()
499 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2412_nand_devready()
509 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2410_nand_correct_data()
591 info = s3c2410_nand_mtd_toinfo(nand_to_mtd(chip)); in s3c2410_nand_enable_hwecc()
602 info = s3c2410_nand_mtd_toinfo(nand_to_mtd(chip)); in s3c2412_nand_enable_hwecc()
613 info = s3c2410_nand_mtd_toinfo(nand_to_mtd(chip)); in s3c2440_nand_enable_hwecc()
621 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2410_nand_calculate_ecc()
[all …]
Dxway_nand.c108 struct mtd_info *mtd = nand_to_mtd(chip); in xway_cmd_ctrl()
129 return xway_readb(nand_to_mtd(chip), NAND_READ_DATA); in xway_read_byte()
137 buf[i] = xway_readb(nand_to_mtd(chip), NAND_WRITE_DATA); in xway_read_buf()
145 xway_writeb(nand_to_mtd(chip), NAND_WRITE_DATA, buf[i]); in xway_write_buf()
172 mtd = nand_to_mtd(&data->chip); in xway_nand_probe()
Dtxx9ndfmc.c104 struct platform_device *dev = mtd_to_platdev(nand_to_mtd(chip)); in txx9ndfmc_read_byte()
112 struct platform_device *dev = mtd_to_platdev(nand_to_mtd(chip)); in txx9ndfmc_write_buf()
124 struct platform_device *dev = mtd_to_platdev(nand_to_mtd(chip)); in txx9ndfmc_read_buf()
163 struct platform_device *dev = mtd_to_platdev(nand_to_mtd(chip)); in txx9ndfmc_dev_ready()
171 struct platform_device *dev = mtd_to_platdev(nand_to_mtd(chip)); in txx9ndfmc_calculate_ecc()
211 struct platform_device *dev = mtd_to_platdev(nand_to_mtd(chip)); in txx9ndfmc_enable_hwecc()
254 struct mtd_info *mtd = nand_to_mtd(chip); in txx9ndfmc_attach_chip()
321 mtd = nand_to_mtd(chip); in txx9ndfmc_probe()
Ddavinci_nand.c90 struct davinci_nand_info *info = to_davinci_nand(nand_to_mtd(nand)); in nand_davinci_hwcontrol()
109 struct davinci_nand_info *info = to_davinci_nand(nand_to_mtd(nand)); in nand_davinci_select_chip()
141 info = to_davinci_nand(nand_to_mtd(chip)); in nand_davinci_hwctl_1bit()
144 nand_davinci_readecc_1bit(nand_to_mtd(chip)); in nand_davinci_hwctl_1bit()
162 unsigned int ecc_val = nand_davinci_readecc_1bit(nand_to_mtd(chip)); in nand_davinci_calculate_1bit()
221 struct davinci_nand_info *info = to_davinci_nand(nand_to_mtd(chip)); in nand_davinci_hwctl_4bit()
257 struct davinci_nand_info *info = to_davinci_nand(nand_to_mtd(chip)); in nand_davinci_calculate_4bit()
295 struct davinci_nand_info *info = to_davinci_nand(nand_to_mtd(chip)); in nand_davinci_correct_4bit()
452 struct davinci_nand_info *info = to_davinci_nand(nand_to_mtd(chip)); in nand_davinci_dev_ready()
592 struct mtd_info *mtd = nand_to_mtd(chip); in davinci_nand_attach_chip()
[all …]
Dnand_toshiba.c19 struct mtd_info *mtd = nand_to_mtd(chip); in toshiba_nand_benand_eccstatus()
70 struct mtd_info *mtd = nand_to_mtd(chip); in toshiba_nand_benand_init()
94 struct mtd_info *mtd = nand_to_mtd(chip); in toshiba_nand_decode_id()
Dr852.c232 struct r852_device *dev = r852_get_dev(nand_to_mtd(chip)); in r852_write_buf()
266 struct r852_device *dev = r852_get_dev(nand_to_mtd(chip)); in r852_read_buf()
303 struct r852_device *dev = r852_get_dev(nand_to_mtd(chip)); in r852_read_byte()
317 struct r852_device *dev = r852_get_dev(nand_to_mtd(chip)); in r852_cmdctl()
389 struct r852_device *dev = r852_get_dev(nand_to_mtd(chip)); in r852_ready()
400 struct r852_device *dev = r852_get_dev(nand_to_mtd(chip)); in r852_ecc_hwctl()
433 struct r852_device *dev = r852_get_dev(nand_to_mtd(chip)); in r852_ecc_calculate()
469 struct r852_device *dev = r852_get_dev(nand_to_mtd(chip)); in r852_ecc_correct()
520 struct mtd_info *mtd = nand_to_mtd(chip); in r852_read_oob()
632 struct mtd_info *mtd = nand_to_mtd(dev->chip); in r852_register_nand_device()
[all …]
Dnand_bbt.c169 struct mtd_info *mtd = nand_to_mtd(this); in read_bbt()
262 struct mtd_info *mtd = nand_to_mtd(this); in read_abs_bbt()
290 struct mtd_info *mtd = nand_to_mtd(this); in scan_read_data()
315 struct mtd_info *mtd = nand_to_mtd(this); in scan_read_oob()
356 struct mtd_info *mtd = nand_to_mtd(this); in scan_write_bbt()
371 struct mtd_info *mtd = nand_to_mtd(this); in bbt_get_ver_offs()
392 struct mtd_info *mtd = nand_to_mtd(this); in read_abs_bbts()
417 struct mtd_info *mtd = nand_to_mtd(this); in scan_block_fast()
465 struct mtd_info *mtd = nand_to_mtd(this); in create_bbt()
527 struct mtd_info *mtd = nand_to_mtd(this); in search_bbt()
[all …]
Dnand_base.c292 struct mtd_info *mtd = nand_to_mtd(chip); in nand_bbm_get_next_page()
404 struct mtd_info *mtd = nand_to_mtd(chip); in nand_fill_oob()
443 struct mtd_info *mtd = nand_to_mtd(chip); in nand_do_write_oob()
513 struct mtd_info *mtd = nand_to_mtd(chip); in nand_default_block_markbad()
579 struct mtd_info *mtd = nand_to_mtd(chip); in nand_block_markbad_lowlevel()
969 struct mtd_info *mtd = nand_to_mtd(chip); in nand_fill_column_cycles()
1012 struct mtd_info *mtd = nand_to_mtd(chip); in nand_sp_exec_read_page_op()
1104 struct mtd_info *mtd = nand_to_mtd(chip); in nand_read_page_op()
1194 struct mtd_info *mtd = nand_to_mtd(chip); in nand_change_read_column_op()
1257 struct mtd_info *mtd = nand_to_mtd(chip); in nand_read_oob_op()
[all …]
Dhisi504_nand.c182 struct mtd_info *mtd = nand_to_mtd(chip); in hisi_nfc_dma_transfer()
254 struct mtd_info *mtd = nand_to_mtd(&host->chip); in hisi_nfc_send_cmd_readstart()
426 struct mtd_info *mtd = nand_to_mtd(chip); in hisi_nfc_cmdfunc()
521 struct mtd_info *mtd = nand_to_mtd(chip); in hisi_nand_read_page_hwecc()
553 struct mtd_info *mtd = nand_to_mtd(chip); in hisi_nand_read_oob()
571 struct mtd_info *mtd = nand_to_mtd(chip); in hisi_nand_write_page_hwecc()
642 struct mtd_info *mtd = nand_to_mtd(chip); in hisi_nfc_ecc_probe()
695 struct mtd_info *mtd = nand_to_mtd(chip); in hisi_nfc_attach_chip()
751 mtd = nand_to_mtd(chip); in hisi_nfc_probe()
Dfsl_elbc_nand.c310 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_cmdfunc()
544 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_write_buf()
637 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_read_page()
658 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_write_page()
673 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_write_subpage()
687 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_chip_init()
725 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_attach_chip()
833 struct mtd_info *mtd = nand_to_mtd(&priv->chip); in fsl_elbc_chip_remove()
921 mtd = nand_to_mtd(&priv->chip); in fsl_elbc_nand_probe()
923 if (!nand_to_mtd(&priv->chip)->name) { in fsl_elbc_nand_probe()
Domap2.c251 struct omap_nand_info *info = mtd_to_omap(nand_to_mtd(chip)); in omap_hwcontrol()
343 struct mtd_info *mtd = nand_to_mtd(chip); in omap_read_buf_pref()
391 struct mtd_info *mtd = nand_to_mtd(chip); in omap_write_buf_pref()
537 struct mtd_info *mtd = nand_to_mtd(chip); in omap_read_buf_dma_pref()
555 struct mtd_info *mtd = nand_to_mtd(chip); in omap_write_buf_dma_pref()
619 struct mtd_info *mtd = nand_to_mtd(chip); in omap_read_buf_irq_pref()
667 struct mtd_info *mtd = nand_to_mtd(chip); in omap_write_buf_irq_pref()
882 struct omap_nand_info *info = mtd_to_omap(nand_to_mtd(chip)); in omap_correct_data()
923 struct omap_nand_info *info = mtd_to_omap(nand_to_mtd(chip)); in omap_calculate_ecc()
947 struct omap_nand_info *info = mtd_to_omap(nand_to_mtd(chip)); in omap_enable_hwecc()
[all …]
Dnand_samsung.c13 struct mtd_info *mtd = nand_to_mtd(chip); in samsung_nand_decode_id()
119 struct mtd_info *mtd = nand_to_mtd(chip); in samsung_nand_init()
Dlpc32xx_slc.c388 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_nand_read_oob_syndrome()
398 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_nand_write_oob_syndrome()
605 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_nand_read_page_syndrome()
653 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_nand_read_page_raw_syndrome()
673 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_nand_write_page_syndrome()
711 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_nand_write_page_raw_syndrome()
723 struct mtd_info *mtd = nand_to_mtd(&host->nand_chip); in lpc32xx_nand_dma_setup()
775 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_nand_attach_chip()
854 mtd = nand_to_mtd(chip); in lpc32xx_nand_probe()
Dfsl_ifc_nand.c293 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_ifc_cmdfunc()
511 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_ifc_write_buf()
606 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_ifc_wait()
640 struct mtd_info *mtd = nand_to_mtd(chip); in check_erased_page()
670 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_ifc_read_page()
698 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_ifc_write_page()
708 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_ifc_attach_chip()
836 struct mtd_info *mtd = nand_to_mtd(&priv->chip); in fsl_ifc_chip_init()
948 struct mtd_info *mtd = nand_to_mtd(&priv->chip); in fsl_ifc_chip_remove()
1058 mtd = nand_to_mtd(&priv->chip); in fsl_ifc_nand_probe()
Dmpc5121_nfc.c255 struct mtd_info *mtd = nand_to_mtd(nand); in mpc5121_nfc_select_chip()
293 struct mtd_info *mtd = nand_to_mtd(nand); in ads5121_select_chip()
323 struct mtd_info *mtd = nand_to_mtd(chip); in mpc5121_nfc_command()
487 mpc5121_nfc_buf_copy(nand_to_mtd(chip), buf, len, 0); in mpc5121_nfc_read_buf()
494 mpc5121_nfc_buf_copy(nand_to_mtd(chip), (u_char *)buf, len, 1); in mpc5121_nfc_write_buf()
635 mtd = nand_to_mtd(chip); in mpc5121_nfc_probe()
Dlpc32xx_mlc.c323 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_waitfunc_nand()
343 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_waitfunc_controller()
437 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_read_page()
504 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_write_page_lowlevel()
574 struct mtd_info *mtd = nand_to_mtd(&host->nand_chip); in lpc32xx_dma_setup()
647 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_nand_attach_chip()
697 mtd = nand_to_mtd(nand_chip); in lpc32xx_nand_probe()
Dtango_nand.c177 struct mtd_info *mtd = nand_to_mtd(chip); in check_erased_page()
205 struct mtd_info *mtd = nand_to_mtd(chip); in decode_error_report()
278 struct mtd_info *mtd = nand_to_mtd(chip); in tango_read_page()
301 struct mtd_info *mtd = nand_to_mtd(chip); in tango_write_page()
368 struct mtd_info *mtd = nand_to_mtd(chip); in raw_read()
395 struct mtd_info *mtd = nand_to_mtd(chip); in raw_write()
563 mtd = nand_to_mtd(chip); in chip_init()
Dgpio.c75 struct gpiomtd *gpiomtd = gpio_nand_getpriv(nand_to_mtd(chip)); in gpio_nand_cmd_ctrl()
95 struct gpiomtd *gpiomtd = gpio_nand_getpriv(nand_to_mtd(chip)); in gpio_nand_devready()
280 mtd = nand_to_mtd(chip); in gpio_nand_probe()
Dsm_common.c101 struct mtd_info *mtd = nand_to_mtd(chip); in sm_block_markbad()
163 struct mtd_info *mtd = nand_to_mtd(chip); in sm_attach_chip()
Ddenali.c197 struct mtd_info *mtd = nand_to_mtd(chip); in denali_select_target()
246 struct mtd_info *mtd = nand_to_mtd(chip); in denali_payload_xfer()
283 struct mtd_info *mtd = nand_to_mtd(chip); in denali_oob_xfer()
413 struct mtd_ecc_stats *ecc_stats = &nand_to_mtd(chip)->ecc_stats; in denali_check_erased_page()
443 struct mtd_ecc_stats *ecc_stats = &nand_to_mtd(chip)->ecc_stats; in denali_hw_ecc_fixup()
478 struct mtd_ecc_stats *ecc_stats = &nand_to_mtd(chip)->ecc_stats; in denali_sw_ecc_fixup()
728 struct mtd_info *mtd = nand_to_mtd(chip); in denali_read_page()
760 struct mtd_info *mtd = nand_to_mtd(chip); in denali_write_page()
938 struct mtd_info *mtd = nand_to_mtd(chip); in denali_multidev_fixup()
993 struct mtd_info *mtd = nand_to_mtd(chip); in denali_attach_chip()
[all …]
/Linux-v5.4/drivers/mtd/nand/raw/ingenic/
Dingenic_nand_drv.c147 struct ingenic_nand *nand = to_ingenic_nand(nand_to_mtd(chip)); in ingenic_nand_select_chip()
163 struct ingenic_nand *nand = to_ingenic_nand(nand_to_mtd(chip)); in ingenic_nand_cmd_ctrl()
185 struct ingenic_nand *nand = to_ingenic_nand(nand_to_mtd(chip)); in ingenic_nand_dev_ready()
192 struct ingenic_nand *nand = to_ingenic_nand(nand_to_mtd(chip)); in ingenic_nand_ecc_hwctl()
200 struct ingenic_nand *nand = to_ingenic_nand(nand_to_mtd(chip)); in ingenic_nand_ecc_calculate()
221 struct ingenic_nand *nand = to_ingenic_nand(nand_to_mtd(chip)); in ingenic_nand_ecc_correct()
234 struct mtd_info *mtd = nand_to_mtd(chip); in ingenic_nand_attach_chip()
355 mtd = nand_to_mtd(chip); in ingenic_nand_init_chip()
/Linux-v5.4/drivers/mtd/nand/raw/bcm47xxnflash/
Dops_bcm4706.c213 struct mtd_info *mtd = nand_to_mtd(nand_chip); in bcm47xxnflash_ops_bcm4706_cmdfunc()
309 struct mtd_info *mtd = nand_to_mtd(nand_chip); in bcm47xxnflash_ops_bcm4706_read_byte()
343 bcm47xxnflash_ops_bcm4706_read(nand_to_mtd(nand_chip), buf, in bcm47xxnflash_ops_bcm4706_read_buf()
358 bcm47xxnflash_ops_bcm4706_write(nand_to_mtd(nand_chip), buf, in bcm47xxnflash_ops_bcm4706_write_buf()

123