Home
last modified time | relevance | path

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

123

/linux/drivers/mtd/nand/raw/
H A Ds3c2410.c443 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2410_nand_hwcontrol()
460 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2440_nand_hwcontrol()
479 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2410_nand_devready()
486 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2440_nand_devready()
493 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2412_nand_devready()
503 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2410_nand_correct_data()
585 info = s3c2410_nand_mtd_toinfo(nand_to_mtd(chip)); in s3c2410_nand_enable_hwecc()
596 info = s3c2410_nand_mtd_toinfo(nand_to_mtd(chip)); in s3c2412_nand_enable_hwecc()
607 info = s3c2410_nand_mtd_toinfo(nand_to_mtd(chip)); in s3c2440_nand_enable_hwecc()
615 struct mtd_info *mtd = nand_to_mtd(chi in s3c2410_nand_calculate_ecc()
[all...]
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()
327 mtd = nand_to_mtd(chip); in txx9ndfmc_probe()
387 ret = mtd_device_unregister(nand_to_mtd(chip)); in txx9ndfmc_remove()
H A 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()
403 struct r852_device *dev = r852_get_dev(nand_to_mtd(chip)); in r852_ecc_hwctl()
436 struct r852_device *dev = r852_get_dev(nand_to_mtd(chip)); in r852_ecc_calculate()
472 struct r852_device *dev = r852_get_dev(nand_to_mtd(chip)); in r852_ecc_correct()
523 struct mtd_info *mtd = nand_to_mtd(chip); in r852_read_oob()
634 struct mtd_info *mtd = nand_to_mtd(de in r852_register_nand_device()
[all...]
H A Dnand_toshiba.c52 struct mtd_info *mtd = nand_to_mtd(chip); in toshiba_nand_benand_eccstatus()
124 struct mtd_info *mtd = nand_to_mtd(chip); in toshiba_nand_benand_init()
150 struct mtd_info *mtd = nand_to_mtd(chip); in toshiba_nand_decode_id()
248 struct mtd_info *mtd = nand_to_mtd(chip); in tc58teg5dclta00_init()
H A Ddavinci_nand.c171 info = to_davinci_nand(nand_to_mtd(chip)); in nand_davinci_hwctl_1bit()
174 nand_davinci_readecc_1bit(nand_to_mtd(chip)); in nand_davinci_hwctl_1bit()
192 unsigned int ecc_val = nand_davinci_readecc_1bit(nand_to_mtd(chip)); in nand_davinci_calculate_1bit()
251 struct davinci_nand_info *info = to_davinci_nand(nand_to_mtd(chip)); in nand_davinci_hwctl_4bit()
287 struct davinci_nand_info *info = to_davinci_nand(nand_to_mtd(chip)); in nand_davinci_calculate_4bit()
325 struct davinci_nand_info *info = to_davinci_nand(nand_to_mtd(chip)); in nand_davinci_correct_4bit()
618 struct mtd_info *mtd = nand_to_mtd(chip); in davinci_nand_attach_chip()
801 struct davinci_nand_info *info = to_davinci_nand(nand_to_mtd(chip)); in davinci_nand_exec_op()
825 struct davinci_nand_info *info = to_davinci_nand(nand_to_mtd(chip)); in davinci_nand_setup_interface()
960 mtd = nand_to_mtd( in nand_davinci_probe()
[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(chi in hisi_nfc_remove()
[all...]
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(thi in search_bbt()
[all...]
H A Domap2.c265 struct omap_nand_info *info = mtd_to_omap(nand_to_mtd(chip)); in omap_nand_data_in_pref()
313 struct omap_nand_info *info = mtd_to_omap(nand_to_mtd(chip)); in omap_nand_data_out_pref()
381 struct omap_nand_info *info = mtd_to_omap(nand_to_mtd(chip)); in omap_nand_dma_transfer()
459 struct mtd_info *mtd = nand_to_mtd(chip); in omap_nand_data_in_dma_pref()
484 struct mtd_info *mtd = nand_to_mtd(chip); in omap_nand_data_out_dma_pref()
550 struct omap_nand_info *info = mtd_to_omap(nand_to_mtd(chip)); in omap_nand_data_in_irq_pref()
551 struct mtd_info *mtd = nand_to_mtd(&info->nand); in omap_nand_data_in_irq_pref()
592 struct omap_nand_info *info = mtd_to_omap(nand_to_mtd(chip)); in omap_nand_data_out_irq_pref()
593 struct mtd_info *mtd = nand_to_mtd(&info->nand); in omap_nand_data_out_irq_pref()
803 struct omap_nand_info *info = mtd_to_omap(nand_to_mtd(chi in omap_correct_data()
[all...]
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( in fsl_elbc_nand_probe()
[all...]
H A Dnand_base.c227 struct mtd_info *mtd = nand_to_mtd(chip); in nand_bbm_get_next_page()
314 struct mtd_info *mtd = nand_to_mtd(chip); in nand_isbad_bbm()
391 struct mtd_info *mtd = nand_to_mtd(chip); in nand_fill_oob()
430 struct mtd_info *mtd = nand_to_mtd(chip); in nand_do_write_oob()
504 struct mtd_info *mtd = nand_to_mtd(chip); in nand_default_block_markbad()
570 struct mtd_info *mtd = nand_to_mtd(chip); in nand_block_markbad_lowlevel()
1095 struct mtd_info *mtd = nand_to_mtd(chip); in nand_fill_column_cycles()
1144 struct mtd_info *mtd = nand_to_mtd(chip); in nand_sp_exec_read_page_op()
1345 struct mtd_info *mtd = nand_to_mtd(chip); in nand_read_page_op()
1442 struct mtd_info *mtd = nand_to_mtd(chi in nand_change_read_column_op()
[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(chi in ma35_nand_read_oob_hwecc()
[all...]
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 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()
603 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_nand_read_page_syndrome()
651 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_nand_read_page_raw_syndrome()
671 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_nand_write_page_syndrome()
709 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_nand_write_page_raw_syndrome()
721 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()
871 mtd = nand_to_mtd(chip); in lpc32xx_nand_probe()
954 ret = mtd_device_unregister(nand_to_mtd(chi in lpc32xx_nand_remove()
[all...]
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 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 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()
860 struct mtd_info *mtd = nand_to_mtd(&priv->chip); in fsl_ifc_chip_init()
953 struct mtd_info *mtd = nand_to_mtd(&priv->chip); in fsl_ifc_chip_remove()
1063 mtd = nand_to_mtd( in fsl_ifc_nand_probe()
[all...]
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()
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()
649 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_nand_attach_chip()
710 mtd = nand_to_mtd(nand_chip); in lpc32xx_nand_probe()
840 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 Dvf610_nfc.c512 struct mtd_info *mtd = nand_to_mtd(chip); in vf610_nfc_correct_data()
553 struct mtd_info *mtd = nand_to_mtd(chip); in vf610_nfc_read_page()
601 struct mtd_info *mtd = nand_to_mtd(chip); in vf610_nfc_write_page()
658 struct mtd_info *mtd = nand_to_mtd(chip); in vf610_nfc_write_page_raw()
688 struct mtd_info *mtd = nand_to_mtd(chip); in vf610_nfc_write_oob()
745 struct mtd_info *mtd = nand_to_mtd(chip); in vf610_nfc_attach_chip()
823 mtd = nand_to_mtd(chip); in vf610_nfc_probe()
906 ret = mtd_device_unregister(nand_to_mtd(chip)); in vf610_nfc_remove()
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(chi 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(chi in flctl_remove()
[all...]
/linux/drivers/mtd/nand/raw/ingenic/
H A Dingenic_nand_drv.c143 struct ingenic_nand *nand = to_ingenic_nand(nand_to_mtd(chip)); in ingenic_nand_ecc_hwctl()
151 struct ingenic_nand *nand = to_ingenic_nand(nand_to_mtd(chip)); in ingenic_nand_ecc_calculate()
172 struct ingenic_nand *nand = to_ingenic_nand(nand_to_mtd(chip)); in ingenic_nand_ecc_correct()
185 struct mtd_info *mtd = nand_to_mtd(chip); in ingenic_nand_attach_chip()
261 struct ingenic_nand *nand = to_ingenic_nand(nand_to_mtd(chip)); in ingenic_nand_exec_instr()
315 struct ingenic_nand *nand = to_ingenic_nand(nand_to_mtd(chip)); in ingenic_nand_exec_op()
392 mtd = nand_to_mtd(chip); in ingenic_nand_init_chip()
430 ret = mtd_device_unregister(nand_to_mtd(chip)); in ingenic_nand_cleanup_chips()
/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()
/linux/drivers/mtd/nand/raw/gpmi-nand/
H A Dgpmi-nand.c275 struct mtd_info *mtd = nand_to_mtd(chip); in bbm_in_data_chunk()
314 struct mtd_info *mtd = nand_to_mtd(chip); in set_geometry_by_ecc_info()
441 struct mtd_info *mtd = nand_to_mtd(&this->nand); in get_ecc_strength()
455 struct mtd_info *mtd = nand_to_mtd(chip); in set_geometry_for_large_oob()
582 struct mtd_info *mtd = nand_to_mtd(&this->nand); in legacy_set_geometry()
696 struct mtd_info *mtd = nand_to_mtd(&this->nand); in common_nfc_set_geometry()
1346 struct mtd_info *mtd = nand_to_mtd(&this->nand); in gpmi_alloc_dma_buffer()
1430 struct mtd_info *mtd = nand_to_mtd(chip); in gpmi_count_bitflips()
1547 struct mtd_info *mtd = nand_to_mtd(chip); in gpmi_ecc_read_page()
1684 struct mtd_info *mtd = nand_to_mtd(chi in gpmi_ecc_write_page()
[all...]

123