Searched refs:mtd_id_len (Results 1 – 3 of 3) sorted by relevance
/openbmc/u-boot/drivers/mtd/ |
H A D | mtd_uboot.c | 58 int dev_id_len, mtd_id_len; in mtd_search_alternate_name() local 76 mtd_id_len = comma - mtd_id; in mtd_search_alternate_name() 78 mtd_id_len = &mtdids[strlen(mtdids)] - mtd_id + 1; in mtd_search_alternate_name() 80 if (!dev_id_len || !mtd_id_len) in mtd_search_alternate_name() 87 if (!strncmp(mtdname, mtd_id, mtd_id_len)) { in mtd_search_alternate_name()
|
/openbmc/u-boot/cmd/ |
H A D | mtdparts.c | 157 static struct mtdids* id_find_by_mtd_id(const char *mtd_id, unsigned int mtd_id_len); 846 unsigned int mtd_id_len; in device_parse() local 869 mtd_id_len = p - mtd_id + 1; in device_parse() 873 if ((id = id_find_by_mtd_id(mtd_id, mtd_id_len - 1)) == NULL) { in device_parse() 874 printf("invalid mtd device '%.*s'\n", mtd_id_len - 1, mtd_id); in device_parse() 1009 static struct mtdids* id_find_by_mtd_id(const char *mtd_id, unsigned int mtd_id_len) in id_find_by_mtd_id() argument 1015 mtd_id_len, mtd_id, mtd_id_len); in id_find_by_mtd_id() 1023 if (mtd_id_len != strlen(id->mtd_id)) in id_find_by_mtd_id() 1025 if (strncmp(id->mtd_id, mtd_id, mtd_id_len) == 0) in id_find_by_mtd_id() 1614 int mtd_id_len; local [all …]
|
/openbmc/linux/drivers/mtd/parsers/ |
H A D | cmdlinepart.c | 228 int mtd_id_len, num_parts; in mtdpart_setup_real() local 268 mtd_id_len = p - mtd_id; in mtdpart_setup_real() 281 mtd_id_len + 1 + sizeof(*this_mtd) + in mtdpart_setup_real() 301 strscpy(this_mtd->mtd_id, mtd_id, mtd_id_len + 1); in mtdpart_setup_real()
|