Home
last modified time | relevance | path

Searched refs:mymtd (Results 1 – 25 of 26) sorted by relevance

12

/linux-2.4.37.9/drivers/mtd/maps/
Depxa10db-flash.c44 static struct mtd_info *mymtd; variable
120 mymtd = do_map_probe("cfi_probe", &epxa_map); in epxa_mtd_init()
121 if (!mymtd) { in epxa_mtd_init()
126 mymtd->module = THIS_MODULE; in epxa_mtd_init()
129 if(mymtd->unlock){ in epxa_mtd_init()
130 for (i=0; i<mymtd->numeraseregions;i++){ in epxa_mtd_init()
132 for(j=0;j<mymtd->eraseregions[i].numblocks;j++){ in epxa_mtd_init()
133mymtd->unlock(mymtd,mymtd->eraseregions[i].offset + j * mymtd->eraseregions[i].erasesize,mymtd->er… in epxa_mtd_init()
139 nr_parts = parse_redboot_partitions(mymtd, &parts); in epxa_mtd_init()
142 add_mtd_partitions(mymtd, parts, nr_parts); in epxa_mtd_init()
[all …]
Dnora.c18 static struct mtd_info *mymtd; variable
77 return mymtd->read(mymtd, from + (unsigned long)mtd->priv, len, retlen, buf); in nora_mtd_read()
82 return mymtd->write(mymtd, to + (unsigned long)mtd->priv, len, retlen, buf); in nora_mtd_write()
88 return mymtd->erase(mymtd, instr); in nora_mtd_erase()
93 mymtd->sync(mymtd); in nora_mtd_sync()
98 return mymtd->suspend(mymtd); in nora_mtd_suspend()
103 mymtd->resume(mymtd); in nora_mtd_resume()
174 mymtd = do_map_probe("cfi_probe", &nora_map); in init_nora()
175 if (mymtd) { in init_nora()
176 mymtd->module = THIS_MODULE; in init_nora()
[all …]
Dphysmap.c23 static struct mtd_info *mymtd; variable
131 mymtd = 0; in init_physmap()
133 for(; !mymtd && *type; type++) { in init_physmap()
134 mymtd = do_map_probe(*type, &physmap_map); in init_physmap()
136 if (mymtd) { in init_physmap()
137 mymtd->module = THIS_MODULE; in init_physmap()
139 add_mtd_device(mymtd); in init_physmap()
142 mtd_parts_nb = parse_cmdline_partitions(mymtd, &mtd_parts, in init_physmap()
148 add_mtd_partitions (mymtd, mtd_parts, mtd_parts_nb); in init_physmap()
155 add_mtd_partitions (mymtd, physmap_partitions, NUM_PARTITIONS); in init_physmap()
[all …]
Dnetsc520.c146 static struct mtd_info *mymtd; variable
157 mymtd = do_map_probe("cfi_probe", &netsc520_map); in init_netsc520()
158 if(!mymtd) in init_netsc520()
159 mymtd = do_map_probe("map_ram", &netsc520_map); in init_netsc520()
160 if(!mymtd) in init_netsc520()
161 mymtd = do_map_probe("map_rom", &netsc520_map); in init_netsc520()
163 if (!mymtd) { in init_netsc520()
168 mymtd->module = THIS_MODULE; in init_netsc520()
169 add_mtd_partitions( mymtd, partition_info, NUM_PARTITIONS ); in init_netsc520()
175 if (mymtd) { in cleanup_netsc520()
[all …]
Dphysmap64.c24 static struct mtd_info *mymtd; variable
145 mymtd = 0; in init_physmap()
147 for(; !mymtd && *type; type++) { in init_physmap()
148 mymtd = do_map_probe(*type, &physmap_map); in init_physmap()
150 if (mymtd) { in init_physmap()
151 mymtd->module = THIS_MODULE; in init_physmap()
153 add_mtd_device(mymtd); in init_physmap()
156 mtd_parts_nb = parse_cmdline_partitions(mymtd, &mtd_parts, in init_physmap()
162 add_mtd_partitions (mymtd, mtd_parts, mtd_parts_nb); in init_physmap()
169 add_mtd_partitions (mymtd, physmap_partitions, NUM_PARTITIONS); in init_physmap()
[all …]
Dedb7312.c36 static struct mtd_info *mymtd; variable
148 mymtd = 0; in init_edb7312nor()
150 for(; !mymtd && *type; type++) { in init_edb7312nor()
151 mymtd = do_map_probe(*type, &edb7312nor_map); in init_edb7312nor()
153 if (mymtd) { in init_edb7312nor()
154 mymtd->module = THIS_MODULE; in init_edb7312nor()
158 mtd_parts_nb = parse_cmdline_partitions(mymtd, &mtd_parts, MTDID); in init_edb7312nor()
169 add_mtd_device(mymtd); in init_edb7312nor()
176 add_mtd_partitions(mymtd, mtd_parts, mtd_parts_nb); in init_edb7312nor()
187 if (mymtd) { in cleanup_edb7312nor()
[all …]
Ddbox2-flash.c41 static struct mtd_info *mymtd; variable
111 mymtd = do_map_probe("cfi_probe", &dbox2_flash_map); in init_dbox2_flash()
112 if (!mymtd) { in init_dbox2_flash()
116 mymtd = do_map_probe("cfi_probe", &dbox2_flash_map); in init_dbox2_flash()
119 if (mymtd) { in init_dbox2_flash()
120 mymtd->module = THIS_MODULE; in init_dbox2_flash()
123 add_mtd_partitions(mymtd, partition_info, NUM_PARTITIONS); in init_dbox2_flash()
134 if (mymtd) { in cleanup_dbox2_flash()
135 del_mtd_partitions(mymtd); in cleanup_dbox2_flash()
136 map_destroy(mymtd); in cleanup_dbox2_flash()
Ddc21285.c23 static struct mtd_info *mymtd; variable
140 mymtd = do_map_probe("cfi_probe", &dc21285_map); in init_dc21285()
141 if (mymtd) { in init_dc21285()
144 mymtd->module = THIS_MODULE; in init_dc21285()
149 nrparts = parse_redboot_partitions(mymtd, &dc21285_parts); in init_dc21285()
152 add_mtd_partitions(mymtd, dc21285_parts, nrparts); in init_dc21285()
155 add_mtd_device(mymtd); in init_dc21285()
180 if (mymtd) { in cleanup_dc21285()
181 del_mtd_device(mymtd); in cleanup_dc21285()
182 map_destroy(mymtd); in cleanup_dc21285()
[all …]
Dcstm_mips_ixx.c214 struct mtd_info *mymtd; in init_cstm_mips_ixx() local
239 mymtd = (struct mtd_info *)do_map_probe("cfi_probe", &cstm_mips_ixx_map[i]); in init_cstm_mips_ixx()
241 if (!mymtd) { in init_cstm_mips_ixx()
243 mymtd = (struct mtd_info *)do_map_probe("jedec", &cstm_mips_ixx_map[i]); in init_cstm_mips_ixx()
244 printk(KERN_NOTICE "cstm_mips_ixx %d jedec: mymtd is %x\n",i,(unsigned int)mymtd); in init_cstm_mips_ixx()
246 if (mymtd) { in init_cstm_mips_ixx()
247 mymtd->module = THIS_MODULE; in init_cstm_mips_ixx()
249 cstm_mips_ixx_map[i].map_priv_2 = (unsigned long)mymtd; in init_cstm_mips_ixx()
250 add_mtd_partitions(mymtd, parts, cstm_mips_ixx_board_desc[i].num_partitions); in init_cstm_mips_ixx()
261 struct mtd_info *mymtd; in cleanup_cstm_mips_ixx() local
[all …]
Dsc520cdp.c174 static struct mtd_info *mymtd[NUM_FLASH_BANKS]; variable
310 mymtd[i] = do_map_probe("cfi_probe", &sc520cdp_map[i]); in init_sc520cdp()
311 if(!mymtd[i]) in init_sc520cdp()
312 mymtd[i] = do_map_probe("jedec_probe", &sc520cdp_map[i]); in init_sc520cdp()
313 if(!mymtd[i]) in init_sc520cdp()
314 mymtd[i] = do_map_probe("map_rom", &sc520cdp_map[i]); in init_sc520cdp()
316 if (mymtd[i]) { in init_sc520cdp()
317 mymtd[i]->module = THIS_MODULE; in init_sc520cdp()
326 merged_mtd = mtd_concat_create(mymtd, 2, "SC520CDP Flash Banks #0 and #1"); in init_sc520cdp()
331 add_mtd_device(mymtd[2]); in init_sc520cdp()
[all …]
Diq80310.c27 static struct mtd_info *mymtd; variable
107 static struct mtd_info *mymtd; variable
124 mymtd = do_map_probe("cfi_probe", &iq80310_map); in init_iq80310()
125 if (!mymtd) { in init_iq80310()
129 mymtd->module = THIS_MODULE; in init_iq80310()
133 int ret = parse_redboot_partitions(mymtd, &parsed_parts); in init_iq80310()
150 add_mtd_partitions(mymtd, parts, nb_parts); in init_iq80310()
156 if (mymtd) { in cleanup_iq80310()
157 del_mtd_partitions(mymtd); in cleanup_iq80310()
158 map_destroy(mymtd); in cleanup_iq80310()
Dmbx860.c50 static struct mtd_info *mymtd; variable
115 mymtd = do_map_probe("jedec_probe", &mbx_map); in init_mbx()
116 if (mymtd) { in init_mbx()
117 mymtd->module = THIS_MODULE; in init_mbx()
118 add_mtd_device(mymtd); in init_mbx()
119 add_mtd_partitions(mymtd, partition_info, NUM_PARTITIONS); in init_mbx()
129 if (mymtd) { in cleanup_mbx()
130 del_mtd_device(mymtd); in cleanup_mbx()
131 map_destroy(mymtd); in cleanup_mbx()
Dpnc2000.c107 static struct mtd_info *mymtd; variable
113 mymtd = do_map_probe("cfi_probe", &pnc_map); in init_pnc2000()
114 if (mymtd) { in init_pnc2000()
115 mymtd->module = THIS_MODULE; in init_pnc2000()
116 return add_mtd_partitions(mymtd, pnc_partitions, 3); in init_pnc2000()
124 if (mymtd) { in cleanup_pnc2000()
125 del_mtd_partitions(mymtd); in cleanup_pnc2000()
126 map_destroy(mymtd); in cleanup_pnc2000()
Drpxlite.c18 static struct mtd_info *mymtd; variable
86 mymtd = do_map_probe("cfi_probe", &rpxlite_map); in init_rpxlite()
87 if (mymtd) { in init_rpxlite()
88 mymtd->module = THIS_MODULE; in init_rpxlite()
89 add_mtd_device(mymtd); in init_rpxlite()
99 if (mymtd) { in cleanup_rpxlite()
100 del_mtd_device(mymtd); in cleanup_rpxlite()
101 map_destroy(mymtd); in cleanup_rpxlite()
Dscx200_docflash.c50 static struct mtd_info *mymtd; variable
223 mymtd = do_map_probe(flashtype, &scx200_docflash_map); in init_scx200_docflash()
224 if (!mymtd) { in init_scx200_docflash()
231 if (size < mymtd->size) in init_scx200_docflash()
234 mymtd->module = THIS_MODULE; in init_scx200_docflash()
237 partition_info[3].offset = mymtd->size-partition_info[3].size; in init_scx200_docflash()
239 add_mtd_partitions(mymtd, partition_info, NUM_PARTITIONS); in init_scx200_docflash()
241 add_mtd_device(mymtd); in init_scx200_docflash()
248 if (mymtd) { in cleanup_scx200_docflash()
250 del_mtd_partitions(mymtd); in cleanup_scx200_docflash()
[all …]
Dlasat.c26 static struct mtd_info *mymtd; variable
104 mymtd = do_map_probe("cfi_probe", &sp_map); in init_sp()
105 if (mymtd) { in init_sp()
108 mymtd->module = THIS_MODULE; in init_sp()
117 add_mtd_partitions( mymtd, partition_info, LASAT_MTD_LAST ); in init_sp()
126 if (mymtd) { in cleanup_sp()
127 del_mtd_partitions(mymtd); in cleanup_sp()
128 map_destroy(mymtd); in cleanup_sp()
Dcfi_flagadm.c140 static struct mtd_info *mymtd; variable
154 mymtd = do_map_probe("cfi_probe", &flagadm_map); in init_flagadm()
155 if (mymtd) { in init_flagadm()
156 mymtd->module = THIS_MODULE; in init_flagadm()
157 add_mtd_partitions(mymtd, flagadm_parts, PARTITION_COUNT); in init_flagadm()
168 if (mymtd) { in cleanup_flagadm()
169 del_mtd_partitions(mymtd); in cleanup_flagadm()
170 map_destroy(mymtd); in cleanup_flagadm()
Ddilnetpc.c348 static struct mtd_info *mymtd; variable
463 mymtd = do_map_probe("jedec_probe", &dnpc_map); in init_dnpc()
465 if (!mymtd) in init_dnpc()
466 mymtd = do_map_probe("cfi_probe", &dnpc_map); in init_dnpc()
473 if (!mymtd) in init_dnpc()
474 if((mymtd = do_map_probe("map_rom", &dnpc_map))) in init_dnpc()
475 mymtd->erasesize = 0x10000; in init_dnpc()
477 if (!mymtd) { in init_dnpc()
482 mymtd->module = THIS_MODULE; in init_dnpc()
498 add_mtd_partitions(mymtd, partition_info, NUM_PARTITIONS); in init_dnpc()
[all …]
Dl440gx.c28 static struct mtd_info *mymtd; variable
178 mymtd = do_map_probe("jedec_probe", &l440gx_map); in init_l440gx()
179 if (!mymtd) { in init_l440gx()
181 mymtd = do_map_probe("map_rom", &l440gx_map); in init_l440gx()
183 if (mymtd) { in init_l440gx()
184 mymtd->module = THIS_MODULE; in init_l440gx()
186 add_mtd_device(mymtd); in init_l440gx()
196 del_mtd_device(mymtd); in cleanup_l440gx()
197 map_destroy(mymtd); in cleanup_l440gx()
Dfortunet.c29 struct mtd_info *mymtd; member
166 map_regions[params[1]].mymtd = NULL; in MTD_New_Region()
240 map_regions[ix].mymtd = NULL; in init_fortunet()
265 map_regions[ix].mymtd = do_map_probe("cfi_probe", in init_fortunet()
267 if((!map_regions[ix].mymtd)&&( in init_fortunet()
275 map_regions[ix].mymtd = do_map_probe("cfi_probe", in init_fortunet()
278 map_regions[ix].mymtd->module = THIS_MODULE; in init_fortunet()
279 add_mtd_partitions(map_regions[ix].mymtd, in init_fortunet()
295 if( map_regions[ix].mymtd ) in cleanup_fortunet()
297 del_mtd_partitions( map_regions[ix].mymtd ); in cleanup_fortunet()
[all …]
Dpb1xxx-flash.c203 static struct mtd_info *mymtd; variable
230 mymtd = do_map_probe("cfi_probe", &pb1xxx_map); in pb1xxx_mtd_init()
231 if (!mymtd) return -ENXIO; in pb1xxx_mtd_init()
232 mymtd->module = THIS_MODULE; in pb1xxx_mtd_init()
234 add_mtd_partitions(mymtd, parts, nb_parts); in pb1xxx_mtd_init()
240 if (mymtd) { in pb1xxx_mtd_cleanup()
241 del_mtd_partitions(mymtd); in pb1xxx_mtd_cleanup()
242 map_destroy(mymtd); in pb1xxx_mtd_cleanup()
Dsa1100-flash.c772 static struct mtd_info *mymtd; variable
956 mymtd = do_map_probe("cfi_probe", &sa1100_map); in sa1100_mtd_init()
958 if (!mymtd) in sa1100_mtd_init()
960 mymtd->module = THIS_MODULE; in sa1100_mtd_init()
967 int ret = parse_redboot_partitions(mymtd, &parsed_parts); in sa1100_mtd_init()
977 int ret = parse_cmdline_partitions(mymtd, &parsed_parts, "sa1100"); in sa1100_mtd_init()
992 add_mtd_device(mymtd); in sa1100_mtd_init()
995 add_mtd_partitions(mymtd, parts, nb_parts); in sa1100_mtd_init()
1009 if (mymtd) { in sa1100_mtd_cleanup()
1010 del_mtd_partitions(mymtd); in sa1100_mtd_cleanup()
[all …]
/linux-2.4.37.9/drivers/mtd/devices/
Ddoc1000.c46 static struct mtd_info *mymtd; variable
520 mymtd = kmalloc(sizeof(struct mtd_info), GFP_KERNEL); in init_doc1000()
522 if (!mymtd) in init_doc1000()
528 memset(mymtd,0,sizeof(struct mtd_info)); in init_doc1000()
530 mymtd->priv = (void *) kmalloc (sizeof(struct mypriv), GFP_KERNEL); in init_doc1000()
531 if (!mymtd->priv) in init_doc1000()
533 kfree(mymtd); in init_doc1000()
541 priv=mymtd->priv; in init_doc1000()
549 mymtd->name = "M-Systems DiskOnChip 1000"; in init_doc1000()
551 mymtd->size = 0x100000; in init_doc1000()
[all …]
/linux-2.4.37.9/arch/cris/drivers/
Daxisflashmap.c397 struct mtd_info *mymtd; in init_axis_flash() local
405 if (!(mymtd = flash_probe())) { in init_axis_flash()
412 mymtd->name, mymtd->size); in init_axis_flash()
413 axisflash_mtd = mymtd; in init_axis_flash()
416 if (mymtd) { in init_axis_flash()
417 mymtd->module = THIS_MODULE; in init_axis_flash()
498 if (mymtd) { in init_axis_flash()
501 err = add_mtd_partitions(mymtd, axis_default_partitions, in init_axis_flash()
504 err = add_mtd_partitions(mymtd, axis_partitions, pidx); in init_axis_flash()
/linux-2.4.37.9/drivers/net/
Dether00.c911 struct mtd_info *mymtd=NULL; in ether00_get_ethernet_address() local
930 mymtd=get_mtd_device(NULL,i); in ether00_get_ethernet_address()
931 if(!mymtd||!strcmp(mymtd->name,"EPXA10DB flash")) in ether00_get_ethernet_address()
935 if(!mymtd || !mymtd->read_user_prot_reg){ in ether00_get_ethernet_address()
938 mymtd->read_user_prot_reg(mymtd,2,1,&retlen,&dev->dev_addr[5]); in ether00_get_ethernet_address()
939 mymtd->read_user_prot_reg(mymtd,3,1,&retlen,&dev->dev_addr[4]); in ether00_get_ethernet_address()

12