Lines Matching refs:ix
186 int ix,iy;
187 for(iy=ix=0;ix<MAX_NUM_REGIONS;ix++)
189 if(map_regions_parts[ix]&&(!map_regions_set[ix]))
192 ix);
193 memset(&map_regions[ix],0,sizeof(map_regions[ix]));
194 memcpy(&map_regions[ix].map_info,&default_map,
195 sizeof(map_regions[ix].map_info));
196 map_regions_set[ix] = 1;
197 map_regions[ix].window_addr_physical = DEF_WINDOW_ADDR_PHY;
198 map_regions[ix].altbankwidth = 2;
199 map_regions[ix].mymtd = NULL;
200 map_regions[ix].map_info.name = map_regions[ix].map_name;
201 strcpy(map_regions[ix].map_info.name,"FORTUNET");
203 if(map_regions_set[ix])
208 map_regions[ix].map_info.name,
209 map_regions[ix].window_addr_physical,
210 map_regions[ix].map_info.size);
212 map_regions[ix].map_info.phys = map_regions[ix].window_addr_physical,
214 map_regions[ix].map_info.virt =
216 map_regions[ix].window_addr_physical,
217 map_regions[ix].map_info.size);
218 if(!map_regions[ix].map_info.virt)
222 map_regions[ix].map_info.name);
223 for (j = 0 ; j < ix; j++)
227 simple_map_init(&map_regions[ix].map_info);
230 map_regions[ix].map_info.name,
231 map_regions[ix].map_info.virt);
232 map_regions[ix].mymtd = do_map_probe("cfi_probe",
233 &map_regions[ix].map_info);
234 if((!map_regions[ix].mymtd)&&(
235 map_regions[ix].altbankwidth!=map_regions[ix].map_info.bankwidth))
239 map_regions[ix].map_info.name);
240 map_regions[ix].map_info.bankwidth =
241 map_regions[ix].altbankwidth;
242 map_regions[ix].mymtd = do_map_probe("cfi_probe",
243 &map_regions[ix].map_info);
245 map_regions[ix].mymtd->owner = THIS_MODULE;
246 add_mtd_partitions(map_regions[ix].mymtd,
247 map_regions[ix].parts,map_regions_parts[ix]);
257 int ix;
258 for(ix=0;ix<MAX_NUM_REGIONS;ix++)
260 if(map_regions_set[ix])
262 if( map_regions[ix].mymtd )
264 del_mtd_partitions( map_regions[ix].mymtd );
265 map_destroy( map_regions[ix].mymtd );
267 iounmap((void *)map_regions[ix].map_info.virt);