Lines Matching refs:mtd_table
28 static struct mtd_info *mtd_table[MAX_MTD_DEVICES]; variable
48 if (!mtd_table[i]) in add_mtd_device()
52 mtd_table[i] = mtd; in add_mtd_device()
88 if (mtd_table[i] == mtd) in del_mtd_device()
95 mtd_table[i] = NULL; in del_mtd_device()
127 if (mtd_table[i]) in register_mtd_user()
128 new->add(mtd_table[i]); in register_mtd_user()
158 if (mtd_table[i]) in unregister_mtd_user()
159 old->remove(mtd_table[i]); in unregister_mtd_user()
193 if (mtd_table[i] == mtd) in __get_mtd_device()
194 ret = mtd_table[i]; in __get_mtd_device()
196 ret = mtd_table[num]; in __get_mtd_device()
291 if (mtd_table[i] && mtd_table[i]->suspend) in mtd_pm_callback()
292 ret = mtd_table[i]->suspend(mtd_table[i]); in mtd_pm_callback()
298 if (mtd_table[i] && mtd_table[i]->resume) in mtd_pm_callback()
299 mtd_table[i]->resume(mtd_table[i]); in mtd_pm_callback()
318 struct mtd_info *this = mtd_table[i]; in mtd_proc_info()