Lines Matching refs:mtdids
127 extern void board_mtdparts_default(const char **mtdids, const char **mtdparts);
144 static struct list_head mtdids; variable
158 static struct mtdids* id_find_by_mtd_id(const char *mtd_id, unsigned int mtd_id_len);
329 static int part_validate_eraseblock(struct mtdids *id, struct part_info *part) in part_validate_eraseblock()
416 static int part_validate(struct mtdids *id, struct part_info *part) in part_validate()
845 struct mtdids *id; in device_parse()
986 static struct mtdids* id_find(u8 type, u8 num) in id_find()
989 struct mtdids *id; in id_find()
991 list_for_each(entry, &mtdids) { in id_find()
992 id = list_entry(entry, struct mtdids, link); in id_find()
1010 static struct mtdids* id_find_by_mtd_id(const char *mtd_id, unsigned int mtd_id_len) in id_find_by_mtd_id()
1013 struct mtdids *id; in id_find_by_mtd_id()
1018 list_for_each(entry, &mtdids) { in id_find_by_mtd_id()
1019 id = list_entry(entry, struct mtdids, link); in id_find_by_mtd_id()
1621 struct mtdids *id;
1623 struct mtdids *id_tmp;
1631 list_for_each_safe(entry, n, &mtdids) {
1632 id_tmp = list_entry(entry, struct mtdids, link);
1638 INIT_LIST_HEAD(&mtdids);
1672 list_for_each(entry, &mtdids) {
1673 id_tmp = list_entry(entry, struct mtdids, link);
1686 if (!(id = (struct mtdids *)malloc(sizeof(struct mtdids) + mtd_id_len))) {
1690 memset(id, 0, sizeof(struct mtdids) + mtd_id_len);
1703 list_add_tail(&id->link, &mtdids);
1708 list_for_each_safe(entry, n, &mtdids) {
1709 id_tmp = list_entry(entry, struct mtdids, link);
1737 INIT_LIST_HEAD(&mtdids);
2004 struct mtdids *id;