Lines Matching refs:mtd
27 struct mtd_info *mtd[MAX_RESOURCES]; member
48 if (info->cmtd != info->mtd[0]) in physmap_flash_remove()
53 if (info->mtd[i] != NULL) in physmap_flash_remove()
54 map_destroy(info->mtd[i]); in physmap_flash_remove()
158 for (; info->mtd[i] == NULL && *probe_type != NULL; probe_type++) in physmap_flash_probe()
159 info->mtd[i] = do_map_probe(*probe_type, &info->map[i]); in physmap_flash_probe()
161 info->mtd[i] = do_map_probe(physmap_data->probe_type, &info->map[i]); in physmap_flash_probe()
163 if (info->mtd[i] == NULL) { in physmap_flash_probe()
170 info->mtd[i]->dev.parent = &dev->dev; in physmap_flash_probe()
174 info->cmtd = info->mtd[0]; in physmap_flash_probe()
179 info->cmtd = mtd_concat_create(info->mtd, devices_found, dev_name(&dev->dev)); in physmap_flash_probe()
205 for (i = 0; i < MAX_RESOURCES && info->mtd[i]; i++) in physmap_flash_shutdown()
206 if (mtd_suspend(info->mtd[i]) == 0) in physmap_flash_shutdown()
207 mtd_resume(info->mtd[i]); in physmap_flash_shutdown()