/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/mtd/maps/ |
H A D | ich2rom.c | 12 #include <linux/mtd/mtd.h> 13 #include <linux/mtd/map.h> 30 struct mtd_info *mtd; member in struct:ich2rom_map_info 110 mtd: 0, 120 static int ich2rom_set_lock_state(struct mtd_info *mtd, loff_t ofs, size_t len, argument 123 struct map_info *map = mtd->priv; 139 static int ich2rom_lock(struct mtd_info *mtd, loff_t ofs, size_t len) argument 141 return ich2rom_set_lock_state(mtd, ofs, len, FWH_DENY_WRITE); 144 static int ich2rom_unlock(struct mtd_info *mtd, loff_ argument [all...] |
H A D | tsunami_flash.c | 9 #include <linux/mtd/map.h> 79 struct mtd_info *mtd; local 80 mtd = tsunami_flash_mtd; 81 if (mtd) { 82 del_mtd_device(mtd); 83 map_destroy(mtd);
|
H A D | amd766rom.c | 12 #include <linux/mtd/mtd.h> 13 #include <linux/mtd/map.h> 21 struct mtd_info *mtd; member in struct:amd766rom_map_info 87 mtd: 0, 145 info->mtd = 0; 155 for(; !info->mtd && *chip_type; chip_type++) { 156 info->mtd = do_map_probe(*chip_type, &amd766rom_map.map); 158 if (info->mtd) { 162 if (!info->mtd) { [all...] |
H A D | integrator-flash.c | 3 drivers/mtd/maps/armflash.c: ARM Flash Layout/Partitioning 36 #include <linux/mtd/mtd.h> 37 #include <linux/mtd/map.h> 38 #include <linux/mtd/partitions.h> 210 static struct mtd_info *mtd; variable in typeref:struct:mtd_info 232 mtd = do_map_probe("cfi_probe", &armflash_map); 233 if (!mtd) 236 mtd->module = THIS_MODULE; 238 ret = parse_afs_partitions(mtd, [all...] |
H A D | pci.c | 2 * linux/drivers/mtd/maps/pci.c 21 #include <linux/mtd/mtd.h> 22 #include <linux/mtd/map.h> 23 #include <linux/mtd/partitions.h> 293 struct mtd_info *mtd = NULL; local 300 err = pci_request_regions(dev, "pci mtd"); 320 mtd = do_map_probe((char *)info->map_name, &map->map); 322 if (!mtd) 325 mtd 349 struct mtd_info *mtd = pci_get_drvdata(dev); local [all...] |
H A D | nora.c | 11 #include <linux/mtd/mtd.h> 12 #include <linux/mtd/map.h> 75 static int nora_mtd_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) argument 77 return mymtd->read(mymtd, from + (unsigned long)mtd->priv, len, retlen, buf); 80 static int nora_mtd_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf) argument 82 return mymtd->write(mymtd, to + (unsigned long)mtd->priv, len, retlen, buf); 85 static int nora_mtd_erase (struct mtd_info *mtd, struct erase_info *instr) argument 87 instr->addr += (unsigned long)mtd->priv; 91 static void nora_mtd_sync (struct mtd_info *mtd) argument 96 nora_mtd_suspend(struct mtd_info *mtd) argument 101 nora_mtd_resume(struct mtd_info *mtd) argument [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/mtd/chips/ |
H A D | sharp.c | 30 #include <linux/mtd/map.h> 31 #include <linux/mtd/cfi.h> 67 static int sharp_probe_map(struct map_info *map,struct mtd_info *mtd); 69 static int sharp_read(struct mtd_info *mtd, loff_t from, size_t len, 71 static int sharp_write(struct mtd_info *mtd, loff_t from, size_t len, 73 static int sharp_erase(struct mtd_info *mtd, struct erase_info *instr); 74 static void sharp_sync(struct mtd_info *mtd); 75 static int sharp_suspend(struct mtd_info *mtd); 76 static void sharp_resume(struct mtd_info *mtd); 77 static void sharp_destroy(struct mtd_info *mtd); 110 struct mtd_info *mtd = NULL; local 159 sharp_probe_map(struct map_info *map,struct mtd_info *mtd) argument 261 sharp_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) argument 303 sharp_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf) argument 384 sharp_erase(struct mtd_info *mtd, struct erase_info *instr) argument 543 sharp_sync(struct mtd_info *mtd) argument 548 sharp_suspend(struct mtd_info *mtd) argument 554 sharp_resume(struct mtd_info *mtd) argument 560 sharp_destroy(struct mtd_info *mtd) argument [all...] |
H A D | cfi_cmdset_0701.c | 26 #include <linux/mtd/map.h> 27 #include <linux/mtd/cfi.h> 109 struct mtd_info *mtd; local 112 mtd = kmalloc(sizeof(*mtd), GFP_KERNEL); 115 if (!mtd) { 121 memset(mtd, 0, sizeof(*mtd)); 122 mtd->priv = map; 123 mtd 231 cfi_sststd_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) argument 343 cfi_sststd_write(struct mtd_info *mtd, loff_t to , size_t len, size_t *retlen, const u_char *buf) argument 550 cfi_sststd_erase_varsize(struct mtd_info *mtd, struct erase_info *instr) argument 642 cfi_sststd_erase_onesize(struct mtd_info *mtd, struct erase_info *instr) argument 687 cfi_sststd_sync(struct mtd_info *mtd) argument 747 cfi_sststd_suspend(struct mtd_info *mtd) argument 801 cfi_sststd_resume(struct mtd_info *mtd) argument 827 cfi_sststd_destroy(struct mtd_info *mtd) argument [all...] |
H A D | cfi_cmdset_0002.c | 26 #include <linux/mtd/map.h> 27 #include <linux/mtd/cfi.h> 154 struct mtd_info *mtd; local 157 mtd = kmalloc(sizeof(*mtd), GFP_KERNEL); 160 if (!mtd) { 166 memset(mtd, 0, sizeof(*mtd)); 167 mtd->priv = map; 168 mtd 274 cfi_amdstd_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) argument 389 cfi_amdstd_write(struct mtd_info *mtd, loff_t to , size_t len, size_t *retlen, const u_char *buf) argument 624 cfi_amdstd_erase_varsize(struct mtd_info *mtd, struct erase_info *instr) argument 716 cfi_amdstd_erase_onesize(struct mtd_info *mtd, struct erase_info *instr) argument 761 cfi_amdstd_sync(struct mtd_info *mtd) argument 821 cfi_amdstd_suspend(struct mtd_info *mtd) argument 875 cfi_amdstd_resume(struct mtd_info *mtd) argument 901 cfi_amdstd_destroy(struct mtd_info *mtd) argument [all...] |
H A D | gen_probe.c | 9 #include <linux/mtd/mtd.h> 10 #include <linux/mtd/map.h> 11 #include <linux/mtd/cfi.h> 12 #include <linux/mtd/gen_probe.h> 22 struct mtd_info *mtd = NULL; local 34 mtd = check_cmd_set(map, 1); /* First the primary cmdset */ 35 if (!mtd) 36 mtd = check_cmd_set(map, 0); /* Then the secondary */ 38 if (mtd) 254 struct mtd_info *mtd; local [all...] |
H A D | amd_flash.c | 22 #include <linux/mtd/map.h> 23 #include <linux/mtd/mtd.h> 24 #include <linux/mtd/flashchip.h> 246 static int amd_flash_do_unlock(struct mtd_info *mtd, loff_t ofs, size_t len, argument 256 map = mtd->priv; 260 for(i = 0; i < mtd->numeraseregions; i++) { 261 merip = &mtd->eraseregions[i]; 293 static int amd_flash_unlock(struct mtd_info *mtd, loff_t ofs, size_t len) argument 295 return amd_flash_do_unlock(mtd, of 298 amd_flash_lock(struct mtd_info *mtd, loff_t ofs, size_t len) argument 308 probe_new_chip(struct mtd_info *mtd, __u32 base, struct flchip *chips, struct amd_flash_private *private, const struct amd_flash_info *table, int table_size) argument 643 struct mtd_info *mtd; local 822 amd_flash_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) argument 947 amd_flash_write(struct mtd_info *mtd, loff_t to , size_t len, size_t *retlen, const u_char *buf) argument 1195 amd_flash_erase(struct mtd_info *mtd, struct erase_info *instr) argument 1308 amd_flash_sync(struct mtd_info *mtd) argument 1368 amd_flash_suspend(struct mtd_info *mtd) argument 1376 amd_flash_resume(struct mtd_info *mtd) argument 1383 amd_flash_destroy(struct mtd_info *mtd) argument [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/mtd/devices/ |
H A D | ms02-nv.h | 11 #include <linux/mtd/mtd.h>
|
H A D | doc2000.c | 23 #include <linux/mtd/mtd.h> 24 #include <linux/mtd/nand.h> 25 #include <linux/mtd/nand_ids.h> 26 #include <linux/mtd/doc2000.h> 52 static int doc_read(struct mtd_info *mtd, loff_t from, size_t len, 54 static int doc_write(struct mtd_info *mtd, loff_t to, size_t len, 56 static int doc_read_ecc(struct mtd_info *mtd, loff_t from, size_t len, 58 static int doc_write_ecc(struct mtd_info *mtd, loff_t to, size_t len, 60 static int doc_read_oob(struct mtd_info *mtd, loff_ 513 DoC2k_init(struct mtd_info *mtd) argument 594 doc_read(struct mtd_info *mtd, loff_t from, size_t len, size_t * retlen, u_char * buf) argument 601 doc_read_ecc(struct mtd_info *mtd, loff_t from, size_t len, size_t * retlen, u_char * buf, u_char * eccbuf) argument 742 doc_write(struct mtd_info *mtd, loff_t to, size_t len, size_t * retlen, const u_char * buf) argument 749 doc_write_ecc(struct mtd_info *mtd, loff_t to, size_t len, size_t * retlen, const u_char * buf, u_char * eccbuf) argument 910 doc_read_oob(struct mtd_info *mtd, loff_t ofs, size_t len, size_t * retlen, u_char * buf) argument 971 doc_write_oob_nolock(struct mtd_info *mtd, loff_t ofs, size_t len, size_t * retlen, const u_char * buf) argument 1061 doc_write_oob(struct mtd_info *mtd, loff_t ofs, size_t len, size_t * retlen, const u_char * buf) argument 1074 doc_erase(struct mtd_info *mtd, struct erase_info *instr) argument 1149 struct mtd_info *mtd; local [all...] |
H A D | doc2001.c | 23 #include <linux/mtd/mtd.h> 24 #include <linux/mtd/nand.h> 25 #include <linux/mtd/nand_ids.h> 26 #include <linux/mtd/doc2000.h> 36 static int doc_read(struct mtd_info *mtd, loff_t from, size_t len, 38 static int doc_write(struct mtd_info *mtd, loff_t to, size_t len, 40 static int doc_read_ecc(struct mtd_info *mtd, loff_t from, size_t len, 42 static int doc_write_ecc(struct mtd_info *mtd, loff_t to, size_t len, 44 static int doc_read_oob(struct mtd_info *mtd, loff_ 327 DoCMil_init(struct mtd_info *mtd) argument 394 doc_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) argument 401 doc_read_ecc(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf, u_char *eccbuf) argument 520 doc_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf) argument 527 doc_write_ecc(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf, u_char *eccbuf) argument 649 doc_read_oob(struct mtd_info *mtd, loff_t ofs, size_t len, size_t *retlen, u_char *buf) argument 700 doc_write_oob(struct mtd_info *mtd, loff_t ofs, size_t len, size_t *retlen, const u_char *buf) argument 771 doc_erase(struct mtd_info *mtd, struct erase_info *instr) argument 837 struct mtd_info *mtd; local [all...] |
H A D | doc1000.c | 28 #include <linux/mtd/mtd.h> 29 #include <linux/mtd/iflash.h> 73 static int flashcard_erase (struct mtd_info *mtd, struct erase_info *instr); 74 static int flashcard_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf); 75 static int flashcard_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf); 76 static void flashcard_sync (struct mtd_info *mtd); 90 static u_char *pagein(struct mtd_info *mtd, u_long addr) argument 92 struct mypriv *priv=mtd->priv; 103 void flashcard_sync (struct mtd_info *mtd) argument 114 flashcard_erase(struct mtd_info *mtd, struct erase_info *instr) argument 143 flashcard_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) argument 209 flashcard_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf) argument 434 register struct mtd_info *mtd = (struct mtd_info *)data; local [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/pcmcia/ |
H A D | bulkmem.c | 67 client_t *mtd; local 70 mtd = handle->mtd; 71 if (mtd == NULL) 73 s = SOCKET(mtd); 75 mtd->event_callback_args.mtdrequest = req; 76 mtd->event_callback_args.buffer = buf; 77 ret = EVENT(mtd, CS_EVENT_MTD_REQUEST, CS_EVENT_PRI_LOW); 83 interruptible_sleep_on_timeout(&mtd->mtd_req, HZ); 87 interruptible_sleep_on_timeout(&mtd 134 client_t *mtd; local 586 mtd_request_t mtd; local 612 mtd_request_t mtd; local [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/mtd/ |
H A D | mtdcore.c | 21 #include <linux/mtd/compatmac.h> 26 #include <linux/mtd/mtd.h> 34 * @mtd: pointer to new MTD device info structure 42 int add_mtd_device(struct mtd_info *mtd) argument 53 mtd_table[i] = mtd; 54 mtd->index = i; 55 DEBUG(0, "mtd: Giving out device %d to %s\n",i, mtd->name); 58 (*(not->add))(mtd); 80 del_mtd_device(struct mtd_info *mtd) argument 185 __get_mtd_device(struct mtd_info *mtd, int num) argument [all...] |
H A D | ftl.c | 59 #include <linux/mtd/compatmac.h> 60 #include <linux/mtd/mtd.h> 82 #include <linux/mtd/ftl.h> 158 struct mtd_info *mtd; member in struct:partition_t 184 static void ftl_notify_add(struct mtd_info *mtd); 185 static void ftl_notify_remove(struct mtd_info *mtd); 264 max_offset = (0x100000<part->mtd->size)?0x100000:part->mtd->size; 268 offset += part->mtd 1337 ftl_notify_add(struct mtd_info *mtd) argument 1378 ftl_notify_remove(struct mtd_info *mtd) argument [all...] |
/asus-wl-520gu-7.0.1.45/src/router/rc/ |
H A D | mtd.c | 12 * $Id: mtd.c,v 1.1.1.1 2008/10/15 03:28:48 james26_jang Exp $ 29 #include <linux/mtd/mtd.h> 38 * @param mtd path to or partition name of MTD device 43 mtd_open(const char *mtd, int flags) argument 49 if ((fp = fopen("/proc/mtd", "r"))) { 51 if (sscanf(dev, "mtd%d:", &i) && strstr(dev, mtd)) { 52 snprintf(dev, sizeof(dev), "/dev/mtd/%d", i); 60 return open(mtd, flag 69 mtd_erase(const char *mtd) argument 114 mtd_write(const char *path, const char *mtd) argument [all...] |
/asus-wl-520gu-7.0.1.45/src/router/rc.orig/ |
H A D | mtd.c | 12 * $Id: mtd.c,v 1.1.1.1 2008/10/15 03:28:48 james26_jang Exp $ 29 #include <linux/mtd/mtd.h> 38 * @param mtd path to or partition name of MTD device 43 mtd_open(const char *mtd, int flags) argument 49 if ((fp = fopen("/proc/mtd", "r"))) { 51 if (sscanf(dev, "mtd%d:", &i) && strstr(dev, mtd)) { 52 snprintf(dev, sizeof(dev), "/dev/mtd/%d", i); 60 return open(mtd, flag 69 mtd_erase(const char *mtd) argument 114 mtd_write(const char *path, const char *mtd) argument [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/mips/brcm-boards/bcm947xx/ |
H A D | setup.c | 26 #include <linux/mtd/mtd.h> 27 #include <linux/mtd/partitions.h> 204 init_mtd_partitions(struct mtd_info *mtd, size_t size) argument 230 if (MTD_READ(mtd, off, sizeof(buf), &len, buf) || 251 mtd->name, off / BLOCK_SIZE); 259 mtd->name, off / BLOCK_SIZE); 268 mtd->name, off / BLOCK_SIZE); 275 if (MTD_READ(mtd, off + BLOCK_SIZE, sizeof(buf), &len, buf) || 284 mtd [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/mtd/nand/ |
H A D | spia.c | 2 * drivers/mtd/nand/spia.c 20 #include <linux/mtd/mtd.h> 21 #include <linux/mtd/nand.h> 22 #include <linux/mtd/partitions.h>
|
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/linux/mtd/ |
H A D | jedec.h | 17 #include <linux/mtd/map.h>
|
H A D | pmc551.h | 18 #include <linux/mtd/mtd.h> 40 static int pmc551_point (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char **mtdbuf);
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/linux/mtd/ |
H A D | jedec.h | 17 #include <linux/mtd/map.h>
|