/linux-3.4.99/include/linux/mtd/ |
D | mtd.h | 49 struct mtd_info *mtd; 117 struct mtd_info { struct 180 int (*_erase) (struct mtd_info *mtd, struct erase_info *instr); argument 181 int (*_point) (struct mtd_info *mtd, loff_t from, size_t len, argument 183 int (*_unpoint) (struct mtd_info *mtd, loff_t from, size_t len); argument 184 unsigned long (*_get_unmapped_area) (struct mtd_info *mtd, argument 188 int (*_read) (struct mtd_info *mtd, loff_t from, size_t len, argument 190 int (*_write) (struct mtd_info *mtd, loff_t to, size_t len, argument 192 int (*_panic_write) (struct mtd_info *mtd, loff_t to, size_t len, argument 194 int (*_read_oob) (struct mtd_info *mtd, loff_t from, argument [all …]
|
D | nand.h | 27 struct mtd_info; 30 extern int nand_scan(struct mtd_info *mtd, int max_chips); 35 extern int nand_scan_ident(struct mtd_info *mtd, int max_chips, 37 extern int nand_scan_tail(struct mtd_info *mtd); 40 extern void nand_release(struct mtd_info *mtd); 43 extern void nand_wait_ready(struct mtd_info *mtd); 46 extern int nand_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len); 49 extern int nand_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len); 357 void (*hwctl)(struct mtd_info *mtd, int mode); 358 int (*calculate)(struct mtd_info *mtd, const uint8_t *dat, [all …]
|
D | onenand.h | 25 extern int onenand_scan(struct mtd_info *mtd, int max_chips); 27 extern void onenand_release(struct mtd_info *mtd); 107 int (*command)(struct mtd_info *mtd, int cmd, loff_t address, size_t len); 108 int (*wait)(struct mtd_info *mtd, int state); 109 int (*bbt_wait)(struct mtd_info *mtd, int state); 110 void (*unlock_all)(struct mtd_info *mtd); 111 int (*read_bufferram)(struct mtd_info *mtd, int area, 113 int (*write_bufferram)(struct mtd_info *mtd, int area, 117 void (*mmcontrol)(struct mtd_info *mtd, int sync_read); 118 int (*chip_probe)(struct mtd_info *mtd); [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, 36 nand_bch_init(struct mtd_info *mtd, unsigned int eccsize, 48 nand_bch_calculate_ecc(struct mtd_info *mtd, const u_char *dat, in nand_bch_calculate_ecc() 55 nand_bch_correct_data(struct mtd_info *mtd, unsigned char *buf, in nand_bch_correct_data() 62 nand_bch_init(struct mtd_info *mtd, unsigned int eccsize, in nand_bch_init()
|
D | partitions.h | 53 struct mtd_info; 75 int (*parse_fn)(struct mtd_info *, struct mtd_partition **, 82 int mtd_is_partition(struct mtd_info *mtd); 83 int mtd_add_partition(struct mtd_info *master, char *name, 85 int mtd_del_partition(struct mtd_info *master, int partno);
|
/linux-3.4.99/drivers/mtd/devices/ |
D | mtdram.c | 33 static struct mtd_info *mtd_info; variable 35 static int ram_erase(struct mtd_info *mtd, struct erase_info *instr) in ram_erase() 43 static int ram_point(struct mtd_info *mtd, loff_t from, size_t len, in ram_point() 51 static int ram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in ram_unpoint() 61 static unsigned long ram_get_unmapped_area(struct mtd_info *mtd, in ram_get_unmapped_area() 69 static int ram_read(struct mtd_info *mtd, loff_t from, size_t len, in ram_read() 77 static int ram_write(struct mtd_info *mtd, loff_t to, size_t len, in ram_write() 87 if (mtd_info) { in cleanup_mtdram() 88 mtd_device_unregister(mtd_info); in cleanup_mtdram() 89 vfree(mtd_info->priv); in cleanup_mtdram() [all …]
|
D | slram.c | 60 struct mtd_info *mtdinfo; 75 static int slram_erase(struct mtd_info *, struct erase_info *); 76 static int slram_point(struct mtd_info *, loff_t, size_t, size_t *, void **, 78 static int slram_unpoint(struct mtd_info *, loff_t, size_t); 79 static int slram_read(struct mtd_info *, loff_t, size_t, size_t *, u_char *); 80 static int slram_write(struct mtd_info *, loff_t, size_t, size_t *, const u_char *); 82 static int slram_erase(struct mtd_info *mtd, struct erase_info *instr) in slram_erase() 96 static int slram_point(struct mtd_info *mtd, loff_t from, size_t len, in slram_point() 106 static int slram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in slram_unpoint() 111 static int slram_read(struct mtd_info *mtd, loff_t from, size_t len, in slram_read() [all …]
|
/linux-3.4.99/drivers/mtd/chips/ |
D | map_absent.c | 29 static int map_absent_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *); 30 static int map_absent_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *); 31 static int map_absent_erase (struct mtd_info *, struct erase_info *); 32 static void map_absent_sync (struct mtd_info *); 33 static struct mtd_info *map_absent_probe(struct map_info *map); 34 static void map_absent_destroy (struct mtd_info *); 44 static struct mtd_info *map_absent_probe(struct map_info *map) in map_absent_probe() 46 struct mtd_info *mtd; in map_absent_probe() 71 static int map_absent_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *b… in map_absent_read() 76 static int map_absent_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_ch… in map_absent_write() [all …]
|
D | map_rom.c | 17 static int maprom_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *); 18 static int maprom_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *); 19 static void maprom_nop (struct mtd_info *); 20 static struct mtd_info *map_rom_probe(struct map_info *map); 21 static int maprom_erase (struct mtd_info *mtd, struct erase_info *info); 22 static unsigned long maprom_unmapped_area(struct mtd_info *, unsigned long, 31 static struct mtd_info *map_rom_probe(struct map_info *map) in map_rom_probe() 33 struct mtd_info *mtd; in map_rom_probe() 63 static unsigned long maprom_unmapped_area(struct mtd_info *mtd, in maprom_unmapped_area() 72 static int maprom_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in maprom_read() [all …]
|
D | map_ram.c | 18 static int mapram_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *); 19 static int mapram_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *); 20 static int mapram_erase (struct mtd_info *, struct erase_info *); 21 static void mapram_nop (struct mtd_info *); 22 static struct mtd_info *map_ram_probe(struct map_info *map); 23 static unsigned long mapram_unmapped_area(struct mtd_info *, unsigned long, 33 static struct mtd_info *map_ram_probe(struct map_info *map) in map_ram_probe() 35 struct mtd_info *mtd; in map_ram_probe() 89 static unsigned long mapram_unmapped_area(struct mtd_info *mtd, in mapram_unmapped_area() 98 static int mapram_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in mapram_read() [all …]
|
/linux-3.4.99/drivers/mtd/ |
D | mtdcore.c | 90 struct mtd_info *__mtd_next_device(int i) in __mtd_next_device() 110 struct mtd_info __maybe_unused *mtd = dev_get_drvdata(dev); in mtd_release() 120 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_suspend() 127 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_resume() 137 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_type_show() 173 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_flags_show() 183 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_size_show() 194 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_erasesize_show() 204 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_writesize_show() 214 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_subpagesize_show() [all …]
|
D | mtdcore.h | 11 extern struct mtd_info *__mtd_next_device(int i); 13 extern int add_mtd_device(struct mtd_info *mtd); 14 extern int del_mtd_device(struct mtd_info *mtd); 15 extern int add_mtd_partitions(struct mtd_info *, const struct mtd_partition *, 17 extern int del_mtd_partitions(struct mtd_info *); 18 extern int parse_mtd_partitions(struct mtd_info *master, const char **types,
|
D | mtdconcat.c | 44 struct mtd_info mtd; 46 struct mtd_info **subdev; 54 ((sizeof(struct mtd_concat) + (num_subdev) * sizeof(struct mtd_info *))) 68 concat_read(struct mtd_info *mtd, loff_t from, size_t len, in concat_read() 76 struct mtd_info *subdev = concat->subdev[i]; in concat_read() 120 concat_write(struct mtd_info *mtd, loff_t to, size_t len, in concat_write() 128 struct mtd_info *subdev = concat->subdev[i]; in concat_write() 158 concat_writev(struct mtd_info *mtd, const struct kvec *vecs, in concat_writev() 186 struct mtd_info *subdev = concat->subdev[i]; in concat_writev() 233 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; 60 static int part_read(struct mtd_info *mtd, loff_t from, size_t len, in part_read() 79 static int part_point(struct mtd_info *mtd, loff_t from, size_t len, in part_point() 88 static int part_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in part_unpoint() 95 static unsigned long part_get_unmapped_area(struct mtd_info *mtd, in part_get_unmapped_area() 107 static int part_read_oob(struct mtd_info *mtd, loff_t from, in part_read_oob() 145 static int part_read_user_prot_reg(struct mtd_info *mtd, loff_t from, in part_read_user_prot_reg() 153 static int part_get_user_prot_info(struct mtd_info *mtd, in part_get_user_prot_info() 160 static int part_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, in part_read_fact_prot_reg() [all …]
|
/linux-3.4.99/drivers/mtd/nand/ |
D | mpc5121_nfc.c | 120 struct mtd_info mtd; 132 static void mpc5121_nfc_done(struct mtd_info *mtd); 135 static inline u16 nfc_read(struct mtd_info *mtd, uint reg) in nfc_read() 144 static inline void nfc_write(struct mtd_info *mtd, uint reg, u16 val) in nfc_write() 153 static inline void nfc_set(struct mtd_info *mtd, uint reg, u16 bits) in nfc_set() 159 static inline void nfc_clear(struct mtd_info *mtd, uint reg, u16 bits) in nfc_clear() 165 static inline void mpc5121_nfc_send_addr(struct mtd_info *mtd, u16 addr) in mpc5121_nfc_send_addr() 173 static inline void mpc5121_nfc_send_cmd(struct mtd_info *mtd, u16 cmd) in mpc5121_nfc_send_cmd() 181 static inline void mpc5121_nfc_send_prog_page(struct mtd_info *mtd) in mpc5121_nfc_send_prog_page() 189 static inline void mpc5121_nfc_send_read_page(struct mtd_info *mtd) in mpc5121_nfc_send_read_page() [all …]
|
D | cs553x_nand.c | 98 static void cs553x_read_buf(struct mtd_info *mtd, u_char *buf, int len) in cs553x_read_buf() 110 static void cs553x_write_buf(struct mtd_info *mtd, const u_char *buf, int len) in cs553x_write_buf() 122 static unsigned char cs553x_read_byte(struct mtd_info *mtd) in cs553x_read_byte() 128 static void cs553x_write_byte(struct mtd_info *mtd, u_char byte) in cs553x_write_byte() 140 static void cs553x_hwcontrol(struct mtd_info *mtd, int cmd, in cs553x_hwcontrol() 153 static int cs553x_device_ready(struct mtd_info *mtd) in cs553x_device_ready() 162 static void cs_enable_hwecc(struct mtd_info *mtd, int mode) in cs_enable_hwecc() 170 static int cs_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code) in cs_calculate_ecc() 184 static struct mtd_info *cs553x_mtd[4]; 190 struct mtd_info *new_mtd; in cs553x_init_one() [all …]
|
D | au1550nd.c | 27 struct mtd_info info; 32 void (*write_byte)(struct mtd_info *, u_char); 41 static u_char au_read_byte(struct mtd_info *mtd) in au_read_byte() 56 static void au_write_byte(struct mtd_info *mtd, u_char byte) in au_write_byte() 69 static u_char au_read_byte16(struct mtd_info *mtd) in au_read_byte16() 84 static void au_write_byte16(struct mtd_info *mtd, u_char byte) in au_write_byte16() 97 static u16 au_read_word(struct mtd_info *mtd) in au_read_word() 113 static void au_write_buf(struct mtd_info *mtd, const u_char *buf, int len) in au_write_buf() 132 static void au_read_buf(struct mtd_info *mtd, u_char *buf, int len) in au_read_buf() 151 static int au_verify_buf(struct mtd_info *mtd, const u_char *buf, int len) in au_verify_buf() [all …]
|
D | socrates_nand.c | 32 struct mtd_info mtd; 43 static void socrates_nand_write_buf(struct mtd_info *mtd, in socrates_nand_write_buf() 63 static void socrates_nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in socrates_nand_read_buf() 83 static uint8_t socrates_nand_read_byte(struct mtd_info *mtd) in socrates_nand_read_byte() 94 static uint16_t socrates_nand_read_word(struct mtd_info *mtd) in socrates_nand_read_word() 107 static int socrates_nand_verify_buf(struct mtd_info *mtd, const u8 *buf, in socrates_nand_verify_buf() 122 static void socrates_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, in socrates_nand_cmd_ctrl() 148 static int socrates_nand_device_ready(struct mtd_info *mtd) in socrates_nand_device_ready() 164 struct mtd_info *mtd; in socrates_nand_probe() 245 struct mtd_info *mtd = &host->mtd; in socrates_nand_remove()
|
D | ams-delta.c | 35 static struct mtd_info *ams_delta_mtd = NULL; 62 static void ams_delta_write_byte(struct mtd_info *mtd, u_char byte) in ams_delta_write_byte() 74 static u_char ams_delta_read_byte(struct mtd_info *mtd) in ams_delta_read_byte() 89 static void ams_delta_write_buf(struct mtd_info *mtd, const u_char *buf, in ams_delta_write_buf() 98 static void ams_delta_read_buf(struct mtd_info *mtd, u_char *buf, int len) in ams_delta_read_buf() 106 static int ams_delta_verify_buf(struct mtd_info *mtd, const u_char *buf, in ams_delta_verify_buf() 126 static void ams_delta_hwcontrol(struct mtd_info *mtd, int cmd, in ams_delta_hwcontrol() 143 static int ams_delta_nand_ready(struct mtd_info *mtd) in ams_delta_nand_ready() 195 ams_delta_mtd = kmalloc(sizeof(struct mtd_info) + in ams_delta_init() 209 memset(ams_delta_mtd, 0, sizeof(struct mtd_info)); in ams_delta_init()
|
D | bf5xx_nand.c | 146 struct mtd_info mtd; 162 static struct bf5xx_nand_info *mtd_to_nand_info(struct mtd_info *mtd) in mtd_to_nand_info() 186 static void bf5xx_nand_hwcontrol(struct mtd_info *mtd, int cmd, in bf5xx_nand_hwcontrol() 207 static int bf5xx_nand_devready(struct mtd_info *mtd) in bf5xx_nand_devready() 226 static int bf5xx_nand_correct_data_256(struct mtd_info *mtd, u_char *dat, in bf5xx_nand_correct_data_256() 305 static int bf5xx_nand_correct_data(struct mtd_info *mtd, u_char *dat, in bf5xx_nand_correct_data() 324 static void bf5xx_nand_enable_hwecc(struct mtd_info *mtd, int mode) in bf5xx_nand_enable_hwecc() 329 static int bf5xx_nand_calculate_ecc(struct mtd_info *mtd, in bf5xx_nand_calculate_ecc() 369 static void bf5xx_nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in bf5xx_nand_read_buf() 398 static uint8_t bf5xx_nand_read_byte(struct mtd_info *mtd) in bf5xx_nand_read_byte() [all …]
|
D | cmx270_nand.c | 37 static struct mtd_info *cmx270_nand_mtd; 54 static u_char cmx270_read_byte(struct mtd_info *mtd) in cmx270_read_byte() 61 static void cmx270_write_buf(struct mtd_info *mtd, const u_char *buf, int len) in cmx270_write_buf() 70 static void cmx270_read_buf(struct mtd_info *mtd, u_char *buf, int len) in cmx270_read_buf() 79 static int cmx270_verify_buf(struct mtd_info *mtd, const u_char *buf, int len) in cmx270_verify_buf() 106 static void cmx270_hwcontrol(struct mtd_info *mtd, int dat, in cmx270_hwcontrol() 140 static int cmx270_device_ready(struct mtd_info *mtd) in cmx270_device_ready() 175 cmx270_nand_mtd = kzalloc(sizeof(struct mtd_info) + in cmx270_init()
|
D | gpio.c | 36 struct mtd_info mtd_info; member 41 #define gpio_nand_getpriv(x) container_of(x, struct gpiomtd, mtd_info) 70 static void gpio_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) in gpio_nand_cmd_ctrl() 89 static void gpio_nand_writebuf(struct mtd_info *mtd, const u_char *buf, int len) in gpio_nand_writebuf() 96 static void gpio_nand_readbuf(struct mtd_info *mtd, u_char *buf, int len) in gpio_nand_readbuf() 103 static int gpio_nand_verifybuf(struct mtd_info *mtd, const u_char *buf, int len) in gpio_nand_verifybuf() 120 static void gpio_nand_writebuf16(struct mtd_info *mtd, const u_char *buf, in gpio_nand_writebuf16() 136 static void gpio_nand_readbuf16(struct mtd_info *mtd, u_char *buf, int len) in gpio_nand_readbuf16() 151 static int gpio_nand_verifybuf16(struct mtd_info *mtd, const u_char *buf, in gpio_nand_verifybuf16() 171 static int gpio_nand_devready(struct mtd_info *mtd) in gpio_nand_devready() [all …]
|
D | ppchameleonevb.c | 59 static struct mtd_info *ppchameleon_mtd = NULL; 60 static struct mtd_info *ppchameleonevb_mtd = NULL; 105 static void ppchameleon_hwcontrol(struct mtd_info *mtdinfo, int cmd, in ppchameleon_hwcontrol() 137 static void ppchameleonevb_hwcontrol(struct mtd_info *mtdinfo, int cmd, in ppchameleonevb_hwcontrol() 173 static int ppchameleon_device_ready(struct mtd_info *minfo) in ppchameleon_device_ready() 180 static int ppchameleonevb_device_ready(struct mtd_info *minfo) in ppchameleonevb_device_ready() 201 ppchameleon_mtd = kmalloc(sizeof(struct mtd_info) + sizeof(struct nand_chip), GFP_KERNEL); in ppchameleonevb_init() 219 memset(ppchameleon_mtd, 0, sizeof(struct mtd_info)); in ppchameleonevb_init() 288 ppchameleonevb_mtd = kmalloc(sizeof(struct mtd_info) + sizeof(struct nand_chip), GFP_KERNEL); in ppchameleonevb_init() 310 memset(ppchameleonevb_mtd, 0, sizeof(struct mtd_info)); in ppchameleonevb_init()
|
/linux-3.4.99/arch/cris/arch-v32/drivers/ |
D | axisflashmap.c | 58 struct mtd_info* axisflash_mtd = NULL; 229 static struct mtd_info *probe_cs(struct map_info *map_cs) in probe_cs() 231 struct mtd_info *mtd_cs = NULL; in probe_cs() 258 extern struct mtd_info* __init crisv32_nand_flash_probe (void); 259 static struct mtd_info *flash_probe(void) in flash_probe() 261 struct mtd_info *mtd_cse0; in flash_probe() 262 struct mtd_info *mtd_cse1; in flash_probe() 263 struct mtd_info *mtd_total; in flash_probe() 264 struct mtd_info *mtds[2]; in flash_probe() 307 struct mtd_info *main_mtd; in init_axis_flash() [all …]
|
/linux-3.4.99/arch/cris/arch-v10/drivers/ |
D | axisflashmap.c | 51 struct mtd_info* axisflash_mtd = NULL; 193 static struct mtd_info *probe_cs(struct map_info *map_cs) in probe_cs() 195 struct mtd_info *mtd_cs = NULL; in probe_cs() 222 static struct mtd_info *flash_probe(void) in flash_probe() 224 struct mtd_info *mtd_cse0; in flash_probe() 225 struct mtd_info *mtd_cse1; in flash_probe() 226 struct mtd_info *mtd_cse; in flash_probe() 237 struct mtd_info *mtds[] = { mtd_cse0, mtd_cse1 }; in flash_probe() 271 struct mtd_info *mymtd; in init_axis_flash() 406 struct mtd_info *mtd_ram; in init_axis_flash() [all …]
|