Home
last modified time | relevance | path

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

12

/linux/drivers/mtd/nand/raw/
H A Dsharpsl.c60 struct sharpsl_nand *sharpsl = mtd_to_sharpsl(nand_to_mtd(chip)); in sharpsl_nand_hwcontrol()
78 struct sharpsl_nand *sharpsl = mtd_to_sharpsl(nand_to_mtd(chip)); in sharpsl_nand_dev_ready()
84 struct sharpsl_nand *sharpsl = mtd_to_sharpsl(nand_to_mtd(chip)); in sharpsl_nand_enable_hwecc()
91 struct sharpsl_nand *sharpsl = mtd_to_sharpsl(nand_to_mtd(chip)); in sharpsl_nand_calculate_ecc()
162 mtd = nand_to_mtd(this); in sharpsl_nand_probe()
220 ret = mtd_device_unregister(nand_to_mtd(chip)); in sharpsl_nand_remove()
H A Dtxx9ndfmc.c103 struct platform_device *dev = mtd_to_platdev(nand_to_mtd(chip)); in txx9ndfmc_read_byte()
111 struct platform_device *dev = mtd_to_platdev(nand_to_mtd(chip)); in txx9ndfmc_write_buf()
123 struct platform_device *dev = mtd_to_platdev(nand_to_mtd(chip)); in txx9ndfmc_read_buf()
162 struct platform_device *dev = mtd_to_platdev(nand_to_mtd(chip)); in txx9ndfmc_dev_ready()
170 struct platform_device *dev = mtd_to_platdev(nand_to_mtd(chip)); in txx9ndfmc_calculate_ecc()
210 struct platform_device *dev = mtd_to_platdev(nand_to_mtd(chip)); in txx9ndfmc_enable_hwecc()
253 struct mtd_info *mtd = nand_to_mtd(chip); in txx9ndfmc_attach_chip()
326 mtd = nand_to_mtd(chip); in txx9ndfmc_probe()
386 ret = mtd_device_unregister(nand_to_mtd(chip)); in txx9ndfmc_remove()
H A Dxway_nand.c109 struct mtd_info *mtd = nand_to_mtd(chip); in xway_cmd_ctrl()
130 return xway_readb(nand_to_mtd(chip), NAND_READ_DATA); in xway_read_byte()
138 buf[i] = xway_readb(nand_to_mtd(chip), NAND_WRITE_DATA); in xway_read_buf()
146 xway_writeb(nand_to_mtd(chip), NAND_WRITE_DATA, buf[i]); in xway_write_buf()
184 mtd = nand_to_mtd(&data->chip); in xway_nand_probe()
247 ret = mtd_device_unregister(nand_to_mtd(chip)); in xway_nand_remove()
H A 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()
494 struct mtd_info *mtd = nand_to_mtd(this); in create_bbt()
556 struct mtd_info *mtd = nand_to_mtd(this); in search_bbt()
[all …]
H A 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()
750 mtd = nand_to_mtd(chip); in hisi_nfc_probe()
807 ret = mtd_device_unregister(nand_to_mtd(chip)); in hisi_nfc_remove()
H A Dfsl_elbc_nand.c309 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_cmdfunc()
542 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_write_buf()
635 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_read_page()
656 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_write_page()
671 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_write_subpage()
685 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_chip_init()
723 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_attach_chip()
843 struct mtd_info *mtd = nand_to_mtd(&priv->chip); in fsl_elbc_chip_remove()
932 mtd = nand_to_mtd(&priv->chip); in fsl_elbc_nand_probe()
934 if (!nand_to_mtd(&priv->chip)->name) { in fsl_elbc_nand_probe()
[all …]
H A Dnuvoton-ma35d1-nand-controller.c237 struct mtd_info *mtd = nand_to_mtd(chip); in ma35_nand_hwecc_init()
391 struct mtd_info *mtd = nand_to_mtd(chip); in ma35_nfi_ecc_check()
435 struct mtd_info *mtd = nand_to_mtd(chip); in ma35_nand_do_write()
479 struct mtd_info *mtd = nand_to_mtd(chip); in ma35_nand_do_read()
531 struct mtd_info *mtd = nand_to_mtd(chip); in ma35_nand_format_subpage()
555 struct mtd_info *mtd = nand_to_mtd(chip); in ma35_nand_write_subpage_hwecc()
597 struct mtd_info *mtd = nand_to_mtd(chip); in ma35_nand_write_page_hwecc()
628 struct mtd_info *mtd = nand_to_mtd(chip); in ma35_nand_read_subpage_hwecc()
660 struct mtd_info *mtd = nand_to_mtd(chip); in ma35_nand_read_page_hwecc()
691 struct mtd_info *mtd = nand_to_mtd(chip); in ma35_nand_read_oob_hwecc()
[all …]
H A Dlpc32xx_slc.c386 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_nand_read_oob_syndrome()
396 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_nand_write_oob_syndrome()
611 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_nand_read_page_syndrome()
659 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_nand_read_page_raw_syndrome()
679 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_nand_write_page_syndrome()
717 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_nand_write_page_raw_syndrome()
729 struct mtd_info *mtd = nand_to_mtd(&host->nand_chip); in lpc32xx_nand_dma_setup()
783 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_nand_attach_chip()
879 mtd = nand_to_mtd(chip); in lpc32xx_nand_probe()
962 ret = mtd_device_unregister(nand_to_mtd(chip)); in lpc32xx_nand_remove()
H A Dnand_legacy.c195 struct mtd_info *mtd = nand_to_mtd(chip); in nand_wait_ready()
253 struct mtd_info *mtd = nand_to_mtd(chip); in nand_command()
392 struct mtd_info *mtd = nand_to_mtd(chip); in nand_command_lp()
535 struct mtd_info *mtd = nand_to_mtd(chip); in nand_wait()
616 struct mtd_info *mtd = nand_to_mtd(chip); in nand_legacy_adjust_cmdfunc()
H A Dfsl_ifc_nand.c294 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_ifc_cmdfunc()
512 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_ifc_write_buf()
607 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_ifc_wait()
641 struct mtd_info *mtd = nand_to_mtd(chip); in check_erased_page()
671 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_ifc_read_page()
706 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_ifc_write_page()
716 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_ifc_attach_chip()
868 struct mtd_info *mtd = nand_to_mtd(&priv->chip); in fsl_ifc_chip_init()
968 struct mtd_info *mtd = nand_to_mtd(&priv->chip); in fsl_ifc_chip_remove()
1078 mtd = nand_to_mtd(&priv->chip); in fsl_ifc_nand_probe()
[all …]
H A Dfsl_upm.c46 struct mtd_info *mtd = nand_to_mtd(&fun->chip); in fun_chip_init()
81 struct fsl_upm_nand *fun = to_fsl_upm_nand(nand_to_mtd(chip)); in func_exec_instr()
135 struct fsl_upm_nand *fun = to_fsl_upm_nand(nand_to_mtd(chip)); in fun_exec_op()
242 struct mtd_info *mtd = nand_to_mtd(chip); in fun_remove()
H A Dnand_samsung.c15 struct mtd_info *mtd = nand_to_mtd(chip); in samsung_nand_decode_id()
123 struct mtd_info *mtd = nand_to_mtd(chip); in samsung_nand_init()
H A 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()
445 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_read_page()
512 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_write_page_lowlevel()
582 struct mtd_info *mtd = nand_to_mtd(&host->nand_chip); in lpc32xx_dma_setup()
657 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_nand_attach_chip()
718 mtd = nand_to_mtd(nand_chip); in lpc32xx_nand_probe()
848 ret = mtd_device_unregister(nand_to_mtd(chip)); in lpc32xx_nand_remove()
H A Dgpio.c78 struct gpiomtd *gpiomtd = gpio_nand_getpriv(nand_to_mtd(chip)); in gpio_nand_exec_instr()
141 struct gpiomtd *gpiomtd = gpio_nand_getpriv(nand_to_mtd(chip)); in gpio_nand_exec_op()
274 ret = mtd_device_unregister(nand_to_mtd(chip)); in gpio_nand_remove()
355 mtd = nand_to_mtd(chip); in gpio_nand_probe()
H A Ddenali.c196 struct mtd_info *mtd = nand_to_mtd(chip); in denali_select_target()
245 struct mtd_info *mtd = nand_to_mtd(chip); in denali_payload_xfer()
282 struct mtd_info *mtd = nand_to_mtd(chip); in denali_oob_xfer()
412 struct mtd_ecc_stats *ecc_stats = &nand_to_mtd(chip)->ecc_stats; in denali_check_erased_page()
442 struct mtd_ecc_stats *ecc_stats = &nand_to_mtd(chip)->ecc_stats; in denali_hw_ecc_fixup()
477 struct mtd_ecc_stats *ecc_stats = &nand_to_mtd(chip)->ecc_stats; in denali_sw_ecc_fixup()
727 struct mtd_info *mtd = nand_to_mtd(chip); in denali_read_page()
759 struct mtd_info *mtd = nand_to_mtd(chip); in denali_write_page()
960 struct mtd_info *mtd = nand_to_mtd(chip); in denali_multidev_fixup()
1015 struct mtd_info *mtd = nand_to_mtd(chip); in denali_attach_chip()
[all …]
H A Dsh_flctl.c603 struct mtd_info *mtd = nand_to_mtd(chip); in flctl_read_page_hwecc()
614 struct mtd_info *mtd = nand_to_mtd(chip); in flctl_write_page_hwecc()
742 struct mtd_info *mtd = nand_to_mtd(chip); in flctl_cmdfunc()
918 struct sh_flctl *flctl = mtd_to_flctl(nand_to_mtd(chip)); in flctl_select_chip()
962 struct sh_flctl *flctl = mtd_to_flctl(nand_to_mtd(chip)); in flctl_write_buf()
970 struct sh_flctl *flctl = mtd_to_flctl(nand_to_mtd(chip)); in flctl_read_byte()
980 struct sh_flctl *flctl = mtd_to_flctl(nand_to_mtd(chip)); in flctl_read_buf()
989 struct mtd_info *mtd = nand_to_mtd(chip); in flctl_chip_attach_chip()
1154 flctl_mtd = nand_to_mtd(nand); in flctl_probe()
1211 ret = mtd_device_unregister(nand_to_mtd(chip)); in flctl_remove()
H A Dtegra_nand.c622 struct mtd_info *mtd = nand_to_mtd(chip); in tegra_nand_read_page_raw()
632 struct mtd_info *mtd = nand_to_mtd(chip); in tegra_nand_write_page_raw()
641 struct mtd_info *mtd = nand_to_mtd(chip); in tegra_nand_read_oob()
649 struct mtd_info *mtd = nand_to_mtd(chip); in tegra_nand_write_oob()
658 struct mtd_info *mtd = nand_to_mtd(chip); in tegra_nand_read_page_hwecc()
768 struct mtd_info *mtd = nand_to_mtd(chip); in tegra_nand_write_page_hwecc()
846 struct nand_device *base = mtd_to_nanddev(nand_to_mtd(chip)); in tegra_nand_get_strength()
920 struct mtd_info *mtd = nand_to_mtd(chip); in tegra_nand_attach_chip()
1116 mtd = nand_to_mtd(chip); in tegra_nand_chips_init()
1231 struct mtd_info *mtd = nand_to_mtd(chip); in tegra_nand_remove()
H A Dnand_micron.c193 struct mtd_info *mtd = nand_to_mtd(chip); in micron_nand_on_die_ecc_status_4()
277 struct mtd_info *mtd = nand_to_mtd(chip); in micron_nand_on_die_ecc_status_8()
307 struct mtd_info *mtd = nand_to_mtd(chip); in micron_nand_read_page_on_die_ecc()
482 struct mtd_info *mtd = nand_to_mtd(chip); in micron_nand_init()
H A 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()
H A Dcs553x_nand.c286 new_mtd = nand_to_mtd(this); in cs553x_init_one()
378 mtd_device_register(nand_to_mtd(&controllers[i]->chip), in cs553x_init()
396 struct mtd_info *mtd = nand_to_mtd(this); in cs553x_cleanup()
H A Dsocrates_nand.c156 mtd = nand_to_mtd(nand_chip); in socrates_nand_probe()
211 ret = mtd_device_unregister(nand_to_mtd(chip)); in socrates_nand_remove()
H A Dorion_nand.c115 mtd = nand_to_mtd(nc); in orion_nand_probe()
202 ret = mtd_device_unregister(nand_to_mtd(chip)); in orion_nand_remove()
H A Dpasemi_nand.c129 pasemi_nand_mtd = nand_to_mtd(chip); in pasemi_nand_probe()
208 pasemi_nand_mtd = nand_to_mtd(chip); in pasemi_nand_remove()
H A Dmeson_nand.c318 struct mtd_info *mtd = nand_to_mtd(nand); in meson_nfc_cmd_access()
563 struct mtd_info *mtd = nand_to_mtd(nand); in meson_nfc_ecc_correct()
697 struct mtd_info *mtd = nand_to_mtd(nand); in meson_nfc_rw_cmd_prepare_and_execute()
750 struct mtd_info *mtd = nand_to_mtd(nand); in meson_nfc_write_page_sub()
796 struct mtd_info *mtd = nand_to_mtd(nand); in meson_nfc_write_page_hwecc()
830 struct mtd_info *mtd = nand_to_mtd(nand); in meson_nfc_read_page_sub()
879 struct mtd_info *mtd = nand_to_mtd(nand); in meson_nfc_read_page_hwecc()
1224 struct mtd_info *mtd = nand_to_mtd(nand); in meson_chip_buffer_init()
1317 struct mtd_info *mtd = nand_to_mtd(nand); in meson_nand_attach_chip()
1429 mtd = nand_to_mtd(nand); in meson_nfc_nand_chip_init()
[all …]
/linux/drivers/mtd/nand/raw/bcm47xxnflash/
H A Dmain.c34 mtd = nand_to_mtd(&b47n->nand_chip); in bcm47xxnflash_probe()
66 ret = mtd_device_unregister(nand_to_mtd(chip)); in bcm47xxnflash_remove()

12