/include/linux/mtd/ |
D | mtd.h | 101 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 …]
|
D | onenand.h | 22 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 …]
|
D | nand_bch.h | 33 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
|
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);
|
D | nand.h | 180 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 …]
|
D | nftl.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,
|
D | partitions.h | 108 int mtd_is_partition(const struct mtd_info *mtd); 112 uint64_t mtd_get_device_size(const struct mtd_info *mtd);
|
D | mtdram.h | 6 int mtdram_init_device(struct mtd_info *mtd, void *mapped_address,
|
D | inftl.h | 56 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,
|
D | concat.h | 17 void mtd_concat_destroy(struct mtd_info *mtd);
|
D | blktrans.h | 22 struct mtd_info *mtd; member 66 void (*add_mtd)(struct mtd_blktrans_ops *tr, struct mtd_info *mtd);
|
D | hyperbus.h | 28 struct mtd_info *mtd; member
|
D | cfi.h | 353 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,
|
D | spi-nor.h | 572 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()
|
D | spinand.h | 402 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()
|
D | rawnand.h | 1144 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()
|
D | map.h | 251 void map_destroy(struct mtd_info *mtd);
|
/include/uapi/mtd/ |
D | mtd-abi.h | 280 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()
|