/openbmc/u-boot/drivers/mtd/nand/raw/ |
H A D | mxs_nand_spl.c | 83 chip->cmdfunc(mtd, NAND_CMD_RESET, -1, -1); in mxs_flash_onfi_ident() 86 chip->cmdfunc(mtd, NAND_CMD_READID, 0x00, -1); in mxs_flash_onfi_ident() 93 chip->cmdfunc(mtd, NAND_CMD_READID, 0x00, -1); in mxs_flash_onfi_ident() 104 chip->cmdfunc(mtd, NAND_CMD_READID, 0x20, -1); in mxs_flash_onfi_ident() 111 chip->cmdfunc(mtd, NAND_CMD_PARAM, 0, -1); in mxs_flash_onfi_ident() 152 chip->cmdfunc(mtd, NAND_CMD_READ0, 0x0, page); in mxs_read_page_ecc() 169 chip->cmdfunc(mtd, NAND_CMD_READ0, mtd->writesize, page); in is_badblock() 187 nand_chip.cmdfunc = mxs_nand_command; in nand_init()
|
H A D | nand_base.c | 361 chip->cmdfunc(mtd, NAND_CMD_READOOB, in nand_block_bad() 495 chip->cmdfunc(mtd, NAND_CMD_STATUS, -1, -1); in nand_check_wp() 1071 chip->cmdfunc(mtd, NAND_CMD_RESET, -1, -1); in nand_reset() 1387 chip->cmdfunc(mtd, NAND_CMD_RNDOUT, in nand_read_subpage() 3038 if (chip->cmdfunc == NULL) in nand_set_defaults() 3039 chip->cmdfunc = nand_command; in nand_set_defaults() 3131 chip->cmdfunc(mtd, NAND_CMD_PARAM, 0, -1); in nand_flash_detect_ext_param_page() 3134 chip->cmdfunc(mtd, NAND_CMD_RNDOUT, in nand_flash_detect_ext_param_page() 3224 chip->cmdfunc(mtd, NAND_CMD_PARAM, 0, -1); in nand_flash_detect_onfi() 3297 chip->cmdfunc = nand_command_lp; in nand_flash_detect_onfi() [all …]
|
H A D | nand_util.c | 225 chip->cmdfunc(mtd, NAND_CMD_LOCK_STATUS, -1, 0); in nand_lock() 232 chip->cmdfunc(mtd, in nand_lock() 286 chip->cmdfunc(mtd, NAND_CMD_LOCK_STATUS, -1, page & chip->pagemask); in nand_get_lock_status() 326 chip->cmdfunc(mtd, NAND_CMD_STATUS, -1, -1); in nand_unlock() 335 chip->cmdfunc(mtd, NAND_CMD_LOCK_STATUS, -1, page & chip->pagemask); in nand_unlock() 363 chip->cmdfunc(mtd, NAND_CMD_UNLOCK1, -1, page & chip->pagemask); in nand_unlock() 376 chip->cmdfunc(mtd, NAND_CMD_UNLOCK2, -1, page & chip->pagemask); in nand_unlock()
|
H A D | zynq_nand.c | 429 chip->cmdfunc(mtd, NAND_CMD_READOOB, 0, page); in zynq_nand_read_oob() 456 chip->cmdfunc(mtd, NAND_CMD_SEQIN, mtd->writesize, page); in zynq_nand_write_oob() 468 chip->cmdfunc(mtd, NAND_CMD_PAGEPROG, -1, -1); in zynq_nand_write_oob() 515 chip->cmdfunc(mtd, NAND_CMD_RNDOUT, data_offs, -1); in zynq_nand_read_subpage_raw() 1079 nand_chip->cmdfunc = zynq_nand_cmd_function; in zynq_nand_init() 1114 nand_chip->cmdfunc(mtd, NAND_CMD_RESET, -1, -1); in zynq_nand_init() 1115 nand_chip->cmdfunc(mtd, NAND_CMD_READID, 0x00, -1); in zynq_nand_init() 1129 nand_chip->cmdfunc(mtd, NAND_CMD_SET_FEATURES, in zynq_nand_init() 1137 nand_chip->cmdfunc(mtd, NAND_CMD_GET_FEATURES, in zynq_nand_init()
|
H A D | davinci_nand.c | 378 chip->cmdfunc(mtd, NAND_CMD_SEQIN, 0x00, page); in nand_davinci_write_page() 393 chip->cmdfunc(mtd, NAND_CMD_PAGEPROG, -1, -1); in nand_davinci_write_page() 442 chip->cmdfunc(mtd, NAND_CMD_READOOB, 0, page); in nand_davinci_read_page_hwecc() 444 chip->cmdfunc(mtd, NAND_CMD_READ0, 0, page); in nand_davinci_read_page_hwecc()
|
H A D | mxc_nand.c | 397 chip->cmdfunc(mtd, NAND_CMD_READOOB, mtd->writesize, page); 420 chip->cmdfunc(mtd, NAND_CMD_READOOB, 450 chip->cmdfunc(mtd, NAND_CMD_READ0, 0x00, page); 533 chip->cmdfunc(mtd, NAND_CMD_READOOB, mtd->writesize, page); 556 chip->cmdfunc(mtd, NAND_CMD_SEQIN, mtd->writesize, page); 568 chip->cmdfunc(mtd, NAND_CMD_PAGEPROG, -1, -1); 1166 this->cmdfunc = mxc_nand_command; 1213 this->cmdfunc(mtd, NAND_CMD_RESET, -1, -1);
|
H A D | sunxi_nand.c | 820 nand->cmdfunc(mtd, NAND_CMD_RNDOUT, data_off, -1); in sunxi_nfc_hw_ecc_read_chunk() 825 nand->cmdfunc(mtd, NAND_CMD_RNDOUT, oob_off, -1); in sunxi_nfc_hw_ecc_read_chunk() 859 nand->cmdfunc(mtd, NAND_CMD_RNDOUT, oob_off, -1); in sunxi_nfc_hw_ecc_read_chunk() 868 nand->cmdfunc(mtd, NAND_CMD_RNDOUT, data_off, -1); in sunxi_nfc_hw_ecc_read_chunk() 870 nand->cmdfunc(mtd, NAND_CMD_RNDOUT, oob_off, -1); in sunxi_nfc_hw_ecc_read_chunk() 916 nand->cmdfunc(mtd, NAND_CMD_RNDOUT, in sunxi_nfc_hw_ecc_read_extra_oob() 945 nand->cmdfunc(mtd, NAND_CMD_RNDIN, data_off, -1); in sunxi_nfc_hw_ecc_write_chunk() 963 nand->cmdfunc(mtd, NAND_CMD_RNDIN, oob_off, -1); in sunxi_nfc_hw_ecc_write_chunk() 997 nand->cmdfunc(mtd, NAND_CMD_RNDIN, in sunxi_nfc_hw_ecc_write_extra_oob() 1052 chip->cmdfunc(mtd, NAND_CMD_READ0, 0, page); in sunxi_nfc_hw_ecc_read_subpage()
|
H A D | arasan_nfc.c | 605 chip->cmdfunc(mtd, NAND_CMD_READOOB, 0, page); in arasan_nand_read_oob() 617 chip->cmdfunc(mtd, NAND_CMD_SEQIN, mtd->writesize, page); in arasan_nand_write_oob() 1098 nand_chip->cmdfunc(mtd, NAND_CMD_RESET, -1, -1); in arasan_check_ondie() 1099 nand_chip->cmdfunc(mtd, NAND_CMD_READID, 0, -1); in arasan_check_ondie() 1111 nand_chip->cmdfunc(mtd, NAND_CMD_SET_FEATURES, in arasan_check_ondie() 1115 nand_chip->cmdfunc(mtd, NAND_CMD_GET_FEATURES, in arasan_check_ondie() 1208 nand_chip->cmdfunc = arasan_nand_cmd_function; in arasan_nand_init()
|
H A D | lpc32xx_nand_mlc.c | 338 chip->cmdfunc(mtd, NAND_CMD_READ0, 0, page); in lpc32xx_read_oob() 486 chip->cmdfunc(mtd, NAND_CMD_SEQIN, 0x200+0x210*i, page); in lpc32xx_write_oob() 490 chip->cmdfunc(mtd, NAND_CMD_PAGEPROG, -1, -1); in lpc32xx_write_oob()
|
H A D | mxs_nand.c | 896 nand->cmdfunc(mtd, NAND_CMD_READ0, mtd->writesize, page); in mxs_nand_ecc_read_oob() 905 nand->cmdfunc(mtd, NAND_CMD_READ0, mtd->writesize, page); in mxs_nand_ecc_read_oob() 937 nand->cmdfunc(mtd, NAND_CMD_SEQIN, mtd->writesize, page); in mxs_nand_ecc_write_oob() 939 nand->cmdfunc(mtd, NAND_CMD_PAGEPROG, -1, -1); in mxs_nand_ecc_write_oob()
|
H A D | fsmc_nand.c | 357 chip->cmdfunc(mtd, NAND_CMD_READ0, s * eccsize, page); in fsmc_read_page_hwecc() 373 chip->cmdfunc(mtd, NAND_CMD_READOOB, off, page); in fsmc_read_page_hwecc()
|
H A D | tegra_nand.c | 824 chip->cmdfunc(mtd, NAND_CMD_READOOB, 0, page); in nand_read_oob() 842 chip->cmdfunc(mtd, NAND_CMD_SEQIN, mtd->writesize, page); in nand_write_oob() 938 nand->cmdfunc = nand_command; in tegra_probe()
|
H A D | denali.c | 646 chip->cmdfunc(mtd, start_cmd, writesize, page); in denali_oob_xfer() 663 chip->cmdfunc(mtd, rnd_cmd, pos, -1); in denali_oob_xfer() 671 chip->cmdfunc(mtd, rnd_cmd, writesize + oob_skip, -1); in denali_oob_xfer() 682 chip->cmdfunc(mtd, rnd_cmd, size - len, -1); in denali_oob_xfer() 782 chip->cmdfunc(mtd, NAND_CMD_PAGEPROG, -1, -1); in denali_write_oob()
|
H A D | pxa3xx_nand.c | 496 chip->cmdfunc(mtd, NAND_CMD_READID, 0x00, -1); in pxa3xx_nand_init_timings() 1297 chip->cmdfunc(mtd, NAND_CMD_READ0, 0x00, page); in pxa3xx_nand_read_page_raw() 1511 chip->cmdfunc(mtd, NAND_CMD_RESET, 0, 0); in pxa3xx_nand_sensing() 1715 chip->cmdfunc = nand_cmdfunc_extended; in pxa3xx_nand_scan() 1786 chip->cmdfunc = nand_cmdfunc; in alloc_nand_resource()
|
H A D | omap_gpmc.c | 606 chip->cmdfunc(mtd, NAND_CMD_RNDOUT, data_pos, -1); in omap_read_page_bch() 610 chip->cmdfunc(mtd, NAND_CMD_RNDOUT, oob_pos, -1); in omap_read_page_bch()
|
H A D | vf610_nfc.c | 665 chip->cmdfunc = vf610_nfc_command; in vf610_nfc_nand_init()
|
H A D | atmel_nand.c | 1042 chip->cmdfunc(mtd, NAND_CMD_RNDOUT, in atmel_nand_read_page() 1059 chip->cmdfunc(mtd, NAND_CMD_RNDOUT, mtd->writesize, -1); in atmel_nand_read_page()
|
H A D | fsl_elbc_nand.c | 710 nand->cmdfunc = fsl_elbc_cmdfunc; in fsl_elbc_chip_init()
|
/openbmc/linux/drivers/mtd/nand/raw/ |
H A D | nand_legacy.c | 593 if (!chip->legacy.cmdfunc) in nand_legacy_set_defaults() 594 chip->legacy.cmdfunc = nand_command; in nand_legacy_set_defaults() 619 if (mtd->writesize > 512 && chip->legacy.cmdfunc == nand_command) in nand_legacy_adjust_cmdfunc() 620 chip->legacy.cmdfunc = nand_command_lp; in nand_legacy_adjust_cmdfunc() 637 if ((!chip->legacy.cmdfunc || !chip->legacy.select_chip) && in nand_legacy_check_hooks()
|
H A D | nand_hynix.c | 83 chip->legacy.cmdfunc(chip, cmd, -1, -1); in hynix_nand_cmd_op() 102 chip->legacy.cmdfunc(chip, NAND_CMD_NONE, column, -1); in hynix_nand_reg_write_op()
|
H A D | nand_base.c | 1401 chip->legacy.cmdfunc(chip, NAND_CMD_PARAM, page, -1); in nand_read_param_page_op() 1649 chip->legacy.cmdfunc(chip, NAND_CMD_PAGEPROG, -1, -1); in nand_prog_page_end_op() 1701 chip->legacy.cmdfunc(chip, NAND_CMD_SEQIN, offset_in_page, in nand_prog_page_op() 1704 chip->legacy.cmdfunc(chip, NAND_CMD_PAGEPROG, -1, -1); in nand_prog_page_op() 1774 chip->legacy.cmdfunc(chip, NAND_CMD_RNDIN, offset_in_page, -1); in nand_change_write_column_op() 1841 chip->legacy.cmdfunc(chip, NAND_CMD_READID, addr, -1); in nand_readid_op() 1891 chip->legacy.cmdfunc(chip, NAND_CMD_STATUS, -1, -1); in nand_status_op() 1921 chip->legacy.cmdfunc(chip, NAND_CMD_READ0, -1, -1); in nand_exit_status_op() 1970 chip->legacy.cmdfunc(chip, NAND_CMD_ERASE1, -1, page); in nand_erase_op() 1971 chip->legacy.cmdfunc(chip, NAND_CMD_ERASE2, -1, -1); in nand_erase_op() [all …]
|
H A D | nand_macronix.c | 275 chip->legacy.cmdfunc(chip, MXIC_CMD_POWER_DOWN, -1, -1); in nand_power_down_op()
|
H A D | mpc5121_nfc.c | 697 chip->legacy.cmdfunc = mpc5121_nfc_command; in mpc5121_nfc_probe()
|
/openbmc/linux/drivers/mtd/nand/raw/bcm47xxnflash/ |
H A D | ops_bcm4706.c | 385 b47n->nand_chip.legacy.cmdfunc = bcm47xxnflash_ops_bcm4706_cmdfunc; in bcm47xxnflash_ops_bcm4706_init()
|
/openbmc/u-boot/include/linux/mtd/ |
H A D | rawnand.h | 897 void (*cmdfunc)(struct mtd_info *mtd, unsigned command, int column, member
|