Searched refs:mtd (Results 201 - 225 of 423) sorted by relevance

1234567891011>>

/linux-master/drivers/mtd/
H A DMakefile7 obj-$(CONFIG_MTD) += mtd.o
8 mtd-y := mtdcore.o mtdsuper.o mtdconcat.o mtdpart.o mtdchar.o
H A Dftl.c57 #include <linux/mtd/blktrans.h>
59 #include <linux/mtd/mtd.h>
75 #include <linux/mtd/ftl.h>
158 max_offset = (0x100000<part->mbd.mtd->size)?0x100000:part->mbd.mtd->size;
162 offset += part->mbd.mtd->erasesize ? : 0x2000) {
164 err = mtd_read(part->mbd.mtd, offset, sizeof(header), &ret,
183 if ((1 << header.EraseUnitSize) != part->mbd.mtd->erasesize) {
185 1 << header.EraseUnitSize,part->mbd.mtd
1006 ftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) argument
[all...]
/linux-master/drivers/net/ethernet/sfc/siena/
H A DMakefile8 sfc-siena-$(CONFIG_SFC_SIENA_MTD) += mtd.o
/linux-master/fs/jffs2/
H A Dsecurity.c21 #include <linux/mtd/mtd.h>
H A Dos-linux.h80 #define jffs2_flash_read(c, ofs, len, retlen, buf) (mtd_read((c)->mtd, ofs, len, retlen, buf))
108 #define jffs2_can_mark_obsolete(c) (c->mtd->flags & (MTD_BIT_WRITEABLE))
111 #define jffs2_cleanmarker_oob(c) (c->mtd->type == MTD_NANDFLASH)
130 #define jffs2_dataflash(c) (c->mtd->type == MTD_DATAFLASH)
133 #define jffs2_ubivol(c) (c->mtd->type == MTD_UBIVOLUME)
137 #define jffs2_nor_wbuf_flash(c) (c->mtd->type == MTD_NORFLASH && ! (c->mtd->flags & MTD_BIT_WRITEABLE))
H A Dbackground.c17 #include <linux/mtd/mtd.h>
45 tsk = kthread_run(jffs2_garbage_collect_thread, c, "jffs2_gcd_mtd%d", c->mtd->index);
/linux-master/include/linux/mtd/
H A Dblktrans.h22 struct mtd_info *mtd; member in struct:mtd_blktrans_dev
66 void (*add_mtd)(struct mtd_blktrans_ops *tr, struct mtd_info *mtd);
81 * module_mtd_blktrans() - Helper macro for registering a mtd blktrans driver
84 * Helper macro for mtd blktrans drivers which do not do anything special in
H A Dsh_flctl.h12 #include <linux/mtd/mtd.h>
13 #include <linux/mtd/rawnand.h>
14 #include <linux/mtd/partitions.h>
H A Dpartitions.h113 uint64_t mtd_get_device_size(const struct mtd_info *mtd);
H A Dnand-ecc-sw-bch.h11 #include <linux/mtd/nand.h>
H A Dnand-ecc-sw-hamming.h13 #include <linux/mtd/nand.h>
/linux-master/drivers/mtd/nand/raw/
H A Drenesas-nand-controller.c15 #include <linux/mtd/mtd.h>
16 #include <linux/mtd/rawnand.h>
403 struct mtd_info *mtd = nand_to_mtd(chip); local
411 .len = mtd->writesize,
412 .ecc_offset = ECC_OFFSET(mtd->writesize + 2),
427 dma_addr = dma_map_single(rnandc->dev, rnandc->buf, mtd->writesize,
430 writel(mtd->writesize, rnandc->regs + DMA_CNT_REG);
437 dma_unmap_single(rnandc->dev, dma_addr, mtd->writesize, DMA_FROM_DEVICE);
447 ret = nand_change_read_column_op(chip, mtd
491 struct mtd_info *mtd = nand_to_mtd(chip); local
583 struct mtd_info *mtd = nand_to_mtd(chip); local
636 struct mtd_info *mtd = nand_to_mtd(chip); local
972 rnandc_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
987 rnandc_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
1010 struct mtd_info *mtd = nand_to_mtd(chip); local
1115 struct mtd_info *mtd = nand_to_mtd(chip); local
1174 struct mtd_info *mtd; local
1201 struct mtd_info *mtd; local
[all...]
H A Dmeson_nand.c14 #include <linux/mtd/rawnand.h>
15 #include <linux/mtd/mtd.h>
304 struct mtd_info *mtd = nand_to_mtd(nand); local
305 struct meson_nfc *nfc = nand_get_controller_data(mtd_to_nand(mtd));
308 int len = mtd->writesize, pagesize, pages;
313 len = mtd->writesize + mtd->oobsize;
537 struct mtd_info *mtd = nand_to_mtd(nand); local
545 mtd
671 struct mtd_info *mtd = nand_to_mtd(nand); local
724 struct mtd_info *mtd = nand_to_mtd(nand); local
777 struct mtd_info *mtd = nand_to_mtd(nand); local
811 struct mtd_info *mtd = nand_to_mtd(nand); local
867 struct mtd_info *mtd = nand_to_mtd(nand); local
1084 meson_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
1098 meson_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
1212 struct mtd_info *mtd = nand_to_mtd(nand); local
1305 struct mtd_info *mtd = nand_to_mtd(nand); local
1378 struct mtd_info *mtd; local
1449 struct mtd_info *mtd; local
[all...]
H A Domap2.c17 #include <linux/mtd/mtd.h>
18 #include <linux/mtd/nand-ecc-sw-bch.h>
19 #include <linux/mtd/rawnand.h>
20 #include <linux/mtd/partitions.h>
30 #include <linux/platform_data/mtd-nand-omap2.h>
185 static inline struct omap_nand_info *mtd_to_omap(struct mtd_info *mtd) argument
187 return container_of(mtd_to_nand(mtd), struct omap_nand_info, nand);
447 struct mtd_info *mtd = nand_to_mtd(chip); local
454 if (len <= mtd
468 struct mtd_info *mtd = nand_to_mtd(chip); local
535 struct mtd_info *mtd = nand_to_mtd(&info->nand); local
577 struct mtd_info *mtd = nand_to_mtd(&info->nand); local
1001 _omap_calculate_ecc_bch(struct mtd_info *mtd, const u_char *dat, u_char *ecc_calc, int i) argument
1143 omap_calculate_ecc_bch_multi(struct mtd_info *mtd, const u_char *dat, u_char *ecc_calc) argument
1387 struct mtd_info *mtd = nand_to_mtd(chip); local
1441 struct mtd_info *mtd = nand_to_mtd(chip); local
1522 struct mtd_info *mtd = nand_to_mtd(chip); local
1724 omap_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
1744 omap_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
1773 omap_sw_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
1794 omap_sw_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
1826 struct mtd_info *mtd = nand_to_mtd(chip); local
2184 struct mtd_info *mtd; local
2277 struct mtd_info *mtd = platform_get_drvdata(pdev); local
[all...]
H A Dgpio.c22 #include <linux/mtd/mtd.h>
23 #include <linux/mtd/rawnand.h>
24 #include <linux/mtd/partitions.h>
25 #include <linux/mtd/nand-gpio.h>
43 static inline struct gpiomtd *gpio_nand_getpriv(struct mtd_info *mtd) argument
45 return container_of(mtd_to_nand(mtd), struct gpiomtd, nand_chip);
289 struct mtd_info *mtd; local
355 mtd = nand_to_mtd(chip);
356 mtd
[all...]
H A Dams-delta.c5 * Derived from drivers/mtd/nand/toto.c (removed in v2.6.28)
21 #include <linux/mtd/mtd.h>
22 #include <linux/mtd/nand-gpio.h>
23 #include <linux/mtd/rawnand.h>
24 #include <linux/mtd/partitions.h>
243 struct mtd_info *mtd; local
260 mtd = nand_to_mtd(this);
261 mtd->dev.parent = &pdev->dev;
385 err = mtd_device_register(mtd, partition
403 struct mtd_info *mtd = nand_to_mtd(&priv->nand_chip); local
[all...]
H A Ddenali.c16 #include <linux/mtd/mtd.h>
17 #include <linux/mtd/rawnand.h>
196 struct mtd_info *mtd = nand_to_mtd(chip); local
204 iowrite32(mtd->writesize, denali->reg + DEVICE_MAIN_AREA_SIZE);
205 iowrite32(mtd->oobsize, denali->reg + DEVICE_SPARE_AREA_SIZE);
245 struct mtd_info *mtd = nand_to_mtd(chip); local
247 int writesize = mtd->writesize;
282 struct mtd_info *mtd = nand_to_mtd(chip); local
284 int writesize = mtd
727 struct mtd_info *mtd = nand_to_mtd(chip); local
759 struct mtd_info *mtd = nand_to_mtd(chip); local
922 denali_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
937 denali_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
960 struct mtd_info *mtd = nand_to_mtd(chip); local
1015 struct mtd_info *mtd = nand_to_mtd(chip); local
1183 struct mtd_info *mtd = nand_to_mtd(chip); local
[all...]
H A Dnand_esmt.c8 #include <linux/mtd/rawnand.h>
/linux-master/drivers/mtd/chips/
H A Dcfi_util.c20 #include <linux/mtd/xip.h>
21 #include <linux/mtd/mtd.h>
22 #include <linux/mtd/map.h>
23 #include <linux/mtd/cfi.h>
341 void cfi_fixup(struct mtd_info *mtd, struct cfi_fixup *fixups) argument
343 struct map_info *map = mtd->priv;
350 f->fixup(mtd);
357 int cfi_varsize_frob(struct mtd_info *mtd, varsize_frob_t frob, argument
360 struct map_info *map = mtd
[all...]
/linux-master/drivers/firmware/broadcom/
H A Dbcm47xx_nvram.c15 #include <linux/mtd/mtd.h>
132 * On bcm47xx we need access to the NVRAM very early, so we can't use mtd
157 struct mtd_info *mtd; local
162 mtd = get_mtd_device_nm("nvram");
163 if (IS_ERR(mtd))
166 err = mtd_read(mtd, 0, sizeof(header), &bytes_read, (uint8_t *)&header);
176 err = mtd_read(mtd, 0, nvram_len, &nvram_len,
/linux-master/drivers/mtd/maps/
H A Dl440gx.c13 #include <linux/mtd/mtd.h>
14 #include <linux/mtd/map.h>
H A Dscx200_docflash.c2 /* linux/drivers/mtd/maps/scx200_docflash.c
14 #include <linux/mtd/mtd.h>
15 #include <linux/mtd/map.h>
16 #include <linux/mtd/partitions.h>
H A Dsbc_gxx.c40 #include <linux/mtd/mtd.h>
41 #include <linux/mtd/map.h>
42 #include <linux/mtd/partitions.h>
/linux-master/include/linux/platform_data/
H A Dmtd-davinci.h18 #include <linux/mtd/rawnand.h>
/linux-master/drivers/mtd/nand/
H A Decc-sw-hamming.c14 * can be found in Documentation/driver-api/mtd/nand_ecc.rst
20 #include <linux/mtd/nand.h>
21 #include <linux/mtd/nand-ecc-sw-hamming.h>
471 struct mtd_info *mtd = nanddev_to_mtd(nand); local
474 if (!mtd->ooblayout) {
475 switch (mtd->oobsize) {
478 mtd_set_ooblayout(mtd, nand_get_small_page_ooblayout());
482 mtd_set_ooblayout(mtd,
508 engine_conf->calc_buf = kzalloc(mtd->oobsize, GFP_KERNEL);
509 engine_conf->code_buf = kzalloc(mtd
549 struct mtd_info *mtd = nanddev_to_mtd(nand); local
586 struct mtd_info *mtd = nanddev_to_mtd(nand); local
[all...]

Completed in 243 milliseconds

1234567891011>>