Searched refs:mtd (Results 76 - 100 of 423) sorted by relevance

1234567891011>>

/linux-master/drivers/mtd/
H A Dnftlmount.c14 #include <linux/mtd/mtd.h>
15 #include <linux/mtd/rawnand.h>
16 #include <linux/mtd/nftl.h>
32 struct mtd_info *mtd = nftl->mbd.mtd; local
39 the mtd device accordingly. We could even get rid of
41 nftl->EraseSize = nftl->mbd.mtd->erasesize;
42 nftl->nb_blocks = (u32)nftl->mbd.mtd->size / nftl->EraseSize;
53 ret = mtd_read(mtd, bloc
262 struct mtd_info *mtd = nftl->mbd.mtd; local
308 struct mtd_info *mtd = nftl->mbd.mtd; local
371 struct mtd_info *mtd = nftl->mbd.mtd; local
490 struct mtd_info *mtd = nftl->mbd.mtd; local
551 struct mtd_info *mtd = nftl->mbd.mtd; local
570 struct mtd_info *mtd = s->mbd.mtd; local
[all...]
H A Dnftlcore.c23 #include <linux/mtd/mtd.h>
24 #include <linux/mtd/rawnand.h>
25 #include <linux/mtd/nftl.h>
26 #include <linux/mtd/blktrans.h>
35 static void nftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) argument
40 if (!mtd_type_is_nand(mtd) || mtd->size > UINT_MAX)
43 if (memcmp(mtd->name, "DiskOnChip", 10))
46 pr_debug("NFTL: add_mtd for %s\n", mtd
123 nftl_read_oob(struct mtd_info *mtd, loff_t offs, size_t len, size_t *retlen, uint8_t *buf) argument
144 nftl_write_oob(struct mtd_info *mtd, loff_t offs, size_t len, size_t *retlen, uint8_t *buf) argument
167 nftl_write(struct mtd_info *mtd, loff_t offs, size_t len, size_t *retlen, uint8_t *buf, uint8_t *oob) argument
233 struct mtd_info *mtd = nftl->mbd.mtd; local
526 struct mtd_info *mtd = nftl->mbd.mtd; local
704 struct mtd_info *mtd = nftl->mbd.mtd; local
[all...]
/linux-master/drivers/mtd/hyperbus/
H A Dhyperbus-core.c9 #include <linux/mtd/hyperbus.h>
10 #include <linux/mtd/map.h>
11 #include <linux/mtd/mtd.h>
109 hbdev->mtd = do_map_probe("cfi_probe", map);
110 if (!hbdev->mtd) {
115 hbdev->mtd->dev.parent = dev;
116 mtd_set_of_node(hbdev->mtd, np);
118 ret = mtd_device_register(hbdev->mtd, NULL, 0);
120 dev_err(dev, "failed to register mtd devic
[all...]
/linux-master/drivers/mtd/maps/
H A Dpxa2xx-flash.c14 #include <linux/mtd/mtd.h>
15 #include <linux/mtd/map.h>
16 #include <linux/mtd/partitions.h>
38 struct mtd_info *mtd; member in struct:pxa2xx_flash_info
83 info->mtd = do_map_probe(flash->map_name, &info->map);
85 if (!info->mtd) {
92 info->mtd->dev.parent = &pdev->dev;
94 mtd_device_parse_register(info->mtd, probes, NULL, flash->parts,
105 mtd_device_unregister(info->mtd);
[all...]
H A Dsun_uflash.c23 #include <linux/mtd/mtd.h>
24 #include <linux/mtd/map.h>
40 struct map_info map; /* mtd map info */
41 struct mtd_info *mtd; /* mtd info */ member in struct:uflash_dev
91 up->mtd = do_map_probe("cfi_probe", &up->map);
92 if (!up->mtd) {
99 up->mtd->owner = THIS_MODULE;
101 mtd_device_register(up->mtd, NUL
[all...]
/linux-master/drivers/mtd/nand/raw/
H A Dnand_micron.c100 static int micron_nand_on_die_4_ooblayout_ecc(struct mtd_info *mtd, argument
113 static int micron_nand_on_die_4_ooblayout_free(struct mtd_info *mtd, argument
131 static int micron_nand_on_die_8_ooblayout_ecc(struct mtd_info *mtd, argument
135 struct nand_chip *chip = mtd_to_nand(mtd);
140 oobregion->offset = mtd->oobsize - chip->ecc.total;
146 static int micron_nand_on_die_8_ooblayout_free(struct mtd_info *mtd, argument
150 struct nand_chip *chip = mtd_to_nand(mtd);
156 oobregion->length = mtd->oobsize - chip->ecc.total - 2;
193 struct mtd_info *mtd = nand_to_mtd(chip); local
200 mtd
277 struct mtd_info *mtd = nand_to_mtd(chip); local
307 struct mtd_info *mtd = nand_to_mtd(chip); local
482 struct mtd_info *mtd = nand_to_mtd(chip); local
[all...]
H A Dfsl_ifc_nand.c16 #include <linux/mtd/mtd.h>
17 #include <linux/mtd/rawnand.h>
18 #include <linux/mtd/partitions.h>
29 /* mtd information per set */
84 static int fsl_ifc_ooblayout_ecc(struct mtd_info *mtd, int section, argument
87 struct nand_chip *chip = mtd_to_nand(mtd);
98 static int fsl_ifc_ooblayout_free(struct mtd_info *mtd, int section, argument
101 struct nand_chip *chip = mtd_to_nand(mtd);
106 if (mtd
139 set_addr(struct mtd_info *mtd, int column, int page_addr, int oob) argument
163 check_read_ecc(struct mtd_info *mtd, struct fsl_ifc_ctrl *ctrl, u32 eccstat, unsigned int bufnum) argument
172 fsl_ifc_run_command(struct mtd_info *mtd) argument
250 fsl_ifc_do_read(struct nand_chip *chip, int oob, struct mtd_info *mtd) argument
293 struct mtd_info *mtd = nand_to_mtd(chip); local
511 struct mtd_info *mtd = nand_to_mtd(chip); local
606 struct mtd_info *mtd = nand_to_mtd(chip); local
640 struct mtd_info *mtd = nand_to_mtd(chip); local
670 struct mtd_info *mtd = nand_to_mtd(chip); local
698 struct mtd_info *mtd = nand_to_mtd(chip); local
708 struct mtd_info *mtd = nand_to_mtd(chip); local
860 struct mtd_info *mtd = nand_to_mtd(&priv->chip); local
953 struct mtd_info *mtd = nand_to_mtd(&priv->chip); local
990 struct mtd_info *mtd; local
[all...]
H A Dsm_common.h7 #include <linux/mtd/mtd.h>
36 int sm_register_device(struct mtd_info *mtd, int smartmedia);
H A Dnand_samsung.c15 struct mtd_info *mtd = nand_to_mtd(chip); local
27 mtd->writesize = memorg->pagesize;
62 mtd->oobsize = memorg->oobsize;
70 mtd->erasesize = (128 * 1024) <<
123 struct mtd_info *mtd = nand_to_mtd(chip); local
125 if (mtd->writesize > 512)
H A Dfsl_elbc_nand.c23 #include <linux/mtd/mtd.h>
24 #include <linux/mtd/rawnand.h>
25 #include <linux/mtd/partitions.h>
34 /* mtd information per set */
68 static int fsl_elbc_ooblayout_ecc(struct mtd_info *mtd, int section, argument
71 struct nand_chip *chip = mtd_to_nand(mtd);
86 static int fsl_elbc_ooblayout_free(struct mtd_info *mtd, int section, argument
89 struct nand_chip *chip = mtd_to_nand(mtd);
97 if (mtd
151 set_addr(struct mtd_info *mtd, int column, int page_addr, int oob) argument
202 fsl_elbc_run_command(struct mtd_info *mtd) argument
309 struct mtd_info *mtd = nand_to_mtd(chip); local
542 struct mtd_info *mtd = nand_to_mtd(chip); local
635 struct mtd_info *mtd = nand_to_mtd(chip); local
656 struct mtd_info *mtd = nand_to_mtd(chip); local
671 struct mtd_info *mtd = nand_to_mtd(chip); local
685 struct mtd_info *mtd = nand_to_mtd(chip); local
723 struct mtd_info *mtd = nand_to_mtd(chip); local
843 struct mtd_info *mtd = nand_to_mtd(&priv->chip); local
869 struct mtd_info *mtd; local
[all...]
/linux-master/arch/sh/boards/mach-rsk/
H A Dsetup.c12 #include <linux/mtd/mtd.h>
13 #include <linux/mtd/partitions.h>
14 #include <linux/mtd/physmap.h>
15 #include <linux/mtd/map.h>
/linux-master/include/linux/mtd/
H A Dqinfo.h5 #include <linux/mtd/map.h>
9 #include <linux/mtd/mtd.h>
10 #include <linux/mtd/flashchip.h>
11 #include <linux/mtd/partitions.h>
/linux-master/drivers/mtd/devices/
H A Dpmc551.c93 #include <linux/mtd/mtd.h>
132 static int pmc551_point(struct mtd_info *mtd, loff_t from, size_t len,
135 static int pmc551_erase(struct mtd_info *mtd, struct erase_info *instr) argument
137 struct mypriv *priv = mtd->priv;
154 pmc551_point(mtd, instr->addr, instr->len, &retlen,
157 if (soff_hi == eoff_hi || mtd->size == priv->asize) {
170 if (soff_hi + priv->asize >= mtd->size) {
174 pmc551_point(mtd, (priv->base_map0 | soff_hi),
189 static int pmc551_point(struct mtd_info *mtd, loff_ argument
215 pmc551_unpoint(struct mtd_info *mtd, loff_t from, size_t len) argument
223 pmc551_read(struct mtd_info *mtd, loff_t from, size_t len, size_t * retlen, u_char * buf) argument
279 pmc551_write(struct mtd_info *mtd, loff_t to, size_t len, size_t * retlen, const u_char * buf) argument
656 struct mtd_info *mtd; local
823 struct mtd_info *mtd; local
[all...]
H A Dmchp48l640.c18 #include <linux/mtd/mtd.h>
19 #include <linux/mtd/partitions.h>
35 struct mtd_info mtd; member in struct:mchp48l640_flash
58 #define to_mchp48l640_flash(x) container_of(x, struct mchp48l640_flash, mtd)
167 static int mchp48l640_write_page(struct mtd_info *mtd, loff_t to, size_t len, argument
170 struct mchp48l640_flash *flash = to_mchp48l640_flash(mtd);
209 static int mchp48l640_write(struct mtd_info *mtd, loff_t to, size_t len, argument
212 struct mchp48l640_flash *flash = to_mchp48l640_flash(mtd);
225 ret = mchp48l640_write_page(mtd, wof
235 mchp48l640_read_page(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, unsigned char *buf) argument
267 mchp48l640_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, unsigned char *buf) argument
[all...]
H A Dblock2mtd.c2 * block2mtd.c - create an mtd from a block device
28 #include <linux/mtd/mtd.h>
41 struct mtd_info mtd; member in struct:block2mtd_dev
87 static int block2mtd_erase(struct mtd_info *mtd, struct erase_info *instr) argument
89 struct block2mtd_dev *dev = mtd->priv;
104 static int block2mtd_read(struct mtd_info *mtd, loff_t from, size_t len, argument
107 struct block2mtd_dev *dev = mtd->priv;
179 static int block2mtd_write(struct mtd_info *mtd, loff_t to, size_t len, argument
182 struct block2mtd_dev *dev = mtd
195 block2mtd_sync(struct mtd_info *mtd) argument
[all...]
H A Dmchp23k256.c11 #include <linux/mtd/mtd.h>
12 #include <linux/mtd/partitions.h>
30 struct mtd_info mtd; member in struct:mchp23k256_flash
39 #define to_mchp23k256_flash(x) container_of(x, struct mchp23k256_flash, mtd)
60 static int mchp23k256_write(struct mtd_info *mtd, loff_t to, size_t len, argument
63 struct mchp23k256_flash *flash = to_mchp23k256_flash(mtd);
99 static int mchp23k256_read(struct mtd_info *mtd, loff_t from, size_t len, argument
102 struct mchp23k256_flash *flash = to_mchp23k256_flash(mtd);
195 mtd_set_of_node(&flash->mtd, sp
[all...]
/linux-master/drivers/mtd/parsers/
H A Dtplink_safeloader.c8 #include <linux/mtd/mtd.h>
9 #include <linux/mtd/partitions.h>
21 static void *mtd_parser_tplink_safeloader_read_table(struct mtd_info *mtd) argument
31 np = mtd_get_of_node(mtd);
32 if (mtd_is_partition(mtd))
42 err = mtd_read(mtd, offset, sizeof(hdr), &bytes_read, (uint8_t *)&hdr);
44 pr_err("Failed to read from %s at 0x%x\n", mtd->name, offset);
54 err = mtd_read(mtd, offset + sizeof(hdr), size, &bytes_read, buf);
56 pr_err("Failed to read from %s at 0x%zx\n", mtd
73 mtd_parser_tplink_safeloader_parse(struct mtd_info *mtd, const struct mtd_partition **pparts, struct mtd_part_parser_data *data) argument
[all...]
H A Dparser_trx.c10 #include <linux/mtd/mtd.h>
11 #include <linux/mtd/partitions.h>
50 static int parser_trx_parse(struct mtd_info *mtd, argument
54 struct device_node *np = mtd_get_of_node(mtd);
73 err = mtd_read(mtd, 0, sizeof(trx), &bytes_read, (uint8_t *)&trx);
102 part->name = parser_trx_data_part_name(mtd, trx.offset[i]);
113 parts[i + 1].offset : mtd->size;
H A Dsharpslpart.c9 * drivers/mtd/nand/sharp_sl_logical.c
32 #include <linux/mtd/mtd.h>
33 #include <linux/mtd/partitions.h>
70 static int sharpsl_nand_check_ooblayout(struct mtd_info *mtd) argument
79 ret = mtd_ooblayout_free(mtd, section++, &oobfree);
98 static int sharpsl_nand_read_oob(struct mtd_info *mtd, loff_t offs, u8 *buf) argument
104 ops.ooblen = mtd->oobsize;
107 ret = mtd_read_oob(mtd, offs, &ops);
108 if (ret != 0 || mtd
166 sharpsl_nand_init_ftl(struct mtd_info *mtd, struct sharpsl_ftl *ftl) argument
227 sharpsl_nand_read_laddr(struct mtd_info *mtd, loff_t from, size_t len, void *buf, struct sharpsl_ftl *ftl) argument
[all...]
/linux-master/arch/mips/cobalt/
H A Dmtd.c9 #include <linux/mtd/partitions.h>
10 #include <linux/mtd/physmap.h>
/linux-master/drivers/mtd/lpddr/
H A Dlpddr2_nvm.c19 #include <linux/mtd/map.h>
20 #include <linux/mtd/mtd.h>
21 #include <linux/mtd/partitions.h>
233 static int lpddr2_nvm_do_block_op(struct mtd_info *mtd, loff_t start_add, argument
236 struct map_info *map = mtd->priv;
251 add += mtd->erasesize;
298 static int lpddr2_nvm_read(struct mtd_info *mtd, loff_t start_add, argument
301 struct map_info *map = mtd->priv;
316 static int lpddr2_nvm_write(struct mtd_info *mtd, loff_ argument
372 lpddr2_nvm_erase(struct mtd_info *mtd, struct erase_info *instr) argument
381 lpddr2_nvm_unlock(struct mtd_info *mtd, loff_t start_add, uint64_t len) argument
390 lpddr2_nvm_lock(struct mtd_info *mtd, loff_t start_add, uint64_t len) argument
413 struct mtd_info *mtd; local
[all...]
/linux-master/drivers/mtd/nand/
H A Dcore.c13 #include <linux/mtd/nand.h>
66 struct mtd_info *mtd = nanddev_to_mtd(nand); local
90 mtd->ecc_stats.badblocks++;
141 * nanddev_mtd_erase() - Generic mtd->_erase() implementation for NAND devices
142 * @mtd: MTD device
145 * This is a simple mtd->_erase() implementation iterating over all blocks
148 * Note that mtd->_erase should not be directly assigned to this helper,
155 int nanddev_mtd_erase(struct mtd_info *mtd, struct erase_info *einfo) argument
157 struct nand_device *nand = mtd_to_nanddev(mtd);
181 * @mtd
191 nanddev_mtd_max_bad_blocks(struct mtd_info *mtd, loff_t offs, size_t len) argument
354 struct mtd_info *mtd = nanddev_to_mtd(nand); local
[all...]
/linux-master/drivers/mtd/chips/
H A Dgen_probe.c10 #include <linux/mtd/mtd.h>
11 #include <linux/mtd/map.h>
12 #include <linux/mtd/cfi.h>
13 #include <linux/mtd/gen_probe.h>
23 struct mtd_info *mtd; local
35 mtd = check_cmd_set(map, 1); /* First the primary cmdset */
36 if (!mtd)
37 mtd = check_cmd_set(map, 0); /* Then the secondary */
39 if (mtd) {
219 struct mtd_info *mtd; local
[all...]
H A Dcfi_cmdset_0001.c13 * (see include/linux/mtd/cfi.h for selection)
34 #include <linux/mtd/xip.h>
35 #include <linux/mtd/map.h>
36 #include <linux/mtd/mtd.h>
37 #include <linux/mtd/cfi.h>
69 static int cfi_intelext_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
70 static int cfi_intelext_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
71 static int cfi_intelext_is_locked(struct mtd_info *mtd, loff_t ofs,
95 static int cfi_intelext_point (struct mtd_info *mtd, loff_
172 fixup_convert_atmel_pri(struct mtd_info *mtd) argument
212 fixup_at49bv640dx_lock(struct mtd_info *mtd) argument
224 fixup_intel_strataflash(struct mtd_info *mtd) argument
237 fixup_no_write_suspend(struct mtd_info *mtd) argument
250 fixup_st_m28w320ct(struct mtd_info *mtd) argument
259 fixup_st_m28w320cb(struct mtd_info *mtd) argument
279 fixup_LH28F640BF(struct mtd_info *mtd) argument
299 fixup_use_point(struct mtd_info *mtd) argument
308 fixup_use_write_buffers(struct mtd_info *mtd) argument
322 fixup_unlock_powerup_lock(struct mtd_info *mtd) argument
501 struct mtd_info *mtd; local
617 cfi_intelext_setup(struct mtd_info *mtd) argument
697 cfi_intelext_partition_fixup(struct mtd_info *mtd, struct cfi_private **pcfi) argument
1400 cfi_intelext_point(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, void **virt, resource_size_t *phys) argument
1453 cfi_intelext_unpoint(struct mtd_info *mtd, loff_t from, size_t len) argument
1532 cfi_intelext_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) argument
1644 cfi_intelext_write_words(struct mtd_info *mtd, loff_t to , size_t len, size_t *retlen, const u_char *buf) argument
1889 cfi_intelext_writev(struct mtd_info *mtd, const struct kvec *vecs, unsigned long count, loff_t to, size_t *retlen) argument
1941 cfi_intelext_write_buffers(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf) argument
2042 cfi_intelext_erase_varsize(struct mtd_info *mtd, struct erase_info *instr) argument
2048 cfi_intelext_sync(struct mtd_info *mtd) argument
2181 cfi_intelext_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) argument
2205 cfi_intelext_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) argument
2229 cfi_intelext_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) argument
2316 cfi_intelext_otp_walk(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf, otp_op_t action, int user_regs) argument
2450 cfi_intelext_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) argument
2458 cfi_intelext_read_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) argument
2466 cfi_intelext_write_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, const u_char *buf) argument
2474 cfi_intelext_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len) argument
2482 cfi_intelext_get_fact_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen, struct otp_info *buf) argument
2490 cfi_intelext_get_user_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen, struct otp_info *buf) argument
2499 cfi_intelext_save_locks(struct mtd_info *mtd) argument
2525 cfi_intelext_suspend(struct mtd_info *mtd) argument
2600 cfi_intelext_restore_locks(struct mtd_info *mtd) argument
2620 cfi_intelext_resume(struct mtd_info *mtd) argument
2651 cfi_intelext_reset(struct mtd_info *mtd) argument
2679 struct mtd_info *mtd; local
2686 cfi_intelext_destroy(struct mtd_info *mtd) argument
[all...]
/linux-master/drivers/mtd/nand/onenand/
H A Donenand_samsung.c18 #include <linux/mtd/mtd.h>
19 #include <linux/mtd/onenand.h>
20 #include <linux/mtd/partitions.h>
123 struct mtd_info *mtd; member in struct:s3c_onenand
218 struct onenand_chip *this = onenand->mtd->priv;
268 struct onenand_chip *this = onenand->mtd->priv;
310 static int s3c_onenand_wait(struct mtd_info *mtd, int state) argument
358 mtd->ecc_stats.failed++;
376 static int s3c_onenand_command(struct mtd_info *mtd, in argument
475 s3c_get_bufferram(struct mtd_info *mtd, int area) argument
494 onenand_read_bufferram(struct mtd_info *mtd, int area, unsigned char *buffer, int offset, size_t count) argument
505 onenand_write_bufferram(struct mtd_info *mtd, int area, const unsigned char *buffer, int offset, size_t count) argument
616 s5pc110_read_bufferram(struct mtd_info *mtd, int area, unsigned char *buffer, int offset, size_t count) argument
688 s5pc110_chip_probe(struct mtd_info *mtd) argument
694 s3c_onenand_bbt_wait(struct mtd_info *mtd, int state) argument
727 s3c_onenand_check_lock_status(struct mtd_info *mtd) argument
746 s3c_onenand_do_lock_cmd(struct mtd_info *mtd, loff_t ofs, size_t len, int cmd) argument
772 s3c_unlock_all(struct mtd_info *mtd) argument
801 s3c_onenand_setup(struct mtd_info *mtd) argument
838 struct mtd_info *mtd; local
945 struct mtd_info *mtd = platform_get_drvdata(pdev); local
952 struct mtd_info *mtd = dev_get_drvdata(dev); local
961 struct mtd_info *mtd = dev_get_drvdata(dev); local
[all...]

Completed in 216 milliseconds

1234567891011>>