Searched refs:mtd (Results 176 - 200 of 423) sorted by relevance

1234567891011>>

/linux-master/drivers/mtd/nand/raw/
H A Dvf610_nfc.c29 #include <linux/mtd/mtd.h>
30 #include <linux/mtd/rawnand.h>
31 #include <linux/mtd/partitions.h>
512 struct mtd_info *mtd = nand_to_mtd(chip); local
525 nand_read_oob_op(&nfc->chip, page, 0, oob, mtd->oobsize);
533 mtd->oobsize, NULL, 0,
553 struct mtd_info *mtd = nand_to_mtd(chip); local
554 int trfr_sz = mtd->writesize + mtd
601 struct mtd_info *mtd = nand_to_mtd(chip); local
658 struct mtd_info *mtd = nand_to_mtd(chip); local
688 struct mtd_info *mtd = nand_to_mtd(chip); local
745 struct mtd_info *mtd = nand_to_mtd(chip); local
811 struct mtd_info *mtd; local
[all...]
H A Dpl35x-nand-controller.c23 #include <linux/mtd/mtd.h>
24 #include <linux/mtd/rawnand.h>
25 #include <linux/mtd/partitions.h>
157 static int pl35x_ecc_ooblayout16_ecc(struct mtd_info *mtd, int section, argument
160 struct nand_chip *chip = mtd_to_nand(mtd);
171 static int pl35x_ecc_ooblayout16_free(struct mtd_info *mtd, int section, argument
174 struct nand_chip *chip = mtd_to_nand(mtd);
470 struct mtd_info *mtd = nand_to_mtd(chip); local
485 mtd
508 struct mtd_info *mtd = nand_to_mtd(chip); local
599 struct mtd_info *mtd = nand_to_mtd(chip); local
899 struct mtd_info *mtd = nand_to_mtd(chip); local
945 struct mtd_info *mtd = nand_to_mtd(chip); local
1043 struct mtd_info *mtd; local
[all...]
H A Dlpc32xx_mlc.c19 #include <linux/mtd/mtd.h>
20 #include <linux/mtd/rawnand.h>
21 #include <linux/mtd/partitions.h>
29 #include <linux/mtd/lpc32xx_mlc.h>
129 static int lpc32xx_ooblayout_ecc(struct mtd_info *mtd, int section, argument
132 struct nand_chip *nand_chip = mtd_to_nand(mtd);
143 static int lpc32xx_ooblayout_free(struct mtd_info *mtd, int section, argument
146 struct nand_chip *nand_chip = mtd_to_nand(mtd);
323 struct mtd_info *mtd local
343 struct mtd_info *mtd = nand_to_mtd(chip); local
392 lpc32xx_xmit_dma(struct mtd_info *mtd, void *mem, int len, enum dma_transfer_direction dir) argument
437 struct mtd_info *mtd = nand_to_mtd(chip); local
504 struct mtd_info *mtd = nand_to_mtd(chip); local
574 struct mtd_info *mtd = nand_to_mtd(&host->nand_chip); local
645 struct mtd_info *mtd = nand_to_mtd(chip); local
687 struct mtd_info *mtd; local
[all...]
H A Dtxx9ndfmc.c15 #include <linux/mtd/mtd.h>
16 #include <linux/mtd/rawnand.h>
17 #include <linux/mtd/partitions.h>
75 static struct platform_device *mtd_to_platdev(struct mtd_info *mtd) argument
77 struct nand_chip *chip = mtd_to_nand(mtd);
253 struct mtd_info *mtd = nand_to_mtd(chip); local
260 if (mtd->writesize >= 512) {
318 struct mtd_info *mtd; local
327 mtd
378 struct mtd_info *mtd = drvdata->mtds[i]; local
[all...]
H A Dnand_jedec.c27 struct mtd_info *mtd = nand_to_mtd(chip); local
101 mtd->writesize = memorg->pagesize;
106 mtd->erasesize = memorg->pages_per_eraseblock * memorg->pagesize;
109 mtd->oobsize = memorg->oobsize;
H A Dsocrates_nand.c8 #include <linux/mtd/mtd.h>
9 #include <linux/mtd/rawnand.h>
10 #include <linux/mtd/partitions.h>
75 * @mtd: MTD device structure
140 struct mtd_info *mtd; local
156 mtd = nand_to_mtd(nand_chip);
166 mtd->name = "socrates_nand";
167 mtd->dev.parent = &ofdev->dev;
191 res = mtd_device_register(mtd, NUL
[all...]
H A Ddavinci_nand.c18 #include <linux/mtd/rawnand.h>
19 #include <linux/mtd/partitions.h>
23 #include <linux/platform_data/mtd-davinci.h>
24 #include <linux/platform_data/mtd-davinci-aemif.h>
64 static inline struct davinci_nand_info *to_davinci_nand(struct mtd_info *mtd) argument
66 return container_of(mtd_to_nand(mtd), struct davinci_nand_info, chip);
87 static inline uint32_t nand_davinci_readecc_1bit(struct mtd_info *mtd) argument
89 struct davinci_nand_info *info = to_davinci_nand(mtd);
379 static int hwecc4_ooblayout_small_ecc(struct mtd_info *mtd, int section, argument
399 static int hwecc4_ooblayout_small_free(struct mtd_info *mtd, in argument
508 struct mtd_info *mtd = nand_to_mtd(chip); local
721 struct mtd_info *mtd; local
[all...]
H A Dfsmc_nand.c11 * Based on drivers/mtd/nand/nomadik_nand.c (removed in v3.8)
28 #include <linux/mtd/mtd.h>
29 #include <linux/mtd/nand-ecc-sw-hamming.h>
30 #include <linux/mtd/rawnand.h>
33 #include <linux/mtd/partitions.h>
37 #include <mtd/mtd-abi.h>
167 static int fsmc_ecc1_ooblayout_ecc(struct mtd_info *mtd, int section, argument
170 struct nand_chip *chip = mtd_to_nand(mtd);
181 fsmc_ecc1_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
210 fsmc_ecc4_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
228 fsmc_ecc4_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
708 struct mtd_info *mtd = nand_to_mtd(chip); local
911 struct mtd_info *mtd = nand_to_mtd(nand); local
1024 struct mtd_info *mtd; local
[all...]
H A Dfsl_upm.c13 #include <linux/mtd/rawnand.h>
14 #include <linux/mtd/partitions.h>
15 #include <linux/mtd/mtd.h>
46 struct mtd_info *mtd = nand_to_mtd(&fun->chip); local
53 mtd->dev.parent = fun->dev;
60 mtd->name = devm_kasprintf(fun->dev, GFP_KERNEL, "0x%llx.%pOFn",
63 if (!mtd->name) {
72 ret = mtd_device_register(mtd, NULL, 0);
242 struct mtd_info *mtd local
[all...]
/linux-master/drivers/mtd/devices/
H A Ddocg3.c17 #include <linux/mtd/mtd.h>
18 #include <linux/mtd/partitions.h>
56 static int docg3_ooblayout_ecc(struct mtd_info *mtd, int section, argument
69 static int docg3_ooblayout_free(struct mtd_info *mtd, int section, argument
856 * @mtd: the device
859 * @ops: the mtd oob structure
865 static int doc_read_oob(struct mtd_info *mtd, loff_t from, argument
868 struct docg3 *docg3 = mtd->priv;
899 old_stats = mtd
1013 doc_block_isbad(struct mtd_info *mtd, loff_t from) argument
1184 doc_erase(struct mtd_info *mtd, struct erase_info *info) argument
1382 doc_write_oob(struct mtd_info *mtd, loff_t ofs, struct mtd_oob_ops *ops) argument
1753 doc_set_driver_info(int chip_id, struct mtd_info *mtd) argument
1810 struct mtd_info *mtd; local
1875 doc_release_device(struct mtd_info *mtd) argument
1895 struct mtd_info **docg3_floors, *mtd; local
1922 struct mtd_info **docg3_floors, *mtd; local
1973 struct mtd_info *mtd; local
[all...]
H A Dslram.c16 <name>: name of the device that will be listed in /proc/mtd
47 #include <linux/mtd/mtd.h>
83 static int slram_erase(struct mtd_info *mtd, struct erase_info *instr) argument
85 slram_priv_t *priv = mtd->priv;
92 static int slram_point(struct mtd_info *mtd, loff_t from, size_t len, argument
95 slram_priv_t *priv = mtd->priv;
102 static int slram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) argument
107 static int slram_read(struct mtd_info *mtd, loff_t from, size_t len, argument
110 slram_priv_t *priv = mtd
117 slram_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf) argument
[all...]
/linux-master/drivers/mtd/maps/
H A Dvmu-flash.c13 #include <linux/mtd/mtd.h>
14 #include <linux/mtd/map.h>
48 struct mtd_info *mtd; member in struct:memcard
57 struct mtd_info *mtd, int partition)
65 mpart = mtd->priv;
110 struct mtd_info *mtd)
120 mpart = mtd->priv;
227 struct mtd_info *mtd)
235 mpart = mtd
56 ofs_to_block(unsigned long src_ofs, struct mtd_info *mtd, int partition) argument
109 maple_vmu_read_block(unsigned int num, unsigned char *buf, struct mtd_info *mtd) argument
226 maple_vmu_write_block(unsigned int num, const unsigned char *buf, struct mtd_info *mtd) argument
302 vmu_flash_read_char(unsigned long ofs, int *retval, struct mtd_info *mtd) argument
350 vmu_flash_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) argument
416 vmu_flash_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf) argument
493 vmu_flash_sync(struct mtd_info *mtd) argument
717 struct mtd_info *mtd; local
[all...]
H A Dimpa7.c13 #include <linux/mtd/mtd.h>
14 #include <linux/mtd/map.h>
15 #include <linux/mtd/partitions.h>
H A Dmap_funcs.c10 #include <linux/mtd/map.h>
11 #include <linux/mtd/xip.h>
/linux-master/drivers/mtd/nand/spi/
H A Dparagon.c10 #include <linux/mtd/spinand.h>
41 static int pn26g0xa_ooblayout_ecc(struct mtd_info *mtd, int section, argument
53 static int pn26g0xa_ooblayout_free(struct mtd_info *mtd, int section, argument
/linux-master/drivers/bcma/
H A Ddriver_chipcommon_pflash.c11 #include <linux/mtd/physmap.h>
/linux-master/arch/mips/cavium-octeon/
H A Dflash_setup.c13 #include <linux/mtd/mtd.h>
14 #include <linux/mtd/map.h>
17 #include <linux/mtd/partitions.h>
/linux-master/drivers/mtd/spi-nor/
H A Dxilinx.c7 #include <linux/mtd/spi-nor.h>
140 nor->mtd.writebufsize = page_size;
142 nor->mtd.erasesize = 8 * page_size;
146 nor->mtd.erasesize = nor->info->sector_size;
H A Desmt.c7 #include <linux/mtd/spi-nor.h>
H A Dintel.c7 #include <linux/mtd/spi-nor.h>
H A Deverspin.c7 #include <linux/mtd/spi-nor.h>
/linux-master/drivers/nvmem/
H A Du-boot-env.c11 #include <linux/mtd/mtd.h>
29 struct mtd_info *mtd; member in struct:u_boot_env
58 err = mtd_read(priv->mtd, offset, bytes, &bytes_read, val);
60 dev_err(dev, "Failed to read from mtd: %d\n", err);
217 priv->mtd = of_get_mtd_device_by_node(np);
218 if (IS_ERR(priv->mtd)) {
219 dev_err_probe(dev, PTR_ERR(priv->mtd), "Failed to get %pOF MTD\n", np);
220 return PTR_ERR(priv->mtd);
225 config.size = priv->mtd
[all...]
/linux-master/drivers/mtd/
H A Dmtd_blkdevs.c13 #include <linux/mtd/blktrans.h>
14 #include <linux/mtd/mtd.h>
199 if (!dev->mtd)
208 ret = __get_mtd_device(dev->mtd);
239 if (dev->mtd) {
242 __put_mtd_device(dev->mtd);
256 if (!dev->mtd)
387 ret = device_add_disk(&new->mtd->dev, gd, NULL);
434 then put mtd devic
449 blktrans_notify_remove(struct mtd_info *mtd) argument
460 blktrans_notify_add(struct mtd_info *mtd) argument
478 struct mtd_info *mtd; local
[all...]
/linux-master/drivers/mtd/nand/raw/gpmi-nand/
H A Dgpmi-nand.c14 #include <linux/mtd/partitions.h>
273 struct mtd_info *mtd = nand_to_mtd(chip); local
282 i = (mtd->writesize * 8 - geo->metadata_size * 8) /
286 j = (mtd->writesize * 8 - geo->metadata_size * 8) -
312 struct mtd_info *mtd = nand_to_mtd(chip); local
336 if (geo->eccn_chunk_size < mtd->oobsize) {
339 ecc_step, mtd->oobsize);
346 geo->ecc_chunk_count = mtd->writesize / geo->eccn_chunk_size;
396 geo->page_size = mtd->writesize + geo->metadata_size +
399 geo->payload_size = mtd
439 struct mtd_info *mtd = nand_to_mtd(&this->nand); local
453 struct mtd_info *mtd = nand_to_mtd(chip); local
580 struct mtd_info *mtd = nand_to_mtd(&this->nand); local
694 struct mtd_info *mtd = nand_to_mtd(&this->nand); local
1089 gpmi_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
1105 gpmi_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
1328 struct mtd_info *mtd = nand_to_mtd(&this->nand); local
1412 struct mtd_info *mtd = nand_to_mtd(chip); local
1529 struct mtd_info *mtd = nand_to_mtd(chip); local
1666 struct mtd_info *mtd = nand_to_mtd(chip); local
1753 struct mtd_info *mtd = nand_to_mtd(chip); local
1783 struct mtd_info *mtd = nand_to_mtd(chip); local
1813 struct mtd_info *mtd = nand_to_mtd(chip); local
1898 struct mtd_info *mtd = nand_to_mtd(chip); local
1978 struct mtd_info *mtd = nand_to_mtd(chip); local
2090 struct mtd_info *mtd = nand_to_mtd(chip); local
2155 struct mtd_info *mtd = nand_to_mtd(chip); local
2255 struct mtd_info *mtd = nand_to_mtd(chip); local
2664 struct mtd_info *mtd = nand_to_mtd(chip); local
[all...]
/linux-master/arch/arm/mach-lpc32xx/
H A Dphy3250.c12 #include <linux/mtd/lpc32xx_mlc.h>
13 #include <linux/mtd/lpc32xx_slc.h>

Completed in 277 milliseconds

1234567891011>>