Searched refs:mymtd (Results 1 - 20 of 20) sorted by relevance

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/mtd/maps/
H A Dts5500_flash.c68 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
84 mymtd = do_map_probe("jedec_probe", &ts5500_map);
85 if (!mymtd)
86 mymtd = do_map_probe("map_rom", &ts5500_map);
88 if (!mymtd) {
93 mymtd->owner = THIS_MODULE;
94 add_mtd_partitions(mymtd, ts5500_partitions, NUM_PARTITIONS);
99 map_destroy(mymtd);
107 if (mymtd) {
108 del_mtd_partitions(mymtd);
[all...]
H A Dedb7312.c36 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
93 mymtd = 0;
95 for(; !mymtd && *type; type++) {
96 mymtd = do_map_probe(*type, &edb7312nor_map);
98 if (mymtd) {
99 mymtd->owner = THIS_MODULE;
102 mtd_parts_nb = parse_mtd_partitions(mymtd, probes, &mtd_parts, MTDID);
113 add_mtd_device(mymtd);
120 add_mtd_partitions(mymtd, mtd_parts, mtd_parts_nb);
131 if (mymtd) {
[all...]
H A Dnetsc520.c93 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
109 mymtd = do_map_probe("cfi_probe", &netsc520_map);
110 if(!mymtd)
111 mymtd = do_map_probe("map_ram", &netsc520_map);
112 if(!mymtd)
113 mymtd = do_map_probe("map_rom", &netsc520_map);
115 if (!mymtd) {
120 mymtd->owner = THIS_MODULE;
121 add_mtd_partitions( mymtd, partition_info, NUM_PARTITIONS );
127 if (mymtd) {
[all...]
H A Dmbx860.c51 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
71 mymtd = do_map_probe("jedec_probe", &mbx_map);
72 if (mymtd) {
73 mymtd->owner = THIS_MODULE;
74 add_mtd_device(mymtd);
75 add_mtd_partitions(mymtd, partition_info, NUM_PARTITIONS);
85 if (mymtd) {
86 del_mtd_device(mymtd);
87 map_destroy(mymtd);
H A Dpnc2000.c63 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
71 mymtd = do_map_probe("cfi_probe", &pnc_map);
72 if (mymtd) {
73 mymtd->owner = THIS_MODULE;
74 return add_mtd_partitions(mymtd, pnc_partitions, 3);
82 if (mymtd) {
83 del_mtd_partitions(mymtd);
84 map_destroy(mymtd);
H A Drpxlite.c19 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
38 mymtd = do_map_probe("cfi_probe", &rpxlite_map);
39 if (mymtd) {
40 mymtd->owner = THIS_MODULE;
41 add_mtd_device(mymtd);
51 if (mymtd) {
52 del_mtd_device(mymtd);
53 map_destroy(mymtd);
H A Ddbox2-flash.c64 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
86 mymtd = do_map_probe("cfi_probe", &dbox2_flash_map);
87 if (!mymtd) {
91 mymtd = do_map_probe("cfi_probe", &dbox2_flash_map);
94 if (mymtd) {
95 mymtd->owner = THIS_MODULE;
98 add_mtd_partitions(mymtd, partition_info, NUM_PARTITIONS);
109 if (mymtd) {
110 del_mtd_partitions(mymtd);
111 map_destroy(mymtd);
[all...]
H A Dsharpsl-flash.c37 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
68 mymtd = do_map_probe("map_rom", &sharpsl_map);
69 if (!mymtd) {
74 mymtd->owner = THIS_MODULE;
87 map_destroy(mymtd);
96 add_mtd_partitions(mymtd, parts, nb_parts);
103 if (mymtd) {
104 del_mtd_partitions(mymtd);
105 map_destroy(mymtd);
H A Dh720x-flash.c24 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
86 mymtd = do_map_probe("cfi_probe", &h720x_map);
87 if (!mymtd) {
91 mymtd = do_map_probe("cfi_probe", &h720x_map);
94 if (mymtd) {
95 mymtd->owner = THIS_MODULE;
98 nr_mtd_parts = parse_mtd_partitions(mymtd, probes, &mtd_parts, 0);
108 add_mtd_partitions(mymtd, mtd_parts, nr_mtd_parts);
122 if (mymtd) {
123 del_mtd_partitions(mymtd);
[all...]
H A Dcfi_flagadm.c91 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
109 mymtd = do_map_probe("cfi_probe", &flagadm_map);
110 if (mymtd) {
111 mymtd->owner = THIS_MODULE;
112 add_mtd_partitions(mymtd, flagadm_parts, PARTITION_COUNT);
123 if (mymtd) {
124 del_mtd_partitions(mymtd);
125 map_destroy(mymtd);
H A Dsc520cdp.c111 static struct mtd_info *mymtd[NUM_FLASH_BANKS]; variable in typeref:struct:mtd_info
253 mymtd[i] = do_map_probe("cfi_probe", &sc520cdp_map[i]);
254 if(!mymtd[i])
255 mymtd[i] = do_map_probe("jedec_probe", &sc520cdp_map[i]);
256 if(!mymtd[i])
257 mymtd[i] = do_map_probe("map_rom", &sc520cdp_map[i]);
259 if (mymtd[i]) {
260 mymtd[i]->owner = THIS_MODULE;
269 merged_mtd = mtd_concat_create(mymtd, 2, "SC520CDP Flash Banks #0 and #1");
274 add_mtd_device(mymtd[
[all...]
H A Dl440gx.c28 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
129 mymtd = do_map_probe("jedec_probe", &l440gx_map);
130 if (!mymtd) {
132 mymtd = do_map_probe("map_rom", &l440gx_map);
134 if (mymtd) {
135 mymtd->owner = THIS_MODULE;
137 add_mtd_device(mymtd);
147 del_mtd_device(mymtd);
148 map_destroy(mymtd);
H A Dscx200_docflash.c47 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
191 mymtd = do_map_probe(flashtype, &scx200_docflash_map);
192 if (!mymtd) {
199 if (size < mymtd->size)
202 mymtd->owner = THIS_MODULE;
205 partition_info[3].offset = mymtd->size-partition_info[3].size;
207 add_mtd_partitions(mymtd, partition_info, NUM_PARTITIONS);
209 add_mtd_device(mymtd);
216 if (mymtd) {
218 del_mtd_partitions(mymtd);
[all...]
H A Dalchemy-flash.c119 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
155 mymtd = do_map_probe("cfi_probe", &alchemy_map);
156 if (!mymtd) {
160 mymtd->owner = THIS_MODULE;
162 add_mtd_partitions(mymtd, parts, nb_parts);
168 if (mymtd) {
169 del_mtd_partitions(mymtd);
170 map_destroy(mymtd);
H A Dipaq-flash.c183 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
326 mymtd = mtd_concat_create(&my_sub_mtd[0], i,
328 if (!mymtd) {
333 mymtd = my_sub_mtd[0];
341 mymtd->name = "ipaq";
375 mymtd = do_map_probe("cfi_probe", &ipaq_map[0]);
376 if (!mymtd)
378 mymtd->owner = THIS_MODULE;
386 i = parse_mtd_partitions(mymtd, part_probes, &parsed_parts, 0);
396 add_mtd_device(mymtd);
[all...]
H A Ddilnetpc.c304 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
420 mymtd = do_map_probe("jedec_probe", &dnpc_map);
422 if (!mymtd)
423 mymtd = do_map_probe("cfi_probe", &dnpc_map);
430 if (!mymtd)
431 if((mymtd = do_map_probe("map_rom", &dnpc_map)))
432 mymtd->erasesize = 0x10000;
434 if (!mymtd) {
439 mymtd->owner = THIS_MODULE;
455 add_mtd_partitions(mymtd, partition_inf
[all...]
H A Dfortunet.c33 struct mtd_info *mymtd; member in struct:map_region
123 map_regions[params[1]].mymtd = NULL;
200 map_regions[ix].mymtd = NULL;
233 map_regions[ix].mymtd = do_map_probe("cfi_probe",
235 if((!map_regions[ix].mymtd)&&(
243 map_regions[ix].mymtd = do_map_probe("cfi_probe",
246 map_regions[ix].mymtd->owner = THIS_MODULE;
247 add_mtd_partitions(map_regions[ix].mymtd,
263 if( map_regions[ix].mymtd )
265 del_mtd_partitions( map_regions[ix].mymtd );
[all...]
H A Dceiva.c317 static struct mtd_info *mymtd; variable in typeref:struct:mtd_info
328 ret = clps_setup_mtd(info, nr, &mymtd);
332 clps_locate_partitions(mymtd);
339 clps_destroy_mtd(info, mymtd);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/cris/arch-v32/drivers/
H A Daxisflashmap.c284 struct mtd_info *mymtd; local
295 mymtd = flash_probe();
296 mymtd->read(mymtd, CONFIG_ETRAX_PTABLE_SECTOR, 512, &len, page);
299 if (!mymtd) {
306 mymtd->name, mymtd->size);
307 axisflash_mtd = mymtd;
310 if (mymtd) {
311 mymtd
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/cris/arch-v10/drivers/
H A Daxisflashmap.c392 struct mtd_info *mymtd; local
400 if (!(mymtd = flash_probe())) {
407 mymtd->name, mymtd->size);
408 axisflash_mtd = mymtd;
411 if (mymtd) {
412 mymtd->owner = THIS_MODULE;
493 if (mymtd) {
496 err = add_mtd_partitions(mymtd, axis_default_partitions,
499 err = add_mtd_partitions(mymtd, axis_partition
[all...]

Completed in 89 milliseconds