/external/u-boot/include/linux/mtd/ |
D | mtd.h | 42 struct mtd_info *mtd; 130 int (*ecc)(struct mtd_info *mtd, int section, 132 int (*free)(struct mtd_info *mtd, int section, 151 struct mtd_info { struct 233 int (*_erase) (struct mtd_info *mtd, struct erase_info *instr); argument 235 int (*_point) (struct mtd_info *mtd, loff_t from, size_t len, argument 237 int (*_unpoint) (struct mtd_info *mtd, loff_t from, size_t len); argument 239 unsigned long (*_get_unmapped_area) (struct mtd_info *mtd, argument 243 int (*_read) (struct mtd_info *mtd, loff_t from, size_t len, argument 245 int (*_write) (struct mtd_info *mtd, loff_t to, size_t len, argument [all …]
|
D | rawnand.h | 24 struct mtd_info; 30 struct nand_flash_dev *nand_get_flash_type(struct mtd_info *mtd, 36 int nand_scan(struct mtd_info *mtd, int max_chips); 41 int nand_scan_ident(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); 596 void (*hwctl)(struct mtd_info *mtd, int mode); 597 int (*calculate)(struct mtd_info *mtd, const uint8_t *dat, 599 int (*correct)(struct mtd_info *mtd, uint8_t *dat, uint8_t *read_ecc, [all …]
|
D | onenand.h | 28 extern int onenand_scan (struct mtd_info *mtd, int max_chips); 30 extern void onenand_release (struct mtd_info *mtd); 92 int (*command) (struct mtd_info *mtd, int cmd, loff_t address, 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); 97 int (*read_bufferram) (struct mtd_info *mtd, loff_t addr, int area, 99 int (*write_bufferram) (struct mtd_info *mtd, loff_t addr, int area, 104 int (*chip_probe)(struct mtd_info *mtd); 105 void (*mmcontrol) (struct mtd_info *mtd, int sync_read); [all …]
|
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()
|
D | partitions.h | 53 struct mtd_info; 76 int (*parse_fn)(struct mtd_info *, struct mtd_partition **, 84 int mtd_is_partition(const struct mtd_info *mtd); 85 int mtd_add_partition(struct mtd_info *master, const char *name, 87 int mtd_del_partition(struct mtd_info *master, int partno); 88 uint64_t mtd_get_device_size(const struct mtd_info *mtd);
|
/external/u-boot/include/ |
D | nand.h | 36 int nand_mtd_to_devnum(struct mtd_info *mtd); 40 int nand_register(int devnum, struct mtd_info *mtd); 47 static inline int nand_read(struct mtd_info *info, loff_t ofs, size_t *len, in nand_read() 53 static inline int nand_write(struct mtd_info *info, loff_t ofs, size_t *len, in nand_write() 59 static inline int nand_block_isbad(struct mtd_info *info, loff_t ofs) in nand_block_isbad() 64 static inline int nand_erase(struct mtd_info *info, loff_t off, size_t size) in nand_erase() 100 int nand_read_skip_bad(struct mtd_info *mtd, loff_t offset, size_t *length, 106 int nand_write_skip_bad(struct mtd_info *mtd, loff_t offset, size_t *length, 108 int nand_erase_opts(struct mtd_info *mtd, 110 int nand_torture(struct mtd_info *mtd, loff_t offset); [all …]
|
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,
|
/external/u-boot/drivers/mtd/ |
D | mtdcore.c | 79 struct mtd_info *mtd_table[MAX_MTD_DEVICES]; 152 struct mtd_info *__mtd_next_device(int i) in __mtd_next_device() 169 struct mtd_info __maybe_unused *mtd = dev_get_drvdata(dev); in mtd_release() 179 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_suspend() 186 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_resume() 196 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_type_show() 235 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_flags_show() 245 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_size_show() 256 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_erasesize_show() 266 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_writesize_show() [all …]
|
D | mtdconcat.c | 37 struct mtd_info mtd; 39 struct mtd_info **subdev; 47 ((sizeof(struct mtd_concat) + (num_subdev) * sizeof(struct mtd_info *))) 61 concat_read(struct mtd_info *mtd, loff_t from, size_t len, in concat_read() 73 struct mtd_info *subdev = concat->subdev[i]; in concat_read() 117 concat_write(struct mtd_info *mtd, loff_t to, size_t len, in concat_write() 129 struct mtd_info *subdev = concat->subdev[i]; in concat_write() 160 concat_writev(struct mtd_info *mtd, const struct kvec *vecs, in concat_writev() 188 struct mtd_info *subdev = concat->subdev[i]; in concat_writev() 236 concat_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops) in concat_read_oob() [all …]
|
D | mtdpart.c | 42 struct mtd_info mtd; 43 struct mtd_info *master; 84 static int part_read(struct mtd_info *mtd, loff_t from, size_t len, in part_read() 104 static int part_point(struct mtd_info *mtd, loff_t from, size_t len, in part_point() 113 static int part_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in part_unpoint() 121 static unsigned long part_get_unmapped_area(struct mtd_info *mtd, in part_get_unmapped_area() 133 static int part_read_oob(struct mtd_info *mtd, loff_t from, in part_read_oob() 171 static int part_read_user_prot_reg(struct mtd_info *mtd, loff_t from, in part_read_user_prot_reg() 179 static int part_get_user_prot_info(struct mtd_info *mtd, size_t len, in part_get_user_prot_info() 187 static int part_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, in part_read_fact_prot_reg() [all …]
|
D | mtdcore.h | 8 struct mtd_info *__mtd_next_device(int i); 9 int add_mtd_device(struct mtd_info *mtd); 10 int del_mtd_device(struct mtd_info *mtd); 11 int add_mtd_partitions(struct mtd_info *, const struct mtd_partition *, int); 12 int del_mtd_partitions(struct mtd_info *); 13 int parse_mtd_partitions(struct mtd_info *master, const char * const *types,
|
D | cfi_mtd.c | 17 static struct mtd_info cfi_mtd_info[CFI_MAX_FLASH_BANKS]; 23 static int cfi_mtd_erase(struct mtd_info *mtd, struct erase_info *instr) in cfi_mtd_erase() 67 static int cfi_mtd_read(struct mtd_info *mtd, loff_t from, size_t len, in cfi_mtd_read() 79 static int cfi_mtd_write(struct mtd_info *mtd, loff_t to, size_t len, in cfi_mtd_write() 98 static void cfi_mtd_sync(struct mtd_info *mtd) in cfi_mtd_sync() 107 static int cfi_mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in cfi_mtd_lock() 119 static int cfi_mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in cfi_mtd_unlock() 131 static int cfi_mtd_set_erasesize(struct mtd_info *mtd, flash_info_t *fi) in cfi_mtd_set_erasesize() 204 struct mtd_info *mtd; in cfi_mtd_init() 209 struct mtd_info *mtd_list[CONFIG_SYS_MAX_FLASH_BANKS]; in cfi_mtd_init() [all …]
|
D | altera_qspi.c | 58 static void altera_qspi_get_locked_range(struct mtd_info *mtd, loff_t *ofs, 63 struct mtd_info *mtd = info->mtd; in flash_print_info() 85 struct mtd_info *mtd = info->mtd; in flash_erase() 105 struct mtd_info *mtd = info->mtd; in write_buff() 133 static int altera_qspi_erase(struct mtd_info *mtd, struct erase_info *instr) in altera_qspi_erase() 194 static int altera_qspi_read(struct mtd_info *mtd, loff_t from, size_t len, in altera_qspi_read() 206 static int altera_qspi_write(struct mtd_info *mtd, loff_t to, size_t len, in altera_qspi_write() 228 static void altera_qspi_sync(struct mtd_info *mtd) in altera_qspi_sync() 232 static void altera_qspi_get_locked_range(struct mtd_info *mtd, loff_t *ofs, in altera_qspi_get_locked_range() 255 static int altera_qspi_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in altera_qspi_lock() [all …]
|
/external/u-boot/board/socrates/ |
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() 47 static void sc_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len) in sc_nand_write_buf() 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() [all …]
|
/external/u-boot/drivers/mtd/nand/ |
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()
|
D | vf610_nfc.c | 192 static inline u32 vf610_nfc_read(struct mtd_info *mtd, uint reg) in vf610_nfc_read() 199 static inline void vf610_nfc_write(struct mtd_info *mtd, uint reg, u32 val) in vf610_nfc_write() 206 static inline void vf610_nfc_set(struct mtd_info *mtd, uint reg, u32 bits) in vf610_nfc_set() 211 static inline void vf610_nfc_clear(struct mtd_info *mtd, uint reg, u32 bits) in vf610_nfc_clear() 216 static inline void vf610_nfc_set_field(struct mtd_info *mtd, u32 reg, in vf610_nfc_set_field() 246 static void vf610_nfc_done(struct mtd_info *mtd) in vf610_nfc_done() 271 static u8 vf610_nfc_get_id(struct mtd_info *mtd, int col) in vf610_nfc_get_id() 286 static u8 vf610_nfc_get_status(struct mtd_info *mtd) in vf610_nfc_get_status() 320 static void vf610_nfc_addr_cycle(struct mtd_info *mtd, int column, int page) in vf610_nfc_addr_cycle() 334 static inline void vf610_nfc_ecc_mode(struct mtd_info *mtd, int ecc_mode) in vf610_nfc_ecc_mode() [all …]
|
D | lpc32xx_nand_slc.c | 144 static void lpc32xx_nand_cmd_ctrl(struct mtd_info *mtd, in lpc32xx_nand_cmd_ctrl() 163 static int lpc32xx_nand_dev_ready(struct mtd_info *mtd) in lpc32xx_nand_dev_ready() 290 static void lpc32xx_nand_xfer(struct mtd_info *mtd, const u8 *buf, in lpc32xx_nand_xfer() 356 static int lpc32xx_ecc_calculate(struct mtd_info *mtd, const uint8_t *dat, in lpc32xx_ecc_calculate() 366 static void lpc32xx_hwecc_enable(struct mtd_info *mtd, int mode) in lpc32xx_hwecc_enable() 384 int lpc32xx_correct_data(struct mtd_info *mtd, u_char *dat, in lpc32xx_correct_data() 410 static void lpc32xx_dma_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in lpc32xx_dma_read_buf() 415 static void lpc32xx_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in lpc32xx_read_buf() 422 static uint8_t lpc32xx_read_byte(struct mtd_info *mtd) in lpc32xx_read_byte() 428 static void lpc32xx_dma_write_buf(struct mtd_info *mtd, const uint8_t *buf, in lpc32xx_dma_write_buf() [all …]
|
D | nand_base.c | 93 static int nand_get_device(struct mtd_info *mtd, int new_state); 95 static int nand_do_write_oob(struct mtd_info *mtd, loff_t to, 104 static int check_offs_len(struct mtd_info *mtd, in check_offs_len() 131 static void nand_release_device(struct mtd_info *mtd) in nand_release_device() 145 uint8_t nand_read_byte(struct mtd_info *mtd) in nand_read_byte() 158 static uint8_t nand_read_byte16(struct mtd_info *mtd) in nand_read_byte16() 170 static u16 nand_read_word(struct mtd_info *mtd) in nand_read_word() 183 static void nand_select_chip(struct mtd_info *mtd, int chipnr) in nand_select_chip() 206 static void nand_write_byte(struct mtd_info *mtd, uint8_t byte) in nand_write_byte() 220 static void nand_write_byte16(struct mtd_info *mtd, uint8_t byte) in nand_write_byte16() [all …]
|
D | kmeter1_nand.c | 48 static void kpn_nand_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl) in kpn_nand_hwcontrol() 73 static u_char kpn_nand_read_byte(struct mtd_info *mtd) in kpn_nand_read_byte() 78 static void kpn_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len) in kpn_nand_write_buf() 88 static void kpn_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) in kpn_nand_read_buf() 96 static int kpn_nand_dev_ready(struct mtd_info *mtd) in kpn_nand_dev_ready()
|
D | davinci_nand.c | 54 static void nand_davinci_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in nand_davinci_read_buf() 98 static void nand_davinci_write_buf(struct mtd_info *mtd, const uint8_t *buf, in nand_davinci_write_buf() 143 static void nand_davinci_hwcontrol(struct mtd_info *mtd, int cmd, in nand_davinci_hwcontrol() 165 static u_int32_t nand_davinci_readecc(struct mtd_info *mtd) in nand_davinci_readecc() 175 static void nand_davinci_enable_hwecc(struct mtd_info *mtd, int mode) in nand_davinci_enable_hwecc() 188 static int nand_davinci_calculate_ecc(struct mtd_info *mtd, const u_char *dat, in nand_davinci_calculate_ecc() 222 static int nand_davinci_correct_data(struct mtd_info *mtd, u_char *dat, in nand_davinci_correct_data() 362 static int nand_davinci_write_page(struct mtd_info *mtd, struct nand_chip *chip, in nand_davinci_write_page() 421 static int nand_davinci_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, in nand_davinci_read_page_hwecc() 473 static void nand_davinci_4bit_enable_hwecc(struct mtd_info *mtd, int mode) in nand_davinci_4bit_enable_hwecc() [all …]
|
D | mxs_nand_spl.c | 11 static struct mtd_info *mtd; 14 static void mxs_nand_command(struct mtd_info *mtd, unsigned int command, in mxs_nand_command() 55 static int mxs_flash_full_ident(struct mtd_info *mtd) in mxs_flash_full_ident() 74 static int mxs_flash_onfi_ident(struct mtd_info *mtd) in mxs_flash_onfi_ident() 136 static int mxs_flash_ident(struct mtd_info *mtd) in mxs_flash_ident() 147 static int mxs_read_page_ecc(struct mtd_info *mtd, void *buf, unsigned int page) in mxs_read_page_ecc() 161 static int is_badblock(struct mtd_info *mtd, loff_t offs, int allowbbt) in is_badblock() 252 int nand_default_bbt(struct mtd_info *mtd) in nand_default_bbt()
|
D | mxs_nand.h | 59 int (*hooked_read_oob)(struct mtd_info *mtd, 61 int (*hooked_write_oob)(struct mtd_info *mtd, 63 int (*hooked_block_markbad)(struct mtd_info *mtd, 73 int mxs_nand_setup_ecc(struct mtd_info *mtd);
|
/external/u-boot/drivers/mtd/onenand/ |
D | samsung.c | 57 struct mtd_info *mtd; 209 static int s3c_onenand_wait(struct mtd_info *mtd, int state) in s3c_onenand_wait() 270 static int s3c_onenand_command(struct mtd_info *mtd, int cmd, in s3c_onenand_command() 374 static unsigned char *s3c_get_bufferram(struct mtd_info *mtd, int area) in s3c_get_bufferram() 393 static int onenand_read_bufferram(struct mtd_info *mtd, loff_t addr, int area, in onenand_read_bufferram() 404 static int onenand_write_bufferram(struct mtd_info *mtd, loff_t addr, int area, in onenand_write_bufferram() 415 static int s3c_onenand_bbt_wait(struct mtd_info *mtd, int state) in s3c_onenand_bbt_wait() 447 static void s3c_onenand_check_lock_status(struct mtd_info *mtd) in s3c_onenand_check_lock_status() 464 static void s3c_onenand_do_lock_cmd(struct mtd_info *mtd, loff_t ofs, in s3c_onenand_do_lock_cmd() 486 static void s3c_onenand_unlock_all(struct mtd_info *mtd) in s3c_onenand_unlock_all() [all …]
|
/external/u-boot/drivers/fastboot/ |
D | fb_nand.c | 18 struct mtd_info *mtd; 33 struct mtd_info **mtd, in fb_nand_lookup() 67 static int _fb_nand_erase(struct mtd_info *mtd, struct part_info *part) in _fb_nand_erase() 90 static int _fb_nand_write(struct mtd_info *mtd, struct part_info *part, in _fb_nand_write() 158 struct mtd_info *mtd = NULL; in fastboot_nand_get_part_info() 175 struct mtd_info *mtd = NULL; in fastboot_nand_flash_write() 239 struct mtd_info *mtd = NULL; in fastboot_nand_erase()
|
/external/u-boot/drivers/mtd/spi/ |
D | sf_mtd.c | 12 static struct mtd_info sf_mtd_info; 15 static int spi_flash_mtd_erase(struct mtd_info *mtd, struct erase_info *instr) in spi_flash_mtd_erase() 35 static int spi_flash_mtd_read(struct mtd_info *mtd, loff_t from, size_t len, in spi_flash_mtd_read() 48 static int spi_flash_mtd_write(struct mtd_info *mtd, loff_t to, size_t len, in spi_flash_mtd_write() 61 static void spi_flash_mtd_sync(struct mtd_info *mtd) in spi_flash_mtd_sync()
|