/linux-master/drivers/mtd/nand/raw/ |
H A D | cafe_nand.c | 16 #include <linux/mtd/mtd.h> 17 #include <linux/mtd/rawnand.h> 18 #include <linux/mtd/partitions.h> 163 struct mtd_info *mtd = nand_to_mtd(chip); local 185 if (mtd->writesize > 512 && 187 column += mtd->writesize; 205 if (mtd->size > mtd->writesize << 16) 225 cafe->datalen = mtd 333 struct mtd_info *mtd = id; local 347 struct mtd_info *mtd = nand_to_mtd(chip); local 356 struct mtd_info *mtd = nand_to_mtd(chip); local 373 struct mtd_info *mtd = nand_to_mtd(chip); local 450 cafe_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument 464 cafe_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument 537 struct mtd_info *mtd = nand_to_mtd(chip); local 593 struct mtd_info *mtd = nand_to_mtd(chip); local 665 struct mtd_info *mtd; local 814 struct mtd_info *mtd = pci_get_drvdata(pdev); local 843 struct mtd_info *mtd = pci_get_drvdata(pdev); local [all...] |
H A D | sharpsl.c | 12 #include <linux/mtd/mtd.h> 13 #include <linux/mtd/rawnand.h> 14 #include <linux/mtd/partitions.h> 15 #include <linux/mtd/sharpsl.h> 27 static inline struct sharpsl_nand *mtd_to_sharpsl(struct mtd_info *mtd) argument 29 return container_of(mtd_to_nand(mtd), struct sharpsl_nand, chip); 123 struct mtd_info *mtd; local 162 mtd = nand_to_mtd(this); 163 mtd [all...] |
H A D | nand_amd.c | 13 struct mtd_info *mtd = nand_to_mtd(chip); local 31 mtd->erasesize = memorg->pages_per_eraseblock *
|
H A D | nand_macronix.c | 329 static int macronix_30lfxg18ac_get_otp_info(struct mtd_info *mtd, size_t len, argument 371 static int __macronix_30lfxg18ac_rw_otp(struct mtd_info *mtd, argument 382 nand = mtd_to_nand(mtd); 421 dev_err(&mtd->dev, "failed to perform OTP IO: %i\n", ret); 425 dev_err(&mtd->dev, "failed to leave OTP mode after %s\n", 433 static int macronix_30lfxg18ac_write_otp(struct mtd_info *mtd, loff_t to, argument 437 return __macronix_30lfxg18ac_rw_otp(mtd, to, len, rlen, (u_char *)buf, 441 static int macronix_30lfxg18ac_read_otp(struct mtd_info *mtd, loff_t from, argument 445 return __macronix_30lfxg18ac_rw_otp(mtd, from, len, rlen, buf, false); 448 static int macronix_30lfxg18ac_lock_otp(struct mtd_info *mtd, loff_ argument 462 struct mtd_info *mtd; local [all...] |
H A D | mtk_nand.c | 14 #include <linux/mtd/rawnand.h> 15 #include <linux/mtd/mtd.h> 19 #include <linux/mtd/nand-ecc-mtk.h> 318 static int mtk_nfc_hw_runtime_config(struct mtd_info *mtd) argument 320 struct nand_chip *chip = mtd_to_nand(mtd); 325 if (!mtd->writesize) 330 switch (mtd->writesize) { 356 dev_err(nfc->dev, "invalid page len: %d\n", mtd->writesize); 658 static void mtk_nfc_bad_mark_swap(struct mtd_info *mtd, u argument 672 mtk_nfc_format_subpage(struct mtd_info *mtd, u32 offset, u32 len, const u8 *buf) argument 707 mtk_nfc_format_page(struct mtd_info *mtd, const u8 *buf) argument 774 mtk_nfc_do_write_page(struct mtd_info *mtd, struct nand_chip *chip, const u8 *buf, int page, int len) argument 825 mtk_nfc_write_page(struct mtd_info *mtd, struct nand_chip *chip, const u8 *buf, int page, int raw) argument 886 struct mtd_info *mtd = nand_to_mtd(chip); local 897 struct mtd_info *mtd = nand_to_mtd(chip); local 914 mtk_nfc_update_ecc_stats(struct mtd_info *mtd, u8 *buf, u32 start, u32 sectors) argument 939 mtk_nfc_read_subpage(struct mtd_info *mtd, struct nand_chip *chip, u32 data_offs, u32 readlen, u8 *bufpoi, int page, int raw) argument 1048 struct mtd_info *mtd = nand_to_mtd(chip); local 1056 struct mtd_info *mtd = nand_to_mtd(chip); local 1121 mtk_nfc_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oob_region) argument 1140 mtk_nfc_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oob_region) argument 1162 mtk_nfc_set_fdm(struct mtk_nfc_fdm *fdm, struct mtd_info *mtd) argument 1180 mtk_nfc_set_bad_mark_ctl(struct mtk_nfc_bad_mark_ctl *bm_ctl, struct mtd_info *mtd) argument 1194 mtk_nfc_set_spare_per_sector(u32 *sps, struct mtd_info *mtd) argument 1226 mtk_nfc_ecc_init(struct device *dev, struct mtd_info *mtd) argument 1298 struct mtd_info *mtd = nand_to_mtd(chip); local 1344 struct mtd_info *mtd; local [all...] |
/linux-master/drivers/mtd/lpddr/ |
H A D | lpddr_cmds.c | 14 #include <linux/mtd/pfow.h> 15 #include <linux/mtd/qinfo.h> 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_ 40 struct mtd_info *mtd; local 481 do_erase_oneblock(struct mtd_info *mtd, loff_t adr) argument 508 lpddr_read(struct mtd_info *mtd, loff_t adr, size_t len, size_t *retlen, u_char *buf) argument 532 lpddr_point(struct mtd_info *mtd, loff_t adr, size_t len, size_t *retlen, void **mtdbuf, resource_size_t *phys) argument 585 lpddr_unpoint(struct mtd_info *mtd, loff_t adr, size_t len) argument 630 lpddr_write_buffers(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf) argument 642 lpddr_writev(struct mtd_info *mtd, const struct kvec *vecs, unsigned long count, loff_t to, size_t *retlen) argument 689 lpddr_erase(struct mtd_info *mtd, struct erase_info *instr) argument 713 do_xxlock(struct mtd_info *mtd, loff_t adr, uint32_t len, int thunk) argument 748 lpddr_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) argument 753 lpddr_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) argument [all...] |
/linux-master/drivers/mtd/nand/onenand/ |
H A D | onenand_omap2.c | 13 #include <linux/mtd/mtd.h> 14 #include <linux/mtd/onenand.h> 15 #include <linux/mtd/partitions.h> 38 struct mtd_info mtd; member in struct:omap2_onenand 142 static int omap2_onenand_wait(struct mtd_info *mtd, int state) argument 144 struct omap2_onenand *c = container_of(mtd, struct omap2_onenand, mtd); 145 struct onenand_chip *this = mtd->priv; 278 mtd 310 omap2_onenand_bufferram_offset(struct mtd_info *mtd, int area) argument 360 omap2_onenand_read_bufferram(struct mtd_info *mtd, int area, unsigned char *buffer, int offset, size_t count) argument 408 omap2_onenand_write_bufferram(struct mtd_info *mtd, int area, const unsigned char *buffer, int offset, size_t count) argument [all...] |
/linux-master/drivers/net/ethernet/sfc/falcon/ |
H A D | Makefile | 6 sfc-falcon-$(CONFIG_SFC_FALCON_MTD) += mtd.o
|
/linux-master/include/linux/mtd/ |
H A D | platnand.h | 13 #include <linux/mtd/partitions.h> 14 #include <linux/mtd/rawnand.h> 22 * @partitions: mtd partition list
|
H A D | bbm.h | 132 int (*isbad_bbt)(struct mtd_info *mtd, loff_t ofs, int allowbbt); 141 extern int onenand_default_bbt(struct mtd_info *mtd);
|
H A D | hyperbus.h | 9 #include <linux/mtd/map.h> 31 * @mtd: pointer to MTD struct 40 struct mtd_info *mtd; member in struct:hyperbus_device
|
/linux-master/drivers/mtd/devices/ |
H A D | ms02-nv.h | 11 #include <linux/mtd/mtd.h>
|
/linux-master/drivers/mtd/parsers/ |
H A D | qcomsmempart.c | 10 #include <linux/mtd/mtd.h> 11 #include <linux/mtd/partitions.h> 57 static int parse_qcomsmem_part(struct mtd_info *mtd, argument 69 && mtd->type == MTD_NORFLASH) { 71 mtd->name); 146 parts[j].offset = le32_to_cpu(pentry->offset) * mtd->erasesize; 148 parts[j].size = le32_to_cpu(pentry->length) * mtd->erasesize;
|
/linux-master/drivers/mtd/ |
H A D | inftlcore.c | 20 #include <linux/mtd/mtd.h> 21 #include <linux/mtd/nftl.h> 22 #include <linux/mtd/inftl.h> 23 #include <linux/mtd/rawnand.h> 35 static void inftl_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 if (!mtd 136 inftl_read_oob(struct mtd_info *mtd, loff_t offs, size_t len, size_t *retlen, uint8_t *buf) argument 156 inftl_write_oob(struct mtd_info *mtd, loff_t offs, size_t len, size_t *retlen, uint8_t *buf) argument 176 inftl_write(struct mtd_info *mtd, loff_t offs, size_t len, size_t *retlen, uint8_t *buf, uint8_t *oob) argument 241 struct mtd_info *mtd = inftl->mbd.mtd; local 465 struct mtd_info *mtd = inftl->mbd.mtd; local 627 struct mtd_info *mtd = inftl->mbd.mtd; local 749 struct mtd_info *mtd = inftl->mbd.mtd; local 858 struct mtd_info *mtd = inftl->mbd.mtd; local [all...] |
/linux-master/fs/jffs2/ |
H A D | xattr_trusted.c | 16 #include <linux/mtd/mtd.h>
|
H A D | xattr_user.c | 16 #include <linux/mtd/mtd.h>
|
/linux-master/drivers/mtd/nand/spi/ |
H A D | xtx.c | 10 #include <linux/mtd/spinand.h> 41 static int xt26g0xa_ooblayout_ecc(struct mtd_info *mtd, int section, argument 53 static int xt26g0xa_ooblayout_free(struct mtd_info *mtd, int section, argument 94 static int xt26xxxd_ooblayout_ecc(struct mtd_info *mtd, int section, argument 100 region->offset = mtd->oobsize / 2; 101 region->length = mtd->oobsize / 2; 106 static int xt26xxxd_ooblayout_free(struct mtd_info *mtd, int section, argument 113 region->length = mtd->oobsize / 2 - 2;
|
/linux-master/drivers/mtd/ubi/ |
H A D | build.c | 26 #include <linux/mtd/partitions.h> 35 /* Maximum length of the 'mtd=' parameter */ 38 /* Maximum number of comma-separated items in the 'mtd=' parameter */ 383 ret = sprintf(buf, "%d\n", ubi->mtd->index); 558 limit = mtd_max_bad_blocks(ubi->mtd, 0, ubi->mtd->size); 571 * the MTD partition we are attaching (ubi->mtd). 573 device_size = mtd_get_device_size(ubi->mtd); 574 device_pebs = mtd_div_by_eb(device_size, ubi->mtd); 605 if (ubi->mtd 849 ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, int vid_hdr_offset, int max_beb_per1024, bool disable_fm, bool need_resv_pool) argument 1212 struct mtd_info *mtd; local 1232 ubi_notify_add(struct mtd_info *mtd) argument 1256 ubi_notify_remove(struct mtd_info *mtd) argument 1273 struct mtd_info *mtd; local [all...] |
/linux-master/drivers/mtd/spi-nor/ |
H A D | otp.c | 9 #include <linux/mtd/mtd.h> 10 #include <linux/mtd/spi-nor.h> 246 static int spi_nor_mtd_otp_info(struct mtd_info *mtd, size_t len, argument 249 struct spi_nor *nor = mtd_to_spi_nor(mtd); 307 static int spi_nor_mtd_otp_read_write(struct mtd_info *mtd, loff_t ofs, argument 311 struct spi_nor *nor = mtd_to_spi_nor(mtd); 383 static int spi_nor_mtd_otp_read(struct mtd_info *mtd, loff_t from, size_t len, argument 386 return spi_nor_mtd_otp_read_write(mtd, from, len, retlen, buf, false); 389 static int spi_nor_mtd_otp_write(struct mtd_info *mtd, loff_ argument 395 spi_nor_mtd_otp_erase(struct mtd_info *mtd, loff_t from, size_t len) argument 448 spi_nor_mtd_otp_lock(struct mtd_info *mtd, loff_t from, size_t len) argument 485 struct mtd_info *mtd = &nor->mtd; local [all...] |
H A D | xmc.c | 7 #include <linux/mtd/spi-nor.h>
|
/linux-master/drivers/mtd/maps/ |
H A D | cfi_flagadm.c | 30 #include <linux/mtd/mtd.h> 31 #include <linux/mtd/map.h> 32 #include <linux/mtd/partitions.h>
|
H A D | solutionengine.c | 14 #include <linux/mtd/mtd.h> 15 #include <linux/mtd/map.h> 16 #include <linux/mtd/partitions.h>
|
H A D | netsc520.c | 17 #include <linux/mtd/mtd.h> 18 #include <linux/mtd/map.h> 19 #include <linux/mtd/partitions.h>
|
/linux-master/arch/mips/bcm63xx/ |
H A D | dev-flash.c | 16 #include <linux/mtd/mtd.h> 17 #include <linux/mtd/partitions.h> 18 #include <linux/mtd/physmap.h>
|
/linux-master/include/linux/platform_data/ |
H A D | mtd-nand-s3c2410.h | 12 #include <linux/mtd/rawnand.h> 25 * @partitions: The mtd partition list 27 * define a set of one or more nand chips registered with an unique mtd. Also
|