Lines Matching refs:mtdids

18 void board_mtdparts_default(const char **mtdids, const char **mtdparts);
23 const char *mtdids = env_get("mtdids"); in get_mtdids() local
25 if (mtdids) in get_mtdids()
26 return mtdids; in get_mtdids()
29 board_mtdparts_default(&mtdids, &mtdparts); in get_mtdids()
31 mtdids = MTDIDS_DEFAULT; in get_mtdids()
33 mtdids = CONFIG_MTDIDS_DEFAULT; in get_mtdids()
36 if (mtdids) in get_mtdids()
37 env_set("mtdids", mtdids); in get_mtdids()
39 return mtdids; in get_mtdids()
59 const char *mtdids, *equal, *comma, *dev_id, *mtd_id; in mtd_search_alternate_name() local
62 mtdids = get_mtdids(); in mtd_search_alternate_name()
63 if (!mtdids) in mtd_search_alternate_name()
68 dev_id = mtdids; in mtd_search_alternate_name()
72 dev_id_len = equal - mtdids; in mtd_search_alternate_name()
76 comma = strchr(mtdids, ','); in mtd_search_alternate_name()
80 mtd_id_len = &mtdids[strlen(mtdids)] - mtd_id + 1; in mtd_search_alternate_name()
97 mtdids = comma + 1; in mtd_search_alternate_name()
141 __maybe_unused const char *mtdids = NULL; in get_mtdparts() local
154 board_mtdparts_default(&mtdids, &mtdparts); in get_mtdparts()
220 const char *mtdids = get_mtdids(); in mtd_probe_devices() local
233 if ((!mtdparts && !old_mtdparts && !mtdids && !old_mtdids) || in mtd_probe_devices()
234 (mtdparts && old_mtdparts && mtdids && old_mtdids && in mtd_probe_devices()
237 !strcmp(mtdids, old_mtdids))) in mtd_probe_devices()
244 old_mtdids = strdup(mtdids); in mtd_probe_devices()
260 if (!mtdparts || !mtdids) in mtd_probe_devices()