/drivers/mtd/ |
H A 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,
|
H A D | mtdcore.c | 90 struct mtd_info *__mtd_next_device(int i) 106 * the mtd_info will probably want to use the release() hook... 110 struct mtd_info __maybe_unused *mtd = dev_get_drvdata(dev); 120 struct mtd_info *mtd = dev_get_drvdata(dev); 127 struct mtd_info *mtd = dev_get_drvdata(dev); 137 struct mtd_info *mtd = dev_get_drvdata(dev); 173 struct mtd_info *mtd = dev_get_drvdata(dev); 183 struct mtd_info *mtd = dev_get_drvdata(dev); 194 struct mtd_info *mtd = dev_get_drvdata(dev); 204 struct mtd_info *mt [all...] |
H A D | mtdconcat.c | 39 * Subdev points to an array of pointers to struct mtd_info objects 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, 76 struct mtd_info *subdev = concat->subdev[i]; 120 concat_write(struct mtd_info *mtd, loff_t to, size_t len, 128 struct mtd_info *subdev = concat->subdev[i]; 158 concat_writev(struct mtd_info *mtd, const struct kvec *vecs, 186 struct mtd_info *subde [all...] |
H A 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, 79 static int part_point(struct mtd_info *mtd, loff_t from, size_t len, 88 static int part_unpoint(struct mtd_info *mtd, loff_t from, size_t len) 95 static unsigned long part_get_unmapped_area(struct mtd_info *mtd, 107 static int part_read_oob(struct mtd_info *mtd, loff_t from, 145 static int part_read_user_prot_reg(struct mtd_info *mtd, loff_t from, 153 static int part_get_user_prot_info(struct mtd_info *mtd, 160 static int part_read_fact_prot_reg(struct mtd_info *mt [all...] |
/drivers/mtd/chips/ |
H A 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) 46 struct mtd_info *mtd; 71 static int map_absent_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) 76 static int map_absent_write(struct mtd_info *mt [all...] |
H A 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) 33 struct mtd_info *mtd; 63 static unsigned long maprom_unmapped_area(struct mtd_info *mtd, 72 static int maprom_read (struct mtd_info *mt [all...] |
H A 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) 35 struct mtd_info *mtd; 89 static unsigned long mapram_unmapped_area(struct mtd_info *mtd, 98 static int mapram_read (struct mtd_info *mt [all...] |
H A D | chipreg.c | 57 struct mtd_info *do_map_probe(const char *name, struct map_info *map) 60 struct mtd_info *ret; 85 void map_destroy(struct mtd_info *mtd)
|
H A D | fwh_lock.h | 79 static int fwh_lock_varsize(struct mtd_info *mtd, loff_t ofs, uint64_t len) 90 static int fwh_unlock_varsize(struct mtd_info *mtd, loff_t ofs, uint64_t len) 100 static void fixup_use_fwh_lock(struct mtd_info *mtd)
|
/drivers/mtd/devices/ |
H A D | mtdram.c | 33 static struct mtd_info *mtd_info; variable in typeref:struct:mtd_info 35 static int ram_erase(struct mtd_info *mtd, struct erase_info *instr) 43 static int ram_point(struct mtd_info *mtd, loff_t from, size_t len, 51 static int ram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) 61 static unsigned long ram_get_unmapped_area(struct mtd_info *mtd, 69 static int ram_read(struct mtd_info *mtd, loff_t from, size_t len, 77 static int ram_write(struct mtd_info *mtd, loff_t to, size_t len, 87 if (mtd_info) { 88 mtd_device_unregister(mtd_info); [all...] |
H A 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) 96 static int slram_point(struct mtd_info *mtd, loff_t from, size_t len, 106 static int slram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) 111 static int slram_read(struct mtd_info *mt [all...] |
/drivers/mtd/nand/ |
H A D | h1910.c | 35 static struct mtd_info *h1910_nand_mtd = NULL; 59 static void h1910_hwcontrol(struct mtd_info *mtd, int cmd, 72 static int h1910_device_ready(struct mtd_info *mtd) 96 h1910_nand_mtd = kmalloc(sizeof(struct mtd_info) + sizeof(struct nand_chip), GFP_KERNEL); 107 memset(h1910_nand_mtd, 0, sizeof(struct mtd_info));
|
H A D | cmx270_nand.c | 37 static struct mtd_info *cmx270_nand_mtd; 54 static u_char cmx270_read_byte(struct mtd_info *mtd) 61 static void cmx270_write_buf(struct mtd_info *mtd, const u_char *buf, int len) 70 static void cmx270_read_buf(struct mtd_info *mtd, u_char *buf, int len) 79 static int cmx270_verify_buf(struct mtd_info *mtd, const u_char *buf, int len) 106 static void cmx270_hwcontrol(struct mtd_info *mtd, int dat, 140 static int cmx270_device_ready(struct mtd_info *mtd) 175 cmx270_nand_mtd = kzalloc(sizeof(struct mtd_info) +
|
H A D | spia.c | 33 static struct mtd_info *spia_mtd = NULL; 89 static void spia_hwcontrol(struct mtd_info *mtd, int cmd) 114 spia_mtd = kmalloc(sizeof(struct mtd_info) + sizeof(struct nand_chip), GFP_KERNEL); 124 memset(spia_mtd, 0, sizeof(struct mtd_info));
|
H A 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) 144 static inline void nfc_write(struct mtd_info *mtd, uint reg, u16 val) 153 static inline void nfc_set(struct mtd_info *mtd, uint reg, u16 bits) 159 static inline void nfc_clear(struct mtd_info *mtd, uint reg, u16 bits) 165 static inline void mpc5121_nfc_send_addr(struct mtd_info *mtd, u16 addr) 173 static inline void mpc5121_nfc_send_cmd(struct mtd_info *mtd, u16 cmd) 181 static inline void mpc5121_nfc_send_prog_page(struct mtd_info *mtd) 189 static inline void mpc5121_nfc_send_read_page(struct mtd_info *mt [all...] |
H A 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) 74 static u_char ams_delta_read_byte(struct mtd_info *mtd) 89 static void ams_delta_write_buf(struct mtd_info *mtd, const u_char *buf, 98 static void ams_delta_read_buf(struct mtd_info *mtd, u_char *buf, int len) 106 static int ams_delta_verify_buf(struct mtd_info *mtd, const u_char *buf, 126 static void ams_delta_hwcontrol(struct mtd_info *mtd, int cmd, 143 static int ams_delta_nand_ready(struct mtd_info *mtd) 195 ams_delta_mtd = kmalloc(sizeof(struct mtd_info) + 209 memset(ams_delta_mtd, 0, sizeof(struct mtd_info)); [all...] |
H A 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, 137 static void ppchameleonevb_hwcontrol(struct mtd_info *mtdinfo, int cmd, 173 static int ppchameleon_device_ready(struct mtd_info *minfo) 180 static int ppchameleonevb_device_ready(struct mtd_info *minfo) 201 ppchameleon_mtd = kmalloc(sizeof(struct mtd_info) + sizeof(struct nand_chip), GFP_KERNEL); 219 memset(ppchameleon_mtd, 0, sizeof(struct mtd_info)); 288 ppchameleonevb_mtd = kmalloc(sizeof(struct mtd_info) + sizeof(struct nand_chip), GFP_KERNEL); 310 memset(ppchameleonevb_mtd, 0, sizeof(struct mtd_info)); [all...] |
H A D | socrates_nand.c | 32 struct mtd_info mtd; 43 static void socrates_nand_write_buf(struct mtd_info *mtd, 63 static void socrates_nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) 83 static uint8_t socrates_nand_read_byte(struct mtd_info *mtd) 94 static uint16_t socrates_nand_read_word(struct mtd_info *mtd) 107 static int socrates_nand_verify_buf(struct mtd_info *mtd, const u8 *buf, 122 static void socrates_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, 148 static int socrates_nand_device_ready(struct mtd_info *mtd) 164 struct mtd_info *mtd; 245 struct mtd_info *mt [all...] |
H A D | cs553x_nand.c | 98 static void cs553x_read_buf(struct mtd_info *mtd, u_char *buf, int len) 110 static void cs553x_write_buf(struct mtd_info *mtd, const u_char *buf, int len) 122 static unsigned char cs553x_read_byte(struct mtd_info *mtd) 128 static void cs553x_write_byte(struct mtd_info *mtd, u_char byte) 140 static void cs553x_hwcontrol(struct mtd_info *mtd, int cmd, 153 static int cs553x_device_ready(struct mtd_info *mtd) 162 static void cs_enable_hwecc(struct mtd_info *mtd, int mode) 170 static int cs_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code) 184 static struct mtd_info *cs553x_mtd[4]; 190 struct mtd_info *new_mt [all...] |
H A 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) 56 static void au_write_byte(struct mtd_info *mtd, u_char byte) 69 static u_char au_read_byte16(struct mtd_info *mtd) 84 static void au_write_byte16(struct mtd_info *mtd, u_char byte) 97 static u16 au_read_word(struct mtd_info *mtd) 113 static void au_write_buf(struct mtd_info *mtd, const u_char *buf, int len) 132 static void au_read_buf(struct mtd_info *mtd, u_char *buf, int len) 151 static int au_verify_buf(struct mtd_info *mt [all...] |
H A D | gpio.c | 36 struct mtd_info mtd_info; member in struct:gpiomtd 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) 89 static void gpio_nand_writebuf(struct mtd_info *mtd, const u_char *buf, int len) 96 static void gpio_nand_readbuf(struct mtd_info *mtd, u_char *buf, int len) 103 static int gpio_nand_verifybuf(struct mtd_info *mtd, const u_char *buf, int len) 120 static void gpio_nand_writebuf16(struct mtd_info *mtd, const u_char *buf, 136 static void gpio_nand_readbuf16(struct mtd_info *mtd, u_char *buf, int len) 151 static int gpio_nand_verifybuf16(struct mtd_info *mt [all...] |
H A D | orion_nand.c | 24 static void orion_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) 46 static void orion_nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) 76 struct mtd_info *mtd; 83 nc = kzalloc(sizeof(struct nand_chip) + sizeof(struct mtd_info), GFP_KERNEL); 89 mtd = (struct mtd_info *)(nc + 1); 152 struct mtd_info *mtd = platform_get_drvdata(pdev);
|
H A D | pasemi_nand.c | 42 static struct mtd_info *pasemi_nand_mtd; 45 static void pasemi_read_buf(struct mtd_info *mtd, u_char *buf, int len) 57 static void pasemi_write_buf(struct mtd_info *mtd, const u_char *buf, int len) 69 static void pasemi_hwcontrol(struct mtd_info *mtd, int cmd, 87 int pasemi_device_ready(struct mtd_info *mtd) 112 pasemi_nand_mtd = kzalloc(sizeof(struct mtd_info) +
|
H A D | txx9ndfmc.c | 65 struct mtd_info mtd; 72 struct mtd_info *mtds[MAX_TXX9NDFMC_DEV]; 79 static struct platform_device *mtd_to_platdev(struct mtd_info *mtd) 105 static uint8_t txx9ndfmc_read_byte(struct mtd_info *mtd) 112 static void txx9ndfmc_write_buf(struct mtd_info *mtd, const uint8_t *buf, 125 static void txx9ndfmc_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) 134 static int txx9ndfmc_verify_buf(struct mtd_info *mtd, const uint8_t *buf, 146 static void txx9ndfmc_cmd_ctrl(struct mtd_info *mtd, int cmd, 178 static int txx9ndfmc_dev_ready(struct mtd_info *mtd) 185 static int txx9ndfmc_calculate_ecc(struct mtd_info *mt [all...] |
/drivers/mtd/maps/ |
H A D | uclinux.c | 33 static struct mtd_info *uclinux_ram_mtdinfo; 45 static int uclinux_point(struct mtd_info *mtd, loff_t from, size_t len, 60 struct mtd_info *mtd;
|