| /drivers/mtd/devices/ |
| A D | mtdram.c | 35 static struct mtd_info *mtd_info; variable 117 if (mtd_info) { in cleanup_mtdram() 118 mtd_device_unregister(mtd_info); in cleanup_mtdram() 119 vfree(mtd_info->priv); in cleanup_mtdram() 120 kfree(mtd_info); in cleanup_mtdram() 161 mtd_info = kmalloc(sizeof(struct mtd_info), GFP_KERNEL); in init_mtdram() 162 if (!mtd_info) in init_mtdram() 167 kfree(mtd_info); in init_mtdram() 168 mtd_info = NULL; in init_mtdram() 174 kfree(mtd_info); in init_mtdram() [all …]
|
| A D | slram.c | 61 struct mtd_info *mtdinfo; 76 static int slram_erase(struct mtd_info *, struct erase_info *); 77 static int slram_point(struct mtd_info *, loff_t, size_t, size_t *, void **, 79 static int slram_unpoint(struct mtd_info *, loff_t, size_t); 80 static int slram_read(struct mtd_info *, loff_t, size_t, size_t *, u_char *); 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() [all …]
|
| /drivers/mtd/ |
| A D | mtdcore.c | 109 struct mtd_info *mtd = container_of(kref, struct mtd_info, refcnt); in mtd_device_release() 417 struct mtd_info *mtd; in mtd_reboot_notifier() 536 struct mtd_info *mtd = priv; in mtd_nvmem_reg_read() 928 struct mtd_info *mtd = priv; in mtd_nvmem_user_otp_reg_read() 942 struct mtd_info *mtd = priv; in mtd_nvmem_fact_otp_reg_read() 1160 struct mtd_info *mtd; in register_mtd_user() 1186 struct mtd_info *mtd; in unregister_mtd_user() 1212 struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num) in get_mtd_device() 1285 struct mtd_info *tmp; in of_get_mtd_device_by_node() 1492 static void mtd_update_ecc_stats(struct mtd_info *mtd, struct mtd_info *master, in mtd_update_ecc_stats() [all …]
|
| A D | mtdconcat.c | 30 struct mtd_info mtd; 32 struct mtd_info **subdev; 62 struct mtd_info *subdev = concat->subdev[i]; in concat_read() 113 struct mtd_info *subdev = concat->subdev[i]; in concat_panic_write() 155 struct mtd_info *subdev = concat->subdev[i]; in concat_write() 213 struct mtd_info *subdev = concat->subdev[i]; in concat_writev() 269 struct mtd_info *subdev = concat->subdev[i]; in concat_read_oob() 329 struct mtd_info *subdev = concat->subdev[i]; in concat_write_oob() 366 struct mtd_info *subdev; in concat_erase() 637 struct mtd_info *mtd_concat_create(struct mtd_info *subdev[], /* subdevices to concatenate */ in mtd_concat_create() [all …]
|
| A D | mtdpart.c | 35 void release_mtd_partition(struct mtd_info *mtd) in release_mtd_partition() 41 static struct mtd_info *allocate_partition(struct mtd_info *parent, in allocate_partition() 45 struct mtd_info *master = mtd_get_master(parent); in allocate_partition() 50 struct mtd_info *child; in allocate_partition() 225 struct mtd_info *mtd = dev_get_drvdata(dev); in offset_show() 252 struct mtd_info *child; in mtd_add_partition() 307 struct mtd_info *child, *next; in __mtd_del_partition() 332 struct mtd_info *child, *next; in __del_mtd_partitions() 353 int del_mtd_partitions(struct mtd_info *mtd) in del_mtd_partitions() 521 struct mtd_info *master, in mtd_part_do_parse() [all …]
|
| A D | mtdcore.h | 10 struct mtd_info *__mtd_next_device(int i); 11 int __must_check add_mtd_device(struct mtd_info *mtd); 12 int del_mtd_device(struct mtd_info *mtd); 13 int add_mtd_partitions(struct mtd_info *, const struct mtd_partition *, int); 14 int del_mtd_partitions(struct mtd_info *); 15 void release_mtd_partition(struct mtd_info *mtd); 19 int parse_mtd_partitions(struct mtd_info *master, const char * const *types,
|
| A D | mtdpstore.c | 16 struct mtd_info *mtd; 30 struct mtd_info *mtd = cxt->mtd; in mtdpstore_block_isbad() 52 struct mtd_info *mtd = cxt->mtd; in mtdpstore_panic_block_isbad() 63 struct mtd_info *mtd = cxt->mtd; in mtdpstore_mark_used() 73 struct mtd_info *mtd = cxt->mtd; in mtdpstore_mark_unused() 83 struct mtd_info *mtd = cxt->mtd; in mtdpstore_block_mark_unused() 110 struct mtd_info *mtd = cxt->mtd; in mtdpstore_block_is_used() 128 struct mtd_info *mtd = cxt->mtd; in mtdpstore_is_empty() 142 struct mtd_info *mtd = cxt->mtd; in mtdpstore_mark_removed() 152 struct mtd_info *mtd = cxt->mtd; in mtdpstore_block_clear_removed() [all …]
|
| A D | mtdchar.c | 35 struct mtd_info *mtd; 50 struct mtd_info *mtd; in mtdchar_open() 94 struct mtd_info *mtd = mfi->mtd; in mtdchar_close() 131 struct mtd_info *mtd = mfi->mtd; in mtdchar_read() 221 struct mtd_info *mtd = mfi->mtd; in mtdchar_write() 312 struct mtd_info *mtd = mfi->mtd; in otp_select_filemode() 825 struct mtd_info *mtd = mfi->mtd; in mtdchar_ioctl() 1234 struct mtd_info *mtd = mfi->mtd; in mtdchar_unlocked_ioctl() 1260 struct mtd_info *mtd = mfi->mtd; in mtdchar_compat_ioctl() 1348 struct mtd_info *mtd = mfi->mtd; in mtdchar_get_unmapped_area() [all …]
|
| /drivers/mtd/chips/ |
| A D | map_absent.c | 30 static int map_absent_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *); 31 static int map_absent_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *); 32 static int map_absent_erase (struct mtd_info *, struct erase_info *); 33 static void map_absent_sync (struct mtd_info *); 34 static struct mtd_info *map_absent_probe(struct map_info *map); 35 static void map_absent_destroy (struct mtd_info *); 45 static struct mtd_info *map_absent_probe(struct map_info *map) in map_absent_probe() 47 struct mtd_info *mtd; in map_absent_probe() 82 static int map_absent_erase(struct mtd_info *mtd, struct erase_info *instr) in map_absent_erase() 87 static void map_absent_sync(struct mtd_info *mtd) in map_absent_sync() [all …]
|
| A D | map_rom.c | 21 static void maprom_nop (struct mtd_info *); 22 static struct mtd_info *map_rom_probe(struct map_info *map); 23 static int maprom_erase (struct mtd_info *mtd, struct erase_info *info); 24 static int maprom_point (struct mtd_info *mtd, loff_t from, size_t len, 26 static int maprom_unpoint(struct mtd_info *mtd, loff_t from, size_t len); 44 static struct mtd_info *map_rom_probe(struct map_info *map) in map_rom_probe() 46 struct mtd_info *mtd; in map_rom_probe() 73 static int maprom_point(struct mtd_info *mtd, loff_t from, size_t len, in maprom_point() 87 static int maprom_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in maprom_unpoint() 101 static void maprom_nop(struct mtd_info *mtd) in maprom_nop() [all …]
|
| A D | map_ram.c | 21 static int mapram_erase (struct mtd_info *, struct erase_info *); 22 static void mapram_nop (struct mtd_info *); 23 static struct mtd_info *map_ram_probe(struct map_info *map); 24 static int mapram_point (struct mtd_info *mtd, loff_t from, size_t len, 26 static int mapram_unpoint(struct mtd_info *mtd, loff_t from, size_t len); 35 static struct mtd_info *map_ram_probe(struct map_info *map) in map_ram_probe() 37 struct mtd_info *mtd; in map_ram_probe() 91 static int mapram_point(struct mtd_info *mtd, loff_t from, size_t len, in mapram_point() 105 static int mapram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in mapram_unpoint() 128 static int mapram_erase (struct mtd_info *mtd, struct erase_info *instr) in mapram_erase() [all …]
|
| A D | cfi_cmdset_0001.c | 68 static void cfi_intelext_sync (struct mtd_info *); 84 static int cfi_intelext_suspend (struct mtd_info *); 85 static void cfi_intelext_resume (struct mtd_info *); 88 static void cfi_intelext_destroy(struct mtd_info *); 92 static struct mtd_info *cfi_intelext_setup (struct mtd_info *); 250 static void fixup_st_m28w320ct(struct mtd_info *mtd) in fixup_st_m28w320ct() 279 static void fixup_LH28F640BF(struct mtd_info *mtd) in fixup_LH28F640BF() 299 static void fixup_use_point(struct mtd_info *mtd) in fixup_use_point() 501 struct mtd_info *mtd; in cfi_cmdset_0001() 617 static struct mtd_info *cfi_intelext_setup(struct mtd_info *mtd) in cfi_intelext_setup() [all …]
|
| A D | cfi_cmdset_0002.c | 72 static void cfi_amdstd_sync (struct mtd_info *); 73 static int cfi_amdstd_suspend (struct mtd_info *); 74 static void cfi_amdstd_resume (struct mtd_info *); 92 static void cfi_amdstd_destroy(struct mtd_info *); 95 static struct mtd_info *cfi_amdstd_setup (struct mtd_info *); 321 static void fixup_use_secsi(struct mtd_info *mtd) in fixup_use_secsi() 364 static void fixup_sst39vf(struct mtd_info *mtd) in fixup_sst39vf() 442 static void fixup_quirks(struct mtd_info *mtd) in fixup_quirks() 604 struct mtd_info *mtd; in cfi_cmdset_0002() 765 static struct mtd_info *cfi_amdstd_setup(struct mtd_info *mtd) in cfi_amdstd_setup() [all …]
|
| A D | gen_probe.c | 15 static struct mtd_info *check_cmd_set(struct map_info *, int); 21 struct mtd_info *mtd_do_chip_probe(struct map_info *map, struct chip_probe *cp) in mtd_do_chip_probe() 23 struct mtd_info *mtd; in mtd_do_chip_probe() 192 typedef struct mtd_info *cfi_cmdset_fn_t(struct map_info *, int); 198 static inline struct mtd_info *cfi_cmdset_unknown(struct map_info *map, in cfi_cmdset_unknown() 219 struct mtd_info *mtd; in cfi_cmdset_unknown() 232 static struct mtd_info *check_cmd_set(struct map_info *map, int primary) in check_cmd_set()
|
| /drivers/mtd/nand/raw/ |
| A D | mpc5121_nfc.c | 119 static void mpc5121_nfc_done(struct mtd_info *mtd); 122 static inline u16 nfc_read(struct mtd_info *mtd, uint reg) in nfc_read() 184 static inline void mpc5121_nfc_send_read_id(struct mtd_info *mtd) in mpc5121_nfc_send_read_id() 202 struct mtd_info *mtd = data; in mpc5121_nfc_irq() 213 static void mpc5121_nfc_done(struct mtd_info *mtd) in mpc5121_nfc_done() 256 struct mtd_info *mtd = nand_to_mtd(nand); in mpc5121_nfc_select_chip() 270 static int ads5121_chipselect_init(struct mtd_info *mtd) in ads5121_chipselect_init() 323 struct mtd_info *mtd = nand_to_mtd(chip); in mpc5121_nfc_command() 514 static int mpc5121_nfc_read_hw_config(struct mtd_info *mtd) in mpc5121_nfc_read_hw_config() 622 struct mtd_info *mtd; in mpc5121_nfc_probe() [all …]
|
| A D | sm_common.c | 12 static int oob_sm_ooblayout_ecc(struct mtd_info *mtd, int section, in oob_sm_ooblayout_ecc() 24 static int oob_sm_ooblayout_free(struct mtd_info *mtd, int section, in oob_sm_ooblayout_free() 61 static int oob_sm_small_ooblayout_ecc(struct mtd_info *mtd, int section, in oob_sm_small_ooblayout_ecc() 73 static int oob_sm_small_ooblayout_free(struct mtd_info *mtd, int section, in oob_sm_small_ooblayout_free() 101 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() 185 int sm_register_device(struct mtd_info *mtd, int smartmedia) in sm_register_device()
|
| A D | s3c2410.c | 443 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() 615 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2410_nand_calculate_ecc() 630 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2412_nand_calculate_ecc() 646 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2440_nand_calculate_ecc() 670 struct mtd_info *mtd = nand_to_mtd(this); in s3c2440_nand_read_buf() [all …]
|
| A D | mxc_nand.c | 128 void (*preset)(struct mtd_info *); 356 struct mtd_info *mtd = nand_to_mtd(chip); in get_ecc_status_v1() 387 struct mtd_info *mtd = nand_to_mtd(chip); in get_ecc_status_v2_v3() 709 struct mtd_info *mtd = nand_to_mtd(chip); in mxc_nand_read_page_v1() 741 struct mtd_info *mtd = nand_to_mtd(chip); in mxc_nand_read_page_v2_v3() 752 struct mtd_info *mtd = nand_to_mtd(chip); in mxc_nand_read_page() 774 struct mtd_info *mtd = nand_to_mtd(chip); in mxc_nand_read_page_raw() 789 struct mtd_info *mtd = nand_to_mtd(chip); in mxc_nand_read_oob() 805 struct mtd_info *mtd = nand_to_mtd(chip); in mxc_nand_write_page_ecc() 823 struct mtd_info *mtd = nand_to_mtd(chip); in mxc_nand_write_page_raw() [all …]
|
| /drivers/mtd/tests/ |
| A D | mtd_test.h | 16 int mtdtest_erase_eraseblock(struct mtd_info *mtd, unsigned int ebnum); 17 int mtdtest_scan_for_bad_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, 19 int mtdtest_erase_good_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, 22 int mtdtest_read(struct mtd_info *mtd, loff_t addr, size_t size, void *buf); 23 int mtdtest_write(struct mtd_info *mtd, loff_t addr, size_t size,
|
| A D | mtd_test.c | 10 int mtdtest_erase_eraseblock(struct mtd_info *mtd, unsigned int ebnum) in mtdtest_erase_eraseblock() 30 static int is_block_bad(struct mtd_info *mtd, unsigned int ebnum) in is_block_bad() 42 int mtdtest_scan_for_bad_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, in mtdtest_scan_for_bad_eraseblocks() 63 int mtdtest_erase_good_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, in mtdtest_erase_good_eraseblocks() 82 int mtdtest_read(struct mtd_info *mtd, loff_t addr, size_t size, void *buf) in mtdtest_read() 100 int mtdtest_write(struct mtd_info *mtd, loff_t addr, size_t size, in mtdtest_write()
|
| /drivers/mtd/nand/onenand/ |
| A D | onenand_base.c | 553 static int onenand_wait(struct mtd_info *mtd, int state) in onenand_wait() 698 static void onenand_setup_wait(struct mtd_info *mtd) in onenand_setup_wait() 1683 static void onenand_panic_wait(struct mtd_info *mtd) in onenand_panic_wait() 2407 static void onenand_sync(struct mtd_info *mtd) in onenand_sync() 2652 static void onenand_unlock_all(struct mtd_info *mtd) in onenand_unlock_all() 3656 static int onenand_chip_probe(struct mtd_info *mtd) in onenand_chip_probe() 3701 static int onenand_probe(struct mtd_info *mtd) in onenand_probe() 3796 static int onenand_suspend(struct mtd_info *mtd) in onenand_suspend() 3805 static void onenand_resume(struct mtd_info *mtd) in onenand_resume() 3826 int onenand_scan(struct mtd_info *mtd, int maxchips) in onenand_scan() [all …]
|
| A D | onenand_samsung.c | 123 struct mtd_info *mtd; 310 static int s3c_onenand_wait(struct mtd_info *mtd, int state) in s3c_onenand_wait() 688 static int s5pc110_chip_probe(struct mtd_info *mtd) in s5pc110_chip_probe() 727 static void s3c_onenand_check_lock_status(struct mtd_info *mtd) in s3c_onenand_check_lock_status() 772 static void s3c_unlock_all(struct mtd_info *mtd) in s3c_unlock_all() 801 static void s3c_onenand_setup(struct mtd_info *mtd) in s3c_onenand_setup() 838 struct mtd_info *mtd; in s3c_onenand_probe() 845 size = sizeof(struct mtd_info) + sizeof(struct onenand_chip); in s3c_onenand_probe() 945 struct mtd_info *mtd = platform_get_drvdata(pdev); in s3c_onenand_remove() 952 struct mtd_info *mtd = dev_get_drvdata(dev); in s3c_pm_ops_suspend() [all …]
|
| /drivers/mtd/lpddr/ |
| A D | lpddr_cmds.c | 19 static int lpddr_read(struct mtd_info *mtd, loff_t adr, size_t len, 21 static int lpddr_write_buffers(struct mtd_info *mtd, loff_t to, 23 static int lpddr_writev(struct mtd_info *mtd, const struct kvec *vecs, 25 static int lpddr_erase(struct mtd_info *mtd, struct erase_info *instr); 26 static int lpddr_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len); 27 static int lpddr_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len); 28 static int lpddr_point(struct mtd_info *mtd, loff_t adr, size_t len, 30 static int lpddr_unpoint(struct mtd_info *mtd, loff_t adr, size_t len); 35 struct mtd_info *lpddr_cmdset(struct map_info *map) in lpddr_cmdset() 40 struct mtd_info *mtd; in lpddr_cmdset() [all …]
|
| /drivers/mtd/nand/spi/ |
| A D | otp.c | 178 static int spinand_mtd_otp_info(struct mtd_info *mtd, size_t len, in spinand_mtd_otp_info() 199 static int spinand_mtd_fact_otp_info(struct mtd_info *mtd, size_t len, in spinand_mtd_fact_otp_info() 205 static int spinand_mtd_user_otp_info(struct mtd_info *mtd, size_t len, in spinand_mtd_user_otp_info() 211 static int spinand_mtd_otp_read(struct mtd_info *mtd, loff_t ofs, size_t len, in spinand_mtd_otp_read() 242 static int spinand_mtd_fact_otp_read(struct mtd_info *mtd, loff_t ofs, in spinand_mtd_fact_otp_read() 248 static int spinand_mtd_user_otp_read(struct mtd_info *mtd, loff_t ofs, in spinand_mtd_user_otp_read() 254 static int spinand_mtd_user_otp_write(struct mtd_info *mtd, loff_t ofs, in spinand_mtd_user_otp_write() 277 static int spinand_mtd_user_otp_erase(struct mtd_info *mtd, loff_t ofs, in spinand_mtd_user_otp_erase() 298 static int spinand_mtd_user_otp_lock(struct mtd_info *mtd, loff_t ofs, in spinand_mtd_user_otp_lock() 329 struct mtd_info *mtd = spinand_to_mtd(spinand); in spinand_set_mtd_otp_ops()
|
| /drivers/mtd/ubi/ |
| A D | gluebi.c | 44 struct mtd_info mtd; 84 static int gluebi_get_device(struct mtd_info *mtd) in gluebi_get_device() 130 static void gluebi_put_device(struct mtd_info *mtd) in gluebi_put_device() 153 static int gluebi_read(struct mtd_info *mtd, loff_t from, size_t len, in gluebi_read() 193 static int gluebi_write(struct mtd_info *mtd, loff_t to, size_t len, in gluebi_write() 234 static int gluebi_erase(struct mtd_info *mtd, struct erase_info *instr) in gluebi_erase() 282 struct mtd_info *mtd; in gluebi_create() 351 struct mtd_info *mtd; in gluebi_remove() 483 struct mtd_info *mtd = &gluebi->mtd; in ubi_gluebi_exit()
|