/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/linux/mtd/ |
H A D | concat.h | 15 struct mtd_info *mtd_concat_create( 16 struct mtd_info *subdev[], /* subdevices to concatenate */ 20 void mtd_concat_destroy(struct mtd_info *mtd);
|
H A D | nand_ecc.h | 18 struct mtd_info; 23 int nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code); 28 int nand_correct_data(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_char *calc_ecc);
|
H A D | partitions.h | 45 struct mtd_info **mtdp; /* pointer to store the MTD object */ 53 int add_mtd_partitions(struct mtd_info *, const struct mtd_partition *, int); 54 int del_mtd_partitions(struct mtd_info *); 64 int (*parse_fn)(struct mtd_info *, struct mtd_partition **, unsigned long); 69 extern int parse_mtd_partitions(struct mtd_info *master, const char **types,
|
H A D | nand.h | 27 struct mtd_info; 29 extern int nand_scan (struct mtd_info *mtd, int max_chips); 32 extern int nand_scan_ident(struct mtd_info *mtd, int max_chips); 33 extern int nand_scan_tail(struct mtd_info *mtd); 36 extern void nand_release (struct mtd_info *mtd); 39 extern void nand_wait_ready(struct mtd_info *mtd); 286 void (*hwctl)(struct mtd_info *mtd, int mode); 287 int (*calculate)(struct mtd_info *mtd, 290 int (*correct)(struct mtd_info *mtd, uint8_t *dat, 293 int (*read_page_raw)(struct mtd_info *mt [all...] |
H A D | mtd.h | 34 struct mtd_info *mtd; 101 struct mtd_info { struct 115 * Any driver registering a struct mtd_info must ensure a writesize of 139 int (*erase) (struct mtd_info *mtd, struct erase_info *instr); 142 int (*point) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char **mtdbuf); 145 void (*unpoint) (struct mtd_info *mtd, u_char * addr, loff_t from, size_t len); 148 int (*read) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf); 149 int (*write) (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf); 151 int (*read_oob) (struct mtd_info *mtd, loff_t from, 153 int (*write_oob) (struct mtd_info *mt [all...] |
H A D | pmc551.h | 32 struct mtd_info *nextpmc551; 38 static int pmc551_erase(struct mtd_info *, struct erase_info *); 39 static void pmc551_unpoint(struct mtd_info *, u_char *, loff_t, size_t); 40 static int pmc551_point (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char **mtdbuf); 41 static int pmc551_read(struct mtd_info *, loff_t, size_t, size_t *, u_char *); 42 static int pmc551_write(struct mtd_info *, loff_t, size_t, size_t *, const u_char *);
|
H A D | onenand.h | 23 extern int onenand_scan(struct mtd_info *mtd, int max_chips); 25 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 (*read_bufferram)(struct mtd_info *mtd, int area, 111 int (*write_bufferram)(struct mtd_info *mtd, int area, 115 void (*mmcontrol)(struct mtd_info *mtd, int sync_read); 116 int (*block_markbad)(struct mtd_info *mtd, loff_t ofs); 117 int (*scan_bbt)(struct mtd_info *mtd);
|
H A D | bbm.h | 120 int (*isbad_bbt)(struct mtd_info *mtd, loff_t ofs, int allowbbt); 129 extern int onenand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd); 130 extern int onenand_default_bbt(struct mtd_info *mtd);
|
H A D | gen_probe.h | 21 struct mtd_info *mtd_do_chip_probe(struct map_info *map, struct chip_probe *cp);
|
H A D | blktrans.h | 16 struct mtd_info; 24 struct mtd_info *mtd; 57 void (*add_mtd)(struct mtd_blktrans_ops *tr, struct mtd_info *mtd);
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-arm/mach/ |
H A D | flash.h | 14 struct mtd_info; 34 void (*mmcontrol)(struct mtd_info *mtd, int sync_read);
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/mtd/47xxnand/ |
H A D | brcmnand_priv.h | 57 struct mtd_info mtd; 77 extern int brcmnand_scan(struct mtd_info *mtd, int maxchips); 84 extern void brcmnand_release(struct mtd_info *mtd); 86 extern int brcmnand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd); 87 extern int brcmnand_default_bbt(struct mtd_info *mtd); 88 extern int brcmnand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt); 90 extern int brcmnand_update_bbt(struct mtd_info *mtd, loff_t offs); 98 extern int brcmnand_cet_update(struct mtd_info *mtd, loff_t from, int *status); 99 extern int brcmnand_cet_prepare_reboot(struct mtd_info *mtd); 100 extern int brcmnand_cet_erasecallback(struct mtd_info *mt [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/mtd/chips/ |
H A D | map_absent.c | 31 static int map_absent_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *); 32 static int map_absent_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *); 33 static int map_absent_erase (struct mtd_info *, struct erase_info *); 34 static void map_absent_sync (struct mtd_info *); 35 static struct mtd_info *map_absent_probe(struct map_info *map); 36 static void map_absent_destroy (struct mtd_info *); 46 static struct mtd_info *map_absent_probe(struct map_info *map) 48 struct mtd_info *mtd; 73 static int map_absent_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) 79 static int map_absent_write(struct mtd_info *mt [all...] |
H A D | map_rom.c | 19 static int maprom_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *); 20 static int maprom_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *); 21 static void maprom_nop (struct mtd_info *); 22 static struct mtd_info *map_rom_probe(struct map_info *map); 30 static struct mtd_info *map_rom_probe(struct map_info *map) 32 struct mtd_info *mtd; 55 static int maprom_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) 64 static void maprom_nop(struct mtd_info *mtd) 69 static int maprom_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf)
|
H A D | map_ram.c | 20 static int mapram_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *); 21 static int mapram_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *); 22 static int mapram_erase (struct mtd_info *, struct erase_info *); 23 static void mapram_nop (struct mtd_info *); 24 static struct mtd_info *map_ram_probe(struct map_info *map); 33 static struct mtd_info *map_ram_probe(struct map_info *map) 35 struct mtd_info *mtd; 65 static int mapram_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) 74 static int mapram_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf) 83 static int mapram_erase (struct mtd_info *mt [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/mtd/devices/ |
H A D | mtdram.c | 34 static struct mtd_info *mtd_info; variable in typeref:struct:mtd_info 36 static int ram_erase(struct mtd_info *mtd, struct erase_info *instr) 49 static int ram_point(struct mtd_info *mtd, loff_t from, size_t len, 60 static void ram_unpoint(struct mtd_info *mtd, u_char * addr, loff_t from, 65 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, 91 if (mtd_info) { 92 del_mtd_device(mtd_info); 93 vfree(mtd_info [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/mtd/nand/ |
H A D | ams-delta.c | 33 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, 146 static int ams_delta_nand_ready(struct mtd_info *mtd) 160 ams_delta_mtd = kmalloc(sizeof(struct mtd_info) + 174 memset(ams_delta_mtd, 0, sizeof(struct mtd_info)); [all...] |
H A D | cmx270_nand.c | 48 static struct mtd_info *cmx270_nand_mtd; 67 static u_char cmx270_read_byte(struct mtd_info *mtd) 74 static void cmx270_write_buf(struct mtd_info *mtd, const u_char *buf, int len) 83 static void cmx270_read_buf(struct mtd_info *mtd, u_char *buf, int len) 92 static int cmx270_verify_buf(struct mtd_info *mtd, const u_char *buf, int len) 119 static void cmx270_hwcontrol(struct mtd_info *mtd, int dat, 153 static int cmx270_device_ready(struct mtd_info *mtd) 172 cmx270_nand_mtd = kzalloc(sizeof(struct mtd_info) +
|
H A D | spia.c | 35 static struct mtd_info *spia_mtd = NULL; 91 static void spia_hwcontrol(struct mtd_info *mtd, int cmd) 116 spia_mtd = kmalloc(sizeof(struct mtd_info) + sizeof(struct nand_chip), GFP_KERNEL); 126 memset(spia_mtd, 0, sizeof(struct mtd_info));
|
H A D | edb7312.c | 35 static struct mtd_info *ep7312_mtd = NULL; 81 static void ep7312_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl) 101 static int ep7312_device_ready(struct mtd_info *mtd) 122 ep7312_mtd = kmalloc(sizeof(struct mtd_info) + sizeof(struct nand_chip), GFP_KERNEL); 140 memset(ep7312_mtd, 0, sizeof(struct mtd_info));
|
H A D | ts7250.c | 37 static struct mtd_info *ts7250_mtd = NULL; 92 static void ts7250_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl) 114 static int ts7250_device_ready(struct mtd_info *mtd) 133 ts7250_mtd = kmalloc(sizeof(struct mtd_info) + sizeof(struct nand_chip), GFP_KERNEL); 143 memset(ts7250_mtd, 0, sizeof(struct mtd_info));
|
H A D | au1550nd.c | 29 static struct mtd_info *au1550_mtd = NULL; 32 static void (*au1550_write_byte)(struct mtd_info *, u_char); 54 static u_char au_read_byte(struct mtd_info *mtd) 69 static void au_write_byte(struct mtd_info *mtd, u_char byte) 83 static u_char au_read_byte16(struct mtd_info *mtd) 99 static void au_write_byte16(struct mtd_info *mtd, u_char byte) 113 static u16 au_read_word(struct mtd_info *mtd) 129 static void au_write_buf(struct mtd_info *mtd, const u_char *buf, int len) 148 static void au_read_buf(struct mtd_info *mtd, u_char *buf, int len) 167 static int au_verify_buf(struct mtd_info *mt [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/rc/ |
H A D | mtd.c | 87 mtd_info_t mtd_info; local 97 if (ioctl(mtd_fd, MEMGETINFO, &mtd_info) != 0) { 103 erase_info.length = mtd_info.erasesize; 106 erase_info.start < mtd_info.size; 107 erase_info.start += mtd_info.erasesize) { 132 mtd_info_t mtd_info; local 156 ioctl(mtd_fd, MEMGETINFO, &mtd_info) != 0 || 157 mtd_info.erasesize < sizeof(struct trx_header)) { 163 trx.len > mtd_info.size || 174 erase_info.length = ROUNDUP(trx.len, mtd_info [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/cris/arch-v10/drivers/ |
H A D | axisflashmap.c | 174 struct mtd_info* axisflash_mtd = NULL; 307 static struct mtd_info *probe_cs(struct map_info *map_cs) 309 struct mtd_info *mtd_cs = NULL; 329 * both cse0 and cse1, the mtd_info structs will be concatenated to one struct 337 static struct mtd_info *flash_probe(void) 339 struct mtd_info *mtd_cse0; 340 struct mtd_info *mtd_cse1; 341 struct mtd_info *mtd_cse; 353 struct mtd_info *mtds[] = { mtd_cse0, mtd_cse1 }; 392 struct mtd_info *mymt [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/shared/ |
H A D | wapi_utils.c | 100 mtd_info_t mtd_info; local 114 ioctl(mtd_fd, MEMGETINFO, &mtd_info) != 0) { 128 if ((tmp_stat.st_size + sizeof(wapi_mtd_hdr_t)) > mtd_info.size || tmp_stat.st_size == 0) { 151 erase_info.length = mtd_info.size; 195 mtd_info_t mtd_info; local 207 ioctl(mtd_fd, MEMGETINFO, &mtd_info) != 0) { 219 if (mtd_hdr.len > mtd_info.size) {
|