Searched refs:mtd (Results 51 - 75 of 423) sorted by relevance

1234567891011>>

/linux-master/drivers/mtd/
H A Dmtdblock.c18 #include <linux/mtd/mtd.h>
19 #include <linux/mtd/blktrans.h>
44 static int erase_write (struct mtd_info *mtd, unsigned long pos, argument
57 ret = mtd_erase(mtd, &erase);
61 pos, len, mtd->name);
69 ret = mtd_write(mtd, pos, len, &retlen, buf);
80 struct mtd_info *mtd = mtdblk->mbd.mtd; local
87 "at 0x%lx, size 0x%x\n", mtd
113 struct mtd_info *mtd = mtdblk->mbd.mtd; local
183 struct mtd_info *mtd = mtdblk->mbd.mtd; local
317 mtdblock_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) argument
[all...]
H A Dmtdchar.c22 #include <linux/mtd/mtd.h>
23 #include <linux/mtd/partitions.h>
24 #include <linux/mtd/map.h>
31 * Data structure to hold the pointer to the mtd device as well
35 struct mtd_info *mtd; member in struct:mtd_file_info
42 return fixed_size_llseek(file, offset, orig, mfi->mtd->size);
50 struct mtd_info *mtd; local
59 mtd = get_mtd_device(NULL, devnum);
61 if (IS_ERR(mtd))
94 struct mtd_info *mtd = mfi->mtd; local
131 struct mtd_info *mtd = mfi->mtd; local
221 struct mtd_info *mtd = mfi->mtd; local
312 struct mtd_info *mtd = mfi->mtd; local
340 mtdchar_writeoob(struct file *file, struct mtd_info *mtd, uint64_t start, uint32_t length, void __user *ptr, uint32_t __user *retp) argument
382 mtdchar_readoob(struct file *file, struct mtd_info *mtd, uint64_t start, uint32_t length, void __user *ptr, uint32_t __user *retp) argument
443 shrink_ecclayout(struct mtd_info *mtd, struct nand_ecclayout_user *to) argument
491 get_oobinfo(struct mtd_info *mtd, struct nand_oobinfo *to) argument
541 mtdchar_blkpg_ioctl(struct mtd_info *mtd, struct blkpg_ioctl_arg *arg) argument
576 adjust_oob_length(struct mtd_info *mtd, uint64_t start, struct mtd_oob_ops *ops) argument
594 mtdchar_write_ioctl(struct mtd_info *mtd, struct mtd_write_req __user *argp) argument
692 mtdchar_read_ioctl(struct mtd_info *mtd, struct mtd_read_req __user *argp) argument
825 struct mtd_info *mtd = mfi->mtd; local
1234 struct mtd_info *mtd = mfi->mtd; local
1260 struct mtd_info *mtd = mfi->mtd; local
1348 struct mtd_info *mtd = mfi->mtd; local
1381 struct mtd_info *mtd = mfi->mtd; local
[all...]
H A Dssfdc.c15 #include <linux/mtd/mtd.h>
16 #include <linux/mtd/rawnand.h>
17 #include <linux/mtd/blktrans.h>
102 static int get_valid_cis_sector(struct mtd_info *mtd) argument
120 for (k = 0, offset = 0; k < 4; k++, offset += mtd->erasesize) {
121 if (mtd_block_isbad(mtd, offset)) {
122 ret = mtd_read(mtd, offset, SECTOR_SIZE, &retlen,
135 " on %s (mtd%d)\n", mtd
148 read_physical_sector(struct mtd_info *mtd, uint8_t *sect_buf, int sect_no) argument
163 read_raw_oob(struct mtd_info *mtd, loff_t offs, uint8_t *buf) argument
244 struct mtd_info *mtd = ssfdc->mbd.mtd; local
283 ssfdcr_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) argument
[all...]
H A Dmtdoops.c22 #include <linux/mtd/mtd.h>
58 struct mtd_info *mtd; member in struct:mtdoops_context
85 struct mtd_info *mtd = cxt->mtd; local
86 u32 start_page_offset = mtd_div_by_eb(offset, mtd) * mtd->erasesize;
88 u32 erase_pages = mtd->erasesize / record_size;
94 erase.len = mtd->erasesize;
96 ret = mtd_erase(mtd,
113 struct mtd_info *mtd = cxt->mtd; local
201 struct mtd_info *mtd = cxt->mtd; local
247 struct mtd_info *mtd = cxt->mtd; local
329 mtdoops_notify_add(struct mtd_info *mtd) argument
383 mtdoops_notify_remove(struct mtd_info *mtd) argument
[all...]
H A Dmtdconcat.c18 #include <linux/mtd/mtd.h>
19 #include <linux/mtd/concat.h>
30 struct mtd_info mtd; member in struct:mtd_concat
54 concat_read(struct mtd_info *mtd, loff_t from, size_t len, argument
57 struct mtd_concat *concat = CONCAT(mtd);
83 mtd->ecc_stats.failed++;
86 mtd->ecc_stats.corrected++;
106 concat_panic_write(struct mtd_info *mtd, loff_t to, size_t len, argument
109 struct mtd_concat *concat = CONCAT(mtd);
147 concat_write(struct mtd_info *mtd, loff_t to, size_t len, size_t * retlen, const u_char * buf) argument
185 concat_writev(struct mtd_info *mtd, const struct kvec *vecs, unsigned long count, loff_t to, size_t * retlen) argument
260 concat_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops) argument
317 concat_write_oob(struct mtd_info *mtd, loff_t to, struct mtd_oob_ops *ops) argument
363 concat_erase(struct mtd_info *mtd, struct erase_info *instr) argument
481 concat_xxlock(struct mtd_info *mtd, loff_t ofs, uint64_t len, bool is_lock) argument
519 concat_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) argument
524 concat_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) argument
529 concat_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) argument
551 concat_sync(struct mtd_info *mtd) argument
562 concat_suspend(struct mtd_info *mtd) argument
575 concat_resume(struct mtd_info *mtd) argument
586 concat_block_isbad(struct mtd_info *mtd, loff_t ofs) argument
609 concat_block_markbad(struct mtd_info *mtd, loff_t ofs) argument
901 mtd_concat_destroy(struct mtd_info *mtd) argument
[all...]
/linux-master/include/linux/mtd/
H A Dspear_smi.h14 #include <linux/mtd/mtd.h>
15 #include <linux/mtd/partitions.h>
H A Dnand-gpio.h5 #include <linux/mtd/rawnand.h>
H A Dnftl.h9 #include <linux/mtd/mtd.h>
10 #include <linux/mtd/blktrans.h>
12 #include <mtd/nftl-user.h>
44 int nftl_read_oob(struct mtd_info *mtd, loff_t offs, size_t len,
46 int nftl_write_oob(struct mtd_info *mtd, loff_t offs, size_t len,
/linux-master/drivers/mtd/devices/
H A Dms02-nv.c10 #include <linux/mtd/mtd.h>
53 static int ms02nv_read(struct mtd_info *mtd, loff_t from, argument
56 struct ms02nv_private *mp = mtd->priv;
63 static int ms02nv_write(struct mtd_info *mtd, loff_t to, argument
66 struct ms02nv_private *mp = mtd->priv;
106 struct mtd_info *mtd; local
141 mtd = kzalloc(sizeof(*mtd), GFP_KERNEL);
142 if (!mtd)
248 struct mtd_info *mtd = root_ms02nv_mtd; local
[all...]
H A Dphram.c28 #include <linux/mtd/mtd.h>
35 struct mtd_info mtd; member in struct:phram_mtd_list
42 static int phram_erase(struct mtd_info *mtd, struct erase_info *instr) argument
44 u_char *start = mtd->priv;
51 static int phram_point(struct mtd_info *mtd, loff_t from, size_t len, argument
54 *virt = mtd->priv + from;
59 static int phram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) argument
64 static int phram_read(struct mtd_info *mtd, loff_t from, size_t len, argument
67 u_char *start = mtd
74 phram_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf) argument
[all...]
H A Dbcm47xxsflash.c7 #include <linux/mtd/mtd.h>
69 static int bcm47xxsflash_erase(struct mtd_info *mtd, struct erase_info *erase) argument
71 struct bcm47xxsflash *b47s = mtd->priv;
95 static int bcm47xxsflash_read(struct mtd_info *mtd, loff_t from, size_t len, argument
98 struct bcm47xxsflash *b47s = mtd->priv;
102 if ((from + len) > mtd->size)
128 static int bcm47xxsflash_write_st(struct mtd_info *mtd, u32 offset, size_t len, argument
131 struct bcm47xxsflash *b47s = mtd->priv;
173 static int bcm47xxsflash_write_at(struct mtd_info *mtd, u3 argument
216 bcm47xxsflash_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf) argument
252 struct mtd_info *mtd = &b47s->mtd; local
[all...]
H A Dsst25l.c21 #include <linux/mtd/mtd.h>
22 #include <linux/mtd/partitions.h>
49 struct mtd_info mtd; member in struct:sst25l_flash
60 #define to_sst25l_flash(x) container_of(x, struct sst25l_flash, mtd)
166 static int sst25l_erase(struct mtd_info *mtd, struct erase_info *instr) argument
168 struct sst25l_flash *flash = to_sst25l_flash(mtd);
173 if ((uint32_t)instr->len % mtd->erasesize)
176 if ((uint32_t)instr->addr % mtd->erasesize)
198 addr += mtd
206 sst25l_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, unsigned char *buf) argument
249 sst25l_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const unsigned char *buf) argument
[all...]
/linux-master/fs/jffs2/
H A Dwritev.c13 #include <linux/mtd/mtd.h>
29 return mtd_writev(c->mtd, vecs, count, to, retlen);
36 ret = mtd_write(c->mtd, ofs, len, retlen, buf);
/linux-master/arch/arm/include/asm/mach/
H A Dflash.h31 void (*mmcontrol)(struct mtd_info *mtd, int sync_read);
/linux-master/drivers/mtd/nand/raw/
H A Dsm_common.c7 #include <linux/mtd/rawnand.h>
12 static int oob_sm_ooblayout_ecc(struct mtd_info *mtd, int section, argument
24 static int oob_sm_ooblayout_free(struct mtd_info *mtd, int section, argument
61 static int oob_sm_small_ooblayout_ecc(struct mtd_info *mtd, int section, argument
73 static int oob_sm_small_ooblayout_free(struct mtd_info *mtd, int section, argument
101 struct mtd_info *mtd = nand_to_mtd(chip); local
113 ops.ooblen = mtd->oobsize;
118 ret = mtd_write_oob(mtd, ofs, &ops);
163 struct mtd_info *mtd = nand_to_mtd(chip); local
171 if (mtd
185 sm_register_device(struct mtd_info *mtd, int smartmedia) argument
[all...]
/linux-master/drivers/mtd/maps/
H A Dplat-ram.c2 /* drivers/mtd/maps/plat-ram.c
20 #include <linux/mtd/mtd.h>
21 #include <linux/mtd/map.h>
22 #include <linux/mtd/partitions.h>
23 #include <linux/mtd/plat-ram.h>
27 /* private structure for each mtd platform ram device created */
31 struct mtd_info *mtd; member in struct:platram_info
77 if (info->mtd) {
78 mtd_device_unregister(info->mtd);
[all...]
H A Dlantiq-flash.c14 #include <linux/mtd/mtd.h>
15 #include <linux/mtd/map.h>
16 #include <linux/mtd/partitions.h>
17 #include <linux/mtd/cfi.h>
19 #include <linux/mtd/physmap.h>
41 struct mtd_info *mtd; member in struct:ltq_mtd
141 ltq_mtd->mtd = do_map_probe("cfi_probe", ltq_mtd->map);
144 if (!ltq_mtd->mtd) {
149 ltq_mtd->mtd
[all...]
H A Dtsunami_flash.c10 #include <linux/mtd/map.h>
11 #include <linux/mtd/mtd.h>
77 struct mtd_info *mtd; local
78 mtd = tsunami_flash_mtd;
79 if (mtd) {
80 mtd_device_unregister(mtd);
81 map_destroy(mtd);
H A Dsa1100-flash.c18 #include <linux/mtd/mtd.h>
19 #include <linux/mtd/map.h>
20 #include <linux/mtd/partitions.h>
21 #include <linux/mtd/concat.h>
30 struct mtd_info *mtd; member in struct:sa_subdev_info
35 struct mtd_info *mtd; member in struct:sa_info
60 if (subdev->mtd)
61 map_destroy(subdev->mtd);
116 subdev->mtd
[all...]
H A Dscb2_flash.c52 #include <linux/mtd/mtd.h>
53 #include <linux/mtd/map.h>
54 #include <linux/mtd/cfi.h>
72 static int scb2_fixup_mtd(struct mtd_info *mtd) argument
76 struct map_info *map = mtd->priv;
89 mtd->size = map->size;
104 mtd->erasesize /= 2;
105 for (i = 0; i < mtd->numeraseregions; i++) {
106 struct mtd_erase_region_info *region = &mtd
[all...]
/linux-master/drivers/mtd/nand/onenand/
H A Dgeneric.c13 #include <linux/mtd/mtd.h>
14 #include <linux/mtd/onenand.h>
15 #include <linux/mtd/partitions.h>
28 struct mtd_info mtd; member in struct:onenand_info
63 info->mtd.dev.parent = &pdev->dev;
64 info->mtd.priv = &info->onenand;
66 if (onenand_scan(&info->mtd, 1)) {
71 err = mtd_device_register(&info->mtd, pdata ? pdata->parts : NULL,
95 onenand_release(&info->mtd);
[all...]
/linux-master/drivers/mtd/spi-nor/
H A Dswp.c8 #include <linux/mtd/mtd.h>
9 #include <linux/mtd/spi-nor.h>
58 struct mtd_info *mtd = &nor->mtd; local
79 if (*len > mtd->size)
80 *len = mtd->size;
85 *ofs = mtd->size - *len;
160 struct mtd_info *mtd = &nor->mtd; local
250 struct mtd_info *mtd = &nor->mtd; local
355 spi_nor_lock(struct mtd_info *mtd, loff_t ofs, u64 len) argument
370 spi_nor_unlock(struct mtd_info *mtd, loff_t ofs, u64 len) argument
385 spi_nor_is_locked(struct mtd_info *mtd, loff_t ofs, u64 len) argument
428 struct mtd_info *mtd = &nor->mtd; local
[all...]
/linux-master/drivers/mtd/chips/
H A Dfwh_lock.h80 static int fwh_lock_varsize(struct mtd_info *mtd, loff_t ofs, uint64_t len) argument
84 ret = cfi_varsize_frob(mtd, fwh_xxlock_oneblock, ofs, len,
91 static int fwh_unlock_varsize(struct mtd_info *mtd, loff_t ofs, uint64_t len) argument
95 ret = cfi_varsize_frob(mtd, fwh_xxlock_oneblock, ofs, len,
101 static void fixup_use_fwh_lock(struct mtd_info *mtd) argument
105 mtd->_lock = fwh_lock_varsize;
106 mtd->_unlock = fwh_unlock_varsize;
H A Dchipreg.c12 #include <linux/mtd/map.h>
13 #include <linux/mtd/mtd.h>
83 void map_destroy(struct mtd_info *mtd) argument
85 struct map_info *map = mtd->priv;
88 map->fldrv->destroy(mtd);
92 kfree(mtd);
/linux-master/drivers/mtd/tests/
H A Dsubpagetest.c15 #include <linux/mtd/mtd.h>
26 static struct mtd_info *mtd; variable in typeref:struct:mtd_info
47 loff_t addr = (loff_t)ebnum * mtd->erasesize;
50 err = mtd_write(mtd, addr, subpgsize, &written, writebuf);
64 err = mtd_write(mtd, addr, subpgsize, &written, writebuf);
82 loff_t addr = (loff_t)ebnum * mtd->erasesize;
85 if (addr + (subpgsize * k) > (loff_t)(ebnum + 1) * mtd->erasesize)
88 err = mtd_write(mtd, addr, subpgsize * k, &written, writebuf);
121 loff_t addr = (loff_t)ebnum * mtd
[all...]

Completed in 187 milliseconds

1234567891011>>