| /include/linux/mtd/ |
| A D | mtd.h | 48 struct mtd_info *mtd; 152 struct mtd_info { struct 270 void (*_sync) (struct mtd_info *mtd); argument 278 int (*_suspend) (struct mtd_info *mtd); argument 279 void (*_resume) (struct mtd_info *mtd); argument 280 void (*_reboot) (struct mtd_info *mtd); argument 315 struct mtd_info *parent; argument 424 return *((struct mtd_info **)priv); in blk_desc_to_mtd() 544 extern struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num); 552 void (*add)(struct mtd_info *mtd); [all …]
|
| A D | nand_bch.h | 14 struct mtd_info; 24 int nand_bch_calculate_ecc(struct mtd_info *mtd, const u_char *dat, 30 int nand_bch_correct_data(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, 35 struct nand_bch_control *nand_bch_init(struct mtd_info *mtd); 46 nand_bch_calculate_ecc(struct mtd_info *mtd, const u_char *dat, in nand_bch_calculate_ecc() 53 nand_bch_correct_data(struct mtd_info *mtd, unsigned char *buf, in nand_bch_correct_data() 59 static inline struct nand_bch_control *nand_bch_init(struct mtd_info *mtd) in nand_bch_init()
|
| A D | onenand.h | 28 extern int onenand_scan (struct mtd_info *mtd, int max_chips); 30 extern void onenand_release (struct mtd_info *mtd); 94 int (*wait) (struct mtd_info *mtd, int state); 95 int (*bbt_wait) (struct mtd_info *mtd, int state); 96 void (*unlock_all)(struct mtd_info *mtd); 104 int (*chip_probe)(struct mtd_info *mtd); 105 void (*mmcontrol) (struct mtd_info *mtd, int sync_read); 106 int (*block_markbad)(struct mtd_info *mtd, loff_t ofs); 107 int (*scan_bbt)(struct mtd_info *mtd); 175 int onenand_bbt_read_oob(struct mtd_info *mtd, loff_t from, [all …]
|
| A D | partitions.h | 51 struct mtd_info; 73 int (*parse_fn)(struct mtd_info *, struct mtd_partition **, 81 int mtd_add_partition(struct mtd_info *master, const char *name, 83 int mtd_del_partition(struct mtd_info *master, int partno); 84 uint64_t mtd_get_device_size(const struct mtd_info *mtd); 87 int mtd_parse_partitions(struct mtd_info *parent, const char **_mtdparts, 93 mtd_parse_partitions(struct mtd_info *parent, const char **_mtdparts, in mtd_parse_partitions()
|
| A D | concat.h | 12 struct mtd_info *mtd_concat_create( 13 struct mtd_info *subdev[], /* subdevices to concatenate */ 21 void mtd_concat_destroy(struct mtd_info *mtd);
|
| A D | nand_ecc.h | 15 struct mtd_info; 20 int nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code); 25 int nand_correct_data(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_char *calc_ecc);
|
| A D | rawnand.h | 26 struct mtd_info; 36 int nand_scan(struct mtd_info *mtd, int max_chips); 43 int nand_scan_tail(struct mtd_info *mtd); 46 void nand_release(struct mtd_info *mtd); 49 void nand_wait_ready(struct mtd_info *mtd); 915 struct mtd_info mtd; 924 u16 (*read_word)(struct mtd_info *mtd); 932 int (*dev_ready)(struct mtd_info *mtd); 937 int (*scan_bbt)(struct mtd_info *mtd); 1169 int nand_default_bbt(struct mtd_info *mtd); [all …]
|
| A D | bbm.h | 144 int (*isbad_bbt)(struct mtd_info *mtd, loff_t ofs, int allowbbt); 153 extern int onenand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd); 154 extern int onenand_default_bbt(struct mtd_info *mtd);
|
| A D | samsung_onenand.h | 112 extern void s3c_onenand_init(struct mtd_info *); 113 extern int s5pc110_chip_probe(struct mtd_info *); 114 extern int s5pc210_chip_probe(struct mtd_info *);
|
| A D | nand.h | 180 struct mtd_info *mtd; 212 static inline struct nand_device *mtd_to_nanddev(struct mtd_info *mtd) in mtd_to_nanddev() 223 static inline struct mtd_info *nanddev_to_mtd(struct nand_device *nand) in nanddev_to_mtd() 619 struct mtd_info *mtd = nanddev_to_mtd(nand); in nanddev_io_iter_init() 748 int nanddev_mtd_erase(struct mtd_info *mtd, struct erase_info *einfo);
|
| A D | spinand.h | 429 static inline struct spinand_device *mtd_to_spinand(struct mtd_info *mtd) in mtd_to_spinand() 440 static inline struct mtd_info *spinand_to_mtd(struct spinand_device *spinand) in spinand_to_mtd()
|
| A D | spi-nor.h | 558 struct mtd_info mtd;
|
| /include/ |
| A D | onenand_uboot.h | 20 struct mtd_info; 25 extern struct mtd_info onenand_mtd; 29 extern int onenand_board_init(struct mtd_info *); 33 extern int onenand_read(struct mtd_info *mtd, loff_t from, size_t len, 35 extern int onenand_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops); 36 extern int onenand_write(struct mtd_info *mtd, loff_t from, size_t len, 38 extern int onenand_erase(struct mtd_info *mtd, struct erase_info *instr); 46 extern int flexonenand_region(struct mtd_info *mtd, loff_t addr); 48 extern int flexonenand_set_boundary(struct mtd_info *mtd, int die,
|
| A D | nand.h | 19 int nand_mtd_to_devnum(struct mtd_info *mtd); 23 int nand_register(int devnum, struct mtd_info *mtd); 24 void nand_unregister(struct mtd_info *mtd); 45 static inline int nand_block_isbad(struct mtd_info *info, loff_t ofs) in nand_block_isbad() 92 int nand_erase_opts(struct mtd_info *mtd, 94 int nand_torture(struct mtd_info *mtd, loff_t offset); 102 int nand_lock(struct mtd_info *mtd, int tight); 103 int nand_unlock(struct mtd_info *mtd, loff_t start, size_t length, 105 int nand_get_lock_status(struct mtd_info *mtd, loff_t offset); 124 int get_nand_env_oob(struct mtd_info *mtd, unsigned long *result); [all …]
|
| A D | mxs_nand.h | 67 int (*hooked_read_oob)(struct mtd_info *mtd, 69 int (*hooked_write_oob)(struct mtd_info *mtd, 71 int (*hooked_block_markbad)(struct mtd_info *mtd, 98 int mxs_nand_setup_ecc(struct mtd_info *mtd); 100 void mxs_nand_mode_fcb_62bit(struct mtd_info *mtd); 101 void mxs_nand_mode_fcb_40bit(struct mtd_info *mtd); 102 void mxs_nand_mode_normal(struct mtd_info *mtd); 103 u32 mxs_nand_mark_byte_offset(struct mtd_info *mtd); 104 u32 mxs_nand_mark_bit_offset(struct mtd_info *mtd); 105 void mxs_nand_get_layout(struct mtd_info *mtd, struct mxs_nand_layout *l);
|
| A D | fwu.h | 30 struct mtd_info *mtd; 310 int fwu_gen_alt_info_from_mtd(char *buf, size_t len, struct mtd_info *mtd);
|
| A D | spi_flash.h | 184 struct mtd_info *mtd = &flash->mtd; in spi_flash_read() 196 struct mtd_info *mtd = &flash->mtd; in spi_flash_write() 208 struct mtd_info *mtd = &flash->mtd; in spi_flash_erase()
|
| A D | rkmtd.h | 68 struct mtd_info *mtd;
|
| A D | dfu.h | 64 struct mtd_info *info;
|
| A D | flash.h | 46 struct mtd_info *mtd;
|