Home
last modified time | relevance | path

Searched refs:mtd_id_len (Results 1 – 3 of 3) sorted by relevance

/openbmc/u-boot/drivers/mtd/
H A Dmtd_uboot.c58 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 Dmtdparts.c846 unsigned int mtd_id_len; in device_parse() local
869 mtd_id_len = p - mtd_id + 1; in device_parse()
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
1654 mtd_id_len = p - mtd_id + 1;
1657 mtd_id_len = strlen(mtd_id) + 1;
1659 if (mtd_id_len == 0) {
1689 strncpy(id->mtd_id, mtd_id, mtd_id_len - 1);
[all …]
/openbmc/linux/drivers/mtd/parsers/
H A Dcmdlinepart.c228 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()