Searched refs:mtd_info (Results 1 - 25 of 139) sorted by relevance

123456

/u-boot/include/linux/mtd/
H A Dconcat.h12 struct mtd_info *mtd_concat_create(
13 struct mtd_info *subdev[], /* subdevices to concatenate */
21 void mtd_concat_destroy(struct mtd_info *mtd);
H A Dnand_ecc.h15 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);
H A 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,
53 nand_bch_correct_data(struct mtd_info *mtd, unsigned char *buf,
59 static inline struct nand_bch_control *nand_bch_init(struct mtd_info *mtd)
H A 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,
H A Dmtd.h47 struct mtd_info *mtd;
130 int (*ecc)(struct mtd_info *mtd, int section,
132 int (*rfree)(struct mtd_info *mtd, int section,
149 struct module; /* only needed for owner field in mtd_info */
151 struct mtd_info { struct
165 * Any driver registering a struct mtd_info must ensure a writesize of
233 int (*_erase) (struct mtd_info *mtd, struct erase_info *instr);
235 int (*_point) (struct mtd_info *mtd, loff_t from, size_t len,
237 int (*_unpoint) (struct mtd_info *mtd, loff_t from, size_t len);
239 unsigned long (*_get_unmapped_area) (struct mtd_info *mt
[all...]
H A 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 *mt
[all...]
H A Drawnand.h26 struct mtd_info;
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);
611 void (*hwctl)(struct mtd_info *mtd, int mode);
612 int (*calculate)(struct mtd_info *mtd, const uint8_t *dat,
614 int (*correct)(struct mtd_info *mtd, uint8_t *dat, uint8_t *read_ecc,
616 int (*read_page_raw)(struct mtd_info *mt
[all...]
H A Dbbm.h144 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);
/u-boot/drivers/mtd/
H A 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,
H A Dmtd-uclass.c16 * The uclass private is pointed to mtd_info.
22 .per_device_auto = sizeof(struct mtd_info),
H A Dmtdcore.c156 struct mtd_info *__mtd_next_device(int i)
179 * the mtd_info will probably want to use the release() hook...
183 struct mtd_info __maybe_unused *mtd = dev_get_drvdata(dev);
193 struct mtd_info *mtd = dev_get_drvdata(dev);
200 struct mtd_info *mtd = dev_get_drvdata(dev);
210 struct mtd_info *mtd = dev_get_drvdata(dev);
249 struct mtd_info *mtd = dev_get_drvdata(dev);
259 struct mtd_info *mtd = dev_get_drvdata(dev);
270 struct mtd_info *mtd = dev_get_drvdata(dev);
280 struct mtd_info *mt
[all...]
H A Dmtdpart.c69 bool mtd_partitions_used(struct mtd_info *master)
71 struct mtd_info *slave;
205 int mtd_parse_partitions(struct mtd_info *parent, const char **_mtdparts,
292 static int part_read(struct mtd_info *mtd, loff_t from, size_t len,
311 static int part_point(struct mtd_info *mtd, loff_t from, size_t len,
318 static int part_unpoint(struct mtd_info *mtd, loff_t from, size_t len)
324 static unsigned long part_get_unmapped_area(struct mtd_info *mtd,
333 static int part_read_oob(struct mtd_info *mtd, loff_t from,
370 static int part_read_user_prot_reg(struct mtd_info *mtd, loff_t from,
377 static int part_get_user_prot_info(struct mtd_info *mt
[all...]
H A Dcfi_mtd.c18 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)
67 static int cfi_mtd_read(struct mtd_info *mtd, loff_t from, size_t len,
80 static int cfi_mtd_write(struct mtd_info *mtd, loff_t to, size_t len,
99 static void cfi_mtd_sync(struct mtd_info *mtd)
108 static int cfi_mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len)
120 static int cfi_mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len)
132 static int cfi_mtd_set_erasesize(struct mtd_info *mtd, flash_info_t *fi)
205 struct mtd_info *mtd;
210 struct mtd_info *mtd_lis
[all...]
/u-boot/include/
H A Dnand.h21 int nand_mtd_to_devnum(struct mtd_info *mtd);
25 int nand_register(int devnum, struct mtd_info *mtd);
26 void nand_unregister(struct mtd_info *mtd);
35 static inline int nand_read(struct mtd_info *info, loff_t ofs, size_t *len,
41 static inline int nand_write(struct mtd_info *info, loff_t ofs, size_t *len,
47 static inline int nand_block_isbad(struct mtd_info *info, loff_t ofs)
52 static inline int nand_erase(struct mtd_info *info, loff_t off, size_t size)
87 int nand_read_skip_bad(struct mtd_info *mtd, loff_t offset, size_t *length,
93 int nand_write_skip_bad(struct mtd_info *mtd, loff_t offset, size_t *length,
95 int nand_erase_opts(struct mtd_info *mt
[all...]
H A 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,
H A Dmxs_nand.h67 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 *mt
[all...]
/u-boot/board/socrates/
H A Dnand.c16 static void sc_nand_write_byte(struct mtd_info *mtd, u_char byte);
17 static void sc_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len);
18 static u_char sc_nand_read_byte(struct mtd_info *mtd);
19 static u16 sc_nand_read_word(struct mtd_info *mtd);
20 static void sc_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len);
21 static int sc_nand_device_ready(struct mtd_info *mtdinfo);
37 static void sc_nand_write_byte(struct mtd_info *mtd, u_char byte)
48 static void sc_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len)
64 static u_char sc_nand_read_byte(struct mtd_info *mtd)
75 static u16 sc_nand_read_word(struct mtd_info *mt
[all...]
/u-boot/drivers/mtd/onenand/
H A Donenand_uboot.c22 struct mtd_info onenand_mtd;
29 memset(&onenand_mtd, 0, sizeof(struct mtd_info));
/u-boot/board/samsung/goni/
H A Donenand.c13 int onenand_board_init(struct mtd_info *mtd)
/u-boot/board/samsung/universal_c210/
H A Donenand.c12 int onenand_board_init(struct mtd_info *mtd)
/u-boot/drivers/mtd/nand/raw/
H A Dnand.c20 static struct mtd_info *nand_info[CONFIG_SYS_MAX_NAND_DEVICE];
31 struct mtd_info *get_nand_dev_by_index(int dev)
40 int nand_mtd_to_devnum(struct mtd_info *mtd)
56 int nand_register(int devnum, struct mtd_info *mtd)
80 void nand_unregister(struct mtd_info *mtd)
101 struct mtd_info *mtd = nand_to_mtd(nand);
121 struct mtd_info *concat_mtd;
125 struct mtd_info *nand_info_list[CONFIG_SYS_MAX_NAND_DEVICE];
130 struct mtd_info *mtd = get_nand_dev_by_index(i);
224 struct mtd_info *mt
[all...]
H A Dkmeter1_nand.c50 static void kpn_nand_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl)
75 static u_char kpn_nand_read_byte(struct mtd_info *mtd)
80 static void kpn_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len)
90 static void kpn_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len)
98 static int kpn_nand_dev_ready(struct mtd_info *mtd)
/u-boot/board/socionext/developerbox/
H A Dfwu_plat.c18 struct mtd_info *mtd;
53 struct mtd_info *mtd;
/u-boot/board/emulation/common/
H A Dqemu_dfu.c14 static void board_get_alt_info(struct mtd_info *mtd, char *buf)
16 struct mtd_info *part;
43 struct mtd_info *mtd;
/u-boot/drivers/mtd/spi/
H A Dsf_mtd.c26 static struct mtd_info sf_mtd_info;
30 static int spi_flash_mtd_erase(struct mtd_info *mtd, struct erase_info *instr)
52 static int spi_flash_mtd_read(struct mtd_info *mtd, loff_t from, size_t len,
68 static int spi_flash_mtd_write(struct mtd_info *mtd, loff_t to, size_t len,
84 static void spi_flash_mtd_sync(struct mtd_info *mtd)

Completed in 393 milliseconds

123456