Home
last modified time | relevance | path

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

/drivers/mtd/maps/
Dnetsc520.c91 static struct mtd_info *mymtd; variable
107 mymtd = do_map_probe("cfi_probe", &netsc520_map); in init_netsc520()
108 if(!mymtd) in init_netsc520()
109 mymtd = do_map_probe("map_ram", &netsc520_map); in init_netsc520()
110 if(!mymtd) in init_netsc520()
111 mymtd = do_map_probe("map_rom", &netsc520_map); in init_netsc520()
113 if (!mymtd) { in init_netsc520()
118 mymtd->owner = THIS_MODULE; in init_netsc520()
119 mtd_device_register(mymtd, partition_info, NUM_PARTITIONS); in init_netsc520()
125 if (mymtd) { in cleanup_netsc520()
[all …]
Dts5500_flash.c66 static struct mtd_info *mymtd; variable
82 mymtd = do_map_probe("jedec_probe", &ts5500_map); in init_ts5500_map()
83 if (!mymtd) in init_ts5500_map()
84 mymtd = do_map_probe("map_rom", &ts5500_map); in init_ts5500_map()
86 if (!mymtd) { in init_ts5500_map()
91 mymtd->owner = THIS_MODULE; in init_ts5500_map()
92 mtd_device_register(mymtd, ts5500_partitions, NUM_PARTITIONS); in init_ts5500_map()
104 if (mymtd) { in cleanup_ts5500_map()
105 mtd_device_unregister(mymtd); in cleanup_ts5500_map()
106 map_destroy(mymtd); in cleanup_ts5500_map()
Dsc520cdp.c109 static struct mtd_info *mymtd[NUM_FLASH_BANKS]; variable
251 mymtd[i] = do_map_probe("cfi_probe", &sc520cdp_map[i]); in init_sc520cdp()
252 if(!mymtd[i]) in init_sc520cdp()
253 mymtd[i] = do_map_probe("jedec_probe", &sc520cdp_map[i]); in init_sc520cdp()
254 if(!mymtd[i]) in init_sc520cdp()
255 mymtd[i] = do_map_probe("map_rom", &sc520cdp_map[i]); in init_sc520cdp()
257 if (mymtd[i]) { in init_sc520cdp()
258 mymtd[i]->owner = THIS_MODULE; in init_sc520cdp()
267 merged_mtd = mtd_concat_create(mymtd, 2, "SC520CDP Flash Banks #0 and #1"); in init_sc520cdp()
272 mtd_device_register(mymtd[2], NULL, 0); in init_sc520cdp()
[all …]
Dcfi_flagadm.c89 static struct mtd_info *mymtd; variable
107 mymtd = do_map_probe("cfi_probe", &flagadm_map); in init_flagadm()
108 if (mymtd) { in init_flagadm()
109 mymtd->owner = THIS_MODULE; in init_flagadm()
110 mtd_device_register(mymtd, flagadm_parts, PARTITION_COUNT); in init_flagadm()
121 if (mymtd) { in cleanup_flagadm()
122 mtd_device_unregister(mymtd); in cleanup_flagadm()
123 map_destroy(mymtd); in cleanup_flagadm()
Dl440gx.c26 static struct mtd_info *mymtd; variable
137 mymtd = do_map_probe("jedec_probe", &l440gx_map); in init_l440gx()
138 if (!mymtd) { in init_l440gx()
140 mymtd = do_map_probe("map_rom", &l440gx_map); in init_l440gx()
142 if (mymtd) { in init_l440gx()
143 mymtd->owner = THIS_MODULE; in init_l440gx()
145 mtd_device_register(mymtd, NULL, 0); in init_l440gx()
155 mtd_device_unregister(mymtd); in cleanup_l440gx()
156 map_destroy(mymtd); in cleanup_l440gx()
Dscx200_docflash.c45 static struct mtd_info *mymtd; variable
185 mymtd = do_map_probe(flashtype, &scx200_docflash_map); in init_scx200_docflash()
186 if (!mymtd) { in init_scx200_docflash()
193 if (size < mymtd->size) in init_scx200_docflash()
196 mymtd->owner = THIS_MODULE; in init_scx200_docflash()
198 partition_info[3].offset = mymtd->size-partition_info[3].size; in init_scx200_docflash()
200 mtd_device_register(mymtd, partition_info, NUM_PARTITIONS); in init_scx200_docflash()
207 if (mymtd) { in cleanup_scx200_docflash()
208 mtd_device_unregister(mymtd); in cleanup_scx200_docflash()
209 map_destroy(mymtd); in cleanup_scx200_docflash()