Home
last modified time | relevance | path

Searched refs:mtd (Results 1 – 18 of 18) sorted by relevance

/include/linux/mtd/
Dmtd.h101 int (*ecc)(struct mtd_info *mtd, int section,
103 int (*free)(struct mtd_info *mtd, int section,
177 int (*get_info)(struct mtd_info *mtd, int wunit,
179 int (*get_wunit)(struct mtd_info *mtd,
276 int (*_erase) (struct mtd_info *mtd, struct erase_info *instr);
277 int (*_point) (struct mtd_info *mtd, loff_t from, size_t len,
279 int (*_unpoint) (struct mtd_info *mtd, loff_t from, size_t len);
280 int (*_read) (struct mtd_info *mtd, loff_t from, size_t len,
282 int (*_write) (struct mtd_info *mtd, loff_t to, size_t len,
284 int (*_panic_write) (struct mtd_info *mtd, loff_t to, size_t len,
[all …]
Donenand.h22 extern int onenand_scan(struct mtd_info *mtd, int max_chips);
24 extern void onenand_release(struct mtd_info *mtd);
104 int (*command)(struct mtd_info *mtd, int cmd, loff_t address, size_t len);
105 int (*wait)(struct mtd_info *mtd, int state);
106 int (*bbt_wait)(struct mtd_info *mtd, int state);
107 void (*unlock_all)(struct mtd_info *mtd);
108 int (*read_bufferram)(struct mtd_info *mtd, int area,
110 int (*write_bufferram)(struct mtd_info *mtd, int area,
114 void (*mmcontrol)(struct mtd_info *mtd, int sync_read);
115 int (*chip_probe)(struct mtd_info *mtd);
[all …]
Dnand_bch.h33 struct nand_bch_control *nand_bch_init(struct mtd_info *mtd);
57 static inline struct nand_bch_control *nand_bch_init(struct mtd_info *mtd) in nand_bch_init() argument
Dbbm.h132 int (*isbad_bbt)(struct mtd_info *mtd, loff_t ofs, int allowbbt);
141 extern int onenand_default_bbt(struct mtd_info *mtd);
Dnand.h180 struct mtd_info mtd; member
212 static inline struct nand_device *mtd_to_nanddev(struct mtd_info *mtd) in mtd_to_nanddev() argument
214 return container_of(mtd, struct nand_device, mtd); in mtd_to_nanddev()
225 return &nand->mtd; in nanddev_to_mtd()
402 return mtd_device_register(&nand->mtd, NULL, 0); in nanddev_register()
417 return mtd_device_unregister(&nand->mtd); in nanddev_unregister()
430 mtd_set_of_node(&nand->mtd, np); in nanddev_set_of_node()
441 return mtd_get_of_node(&nand->mtd); in nanddev_get_of_node()
630 struct mtd_info *mtd = nanddev_to_mtd(nand); in nanddev_io_iter_init() local
635 iter->oobbytes_per_page = mtd_oobavail(mtd, req); in nanddev_io_iter_init()
[all …]
Dnftl.h44 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,
Dpartitions.h108 int mtd_is_partition(const struct mtd_info *mtd);
112 uint64_t mtd_get_device_size(const struct mtd_info *mtd);
Dmtdram.h6 int mtdram_init_device(struct mtd_info *mtd, void *mapped_address,
Dinftl.h56 int inftl_read_oob(struct mtd_info *mtd, loff_t offs, size_t len,
58 int inftl_write_oob(struct mtd_info *mtd, loff_t offs, size_t len,
Dconcat.h17 void mtd_concat_destroy(struct mtd_info *mtd);
Dblktrans.h22 struct mtd_info *mtd; member
66 void (*add_mtd)(struct mtd_blktrans_ops *tr, struct mtd_info *mtd);
Dhyperbus.h28 struct mtd_info *mtd; member
Dcfi.h353 void (*fixup)(struct mtd_info *mtd);
378 void cfi_fixup(struct mtd_info *mtd, struct cfi_fixup* fixups);
383 int cfi_varsize_frob(struct mtd_info *mtd, varsize_frob_t frob,
Dspi-nor.h572 struct mtd_info mtd; member
640 mtd_set_of_node(&nor->mtd, np); in spi_nor_set_flash_node()
645 return mtd_get_of_node(&nor->mtd); in spi_nor_get_flash_node()
Dspinand.h402 static inline struct spinand_device *mtd_to_spinand(struct mtd_info *mtd) in mtd_to_spinand() argument
404 return container_of(mtd_to_nanddev(mtd), struct spinand_device, base); in mtd_to_spinand()
Drawnand.h1144 static inline struct nand_chip *mtd_to_nand(struct mtd_info *mtd) in mtd_to_nand() argument
1146 return container_of(mtd, struct nand_chip, base.mtd); in mtd_to_nand()
1151 return &chip->base.mtd; in nand_to_mtd()
Dmap.h251 void map_destroy(struct mtd_info *mtd);
/include/uapi/mtd/
Dmtd-abi.h280 static inline int mtd_type_is_nand_user(const struct mtd_info_user *mtd) in mtd_type_is_nand_user() argument
282 return mtd->type == MTD_NANDFLASH || mtd->type == MTD_MLCNANDFLASH; in mtd_type_is_nand_user()