Searched refs:mymtd (Results 1 - 20 of 20) sorted by last modified time

/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/mtd/devices/
H A Ddoc1000.c48 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
523 mymtd = kmalloc(sizeof(struct mtd_info), GFP_KERNEL);
525 if (!mymtd)
531 memset(mymtd,0,sizeof(struct mtd_info));
533 mymtd->priv = (void *) kmalloc (sizeof(struct mypriv), GFP_KERNEL);
534 if (!mymtd->priv)
536 kfree(mymtd);
544 priv=mymtd->priv;
552 mymtd->name = "M-Systems DiskOnChip 1000";
554 mymtd
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/mtd/maps/
H A Dcfi_flagadm.c140 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
154 mymtd = do_map_probe("cfi_probe", &flagadm_map);
155 if (mymtd) {
156 mymtd->module = THIS_MODULE;
157 add_mtd_partitions(mymtd, flagadm_parts, PARTITION_COUNT);
168 if (mymtd) {
169 del_mtd_partitions(mymtd);
170 map_destroy(mymtd);
H A Dcstm_mips_ixx.c214 struct mtd_info *mymtd; local
239 mymtd = (struct mtd_info *)do_map_probe("cfi_probe", &cstm_mips_ixx_map[i]);
240 //printk(KERN_NOTICE "phymap %d cfi_probe: mymtd is %x\n",i,(unsigned int)mymtd);
241 if (!mymtd) {
243 mymtd = (struct mtd_info *)do_map_probe("jedec", &cstm_mips_ixx_map[i]);
244 printk(KERN_NOTICE "cstm_mips_ixx %d jedec: mymtd is %x\n",i,(unsigned int)mymtd);
246 if (mymtd) {
247 mymtd
261 struct mtd_info *mymtd; local
[all...]
H A Ddbox2-flash.c41 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
111 mymtd = do_map_probe("cfi_probe", &dbox2_flash_map);
112 if (!mymtd) {
116 mymtd = do_map_probe("cfi_probe", &dbox2_flash_map);
119 if (mymtd) {
120 mymtd->module = THIS_MODULE;
123 add_mtd_partitions(mymtd, partition_info, NUM_PARTITIONS);
134 if (mymtd) {
135 del_mtd_partitions(mymtd);
136 map_destroy(mymtd);
[all...]
H A Ddc21285.c23 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
140 mymtd = do_map_probe("cfi_probe", &dc21285_map);
141 if (mymtd) {
144 mymtd->module = THIS_MODULE;
148 nrparts = parse_redboot_partitions(mymtd, &dc21285_parts);
155 add_mtd_partitions(mymtd, dc21285_parts, nrparts);
179 if (mymtd) {
180 del_mtd_device(mymtd);
181 map_destroy(mymtd);
182 mymtd
[all...]
H A Ddilnetpc.c348 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
463 mymtd = do_map_probe("jedec_probe", &dnpc_map);
465 if (!mymtd)
466 mymtd = do_map_probe("cfi_probe", &dnpc_map);
473 if (!mymtd)
474 if((mymtd = do_map_probe("map_rom", &dnpc_map)))
475 mymtd->erasesize = 0x10000;
477 if (!mymtd) {
482 mymtd->module = THIS_MODULE;
498 add_mtd_partitions(mymtd, partition_inf
[all...]
H A Depxa10db-flash.c39 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
114 mymtd = do_map_probe("cfi_probe", &epxa10db_map);
115 if (!mymtd) {
120 mymtd->module = THIS_MODULE;
123 for (i=0; i<mymtd->numeraseregions;i++){
125 for(j=0;j<mymtd->eraseregions[i].numblocks;j++){
126 mymtd->unlock(mymtd,mymtd->eraseregions[i].offset + j * mymtd
[all...]
H A Diq80310.c27 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
107 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
124 mymtd = do_map_probe("cfi_probe", &iq80310_map);
125 if (!mymtd) {
129 mymtd->module = THIS_MODULE;
133 int ret = parse_redboot_partitions(mymtd, &parsed_parts);
150 add_mtd_partitions(mymtd, parts, nb_parts);
156 if (mymtd) {
157 del_mtd_partitions(mymtd);
158 map_destroy(mymtd);
[all...]
H A Dl440gx.c28 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
172 mymtd = do_map_probe("jedec_probe", &l440gx_map);
173 if (!mymtd) {
175 mymtd = do_map_probe("map_rom", &l440gx_map);
177 if (mymtd) {
178 mymtd->module = THIS_MODULE;
180 add_mtd_device(mymtd);
190 del_mtd_device(mymtd);
191 map_destroy(mymtd);
H A Dlasat.c17 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
95 mymtd = do_map_probe("cfi_probe", &sp_map);
96 if (mymtd) {
99 mymtd->module = THIS_MODULE;
108 add_mtd_partitions( mymtd, partition_info, LASAT_MTD_LAST );
117 if (mymtd) {
118 del_mtd_partitions(mymtd);
119 map_destroy(mymtd);
H A Dmbx860.c50 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
115 mymtd = do_map_probe("jedec_probe", &mbx_map);
116 if (mymtd) {
117 mymtd->module = THIS_MODULE;
118 add_mtd_device(mymtd);
119 add_mtd_partitions(mymtd, partition_info, NUM_PARTITIONS);
129 if (mymtd) {
130 del_mtd_device(mymtd);
131 map_destroy(mymtd);
H A Dnetsc520.c146 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
157 mymtd = do_map_probe("cfi_probe", &netsc520_map);
158 if(!mymtd)
159 mymtd = do_map_probe("map_ram", &netsc520_map);
160 if(!mymtd)
161 mymtd = do_map_probe("map_rom", &netsc520_map);
163 if (!mymtd) {
168 mymtd->module = THIS_MODULE;
169 add_mtd_partitions( mymtd, partition_info, NUM_PARTITIONS );
175 if (mymtd) {
[all...]
H A Dnora.c18 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
77 return mymtd->read(mymtd, from + (unsigned long)mtd->priv, len, retlen, buf);
82 return mymtd->write(mymtd, to + (unsigned long)mtd->priv, len, retlen, buf);
88 return mymtd->erase(mymtd, instr);
93 mymtd->sync(mymtd);
98 return mymtd
[all...]
H A Dpb1xxx-flash.c203 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
230 mymtd = do_map_probe("cfi_probe", &pb1xxx_map);
231 if (!mymtd) return -ENXIO;
232 mymtd->module = THIS_MODULE;
234 add_mtd_partitions(mymtd, parts, nb_parts);
240 if (mymtd) {
241 del_mtd_partitions(mymtd);
242 map_destroy(mymtd);
H A Dphysmap.c20 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
88 mymtd = do_map_probe("cfi_probe", &physmap_map);
89 if (mymtd) {
90 mymtd->module = THIS_MODULE;
92 add_mtd_device(mymtd);
102 if (mymtd) {
103 del_mtd_device(mymtd);
104 map_destroy(mymtd);
H A Dpnc2000.c107 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
113 mymtd = do_map_probe("cfi_probe", &pnc_map);
114 if (mymtd) {
115 mymtd->module = THIS_MODULE;
116 return add_mtd_partitions(mymtd, pnc_partitions, 3);
124 if (mymtd) {
125 del_mtd_partitions(mymtd);
126 map_destroy(mymtd);
H A Drpxlite.c18 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
86 mymtd = do_map_probe("cfi_probe", &rpxlite_map);
87 if (mymtd) {
88 mymtd->module = THIS_MODULE;
89 add_mtd_device(mymtd);
99 if (mymtd) {
100 del_mtd_device(mymtd);
101 map_destroy(mymtd);
H A Dsa1100-flash.c776 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
959 mymtd = do_map_probe("cfi_probe", &sa1100_map);
961 if (!mymtd)
963 mymtd->module = THIS_MODULE;
970 int ret = parse_redboot_partitions(mymtd, &parsed_parts);
980 int ret = parse_bootldr_partitions(mymtd, &parsed_parts);
995 add_mtd_device(mymtd);
998 add_mtd_partitions(mymtd, parts, nb_parts);
1012 if (mymtd) {
1013 del_mtd_partitions(mymtd);
[all...]
H A Dsc520cdp.c174 static struct mtd_info *mymtd[NUM_FLASH_BANKS]; variable in typeref:struct:mtd_info
310 mymtd[i] = do_map_probe("cfi_probe", &sc520cdp_map[i]);
311 if(!mymtd[i])
312 mymtd[i] = do_map_probe("jedec_probe", &sc520cdp_map[i]);
313 if(!mymtd[i])
314 mymtd[i] = do_map_probe("map_rom", &sc520cdp_map[i]);
316 if (mymtd[i]) {
317 mymtd[i]->module = THIS_MODULE;
326 merged_mtd = mtd_concat_create(mymtd, 2, "SC520CDP Flash Banks #0 and #1");
331 add_mtd_device(mymtd[
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/cris/drivers/
H A Daxisflashmap.c272 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
291 mymtd = (struct mtd_info *)do_map_probe("amd_flash", &axis_map);
295 if (!mymtd) {
296 mymtd = (struct mtd_info *)do_map_probe("cfi_probe", &axis_map);
300 if(!mymtd) {
305 mymtd->module = THIS_MODULE;
375 err = add_mtd_partitions(mymtd, axis_default_partitions,
391 err = add_mtd_partitions(mymtd, axis_partitions, pidx);

Completed in 93 milliseconds