/linux/drivers/mtd/ |
H A D | nftlmount.c | 32 struct mtd_info *mtd = nftl->mbd.mtd; in find_boot_record() local 262 struct mtd_info *mtd = nftl->mbd.mtd; in check_free_sectors() local 308 struct mtd_info *mtd = nftl->mbd.mtd; in NFTL_formatblock() local 371 struct mtd_info *mtd = nftl->mbd.mtd; in check_sectors_in_chain() local 490 struct mtd_info *mtd = nftl->mbd.mtd; in check_and_mark_free_block() local 551 struct mtd_info *mtd = nftl->mbd.mtd; in get_fold_mark() local 570 struct mtd_info *mtd = s->mbd.mtd; in NFTL_mount() local
|
H A D | inftlcore.c | 35 static void inftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in inftl_add_mtd() 136 int inftl_read_oob(struct mtd_info *mtd, loff_t offs, size_t len, in inftl_read_oob() 156 int inftl_write_oob(struct mtd_info *mtd, loff_t offs, size_t len, in inftl_write_oob() 176 static int inftl_write(struct mtd_info *mtd, loff_t offs, size_t len, in inftl_write() 241 struct mtd_info *mtd = inftl->mbd.mtd; in INFTL_foldchain() local 465 struct mtd_info *mtd = inftl->mbd.mtd; in INFTL_findwriteunit() local 628 struct mtd_info *mtd = inftl->mbd.mtd; in INFTL_trydeletechain() local 750 struct mtd_info *mtd = inftl->mbd.mtd; in INFTL_deleteblock() local 859 struct mtd_info *mtd = inftl->mbd.mtd; in inftl_readblock() local
|
H A D | mtdpart.c | 29 static inline void free_partition(struct mtd_info *mtd) in free_partition() 35 void release_mtd_partition(struct mtd_info *mtd) in release_mtd_partition() 225 struct mtd_info *mtd = dev_get_drvdata(dev); in offset_show() local 305 static int __mtd_del_partition(struct mtd_info *mtd) in __mtd_del_partition() 330 static int __del_mtd_partitions(struct mtd_info *mtd) in __del_mtd_partitions() 353 int del_mtd_partitions(struct mtd_info *mtd) in del_mtd_partitions() 367 int mtd_del_partition(struct mtd_info *mtd, int partno) in mtd_del_partition() 734 uint64_t mtd_get_device_size(const struct mtd_info *mtd) in mtd_get_device_size()
|
H A D | mtdoops.c | 58 struct mtd_info *mtd; member 85 struct mtd_info *mtd = cxt->mtd; in mtdoops_erase_block() local 113 struct mtd_info *mtd = cxt->mtd; in mtdoops_erase() local 201 struct mtd_info *mtd = cxt->mtd; in mtdoops_write() local 247 struct mtd_info *mtd = cxt->mtd; in find_next_position() local 329 static void mtdoops_notify_add(struct mtd_info *mtd) in mtdoops_notify_add() 383 static void mtdoops_notify_remove(struct mtd_info *mtd) in mtdoops_notify_remove()
|
H A D | mtdblock.c | 44 static int erase_write (struct mtd_info *mtd, unsigned long pos, in erase_write() 80 struct mtd_info *mtd = mtdblk->mbd.mtd; in write_cached_data() local 113 struct mtd_info *mtd = mtdblk->mbd.mtd; in do_cached_write() local 183 struct mtd_info *mtd = mtdblk->mbd.mtd; in do_cached_read() local 317 static void mtdblock_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in mtdblock_add_mtd()
|
H A D | mtdsuper.c | 26 struct mtd_info *mtd, in mtd_get_sb() 80 struct mtd_info *mtd; in mtd_get_sb_by_nr() local 120 struct mtd_info *mtd; in get_tree_mtd() local
|
/linux/drivers/mtd/devices/ |
H A D | bcm47xxsflash.c | 69 static int bcm47xxsflash_erase(struct mtd_info *mtd, struct erase_info *erase) in bcm47xxsflash_erase() 95 static int bcm47xxsflash_read(struct mtd_info *mtd, loff_t from, size_t len, in bcm47xxsflash_read() 128 static int bcm47xxsflash_write_st(struct mtd_info *mtd, u32 offset, size_t len, in bcm47xxsflash_write_st() 173 static int bcm47xxsflash_write_at(struct mtd_info *mtd, u32 offset, size_t len, in bcm47xxsflash_write_at() 216 static int bcm47xxsflash_write(struct mtd_info *mtd, loff_t to, size_t len, in bcm47xxsflash_write() 252 struct mtd_info *mtd = &b47s->mtd; in bcm47xxsflash_fill_mtd() local
|
H A D | pmc551.c | 135 static int pmc551_erase(struct mtd_info *mtd, struct erase_info *instr) in pmc551_erase() 189 static int pmc551_point(struct mtd_info *mtd, loff_t from, size_t len, in pmc551_point() 215 static int pmc551_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in pmc551_unpoint() 223 static int pmc551_read(struct mtd_info *mtd, loff_t from, size_t len, in pmc551_read() 279 static int pmc551_write(struct mtd_info *mtd, loff_t to, size_t len, in pmc551_write() 656 struct mtd_info *mtd; in init_pmc551() local 823 struct mtd_info *mtd; in cleanup_pmc551() local
|
H A D | slram.c | 83 static int slram_erase(struct mtd_info *mtd, struct erase_info *instr) in slram_erase() 92 static int slram_point(struct mtd_info *mtd, loff_t from, size_t len, in slram_point() 102 static int slram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in slram_unpoint() 107 static int slram_read(struct mtd_info *mtd, loff_t from, size_t len, in slram_read() 117 static int slram_write(struct mtd_info *mtd, loff_t to, size_t len, in slram_write()
|
H A D | ms02-nv.c | 53 static int ms02nv_read(struct mtd_info *mtd, loff_t from, in ms02nv_read() 63 static int ms02nv_write(struct mtd_info *mtd, loff_t to, in ms02nv_write() 106 struct mtd_info *mtd; in ms02nv_init_one() local 248 struct mtd_info *mtd = root_ms02nv_mtd; in ms02nv_remove_one() local
|
/linux/drivers/mtd/nand/raw/ |
H A D | cafe_nand.c | 163 struct mtd_info *mtd = nand_to_mtd(chip); in cafe_nand_cmdfunc() local 333 struct mtd_info *mtd = id; in cafe_nand_interrupt() local 347 struct mtd_info *mtd = nand_to_mtd(chip); in cafe_nand_write_oob() local 356 struct mtd_info *mtd = nand_to_mtd(chip); in cafe_nand_read_oob() local 373 struct mtd_info *mtd = nand_to_mtd(chip); in cafe_nand_read_page() local 450 static int cafe_ooblayout_ecc(struct mtd_info *mtd, int section, in cafe_ooblayout_ecc() 464 static int cafe_ooblayout_free(struct mtd_info *mtd, int section, in cafe_ooblayout_free() 537 struct mtd_info *mtd = nand_to_mtd(chip); in cafe_nand_write_page_lowlevel() local 593 struct mtd_info *mtd = nand_to_mtd(chip); in cafe_nand_attach_chip() local 665 struct mtd_info *mtd; in cafe_nand_probe() local [all …]
|
H A D | nand_bbt.c | 169 struct mtd_info *mtd = nand_to_mtd(this); in read_bbt() local 262 struct mtd_info *mtd = nand_to_mtd(this); in read_abs_bbt() local 290 struct mtd_info *mtd = nand_to_mtd(this); in scan_read_data() local 315 struct mtd_info *mtd = nand_to_mtd(this); in scan_read_oob() local 356 struct mtd_info *mtd = nand_to_mtd(this); in scan_write_bbt() local 371 struct mtd_info *mtd = nand_to_mtd(this); in bbt_get_ver_offs() local 392 struct mtd_info *mtd = nand_to_mtd(this); in read_abs_bbts() local 417 struct mtd_info *mtd = nand_to_mtd(this); in scan_block_fast() local 494 struct mtd_info *mtd = nand_to_mtd(this); in create_bbt() local 556 struct mtd_info *mtd = nand_to_mtd(this); in search_bbt() local [all …]
|
H A D | nuvoton-ma35d1-nand-controller.c | 113 static int ma35_ooblayout_ecc(struct mtd_info *mtd, int section, in ma35_ooblayout_ecc() 127 static int ma35_ooblayout_free(struct mtd_info *mtd, int section, in ma35_ooblayout_free() 237 struct mtd_info *mtd = nand_to_mtd(chip); in ma35_nand_hwecc_init() local 391 struct mtd_info *mtd = nand_to_mtd(chip); in ma35_nfi_ecc_check() local 435 struct mtd_info *mtd = nand_to_mtd(chip); in ma35_nand_do_write() local 479 struct mtd_info *mtd = nand_to_mtd(chip); in ma35_nand_do_read() local 531 struct mtd_info *mtd = nand_to_mtd(chip); in ma35_nand_format_subpage() local 555 struct mtd_info *mtd = nand_to_mtd(chip); in ma35_nand_write_subpage_hwecc() local 597 struct mtd_info *mtd = nand_to_mtd(chip); in ma35_nand_write_page_hwecc() local 628 struct mtd_info *mtd = nand_to_mtd(chip); in ma35_nand_read_subpage_hwecc() local [all …]
|
H A D | nand_micron.c | 100 static int micron_nand_on_die_4_ooblayout_ecc(struct mtd_info *mtd, in micron_nand_on_die_4_ooblayout_ecc() 113 static int micron_nand_on_die_4_ooblayout_free(struct mtd_info *mtd, in micron_nand_on_die_4_ooblayout_free() 131 static int micron_nand_on_die_8_ooblayout_ecc(struct mtd_info *mtd, in micron_nand_on_die_8_ooblayout_ecc() 146 static int micron_nand_on_die_8_ooblayout_free(struct mtd_info *mtd, in micron_nand_on_die_8_ooblayout_free() 193 struct mtd_info *mtd = nand_to_mtd(chip); in micron_nand_on_die_ecc_status_4() local 277 struct mtd_info *mtd = nand_to_mtd(chip); in micron_nand_on_die_ecc_status_8() local 307 struct mtd_info *mtd = nand_to_mtd(chip); in micron_nand_read_page_on_die_ecc() local 482 struct mtd_info *mtd = nand_to_mtd(chip); in micron_nand_init() local
|
H A D | lpc32xx_slc.c | 137 static int lpc32xx_ooblayout_ecc(struct mtd_info *mtd, int section, in lpc32xx_ooblayout_ecc() 149 static int lpc32xx_ooblayout_free(struct mtd_info *mtd, int section, in lpc32xx_ooblayout_free() 386 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_nand_read_oob_syndrome() local 396 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_nand_write_oob_syndrome() local 425 static int lpc32xx_xmit_dma(struct mtd_info *mtd, dma_addr_t dma, in lpc32xx_xmit_dma() 485 static int lpc32xx_xfer(struct mtd_info *mtd, uint8_t *buf, int eccsubpages, in lpc32xx_xfer() 603 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_nand_read_page_syndrome() local 651 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_nand_read_page_raw_syndrome() local 671 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_nand_write_page_syndrome() local 709 struct mtd_info *mtd = nand_to_mtd(chip); in lpc32xx_nand_write_page_raw_syndrome() local [all …]
|
H A D | diskonchip.c | 362 static uint16_t __init doc200x_ident_chip(struct mtd_info *mtd, int nr) in doc200x_ident_chip() 393 static void __init doc2000_count_chips(struct mtd_info *mtd) in doc2000_count_chips() 810 static int doc200x_ooblayout_ecc(struct mtd_info *mtd, int section, in doc200x_ooblayout_ecc() 822 static int doc200x_ooblayout_free(struct mtd_info *mtd, int section, in doc200x_ooblayout_free() 862 static int __init find_media_headers(struct mtd_info *mtd, u_char *buf, const char *id, int findmir… in find_media_headers() 905 static inline int __init nftl_partscan(struct mtd_info *mtd, struct mtd_partition *parts) in nftl_partscan() 1011 static inline int __init inftl_partscan(struct mtd_info *mtd, struct mtd_partition *parts) in inftl_partscan() 1130 static int __init nftl_scan_bbt(struct mtd_info *mtd) in nftl_scan_bbt() 1165 static int __init inftl_scan_bbt(struct mtd_info *mtd) in inftl_scan_bbt() 1219 static inline int __init doc2000_init(struct mtd_info *mtd) in doc2000_init() [all …]
|
H A D | hisi504_nand.c | 182 struct mtd_info *mtd = nand_to_mtd(chip); in hisi_nfc_dma_transfer() local 254 struct mtd_info *mtd = nand_to_mtd(&host->chip); in hisi_nfc_send_cmd_readstart() local 389 static void set_addr(struct mtd_info *mtd, int column, int page_addr) in set_addr() 426 struct mtd_info *mtd = nand_to_mtd(chip); in hisi_nfc_cmdfunc() local 521 struct mtd_info *mtd = nand_to_mtd(chip); in hisi_nand_read_page_hwecc() local 553 struct mtd_info *mtd = nand_to_mtd(chip); in hisi_nand_read_oob() local 571 struct mtd_info *mtd = nand_to_mtd(chip); in hisi_nand_write_page_hwecc() local 612 static int hisi_ooblayout_ecc(struct mtd_info *mtd, int section, in hisi_ooblayout_ecc() 619 static int hisi_ooblayout_free(struct mtd_info *mtd, int section, in hisi_ooblayout_free() 642 struct mtd_info *mtd = nand_to_mtd(chip); in hisi_nfc_ecc_probe() local [all …]
|
H A D | nand_legacy.c | 195 struct mtd_info *mtd = nand_to_mtd(chip); in nand_wait_ready() local 253 struct mtd_info *mtd = nand_to_mtd(chip); in nand_command() local 392 struct mtd_info *mtd = nand_to_mtd(chip); in nand_command_lp() local 535 struct mtd_info *mtd = nand_to_mtd(chip); in nand_wait() local 616 struct mtd_info *mtd = nand_to_mtd(chip); in nand_legacy_adjust_cmdfunc() local
|
H A D | mtk_nand.c | 318 static int mtk_nfc_hw_runtime_config(struct mtd_info *mtd) in mtk_nfc_hw_runtime_config() 658 static void mtk_nfc_bad_mark_swap(struct mtd_info *mtd, u8 *buf, int raw) in mtk_nfc_bad_mark_swap() 672 static int mtk_nfc_format_subpage(struct mtd_info *mtd, u32 offset, in mtk_nfc_format_subpage() 707 static void mtk_nfc_format_page(struct mtd_info *mtd, const u8 *buf) in mtk_nfc_format_page() 774 static int mtk_nfc_do_write_page(struct mtd_info *mtd, struct nand_chip *chip, in mtk_nfc_do_write_page() 825 static int mtk_nfc_write_page(struct mtd_info *mtd, struct nand_chip *chip, in mtk_nfc_write_page() 886 struct mtd_info *mtd = nand_to_mtd(chip); in mtk_nfc_write_page_raw() local 897 struct mtd_info *mtd = nand_to_mtd(chip); in mtk_nfc_write_subpage_hwecc() local 914 static int mtk_nfc_update_ecc_stats(struct mtd_info *mtd, u8 *buf, u32 start, in mtk_nfc_update_ecc_stats() 939 static int mtk_nfc_read_subpage(struct mtd_info *mtd, struct nand_chip *chip, in mtk_nfc_read_subpage() [all …]
|
/linux/drivers/mtd/nand/onenand/ |
H A D | onenand_bbt.c | 56 static int create_bbt(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr *bd, int chip) in create_bbt() 131 static inline int onenand_memory_bbt (struct mtd_info *mtd, struct nand_bbt_descr *bd) in onenand_memory_bbt() 144 static int onenand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt) in onenand_isbad_bbt() 181 static int onenand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd) in onenand_scan_bbt() 229 int onenand_default_bbt(struct mtd_info *mtd) in onenand_default_bbt()
|
/linux/drivers/mtd/nand/ |
H A D | ecc.c | 163 static int nand_ooblayout_ecc_sp(struct mtd_info *mtd, int section, in nand_ooblayout_ecc_sp() 189 static int nand_ooblayout_free_sp(struct mtd_info *mtd, int section, in nand_ooblayout_free_sp() 223 static int nand_ooblayout_ecc_lp(struct mtd_info *mtd, int section, in nand_ooblayout_ecc_lp() 238 static int nand_ooblayout_free_lp(struct mtd_info *mtd, int section, in nand_ooblayout_free_lp() 268 static int nand_ooblayout_ecc_lp_hamming(struct mtd_info *mtd, int section, in nand_ooblayout_ecc_lp_hamming() 295 static int nand_ooblayout_free_lp_hamming(struct mtd_info *mtd, int section, in nand_ooblayout_free_lp_hamming() 471 struct mtd_info *mtd = nanddev_to_mtd(nand); in nand_ecc_is_strong_enough() local
|
H A D | core.c | 66 struct mtd_info *mtd = nanddev_to_mtd(nand); in nanddev_markbad() local 155 int nanddev_mtd_erase(struct mtd_info *mtd, struct erase_info *einfo) in nanddev_mtd_erase() 191 int nanddev_mtd_max_bad_blocks(struct mtd_info *mtd, loff_t offs, size_t len) in nanddev_mtd_max_bad_blocks() 354 struct mtd_info *mtd = nanddev_to_mtd(nand); in nanddev_init() local
|
/linux/drivers/mtd/lpddr/ |
H A D | lpddr2_nvm.c | 233 static int lpddr2_nvm_do_block_op(struct mtd_info *mtd, loff_t start_add, in lpddr2_nvm_do_block_op() 298 static int lpddr2_nvm_read(struct mtd_info *mtd, loff_t start_add, in lpddr2_nvm_read() 316 static int lpddr2_nvm_write(struct mtd_info *mtd, loff_t start_add, in lpddr2_nvm_write() 372 static int lpddr2_nvm_erase(struct mtd_info *mtd, struct erase_info *instr) in lpddr2_nvm_erase() 381 static int lpddr2_nvm_unlock(struct mtd_info *mtd, loff_t start_add, in lpddr2_nvm_unlock() 390 static int lpddr2_nvm_lock(struct mtd_info *mtd, loff_t start_add, in lpddr2_nvm_lock() 413 struct mtd_info *mtd; in lpddr2_nvm_probe() local
|
/linux/drivers/mtd/maps/ |
H A D | vmu-flash.c | 48 struct mtd_info *mtd; member 57 struct mtd_info *mtd, int partition) in ofs_to_block() 110 struct mtd_info *mtd) in maple_vmu_read_block() 227 struct mtd_info *mtd) in maple_vmu_write_block() 303 struct mtd_info *mtd) in vmu_flash_read_char() 350 static int vmu_flash_read(struct mtd_info *mtd, loff_t from, size_t len, in vmu_flash_read() 416 static int vmu_flash_write(struct mtd_info *mtd, loff_t to, size_t len, in vmu_flash_write() 493 static void vmu_flash_sync(struct mtd_info *mtd) in vmu_flash_sync() 717 struct mtd_info *mtd; in vmu_can_unload() local
|
/linux/drivers/mtd/nand/raw/ingenic/ |
H A D | ingenic_nand_drv.c | 61 static inline struct ingenic_nand *to_ingenic_nand(struct mtd_info *mtd) in to_ingenic_nand() 71 static int qi_lb60_ooblayout_ecc(struct mtd_info *mtd, int section, in qi_lb60_ooblayout_ecc() 86 static int qi_lb60_ooblayout_free(struct mtd_info *mtd, int section, in qi_lb60_ooblayout_free() 106 static int jz4725b_ooblayout_ecc(struct mtd_info *mtd, int section, in jz4725b_ooblayout_ecc() 121 static int jz4725b_ooblayout_free(struct mtd_info *mtd, int section, in jz4725b_ooblayout_free() 185 struct mtd_info *mtd = nand_to_mtd(chip); in ingenic_nand_attach_chip() local 353 struct mtd_info *mtd; in ingenic_nand_init_chip() local
|