Home
last modified time | relevance | path

Searched refs:mtd_info (Results 1 – 25 of 109) sorted by relevance

12345

/external/u-boot/include/linux/mtd/
Dmtd.h46 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 …]
Drawnand.h25 struct mtd_info;
31 struct nand_flash_dev *nand_get_flash_type(struct mtd_info *mtd,
37 int nand_scan(struct mtd_info *mtd, int max_chips);
42 int nand_scan_ident(struct mtd_info *mtd, int max_chips,
44 int nand_scan_tail(struct mtd_info *mtd);
47 void nand_release(struct mtd_info *mtd);
50 void nand_wait_ready(struct mtd_info *mtd);
612 void (*hwctl)(struct mtd_info *mtd, int mode);
613 int (*calculate)(struct mtd_info *mtd, const uint8_t *dat,
615 int (*correct)(struct mtd_info *mtd, uint8_t *dat, uint8_t *read_ecc,
[all …]
Donenand.h28 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 …]
Dnand_bch.h14 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()
Dpartitions.h53 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()
/external/u-boot/include/
Dnand.h36 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 …]
Donenand_uboot.h20 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,
Dmxs_nand.h59 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,
89 int mxs_nand_setup_ecc(struct mtd_info *mtd);
91 void mxs_nand_mode_fcb(struct mtd_info *mtd);
92 void mxs_nand_mode_normal(struct mtd_info *mtd);
93 u32 mxs_nand_mark_byte_offset(struct mtd_info *mtd);
94 u32 mxs_nand_mark_bit_offset(struct mtd_info *mtd);
95 void mxs_nand_get_layout(struct mtd_info *mtd, struct mxs_nand_layout *l);
/external/u-boot/board/socrates/
Dnand.c15 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/
Dmtdcore.c154 struct mtd_info *__mtd_next_device(int i) in __mtd_next_device()
181 struct mtd_info __maybe_unused *mtd = dev_get_drvdata(dev); in mtd_release()
191 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_suspend()
198 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_resume()
208 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_type_show()
247 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_flags_show()
257 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_size_show()
268 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_erasesize_show()
278 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_writesize_show()
288 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_subpagesize_show()
[all …]
Dmtdpart.c66 bool mtd_partitions_used(struct mtd_info *master) in mtd_partitions_used()
68 struct mtd_info *slave; in mtd_partitions_used()
202 int mtd_parse_partitions(struct mtd_info *parent, const char **_mtdparts, in mtd_parse_partitions()
289 static int part_read(struct mtd_info *mtd, loff_t from, size_t len, in part_read()
308 static int part_point(struct mtd_info *mtd, loff_t from, size_t len, in part_point()
315 static int part_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in part_unpoint()
321 static unsigned long part_get_unmapped_area(struct mtd_info *mtd, in part_get_unmapped_area()
330 static int part_read_oob(struct mtd_info *mtd, loff_t from, in part_read_oob()
367 static int part_read_user_prot_reg(struct mtd_info *mtd, loff_t from, in part_read_user_prot_reg()
374 static int part_get_user_prot_info(struct mtd_info *mtd, size_t len, in part_get_user_prot_info()
[all …]
Dmtdconcat.c37 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 …]
Dmtdcore.h8 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,
Dcfi_mtd.c17 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 …]
Daltera_qspi.c58 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/drivers/mtd/nand/raw/
Dnand.c19 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()
Dvf610_nfc.c197 static inline u32 vf610_nfc_read(struct mtd_info *mtd, uint reg) in vf610_nfc_read()
204 static inline void vf610_nfc_write(struct mtd_info *mtd, uint reg, u32 val) in vf610_nfc_write()
211 static inline void vf610_nfc_set(struct mtd_info *mtd, uint reg, u32 bits) in vf610_nfc_set()
216 static inline void vf610_nfc_clear(struct mtd_info *mtd, uint reg, u32 bits) in vf610_nfc_clear()
221 static inline void vf610_nfc_set_field(struct mtd_info *mtd, u32 reg, in vf610_nfc_set_field()
251 static void vf610_nfc_done(struct mtd_info *mtd) in vf610_nfc_done()
276 static u8 vf610_nfc_get_id(struct mtd_info *mtd, int col) in vf610_nfc_get_id()
291 static u8 vf610_nfc_get_status(struct mtd_info *mtd) in vf610_nfc_get_status()
325 static void vf610_nfc_addr_cycle(struct mtd_info *mtd, int column, int page) in vf610_nfc_addr_cycle()
339 static inline void vf610_nfc_ecc_mode(struct mtd_info *mtd, int ecc_mode) in vf610_nfc_ecc_mode()
[all …]
Dnand_base.c95 static int nand_get_device(struct mtd_info *mtd, int new_state);
97 static int nand_do_write_oob(struct mtd_info *mtd, loff_t to,
106 static int check_offs_len(struct mtd_info *mtd, in check_offs_len()
133 static void nand_release_device(struct mtd_info *mtd) in nand_release_device()
147 uint8_t nand_read_byte(struct mtd_info *mtd) in nand_read_byte()
160 static uint8_t nand_read_byte16(struct mtd_info *mtd) in nand_read_byte16()
172 static u16 nand_read_word(struct mtd_info *mtd) in nand_read_word()
185 static void nand_select_chip(struct mtd_info *mtd, int chipnr) in nand_select_chip()
208 static void nand_write_byte(struct mtd_info *mtd, uint8_t byte) in nand_write_byte()
222 static void nand_write_byte16(struct mtd_info *mtd, uint8_t byte) in nand_write_byte16()
[all …]
Dlpc32xx_nand_slc.c137 static void lpc32xx_nand_cmd_ctrl(struct mtd_info *mtd, in lpc32xx_nand_cmd_ctrl()
156 static int lpc32xx_nand_dev_ready(struct mtd_info *mtd) in lpc32xx_nand_dev_ready()
283 static void lpc32xx_nand_xfer(struct mtd_info *mtd, const u8 *buf, in lpc32xx_nand_xfer()
348 static int lpc32xx_ecc_calculate(struct mtd_info *mtd, const uint8_t *dat, in lpc32xx_ecc_calculate()
358 static void lpc32xx_hwecc_enable(struct mtd_info *mtd, int mode) in lpc32xx_hwecc_enable()
376 int lpc32xx_correct_data(struct mtd_info *mtd, u_char *dat, in lpc32xx_correct_data()
400 static void lpc32xx_dma_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in lpc32xx_dma_read_buf()
405 static void lpc32xx_dma_write_buf(struct mtd_info *mtd, const uint8_t *buf, in lpc32xx_dma_write_buf()
412 static int lpc32xx_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, in lpc32xx_read_page_hwecc()
450 static int lpc32xx_write_page_hwecc(struct mtd_info *mtd, in lpc32xx_write_page_hwecc()
[all …]
Dkmeter1_nand.c48 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()
Ddavinci_nand.c55 static void nand_davinci_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in nand_davinci_read_buf()
99 static void nand_davinci_write_buf(struct mtd_info *mtd, const uint8_t *buf, in nand_davinci_write_buf()
144 static void nand_davinci_hwcontrol(struct mtd_info *mtd, int cmd, in nand_davinci_hwcontrol()
166 static u_int32_t nand_davinci_readecc(struct mtd_info *mtd) in nand_davinci_readecc()
176 static void nand_davinci_enable_hwecc(struct mtd_info *mtd, int mode) in nand_davinci_enable_hwecc()
189 static int nand_davinci_calculate_ecc(struct mtd_info *mtd, const u_char *dat, in nand_davinci_calculate_ecc()
223 static int nand_davinci_correct_data(struct mtd_info *mtd, u_char *dat, in nand_davinci_correct_data()
363 static int nand_davinci_write_page(struct mtd_info *mtd, struct nand_chip *chip, in nand_davinci_write_page()
422 static int nand_davinci_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, in nand_davinci_read_page_hwecc()
474 static void nand_davinci_4bit_enable_hwecc(struct mtd_info *mtd, int mode) in nand_davinci_4bit_enable_hwecc()
[all …]
/external/u-boot/cmd/
Dmtd.c20 static struct mtd_info *get_mtd_by_name(const char *name) in get_mtd_by_name()
22 struct mtd_info *mtd; in get_mtd_by_name()
34 static uint mtd_len_to_pages(struct mtd_info *mtd, u64 len) in mtd_len_to_pages()
41 static bool mtd_is_aligned_with_min_io_size(struct mtd_info *mtd, u64 size) in mtd_is_aligned_with_min_io_size()
46 static bool mtd_is_aligned_with_block_size(struct mtd_info *mtd, u64 size) in mtd_is_aligned_with_block_size()
68 static void mtd_dump_device_buf(struct mtd_info *mtd, u64 start_off, in mtd_dump_device_buf()
101 static void mtd_show_parts(struct mtd_info *mtd, int level) in mtd_show_parts()
103 struct mtd_info *part; in mtd_show_parts()
116 static void mtd_show_device(struct mtd_info *mtd) in mtd_show_device()
199 struct mtd_info *mtd; in do_mtd_list()
[all …]
/external/u-boot/drivers/fastboot/
Dfb_nand.c18 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/onenand/
Dsamsung.c57 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/mtd/spi/
Dsf_mtd.c12 static struct mtd_info sf_mtd_info;
16 static int spi_flash_mtd_erase(struct mtd_info *mtd, struct erase_info *instr) in spi_flash_mtd_erase()
39 static int spi_flash_mtd_read(struct mtd_info *mtd, loff_t from, size_t len, in spi_flash_mtd_read()
55 static int spi_flash_mtd_write(struct mtd_info *mtd, loff_t to, size_t len, in spi_flash_mtd_write()
71 static void spi_flash_mtd_sync(struct mtd_info *mtd) in spi_flash_mtd_sync()

12345