| /u-boot/include/linux/mtd/ |
| A D | mtd.h | 46 struct mtd_info *mtd; 151 struct mtd_info { struct 269 void (*_sync) (struct mtd_info *mtd); argument 277 int (*_suspend) (struct mtd_info *mtd); argument 278 void (*_resume) (struct mtd_info *mtd); argument 279 void (*_reboot) (struct mtd_info *mtd); argument 313 struct mtd_info *parent; argument 518 extern struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num); 527 void (*add)(struct mtd_info *mtd); 528 void (*remove)(struct mtd_info *mtd); [all …]
|
| 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 | 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 | rawnand.h | 26 struct mtd_info; 38 int nand_scan(struct mtd_info *mtd, int max_chips); 45 int nand_scan_tail(struct mtd_info *mtd); 48 void nand_release(struct mtd_info *mtd); 51 void nand_wait_ready(struct mtd_info *mtd); 890 struct mtd_info mtd; 897 u16 (*read_word)(struct mtd_info *mtd); 905 int (*dev_ready)(struct mtd_info *mtd); 910 int (*scan_bbt)(struct mtd_info *mtd); 1117 int nand_default_bbt(struct mtd_info *mtd); [all …]
|
| A D | partitions.h | 53 struct mtd_info; 76 int (*parse_fn)(struct mtd_info *, struct mtd_partition **, 84 int mtd_add_partition(struct mtd_info *master, const char *name, 86 int mtd_del_partition(struct mtd_info *master, int partno); 87 uint64_t mtd_get_device_size(const struct mtd_info *mtd); 90 int mtd_parse_partitions(struct mtd_info *parent, const char **_mtdparts, 96 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 | bbm.h | 149 int (*isbad_bbt)(struct mtd_info *mtd, loff_t ofs, int allowbbt); 158 extern int onenand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd); 159 extern int onenand_default_bbt(struct mtd_info *mtd);
|
| /u-boot/include/ |
| A D | nand.h | 36 int nand_mtd_to_devnum(struct mtd_info *mtd); 40 int nand_register(int devnum, struct mtd_info *mtd); 59 static inline int nand_block_isbad(struct mtd_info *info, loff_t ofs) in nand_block_isbad() 108 int nand_erase_opts(struct mtd_info *mtd, 110 int nand_torture(struct mtd_info *mtd, loff_t offset); 111 int nand_verify_page_oob(struct mtd_info *mtd, struct mtd_oob_ops *ops, 118 int nand_lock(struct mtd_info *mtd, int tight); 119 int nand_unlock(struct mtd_info *mtd, loff_t start, size_t length, 121 int nand_get_lock_status(struct mtd_info *mtd, loff_t offset); 140 int get_nand_env_oob(struct mtd_info *mtd, unsigned long *result); [all …]
|
| 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 | mxs_nand.h | 65 int (*hooked_read_oob)(struct mtd_info *mtd, 67 int (*hooked_write_oob)(struct mtd_info *mtd, 69 int (*hooked_block_markbad)(struct mtd_info *mtd, 96 int mxs_nand_setup_ecc(struct mtd_info *mtd); 98 void mxs_nand_mode_fcb_62bit(struct mtd_info *mtd); 99 void mxs_nand_mode_fcb_40bit(struct mtd_info *mtd); 100 void mxs_nand_mode_normal(struct mtd_info *mtd); 101 u32 mxs_nand_mark_byte_offset(struct mtd_info *mtd); 102 u32 mxs_nand_mark_bit_offset(struct mtd_info *mtd); 103 void mxs_nand_get_layout(struct mtd_info *mtd, struct mxs_nand_layout *l);
|
| /u-boot/board/socrates/ |
| A D | nand.c | 15 static void sc_nand_write_byte(struct mtd_info *mtd, u_char byte); 16 static void sc_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len); 17 static u_char sc_nand_read_byte(struct mtd_info *mtd); 18 static u16 sc_nand_read_word(struct mtd_info *mtd); 19 static void sc_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len); 20 static int sc_nand_device_ready(struct mtd_info *mtdinfo); 36 static void sc_nand_write_byte(struct mtd_info *mtd, u_char byte) in sc_nand_write_byte() 63 static u_char sc_nand_read_byte(struct mtd_info *mtd) in sc_nand_read_byte() 74 static u16 sc_nand_read_word(struct mtd_info *mtd) in sc_nand_read_word() 87 static void sc_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) in sc_nand_read_buf() [all …]
|
| /u-boot/drivers/mtd/ |
| A D | mtdcore.h | 8 int add_mtd_device(struct mtd_info *mtd); 9 int del_mtd_device(struct mtd_info *mtd); 10 int add_mtd_partitions(struct mtd_info *, const struct mtd_partition *, int); 11 int del_mtd_partitions(struct mtd_info *); 12 int parse_mtd_partitions(struct mtd_info *master, const char * const *types,
|
| A D | mtdcore.c | 156 struct mtd_info *__mtd_next_device(int i) in __mtd_next_device() 663 struct mtd_info *mtd; in register_mtd_user() 689 struct mtd_info *mtd; in unregister_mtd_user() 716 struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num) in get_mtd_device() 718 struct mtd_info *ret = NULL, *other; in get_mtd_device() 782 struct mtd_info *mtd = NULL, *other; in get_mtd_device_nm() 1210 int (*iter)(struct mtd_info *, in mtd_ooblayout_find_region() argument 1279 int (*iter)(struct mtd_info *, in mtd_ooblayout_get_bytes() argument 1322 int (*iter)(struct mtd_info *, in mtd_ooblayout_set_bytes() argument 1359 int (*iter)(struct mtd_info *, in mtd_ooblayout_count_bytes() argument [all …]
|
| A D | mtdpart.c | 69 bool mtd_partitions_used(struct mtd_info *master) in mtd_partitions_used() 71 struct mtd_info *slave; in mtd_partitions_used() 485 static void part_sync(struct mtd_info *mtd) in part_sync() 491 static int part_suspend(struct mtd_info *mtd) in part_suspend() 496 static void part_resume(struct mtd_info *mtd) in part_resume() 537 struct mtd_info *slave, *next; in do_del_mtd_partitions() 573 static struct mtd_info *allocate_partition(struct mtd_info *master, in allocate_partition() 577 struct mtd_info *slave; in allocate_partition() 784 struct mtd_info *p, *new; in mtd_add_partition() 838 struct mtd_info *slave, *next; in mtd_del_partition() [all …]
|
| A D | mtdconcat.c | 40 struct mtd_info mtd; 42 struct mtd_info **subdev; 76 struct mtd_info *subdev = concat->subdev[i]; in concat_read() 132 struct mtd_info *subdev = concat->subdev[i]; in concat_write() 191 struct mtd_info *subdev = concat->subdev[i]; in concat_writev() 248 struct mtd_info *subdev = concat->subdev[i]; in concat_read_oob() 308 struct mtd_info *subdev = concat->subdev[i]; in concat_write_oob() 386 struct mtd_info *subdev; in concat_erase() 512 struct mtd_info *subdev = concat->subdev[i]; in concat_lock() 574 static void concat_sync(struct mtd_info *mtd) in concat_sync() [all …]
|
| A D | cfi_mtd.c | 18 static struct mtd_info cfi_mtd_info[CFI_MAX_FLASH_BANKS]; 24 static int cfi_mtd_erase(struct mtd_info *mtd, struct erase_info *instr) in cfi_mtd_erase() 68 static int cfi_mtd_read(struct mtd_info *mtd, loff_t from, size_t len, in cfi_mtd_read() 81 static int cfi_mtd_write(struct mtd_info *mtd, loff_t to, size_t len, in cfi_mtd_write() 100 static void cfi_mtd_sync(struct mtd_info *mtd) in cfi_mtd_sync() 109 static int cfi_mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in cfi_mtd_lock() 121 static int cfi_mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in cfi_mtd_unlock() 133 static int cfi_mtd_set_erasesize(struct mtd_info *mtd, flash_info_t *fi) in cfi_mtd_set_erasesize() 206 struct mtd_info *mtd; in cfi_mtd_init() 211 struct mtd_info *mtd_list[CONFIG_SYS_MAX_FLASH_BANKS]; in cfi_mtd_init() [all …]
|
| /u-boot/drivers/mtd/nand/raw/ |
| A D | nand.c | 19 static struct mtd_info *nand_info[CONFIG_SYS_MAX_NAND_DEVICE]; 30 struct mtd_info *get_nand_dev_by_index(int dev) in get_nand_dev_by_index() 39 int nand_mtd_to_devnum(struct mtd_info *mtd) in nand_mtd_to_devnum() 52 int nand_register(int devnum, struct mtd_info *mtd) in nand_register() 82 struct mtd_info *mtd = nand_to_mtd(nand); in nand_init_chip() 104 struct mtd_info *nand_info_list[CONFIG_SYS_MAX_NAND_DEVICE]; in create_mtd_concat() 109 struct mtd_info *mtd = get_nand_dev_by_index(i); in create_mtd_concat() 116 struct mtd_info *mtd; in create_mtd_concat()
|
| A D | kmeter1_nand.c | 49 static void kpn_nand_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl) in kpn_nand_hwcontrol() 74 static u_char kpn_nand_read_byte(struct mtd_info *mtd) in kpn_nand_read_byte() 79 static void kpn_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len) in kpn_nand_write_buf() 89 static void kpn_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) in kpn_nand_read_buf() 97 static int kpn_nand_dev_ready(struct mtd_info *mtd) in kpn_nand_dev_ready()
|
| A D | vf610_nfc.c | 200 static inline u32 vf610_nfc_read(struct mtd_info *mtd, uint reg) in vf610_nfc_read() 224 static inline void vf610_nfc_set_field(struct mtd_info *mtd, u32 reg, in vf610_nfc_set_field() 254 static void vf610_nfc_done(struct mtd_info *mtd) in vf610_nfc_done() 279 static u8 vf610_nfc_get_id(struct mtd_info *mtd, int col) in vf610_nfc_get_id() 294 static u8 vf610_nfc_get_status(struct mtd_info *mtd) in vf610_nfc_get_status() 355 static void vf610_nfc_command(struct mtd_info *mtd, unsigned command, in vf610_nfc_command() 479 static uint8_t vf610_nfc_read_byte(struct mtd_info *mtd) in vf610_nfc_read_byte() 507 static u16 vf610_nfc_read_word(struct mtd_info *mtd) in vf610_nfc_read_word() 516 static int vf610_nfc_dev_ready(struct mtd_info *mtd) in vf610_nfc_dev_ready() 525 static void vf610_nfc_select_chip(struct mtd_info *mtd, int chip) in vf610_nfc_select_chip() [all …]
|
| /u-boot/drivers/mtd/spi/ |
| A D | sf_mtd.c | 13 static struct mtd_info sf_mtd_info; 17 static int spi_flash_mtd_erase(struct mtd_info *mtd, struct erase_info *instr) in spi_flash_mtd_erase() 40 static int spi_flash_mtd_read(struct mtd_info *mtd, loff_t from, size_t len, in spi_flash_mtd_read() 56 static int spi_flash_mtd_write(struct mtd_info *mtd, loff_t to, size_t len, in spi_flash_mtd_write() 72 static void spi_flash_mtd_sync(struct mtd_info *mtd) in spi_flash_mtd_sync()
|
| /u-boot/drivers/fastboot/ |
| A D | fb_nand.c | 20 struct mtd_info *mtd; 35 struct mtd_info **mtd, in fb_nand_lookup() 69 static int _fb_nand_erase(struct mtd_info *mtd, struct part_info *part) in _fb_nand_erase() 92 static int _fb_nand_write(struct mtd_info *mtd, struct part_info *part, in _fb_nand_write() 160 struct mtd_info *mtd = NULL; in fastboot_nand_get_part_info() 177 struct mtd_info *mtd = NULL; in fastboot_nand_flash_write() 241 struct mtd_info *mtd = NULL; in fastboot_nand_erase()
|
| /u-boot/cmd/ |
| A D | mtd.c | 22 static struct mtd_info *get_mtd_by_name(const char *name) in get_mtd_by_name() 24 struct mtd_info *mtd; in get_mtd_by_name() 36 static uint mtd_len_to_pages(struct mtd_info *mtd, u64 len) in mtd_len_to_pages() 103 static void mtd_show_parts(struct mtd_info *mtd, int level) in mtd_show_parts() 105 struct mtd_info *part; in mtd_show_parts() 118 static void mtd_show_device(struct mtd_info *mtd) in mtd_show_device() 201 struct mtd_info *mtd; in do_mtd_list() 251 struct mtd_info *mtd; in do_mtd_io() 390 struct mtd_info *mtd; in do_mtd_erase() 461 struct mtd_info *mtd; in do_mtd_bad() [all …]
|
| /u-boot/board/emulation/common/ |
| A D | qemu_dfu.c | 14 static void board_get_alt_info(struct mtd_info *mtd, char *buf) in board_get_alt_info() 16 struct mtd_info *part; in board_get_alt_info() 43 struct mtd_info *mtd; in set_dfu_alt_info()
|
| /u-boot/fs/yaffs2/ |
| A D | yaffs_mtdif.c | 65 struct mtd_info *mtd = (struct mtd_info *)(dev->driver_context); in nandmtd_WriteChunkToNAND() 100 struct mtd_info *mtd = (struct mtd_info *)(dev->driver_context); in nandmtd_ReadChunkFromNAND() 136 struct mtd_info *mtd = (struct mtd_info *)(dev->driver_context); in nandmtd_EraseBlockInNAND()
|